Evanalysis
8.1Estimated reading time: 25 min

8.1 Polynomial arithmetic and division

Define polynomials as finite formal sums, control degree, prove the polynomial division algorithm, and use the remainder and factor theorems.

Course contents

Why polynomials need their own arithmetic

A polynomial is familiar as an expression such as x4−3x3+2x2+4x−1x^4-3x^3+2x^2+4x-1, but chapter 8 treats polynomials more carefully than ordinary algebraic shorthand. The point is not only to manipulate expressions. The point is to build an arithmetic system that behaves enough like the integers to support division with remainder, greatest common divisors, factorization, and later partial fraction decompositions.

Throughout this chapter, the coefficients are real unless another field is explicitly named. The same definitions work over any field FF, for example QQ, RR, or CC.

Polynomials as finite formal sums

Definition

Polynomial over R

A polynomial with real coefficients is a formal sum

p(x)=∑i=0∞aixip(x)=\sum_{i=0}^{\infty} a_i x^i

where each ai∈Ra_i\in R and all but finitely many coefficients are zero. The set of all such polynomials is denoted by R[x]R[x].

The word "formal" matters. A polynomial is not merely a function value at one particular xx; it is the whole list of coefficients, with only finitely many nonzero entries. Once the coefficients are fixed, the polynomial expression is fixed.

Concept lensStructural

Coefficients first, values after substitution

Two formal polynomials are equal precisely when every corresponding coefficient agrees, including omitted zero coefficients. Thus 1+x1+x and 1+x+0x21+x+0x^2 are equal. Evaluating at a real number tt instead produces the number p(t)=∑iaitip(t)=\sum_i a_it^i. The infinite summation notation involves no convergence question: only finitely many summands are nonzero.

An evaluated value contains less information than the coefficient list. For example, xx and x2x^2 both give 00 at t=0t=0 but have different coefficients. Over R\mathbb R, agreement at every real input does imply polynomial equality; later in this note the root bound will justify that converse. Until then, coefficient equality is the definition, and evaluation is an operation applied to the already-defined object.

If at least one coefficient is nonzero, the degree of p(x)p(x) is the largest index ii for which ai≠0a_i\ne0. If every coefficient is zero, we call p(x)p(x) the zero polynomial and set

deg⁡(0)=−∞.\deg(0)=-\infty.

This convention lets degree formulas include the zero polynomial without many exceptional cases.

A nonzero constant has degree 00, since its constant coefficient is its highest nonzero coefficient. The zero polynomial has no such coefficient and is not a degree-zero polynomial. In degree comparisons −∞-\infty is smaller than every nonnegative integer; use max⁡(−∞,m)=m\max(-\infty,m)=m and (−∞)+m=−∞(-\infty)+m=-\infty, including m=−∞m=-\infty. These are conventions for degree bookkeeping, not claims that a polynomial has a negative integer exponent. The zero polynomial has no leading coefficient and is not monic.

A polynomial is monic if its leading coefficient is 11. For instance, x3−4x+7x^3-4x+7 is monic, while 2x3−4x+72x^3-4x+7 is not.

Common mistake

Do not read the displayed last term as the degree

If a polynomial is written as

p(x)=a0+a1x+⋯+anxn,p(x)=a_0+a_1x+\cdots+a_nx^n,

then deg⁡(p)=n\deg(p)=n only when an≠0a_n\ne0. The notation by itself does not guarantee that the displayed final coefficient is nonzero.

Addition, multiplication, and degree

Let

p(x)=∑i=0∞aixi,q(x)=∑i=0∞bixi.p(x)=\sum_{i=0}^{\infty}a_ix^i,\qquad q(x)=\sum_{i=0}^{\infty}b_ix^i.

Their sum is formed coefficient-by-coefficient:

p(x)+q(x)=∑i=0∞(ai+bi)xi.p(x)+q(x)=\sum_{i=0}^{\infty}(a_i+b_i)x^i.

Their product is given by the convolution rule:

