Skip to content

Polynomials

Updated Β· Equations updated; Sections updated; Examples or practice updated; Explanations expanded What changed?
  1. β€” Equations updated; Sections updated; Examples or practice updated; Explanations expanded

A polynomial is an expression P(x)=anxn+⋯+a0P(x)=a_nx^n+\cdots+a_0 with nonnegative integer exponents. If an≠0a_n\ne0, its degree is nn. Polynomial division writes

P(x)=D(x)Q(x)+R(x),deg⁑R<deg⁑D,P(x)=D(x)Q(x)+R(x),\qquad \deg R<\deg D,

where a zero remainder is also allowed. If D(x)=xβˆ’rD(x)=x-r, the remainder is constant. Substituting x=rx=r shows that the remainder is P(r)P(r). Consequently, xβˆ’rx-r divides P(x)P(x) exactly when P(r)=0P(r)=0.

Example. A polynomial satisfies P(1)=4P(1)=4 and P(3)=10P(3)=10. Find the remainder when it is divided by (xβˆ’1)(xβˆ’3)(x-1)(x-3).

The remainder has degree at most one, so write it as ax+bax+b. Evaluating at the roots of the divisor gives

a+b=4,3a+b=10.a+b=4,\qquad3a+b=10.

Thus a=3a=3 and b=1b=1, so the remainder is 3x+13x+1. We never needed the full polynomial.


A divisor gives an algebraic replacement rule. Modulo x2+1x^2+1, replace x2x^2 by negative one; modulo x2βˆ’xβˆ’1x^2-x-1, replace it by x+1x+1. This is polynomial arithmetic, analogous to reducing integers modulo an integer.

Every multiplication can be followed by reduction to a smaller degree. This makes very high powers manageable and explains why remainder questions are often recurrence problems in disguise.

Example. Find the remainder of x2026+x2025+1x^{2026}+x^{2025}+1 upon division by x2+1x^2+1.

Because x2β‰‘βˆ’1x^2\equiv-1 modulo the divisor, powers repeat with period four. The two exponents are respectively two and one modulo four, so

x2026+x2025+1β‰‘βˆ’1+x+1=x.x^{2026}+x^{2025}+1\equiv-1+x+1=x.

The degree of xx is less than two, so it is already the unique remainder.

Example. Prove that the remainder of xnx^n modulo x2βˆ’xβˆ’1x^2-x-1 is Fnx+Fnβˆ’1F_nx+F_{n-1} for nβ‰₯1n\ge1, where F0=0,F1=1F_0=0,F_1=1 are Fibonacci numbers.

The formula holds at n=1n=1 and n=2n=2. If it holds at nn, multiply by xx and reduce:

x(Fnx+Fnβˆ’1)≑Fn(x+1)+Fnβˆ’1x=Fn+1x+Fn.x(F_nx+F_{n-1})\equiv F_n(x+1)+F_{n-1}x =F_{n+1}x+F_n.

This proves the next case and hence the formula by induction. A huge exponent has become a pair of recursively defined coefficients.

If a divisor has repeated roots, evaluating only at its distinct roots will not supply enough equations for the remainder. For division by (xβˆ’r)2(x-r)^2, the remainder A+B(xβˆ’r)A+B(x-r) is determined by A=P(r)A=P(r) and B=Pβ€²(r)B=P'(r). The derivative contributes the missing condition.


A root rr has multiplicity mm when (xβˆ’r)m(x-r)^m divides P(x)P(x) but (xβˆ’r)m+1(x-r)^{m+1} does not. Count roots with multiplicity when comparing a polynomial’s factors to its degree. Over the complex numbers, a degree-nn polynomial has exactly nn roots with multiplicity.

For a monic cubic,

P(x)=(xβˆ’a)(xβˆ’b)(xβˆ’c)=x3βˆ’s1x2+s2xβˆ’s3,P(x)=(x-a)(x-b)(x-c)=x^3-s_1x^2+s_2x-s_3,

where

