Evanalysis
8.1Embedded interactionEstimated reading time: 17 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.

Why polynomials need their own arithmetic

A polynomial is familiar as an expression such as x43x3+2x2+4x1x^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=0aixip(x)=\sum_{i=0}^{\infty} a_i x^i

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

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

If at least one coefficient is nonzero, the degree of p(x) is the largest index i for which ai0a_i\ne0. If every coefficient is zero, we call 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 polynomial is monic if its leading coefficient is 1. For instance, x34x+7x^3-4x+7 is monic, while 2x34x+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 an0a_n\ne0. The notation by itself does not guarantee that the displayed final coefficient is nonzero.

Addition, multiplication, and degree

Let

p(x)=i=0aixi,q(x)=i=0bixi.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=0dixi,di=k=0iakbik.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{degp,degq}\deg(p+q)\le \max\{\deg p,\deg q\};
  2. deg(pq)=degp+degq\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 p and q are nonzero with leading coefficients ara_r and bsb_s, then the coefficient of xr+sx^{r+s} in pq is arbsa_rb_s, which is nonzero.

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),degr<degg.f(x)=g(x)q(x)+r(x),\qquad \deg r\lt\deg g.

The proof follows a minimal-degree idea. Consider all possible expressions f(x)g(x)s(x)f(x)-g(x)s(x) as s(x) ranges over R[x]. If zero appears, the remainder is zero. Otherwise choose an element of least degree. If its degree were still at least degg\deg g, subtract a suitable multiple of g(x) that cancels its leading term. That creates an even smaller-degree element, a contradiction.

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 g, then

g(q1q2)=r2r1.g(q_1-q_2)=r_2-r_1.

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

Read and try

Step through polynomial long division

The stepper turns the chapter's long-division example into a sequence of leading-term cancellations.

Step 1/5

Row operation

Set up the division

Dividend: x43x3+2x2+4x1x^4-3x^3+2x^2+4x-1; divisor: x22x+3x^2-2x+3.

Quotient

No quotient term yet

Current remainder

x43x3+2x2+4x1x^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)=x43x3+2x2+4x1f(x)=x^4-3x^3+2x^2+4x-1

is divided by

g(x)=x22x+3.g(x)=x^2-2x+3.

Long division gives

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

Therefore

x43x3+2x2+4x1=(x22x+3)(x2x3)+(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 aRa\in R. When f(x) is divided by xax-a, the remainder is f(a).

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

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

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

Theorem

Factor theorem

For f(x)R[x]f(x)\in R[x] and aRa\in R,

(xa)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 x^2-1

Suppose the remainders when f(x) is divided by x1x-1 and x+1x+1 are 5 and 3, respectively. Find the remainder when f(x) is divided by x21x^2-1.

By the remainder theorem,

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

The remainder upon division by x21x^2-1 has degree less than 2, 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.

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 n over RR or CC has at most n roots.

The proof is by induction on degree. If f has a root a, then f(x)=(xa)q(x)f(x)=(x-a)q(x) and degq=degf1\deg q=\deg f-1. Every root of f other than a is a root of q. The induction hypothesis then gives the bound.

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

Proof sketch or proof idea

The division algorithm is often introduced as a procedure, but in this course it is also a theorem with existence and uniqueness content. The existence part does not depend on the particular layout of long division. It depends on a simple descent principle for degrees. Among all expressions of the form fgsf-gs, choose one with minimal degree. If its degree is still at least the degree of g, then its leading term can be cancelled by subtracting a suitable multiple of g. That cancellation produces another element of the same set with smaller degree, contradicting the choice of a minimal-degree remainder.

The uniqueness part is equally structural. If two quotient-remainder pairs worked, subtracting the two identities would say that a multiple of g equals the difference of two small remainders. A nonzero multiple of g cannot have degree smaller than g; the difference of two allowed remainders must have degree smaller than g. The only way out is that both sides are zero. This is why the phrase "the quotient and the remainder" is justified.

This proof pattern is worth remembering because it reappears in the next note. The Euclidean algorithm for polynomial gcds works only because every division step produces a strictly smaller-degree remainder. Degree plays the role that absolute value played for positive integers: it is the quantity that must descend and therefore cannot descend forever.

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 Example 8.0, 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 x3x2+4x1-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 1, which is smaller than the divisor degree 2. 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 k so that

x3x-3

divides

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

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

f(3)=27+9k12+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 x3x-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 x 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 degr<degg\deg r\lt\deg g. Without that condition, the quotient and remainder are not unique; one can move a multiple of g back and forth between q and r.

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 q and r; the remainder theorem turns division by xax-a into evaluation at a; 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 xax-a, evaluation at a is the direct route. If the divisor is a product such as (x1)(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) and g(1).

Quick checks

Quick check

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

Think about formulas involving addition and multiplication.

Solution

Answer

Quick check

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

Use the remainder theorem.

Solution

Answer

Quick check

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

Use the root bound.

Solution

Answer

Exercises

  1. Let p(x)=3x4x2+2p(x)=3x^4-x^2+2 and q(x)=3x4+5x+1q(x)=-3x^4+5x+1. Find the largest possible degree of p+qp+q, and then compute its actual degree.
  2. Divide x43x3+2x2+4x1x^4-3x^3+2x^2+4x-1 by x22x+3x^2-2x+3.
  3. Use the remainder theorem to find the remainder when x52x2+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 f modulo x21x^2-1.
  5. Prove Exercise 8.1 from the slides: 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) and g(x) are divisible by x1x-1.

Solution

Guided solutions

Section mastery checkpoint

Answer each question correctly to complete this section checkpoint. Correct progress: 0%.

Skills: polynomials, division-algorithm, remainder

In Example 8.0, x43x3+2x2+4x1x^4-3x^3+2x^2+4x-1 is divided by x22x+3x^2-2x+3. Fill in the remainder: r(x)=____.

Attempts used: 0

Attempts remaining: Unlimited attempts

Preview does not consume an attempt.

Submit records a graded attempt.

Syntax guidance: Enter the remainder polynomial.

  • Enter a polynomial such as x+8x+8.

Skills: polynomials, factor-theorem, parameters

Find k so that x3x-3 divides x3+kx24x+6x^3+kx^2-4x+6. Fill in k=____.

Attempts used: 0

Attempts remaining: Unlimited attempts

Preview does not consume an attempt.

Submit records a graded attempt.

Syntax guidance: Enter the value of k.

  • Enter a rational number.

Skills: polynomials, roots, degree

A polynomial in C[x] has degree at most 5 and has 6 distinct zeros. What must be true?

Attempts used: 0

Attempts remaining: Unlimited attempts

Preview does not consume an attempt.

Submit records a graded attempt.

  • Compare the number of roots with the degree bound.

Key terms in this unit

Premium learning add-ons

Core notes stay free. Advanced exercises, video explanations, and premium exports are available through paid plans.