p(x)q(x)=∑i=0∞dixi,di=∑k=0iakbi−k.p(x)q(x)=\sum_{i=0}^{\infty}d_ix^i,\qquad d_i=\sum_{k=0}^{i}a_kb_{i-k}.

Only finitely many terms contribute, so the product is again a polynomial.

Theorem

Degree rules

For p(x),q(x)∈R[x]p(x),q(x)\in R[x],

  1. deg⁡(p+q)≤max⁡{deg⁡p,deg⁡q}\deg(p+q)\le \max\{\deg p,\deg q\};
  2. deg⁡(pq)=deg⁡p+deg⁡q\deg(pq)=\deg p+\deg q.

The second identity uses the fact that the coefficient field has no zero divisors.

The inequality in the first rule can be strict because leading terms may cancel. For example,

(x2+1)+(−x2+x)=x+1.(x^2+1)+(-x^2+x)=x+1.

The product rule is stronger: if pp and qq are nonzero with leading coefficients ara_r and bsb_s, then the coefficient of xr+sx^{r+s} in pqpq is arbsa_rb_s, which is nonzero.

To see why no higher product term survives, let deg⁡p=r\deg p=r and deg⁡q=s\deg q=s. A contribution akbi−ka_kb_{i-k} at an index i>r+si>r+s must have either k>rk>r or i−k>si-k>s, so one coefficient is zero. At index r+sr+s, only the pair k=rk=r, i−k=si-k=s can contribute. Its product is nonzero because the coefficients belong to a field. Consequently a product of two nonzero polynomials cannot be the zero polynomial.

For addition, every coefficient above max⁡(r,s)\max(r,s) is zero. If the degrees are unequal, the higher leading term has no counterpart to cancel, so the bound is attained. With equal degrees, cancellation can continue through all coefficients: p+(−p)=0p+(-p)=0 has degree −∞-\infty. If either factor in a product is zero, the product is zero and the stated conventions give the same rule.

The division algorithm

The central structural result is the polynomial version of integer division. It says that when we divide by a nonzero polynomial, there is a unique quotient and a unique remainder whose degree is smaller than the divisor.

Theorem

Division algorithm for polynomials

Let f(x),g(x)∈R[x]f(x),g(x)\in R[x] with g(x)≠0g(x)\ne0. Then there exist unique polynomials q(x),r(x)∈R[x]q(x),r(x)\in R[x] such that

f(x)=g(x)q(x)+r(x),deg⁡r<deg⁡g.f(x)=g(x)q(x)+r(x),\qquad \deg r\lt\deg g.

For existence, consider the nonempty set

S={f−gs:s∈R[x]}.S=\{f-gs:s\in\mathbb R[x]\}.

It contains ff by taking s=0s=0. If 0∈S0\in S, choose qq with f−gq=0f-gq=0 and take r=0r=0; the remainder condition follows from deg⁡0=−∞\deg0=-\infty. Otherwise every element of SS has nonnegative integer degree, so well-ordering gives an element r0=f−gq0r_0=f-gq_0 of least degree.

Suppose deg⁡r0=k≥j=deg⁡g\deg r_0=k\ge j=\deg g, with leading coefficients ckc_k and bjb_j respectively. Since bj≠0b_j\ne0, the field permits the coefficient ck/bjc_k/b_j. Form

r1=r0−g(ckbjxk−j)=f−g(q0+ckbjxk−j).r_1=r_0-g\left(\frac{c_k}{b_j}x^{k-j}\right) =f-g\left(q_0+\frac{c_k}{b_j}x^{k-j}\right).

The exponent k−jk-j is nonnegative, so the added expression is a polynomial and r1r_1 is still in SS. The two leading terms ckxkc_kx^k cancel and all remaining terms have degree below kk. If r1=0r_1=0, it contradicts 0∉S0\notin S; otherwise its smaller degree contradicts minimality. Therefore deg⁡r0<deg⁡g\deg r_0\lt\deg g, and q0,r0q_0,r_0 supply the required pair.

Uniqueness is just as important as existence. If

f=gq1+r1=gq2+r2f=gq_1+r_1=gq_2+r_2