s1=a+b+c,s2=ab+bc+ca,s3=abc.s_1=a+b+c,\qquad s_2=ab+bc+ca,\qquad s_3=abc.

These are Vieta’s formulas. They let us calculate symmetric expressions without solving for the roots.

Example. The roots of x3βˆ’4x2+2x+5x^3-4x^2+2x+5 are a,b,ca,b,c. Find a2+b2+c2a^2+b^2+c^2 and 1/a+1/b+1/c1/a+1/b+1/c.

Vieta gives s1=4s_1=4, s2=2s_2=2, and s3=βˆ’5s_3=-5. Therefore,

a2+b2+c2=s12βˆ’2s2=12.a^2+b^2+c^2=s_1^2-2s_2=12.

The product is nonzero, so taking reciprocals is allowed:

1a+1b+1c=ab+bc+caabc=βˆ’25.\frac1a+\frac1b+\frac1c=\frac{ab+bc+ca}{abc}=-\frac25.

For rational roots of an integer-coefficient polynomial, the rational root theorem gives a useful candidate list: a reduced root p/qp/q must have p∣a0p\mid a_0 and q∣anq\mid a_n. It does not guarantee that any candidate is a root.


If P(x)=(xβˆ’r)mQ(x)P(x)=(x-r)^mQ(x) with Q(r)β‰ 0Q(r)\ne0, the exponent mm measures how strongly the polynomial vanishes at rr. Differentiation reduces that multiplicity by one:

Pβ€²(x)=m(xβˆ’r)mβˆ’1Q(x)+(xβˆ’r)mQβ€²(x).P'(x)=m(x-r)^{m-1}Q(x)+(x-r)^mQ'(x).

Consequently, rr is a repeated root exactly when P(r)=Pβ€²(r)=0P(r)=P'(r)=0. A root of multiplicity at least three also satisfies Pβ€²β€²(r)=0P''(r)=0. These tests replace repeated factoring when the coefficients contain unknown parameters.

For real polynomials, odd multiplicity means the sign changes across the root, while even multiplicity means it does not. The other factor stays nonzero and keeps a fixed sign sufficiently near the root. This explains why a double root can touch the horizontal axis without crossing it.

Example. Find real numbers a,ba,b such that x=2x=2 is a repeated root of P(x)=x3+ax+bP(x)=x^3+ax+b, and factor the resulting polynomial.

The root conditions give

8+2a+b=0,Pβ€²(2)=12+a=0.8+2a+b=0,\qquad P'(2)=12+a=0.

Thus a=βˆ’12a=-12 and b=16b=16. Dividing by (xβˆ’2)2(x-2)^2 gives

P(x)=(xβˆ’2)2(x+4).P(x)=(x-2)^2(x+4).

Since Pβ€²β€²(2)=12β‰ 0P''(2)=12\ne0, the root two has multiplicity exactly two. The remaining root is negative four.

The derivative test also helps find a polynomial’s greatest common divisor with its derivative. A nonconstant common factor signals repeated roots. On a contest, it is often enough to exhibit one common root rather than perform a full polynomial Euclidean algorithm.


Suppose a monic polynomial PP has roots r1,…,rnr_1,\ldots,r_n. To find a polynomial with roots ri+cr_i+c, replace the input by xβˆ’cx-c. To obtain roots krikr_i for kβ‰ 0k\ne0, use knP(x/k)k^nP(x/k). The multiplier keeps the resulting polynomial monic.

If none of the roots is zero, a polynomial with reciprocal roots is obtained from xnP(1/x)x^nP(1/x), then normalized by its leading coefficient. This works because substituting x=1/rix=1/r_i makes its polynomial factor zero.

Example. The roots of P(t)=t3βˆ’2t2βˆ’3t+1P(t)=t^3-2t^2-3t+1 are a,b,ca,b,c. Find a monic polynomial with roots a+1,b+1,c+1a+1,b+1,c+1.

Use P(xβˆ’1)P(x-1) rather than finding the three roots:

P(xβˆ’1)=(xβˆ’1)3βˆ’2(xβˆ’1)2βˆ’3(xβˆ’1)+1=x3βˆ’5x2+4x+1.P(x-1)=(x-1)^3-2(x-1)^2-3(x-1)+1 =x^3-5x^2+4x+1.

As a check, the new roots sum to a+b+c+3=5a+b+c+3=5, matching the negative coefficient of x2x^2.

Products of paired roots can also be handled through Vieta. If abc≠0abc\ne0, the three numbers ab,bc,caab,bc,ca are abcabc times the reciprocals of c,a,bc,a,b. Their elementary symmetric quantities are

ab+bc+ca=s2,(ab)(bc)+(bc)(ca)+(ca)(ab)=s1s3,(ab)(bc)(ca)=s32.ab+bc+ca=s_2,\quad (ab)(bc)+(bc)(ca)+(ca)(ab)=s_1s_3,\quad (ab)(bc)(ca)=s_3^2.

Thus their monic polynomial is x3βˆ’s2x2+s1s3xβˆ’s32x^3-s_2x^2+s_1s_3x-s_3^2. Recognizing this transformation often saves a long symmetric expansion.


If the problem asks for high powers of roots, expanding symmetric identities repeatedly becomes awkward. Define pk=ak+bk+ckp_k=a^k+b^k+c^k. For the monic cubic above,

p1=s1,p2=s1p1βˆ’2s2,p3=s1p2βˆ’s2p1+3s3.p_1=s_1,\qquad p_2=s_1p_1-2s_2,\qquad p_3=s_1p_2-s_2p_1+3s_3.

For kβ‰₯4k\ge4,

pk=s1pkβˆ’1βˆ’s2pkβˆ’2+s3pkβˆ’3.p_k=s_1p_{k-1}-s_2p_{k-2}+s_3p_{k-3}.

To see the recurrence, substitute a root aa into a3βˆ’s1a2+s2aβˆ’s3=0a^3-s_1a^2+s_2a-s_3=0, multiply by akβˆ’3a^{k-3}, and sum over all three roots. At k=3k=3 the last contribution is 3s33s_3 because there are three roots, rather than just one constant term.

Example. For the roots of x3βˆ’4x2+2x+5x^3-4x^2+2x+5, find p3p_3 and p4p_4.

We already have p1=4p_1=4 and p2=12p_2=12. Using s3=βˆ’5s_3=-5,

p3=4(12)βˆ’2(4)+3(βˆ’5)=25,p_3=4(12)-2(4)+3(-5)=25, p4=4(25)βˆ’2(12)βˆ’5(4)=56.p_4=4(25)-2(12)-5(4)=56.

The coefficients supply a recurrence for the desired sums even if the individual roots are unpleasant.


For a monic degree-nn polynomial P(x)=xn+c1xnβˆ’1+β‹―+cnP(x)=x^n+c_1x^{n-1}+\cdots+c_n, let sks_k be the sum of the kkth powers of its roots, counted with multiplicity. The general Newton identities are

sk+c1skβˆ’1+β‹―+ckβˆ’1s1+kck=0,1≀k≀n.s_k+c_1s_{k-1}+\cdots+c_{k-1}s_1+kc_k=0,\qquad1\le k\le n.

For k>nk>n, they become the recurrence

sk+c1skβˆ’1+β‹―+cnskβˆ’n=0.s_k+c_1s_{k-1}+\cdots+c_ns_{k-n}=0.

The special coefficient kk in the first formula is important. Replacing it by the degree at every stage gives the wrong initial power sums. Once all polynomial coefficients have entered, the later sums follow an ordinary linear recurrence.

Example. The roots of x4βˆ’2x3+3x2βˆ’4x+5x^4-2x^3+3x^2-4x+5 are a,b,c,da,b,c,d. Find their fifth-power sum and show the roots cannot all be real.

The first Newton sums are

s1=2,s2=2s1βˆ’6=βˆ’2,s_1=2,\qquad s_2=2s_1-6=-2, s3=2s2βˆ’3s1+12=2,s4=2s3βˆ’3s2+4s1βˆ’20=βˆ’2.s_3=2s_2-3s_1+12=2,\qquad s_4=2s_3-3s_2+4s_1-20=-2.