with both remainders smaller than gg, then

g(q1−q2)=r2−r1.g(q_1-q_2)=r_2-r_1.

The left side is either zero or has degree at least deg⁡g\deg g; the right side has degree strictly less than deg⁡g\deg g. Thus both sides must be zero, so q1=q2q_1=q_2 and r1=r2r_1=r_2.

Proof X-Ray

Where the uniqueness contradiction occurs

Assume the quotients differ. Their difference is then a nonzero polynomial, whose degree is at least 00. Multiplying by nonzero gg makes the left side have degree at least deg⁡g\deg g. On the right, subtraction may cancel terms, but cannot increase the degree beyond that of the larger remainder. Thus the two sides cannot be equal. The quotients must agree, and substituting back forces the remainders to agree too. This argument uses the degree bound and the nonzero-divisor hypothesis together.

Polynomial division and remainder tracking

Follow the division steps: cancel each leading term to build the quotient, keeping f=gq+rf=gq+r with rr as the current remainder.

  1. Division identity

    For nonzero gg, polynomial division writes f(x)=g(x)q(x)+r(x)f(x)=g(x)q(x)+r(x) with r=0r=0 or deg⁡r<deg⁡g\deg r < \deg g.

  2. Chapter example

    Divide f=x4−3x3+2x2+4x−1f=x^4-3x^3+2x^2+4x-1 by g=x2−2x+3g=x^2-2x+3, building qq and rr one leading term at a time.

  3. Cancel x4x^4

    The leading ratio x4/x2x^4/x^2 gives the first quotient term x2x^2; subtracting x2gx^2g leaves −x3−x2+4x−1-x^3-x^2+4x-1.

  4. Cancel −x3-x^3

    Repeating the rule gives the second quotient term −x-x and updates the current remainder to −3x2+7x−1-3x^2+7x-1.

  5. Stop by degree

    The last quotient term is −3-3; the remainder x+8x+8 has degree 11, which is smaller than deg⁡(g)=2\deg(g)=2.

  6. Invariant

    The final identity is f=(x2−2x+3)(x2−x−3)+(x+8)f=(x^2-2x+3)(x^2-x-3)+(x+8).

Polynomial long division repeatedly cancels the current leading term while preserving f=gq+rf=gq+r, where rr is the current remainder. The process stops when the remainder is zero or its degree is smaller than the divisor degree.

Read and try

Step through polynomial long division

Polynomial long division successively cancels the highest-degree term. Each subtraction preserves the identity f=gq+r, and the final remainder has degree smaller than the divisor.

Step 1/5

Division step

Set up the division

Dividend: x4−3x3+2x2+4x−1x^4-3x^3+2x^2+4x-1; divisor: x2−2x+3x^2-2x+3.

Quotient

No quotient term yet

Current remainder

x4−3x3+2x2+4x−1x^4-3x^3+2x^2+4x-1

What to notice

At each step, choose the quotient term that cancels the current leading term.

Worked example

Divide a quartic by a quadratic

Find the quotient and remainder when

f(x)=x4−3x3+2x2+4x−1f(x)=x^4-3x^3+2x^2+4x-1

is divided by

g(x)=x2−2x+3.g(x)=x^2-2x+3.

Track each subtraction with the entire remaining polynomial, including the constant term:

f−x2g=−x3−x2+4x−1,(f−x2g)−(−x)g=−3x2+7x−1,(−3x2+7x−1)−(−3)g=x+8.\begin{aligned} f-x^2g&=-x^3-x^2+4x-1,\\ (f-x^2g)-(-x)g&=-3x^2+7x-1,\\ (-3x^2+7x-1)-(-3)g&=x+8. \end{aligned}

The quotient accumulates the multipliers x2,−x,−3x^2,-x,-3. In the second step, subtracting (−x)g(-x)g changes the signs of all its terms, not only the leading one. Keeping the unchanged constant −1-1 visible prevents a dropped term.

Long division gives

q(x)=x2−x−3,r(x)=x+8.q(x)=x^2-x-3,\qquad r(x)=x+8.

Therefore

x4−3x3+2x2+4x−1=(x2−2x+3)(x2−x−3)+(x+8).x^4-3x^3+2x^2+4x-1 =(x^2-2x+3)(x^2-x-3)+(x+8).

Remainders from evaluation

When the divisor is linear, the division algorithm becomes especially powerful.

Theorem

Remainder theorem

Let f(x)∈R[x]f(x)\in R[x] and a∈Ra\in R. When f(x)f(x) is divided by x−ax-a, the remainder is f(a)f(a).

Indeed, the remainder has degree less than 11, so it is a constant RR. Writing

f(x)=(x−a)q(x)+Rf(x)=(x-a)q(x)+R

and substituting x=ax=a gives f(a)=Rf(a)=R.

Here R=f(a)R=f(a) is regarded as a constant polynomial in the division identity; it may be zero. We do not divide the identity by x−ax-a and then substitute x=ax=a, since that would divide by zero. Evaluation is legitimate directly in the polynomial identity.

Polynomial divisibility means that g∣fg\mid f if f=gqf=gq for some polynomial qq in the same coefficient field. For nonzero gg, this is equivalent to having zero remainder. In particular, every polynomial divides the zero polynomial, although division with remainder requires a nonzero divisor.

Theorem

Factor theorem

For f(x)∈R[x]f(x)\in R[x] and a∈Ra\in R,

(x−a)∣f(x)⟺f(a)=0.(x-a)\mid f(x)\quad\Longleftrightarrow\quad f(a)=0.

The factor theorem translates between algebraic factorization and roots. It is one of the main reasons roots become useful: a root supplies a linear factor, and a linear factor supplies a root.

Worked example

Remainder modulo x2−1x^2-1

Suppose the remainders when f(x)f(x) is divided by x−1x-1 and x+1x+1 are 55 and 33, respectively. Find the remainder when f(x)f(x) is divided by x2−1x^2-1.

By the remainder theorem,

f(1)=5,f(−1)=3.f(1)=5,\qquad f(-1)=3.

The remainder upon division by x2−1x^2-1 has degree less than 22, so write it as ax+bax+b. Then

a+b=5,−a+b=3.a+b=5,\qquad -a+b=3.

Solving gives a=1a=1 and b=4b=4. The remainder is therefore

x+4.x+4.

Checkpoint

What is the remainder when f(x)=x3+2x−5f(x)=x^3+2x-5 is divided by x−2x-2?

Use the remainder theorem.

Solution · Answer

The remainder is f(2)=8+4−5=7f(2)=8+4-5=7.

How many roots can a nonzero polynomial have?

The factor theorem gives a degree bound on roots.

Theorem

Root bound

A nonzero polynomial of degree nn over RR or CC has at most nn distinct roots.

The base case is degree 00: a nonzero constant never evaluates to zero. Assume the bound for degree nn, and let ff have degree n+1n+1. If it has no roots, the claim already holds. Otherwise choose a root aa. The factor theorem gives f(x)=(x−a)q(x)f(x)=(x-a)q(x), where qq is nonzero and has degree nn by the product rule.

For any distinct root b≠ab\ne a, evaluation gives 0=(b−a)q(b)0=(b-a)q(b). The scalar b−ab-a is nonzero in the coefficient field, so q(b)=0q(b)=0. By induction there are at most nn such distinct roots, plus the one value aa. This proves the bound for degree n+1n+1. The argument does not require q(a)≠0q(a)\ne0: even if aa is also a root of qq, it is still only one value in the set of roots.

An immediate consequence is that a polynomial of degree at most nn with n+1n+1 distinct roots must be the zero polynomial. This is a uniqueness theorem: too many zeros force every coefficient to vanish.

What the degree condition permits

If f=0f=0 and g≠0g\ne0, the unique pair is q=r=0q=r=0. If f≠0f\ne0 but deg⁡f<deg⁡g\deg f\lt\deg g, the unique pair is q=0q=0, r=fr=f; no cancellation step is required. If the divisor is a nonzero constant cc, the remainder must have degree below 00. Only the zero polynomial qualifies, so q=f/cq=f/c and r=0r=0. Calling the zero polynomial degree 00 would incorrectly exclude this valid remainder.