The recurrence then gives

s5=2s4βˆ’3s3+4s2βˆ’5s1=βˆ’28.s_5=2s_4-3s_3+4s_2-5s_1=-28.

If all roots were real, their squared values would be nonnegative and s2s_2 could not equal negative two. Thus at least one conjugate pair is nonreal.

The negative square sum is not an algebraic contradiction because the roots are complex. Conditions on the root domain can turn a computed symmetric value into an existence or impossibility argument.


A nonzero polynomial of degree dd has at most dd distinct roots. This gives an efficient way to prove identities: if two polynomials of degree at most dd agree at d+1d+1 distinct inputs, their difference must be zero.

The degree bound matters. Checking a few numerical values proves nothing about an unrestricted function or a polynomial of unknown degree.

Example. A polynomial PP has degree at most 33 and satisfies P(0)=1P(0)=1, P(1)=2P(1)=2, P(2)=5P(2)=5, and P(3)=10P(3)=10. Find P(4)P(4).

The values suggest P(x)=x2+1P(x)=x^2+1. Define Q(x)=P(x)βˆ’(x2+1)Q(x)=P(x)-(x^2+1). It has degree at most 33 and four distinct roots, namely 0,1,2,30,1,2,3. Hence QQ is the zero polynomial, proving the guess. Therefore P(4)=17P(4)=17.

For integer-coefficient polynomials, another useful fact is

aβˆ’b∣P(a)βˆ’P(b)(a,b∈Z,Β aβ‰ b).a-b\mid P(a)-P(b)\qquad(a,b\in\mathbb Z,\ a\ne b).

Each difference akβˆ’bka^k-b^k contains the factor aβˆ’ba-b. This connects polynomial equations to divisibility problems.


A polynomial of degree at most dd is determined by its values at any d+1d+1 distinct inputs. One explicit construction is Lagrange interpolation:

P(x)=βˆ‘i=0dP(ti)∏0≀j≀djβ‰ ixβˆ’tjtiβˆ’tj.P(x)=\sum_{i=0}^d P(t_i) \prod_{\substack{0\le j\le d\\j\ne i}}\frac{x-t_j}{t_i-t_j}.

Each product equals one at its own input tit_i and zero at all the other listed inputs. The right side has the same values and degree bound as PP, so the root-counting identity principle proves equality.

The formula is most useful when only one new value is requested. Substitute that input into the weights before expanding anything.

Example. A polynomial of degree at most two satisfies P(1)=2,P(2)=3,P(3)=6P(1)=2,P(2)=3,P(3)=6. Find P(0)P(0).

At zero, the three interpolation weights are

(βˆ’2)(βˆ’3)(1βˆ’2)(1βˆ’3)=3,(βˆ’1)(βˆ’3)(2βˆ’1)(2βˆ’3)=βˆ’3,(βˆ’1)(βˆ’2)(3βˆ’1)(3βˆ’2)=1.\frac{(-2)(-3)}{(1-2)(1-3)}=3,\quad \frac{(-1)(-3)}{(2-1)(2-3)}=-3,\quad \frac{(-1)(-2)}{(3-1)(3-2)}=1.

Therefore P(0)=3(2)βˆ’3(3)+6=3P(0)=3(2)-3(3)+6=3. No coefficient system is needed.

For equally spaced inputs, finite differences are often simpler. Define Ξ”P(x)=P(x+1)βˆ’P(x)\Delta P(x)=P(x+1)-P(x). A degree-dd polynomial has a difference of degree at most dβˆ’1d-1 because its leading powers cancel. Repeating the operation d+1d+1 times gives zero.

Example. A polynomial of degree at most four satisfies P(k)=2kP(k)=2^k for k=0,1,2,3,4k=0,1,2,3,4. Find P(5)P(5).

The fifth difference vanishes, giving