During long division, every unfinished nonzero remainder has a nonnegative integer degree. Cancelling its leading term strictly decreases that degree, so the process terminates. The final remainder need not be positive: unlike integer remainders, polynomials here have no sign restriction. A smaller degree, rather than a smaller value at a chosen input, is the stopping criterion.

The root bound also needs its exact hypotheses. The zero polynomial vanishes at every input and is excluded. The word “distinct” counts values, rather than the number of times a factor occurs. Applying the bound to p−qp-q shows that polynomials of degree at most nn agreeing at n+1n+1 distinct inputs are equal: otherwise their nonzero difference would have too many roots. Agreement at every real input is a special case, completing the connection between formal polynomials and their evaluated functions.

How to read a polynomial long division

A long division table should not be read as a mysterious arrangement of symbols. It is a repeated leading-term cancellation algorithm.

Start with the current dividend. Compare its leading term with the leading term of the divisor. In the long-division example above, the first comparison is

x4x2=x2.\frac{x^4}{x^2}=x^2.

That quotient term is chosen for one reason only: multiplying the divisor by x2x^2 creates a leading term x4x^4, which cancels the current leading term. After subtraction, the current remainder becomes −x3−x2+4x−1-x^3-x^2+4x-1. The same logic gives the next term

−x3x2=−x,\frac{-x^3}{x^2}=-x,

and then the final quotient term

−3x2x2=−3.\frac{-3x^2}{x^2}=-3.

The algorithm stops not because the expression looks simpler, but because the current remainder has degree 11, which is smaller than the divisor degree 22. This stopping condition is exactly the condition in the theorem. If a student keeps dividing after the remainder has smaller degree, they are no longer following the division algorithm.

Worked example

Choose a parameter with the factor theorem

Find kk so that

x−3x-3

divides

f(x)=x3+kx2−4x+6.f(x)=x^3+kx^2-4x+6.

By the factor theorem, x−3x-3 divides f(x)f(x) exactly when f(3)=0f(3)=0. Compute

f(3)=27+9k−12+6=21+9k.f(3)=27+9k-12+6=21+9k.

Thus 21+9k=021+9k=0, so

k=−219=−73.k=-\frac{21}{9}=-\frac73.

The important point is that we did not divide the cubic by x−3x-3. The factor theorem converts the factor condition into a single evaluation equation.

Common mistakes

Common mistake

Confusing equality of values with equality of polynomials

Checking that two polynomials agree at one value of xx does not prove they are the same polynomial. To prove equality of polynomials, either compare all coefficients or show that their difference has more roots than its degree allows.

Common mistake

Forgetting the degree condition on the remainder

An identity of the form f=gq+rf=gq+r is not yet the division algorithm unless deg⁡r<deg⁡g\deg r\lt\deg g. Without that condition, the quotient and remainder are not unique; one can move a multiple of gg back and forth between qq and rr.

Summary

This note sets up the algebraic foundation for the rest of chapter 8. A polynomial is a finite-support formal sum. Degree measures the leading nonzero coefficient, and it controls addition, multiplication, and division. The division algorithm gives unique qq and rr; the remainder theorem turns division by x−ax-a into evaluation at aa; the factor theorem identifies roots with linear factors; and the root bound explains why too many roots force a polynomial to be zero.

Study guide for the exercises

When solving the exercises, separate three tasks that are easy to mix together. First, simplify the expression only by operations that preserve the polynomial identity being studied. Second, keep track of the degree condition whenever a remainder appears. Third, decide whether the problem is asking for a calculation or for a proof about all polynomials of a given form.

For degree questions, always inspect possible cancellation before announcing the degree of a sum. The degree rule for sums gives only an upper bound. A sum of two fourth-degree polynomials may become quadratic, linear, constant, or even zero if leading terms cancel. For products, the leading coefficient argument is stronger, so the degree is exactly additive as long as both factors are nonzero.