P(5)βˆ’5P(4)+10P(3)βˆ’10P(2)+5P(1)βˆ’P(0)=0.P(5)-5P(4)+10P(3)-10P(2)+5P(1)-P(0)=0.

Substitute the known values:

P(5)=5(16)βˆ’10(8)+10(4)βˆ’5(2)+1=31.P(5)=5(16)-10(8)+10(4)-5(2)+1=31.

The value is not thirty-two. Agreement with an exponential at five inputs does not make a degree-four polynomial equal that exponential everywhere.


When a polynomial has integer coefficients, its values satisfy divisibility restrictions beyond its degree bound. The identity aβˆ’b∣P(a)βˆ’P(b)a-b\mid P(a)-P(b) is one example. Division by a monic integer polynomial also preserves integer coefficients in the quotient and remainder.

Example. An integer-coefficient polynomial satisfies P(0)=P(1)=1P(0)=P(1)=1. Prove P(n)P(n) is odd for every integer nn.

The polynomial P(x)βˆ’1P(x)-1 has roots zero and one, so

P(x)βˆ’1=x(xβˆ’1)Q(x)P(x)-1=x(x-1)Q(x)

for an integer-coefficient polynomial QQ. At an integer input, n(nβˆ’1)n(n-1) is even. Thus P(n)βˆ’1P(n)-1 is even and P(n)P(n) is odd.

The factorization uses both prescribed inputs simultaneously; applying divisibility to only one of them would give a weaker conclusion.

A useful olympiad pattern is to turn several possible function values into zeros of one polynomial. If a degree-at-most-dd polynomial takes values only from {1,βˆ’1}\{1,-1\} at more than 2d2d distinct inputs, then P(x)2βˆ’1P(x)^2-1 has too many roots and must vanish identically. Factoring it as (Pβˆ’1)(P+1)(P-1)(P+1) shows that PP is the constant one or negative one.

More generally, if PP takes values in a set of kk numbers at more than kdkd distinct inputs, the product of P(x)P(x) minus those values is identically zero. This is a useful bridge from a finite list of allowed outputs to a global polynomial identity.


A factorization can classify prime outputs without finding any roots.

Example. Find all integers nn for which n4+4n^4+4 is prime.

Sophie Germain’s identity gives

n4+4=(n2βˆ’2n+2)(n2+2n+2).n^4+4=(n^2-2n+2)(n^2+2n+2).

Both factors are positive integers. If ∣n∣β‰₯2\lvert n\rvert\ge2, both exceed one, so the product is composite. At n=0n=0 the value is four, also composite. At n=1n=1 or negative one, the value is five, which is prime.

Therefore the complete list is n=Β±1n=\pm1.

The positivity check is essential when using a factorization to rule out primes: a factor equal to one does not establish compositeness. Boundary inputs often survive precisely because one algebraic factor becomes one.


A monic polynomial with M=max⁑i∣ci∣M=\max_i\lvert c_i\rvert has every complex root in the disk ∣zβˆ£β‰€1+M\lvert z\rvert\le1+M. To prove this, suppose a root had modulus greater than 1+M1+M. The polynomial equation and triangle inequality would give

∣z∣n≀M(1+∣z∣+β‹―+∣z∣nβˆ’1)=M∣z∣nβˆ’1∣zβˆ£βˆ’1<∣z∣n,\lvert z\rvert^n\le M(1+\lvert z\rvert+\cdots+\lvert z\rvert^{n-1}) =M\frac{\lvert z\rvert^n-1}{\lvert z\rvert-1} <\lvert z\rvert^n,

a contradiction.

This Cauchy root bound is rarely the sharpest numerical estimate, but it supplies a finite region containing every root without solving the polynomial. In an integer-root problem, combine it with the rational-root theorem to limit the candidate list.

For a real root, a sign change between two inputs proves existence in the interval by continuity. It does not prove uniqueness unless a monotonicity or root-count argument is added. Conversely, absence of a sign change does not rule out an even-multiplicity root. Keep existence, uniqueness, and multiplicity as separate questions when interpreting a graph or a numerical table.