For remainder and factor theorem questions, resist doing unnecessary long division. If the divisor is x−ax-a, evaluation at aa is the direct route. If the divisor is a product such as (x−1)(x+1)(x-1)(x+1), the remainder has degree at most one, so write it as ax+bax+b and use values at the roots of the divisor. This is a recurring strategy: choose the unknown remainder shape from the degree bound, then determine its coefficients from evaluation data.

For proof exercises such as the roots-of-unity problem, the goal is not to expand a large polynomial. The key is to use the factor theorem twice, once at ω\omega and once at ω2\omega^2, and then exploit ω3=1\omega^3=1. That turns the divisibility of F(x)+xG(x)F(x)+xG(x) into two linear equations in the two unknown numbers f(1)f(1) and g(1)g(1).

Quick checks

Checkpoint

Why is the degree of the zero polynomial set to −∞-\infty?

Think about formulas involving addition and multiplication.

Solution · Answer

The convention lets degree rules such as deg⁡(0⋅p)=deg⁡0+deg⁡p\deg(0\cdot p)=\deg 0+\deg p remain formally consistent.

Checkpoint

If a nonzero polynomial has degree at most 44, how many distinct roots can it have?

Use the root bound.

Solution · Answer

It can have at most 44 distinct roots.

Exercises

  1. Let p(x)=3x4−x2+2p(x)=3x^4-x^2+2 and q(x)=−3x4+5x+1q(x)=-3x^4+5x+1. Find the upper bound for the degree of p+qp+q supplied by the degree rule, then compute its actual degree.
  2. Divide x4−3x3+2x2+4x−1x^4-3x^3+2x^2+4x-1 by x2−2x+3x^2-2x+3.
  3. Use the remainder theorem to find the remainder when x5−2x2+7x^5-2x^2+7 is divided by x+1x+1.
  4. Suppose f(1)=5f(1)=5 and f(−1)=3f(-1)=3. Reconstruct the remainder of ff modulo x2−1x^2-1.
  5. Prove that substitution preserves this divisibility relation: if F(x)=f(x3)F(x)=f(x^3), G(x)=g(x3)G(x)=g(x^3), and F(x)+xG(x)F(x)+xG(x) is divisible by x2+x+1x^2+x+1, then both f(x)f(x) and g(x)g(x) are divisible by x−1x-1.
Solution · Model solution 1

The degree rule gives the upper bound 44, but the 3x43x^4 and −3x4-3x^4 terms cancel. Thus p+q=−x2+5x+3p+q=-x^2+5x+3, whose degree is 22.

Solution · Model solution 2

The quotient is x2−x−3x^2-x-3 and the remainder is x+8x+8.

Solution · Model solution 3

Since the divisor is x−(−1)x-(-1), the remainder is (−1)5−2(−1)2+7=−1−2+7=4(-1)^5-2(-1)^2+7=-1-2+7=4.

Solution · Model solution 4

Write the remainder as ax+bax+b. Then a+b=5a+b=5 and −a+b=3-a+b=3, so a=1a=1, b=4b=4, and the remainder is x+4x+4.

Solution · Model solution 5

Let ω=e2πi/3\omega=e^{2\pi i/3}. Since x2+x+1=(x−ω)(x−ω2)x^2+x+1=(x-\omega)(x-\omega^2), the hypothesis gives f(1)+ωg(1)=0f(1)+\omega g(1)=0 and f(1)+ω2g(1)=0f(1)+\omega^2g(1)=0, because ω3=(ω2)3=1\omega^3=(\omega^2)^3=1. Subtracting gives (ω−ω2)g(1)=0(\omega-\omega^2)g(1)=0, and ω≠ω2\omega\ne\omega^2, hence g(1)=0g(1)=0, and then f(1)=0f(1)=0. By the factor theorem, x−1x-1 divides both f(x)f(x) and g(x)g(x).

Practice

Work out your answer, then check it. You can revise and try again.

Loading…

Key terms in this unit