Math Core

Lesson 3.3 · Polynomials

The remainder and factor theorems

Division and evaluation look like different jobs, but for polynomials they're secretly the same. That connection gives you a fast way to test whether x−cx - c is a factor of a polynomial, which is the key step in factoring cubics and quartics.

The remainder theorem

Divide P(x)=x3−4x2+x+7P(x) = x^3 - 4x^2 + x + 7 by x−3x - 3 using synthetic division:

31−4173−3−61−1−21\begin{array}{r|rrrr} 3 & 1 & -4 & 1 & 7 \\ & & 3 & -3 & -6 \\ \hline & 1 & -1 & -2 & 1 \end{array}

The remainder is 11. Now evaluate P(3)P(3) directly:

P(3)=27−36+3+7=1.P(3) = 27 - 36 + 3 + 7 = 1.

The same number. That's not a coincidence.

Remainder theorem

When a polynomial P(x)P(x) is divided by x−cx - c, the remainder is P(c)P(c).

Why it works. By the division algorithm, P(x)=(x−c) Q(x)+RP(x) = (x - c)\,Q(x) + R, where RR is a constant because the divisor is linear. Substitute x=cx = c:

P(c)=(c−c) Q(c)+R=0⋅Q(c)+R=R.P(c) = (c - c)\,Q(c) + R = 0 \cdot Q(c) + R = R.

The factor x−cx - c becomes 00 and wipes out the quotient, leaving only the remainder.

The theorem works in both directions, and both are useful:

  • To find a remainder, you can just plug in cc. That's often faster than dividing.
  • To evaluate a polynomial at a messy input, synthetic division is often faster than plugging in, especially for high degrees. Used this way it's called synthetic substitution.

Worked example: Two ways to get a remainder

Find the remainder when P(x)=2x4+3x3−x+6P(x) = 2x^4 + 3x^3 - x + 6 is divided by x+2x + 2.

The divisor is x−(−2)x - (-2), so the remainder is P(−2)P(-2):

P(−2)=2(16)+3(−8)−(−2)+6=32−24+2+6=16.P(-2) = 2(16) + 3(-8) - (-2) + 6 = 32 - 24 + 2 + 6 = 16.

Synthetic division agrees:

−2230−16−42−4102−12−516\begin{array}{r|rrrrr} -2 & 2 & 3 & 0 & -1 & 6 \\ & & -4 & 2 & -4 & 10 \\ \hline & 2 & -1 & 2 & -5 & 16 \end{array}

The remainder is 1616.

Common mistake

The divisor x+2x + 2 means you evaluate at x=−2x = -2, not x=2x = 2. Rewrite the divisor as x−cx - c first so you read off cc with the right sign.

The factor theorem

A remainder of 00 means the division comes out even, so the divisor is a factor. Combining that with the remainder theorem gives one of the most useful facts in the unit.

Factor theorem

x−cx - c is a factor of P(x)P(x) if and only if P(c)=0P(c) = 0.

In other words, the zeros of a polynomial and its linear factors match up: cc is a zero exactly when x−cx - c is a factor. If you know that P(5)=0P(5) = 0, you know P(x)=(x−5) Q(x)P(x) = (x - 5)\,Q(x) for some polynomial QQ of one lower degree. And if you know a factor, you know a zero.

Worked example: Testing and using a factor

Is x+2x + 2 a factor of P(x)=x3+3x2−4P(x) = x^3 + 3x^2 - 4? If so, factor P(x)P(x) completely.

Test c=−2c = -2:

P(−2)=−8+12−4=0.P(-2) = -8 + 12 - 4 = 0.

So x+2x + 2 is a factor. Divide to find the other factor:

−2130−4−2−2411−20\begin{array}{r|rrrr} -2 & 1 & 3 & 0 & -4 \\ & & -2 & -2 & 4 \\ \hline & 1 & 1 & -2 & 0 \end{array}

The quotient is x2+x−2=(x+2)(x−1)x^2 + x - 2 = (x + 2)(x - 1). So

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

The zeros are −2-2 and 11. Notice the factor x+2x + 2 appears twice.

Finding a missing coefficient

If you're told that some x−cx - c is a factor, then P(c)=0P(c) = 0 gives you an equation. That lets you solve for an unknown coefficient.

Worked example: Solving for k

Find kk so that x−2x - 2 is a factor of P(x)=x3+kx2−5x+6P(x) = x^3 + kx^2 - 5x + 6.

By the factor theorem, you need P(2)=0P(2) = 0:

23+k(22)−5(2)+6=08+4k−10+6=04k+4=0k=−1.\begin{aligned} 2^3 + k(2^2) - 5(2) + 6 &= 0 \\ 8 + 4k - 10 + 6 &= 0 \\ 4k + 4 &= 0 \\ k &= -1. \end{aligned}

Check: with k=−1k = -1, P(2)=8−4−10+6=0P(2) = 8 - 4 - 10 + 6 = 0. ✓

The same idea works with remainders. "Dividing by x−3x - 3 leaves remainder 77" just means P(3)=7P(3) = 7. Two such facts give two equations, which you can solve as a system.

Factoring completely from one known factor

Once you have one linear factor of a cubic, dividing it out leaves a quadratic, and you already know how to factor or solve quadratics. This is the standard way to break down a cubic.

Worked example: From one factor to all the zeros

Given that x−3x - 3 is a factor of P(x)=2x3−3x2−11x+6P(x) = 2x^3 - 3x^2 - 11x + 6, factor P(x)P(x) completely and list its zeros.

Divide by x−3x - 3:

32−3−11669−623−20\begin{array}{r|rrrr} 3 & 2 & -3 & -11 & 6 \\ & & 6 & 9 & -6 \\ \hline & 2 & 3 & -2 & 0 \end{array}

The remainder is 00, as promised. Factor the quotient 2x2+3x−22x^2 + 3x - 2 by looking for two numbers with product 2⋅(−2)=−42 \cdot (-2) = -4 and sum 33: those are 44 and −1-1.

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

So

2x3−3x2−11x+6=(x−3)(2x−1)(x+2),2x^3 - 3x^2 - 11x + 6 = (x - 3)(2x - 1)(x + 2),

and the zeros are 33, 12\tfrac{1}{2} and −2-2. (The factor 2x−12x - 1 gives the zero x=12x = \tfrac{1}{2}.)

Tip

The bottom row of synthetic division is a built-in check. If you were told x−cx - c is a factor and the last number isn't 00, you've made an arithmetic slip, so find it before moving on.

Practice

Practice 1

Find the remainder when x3−4x2+2x+5x^3 - 4x^2 + 2x + 5 is divided by x−2x - 2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Find the remainder when 2x4−x3+3x−102x^4 - x^3 + 3x - 10 is divided by x+1x + 1.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Which of these is a factor of x3−7x+6x^3 - 7x + 6?

Practice 4

Find kk so that x+2x + 2 is a factor of x3−2x2+kx+12x^3 - 2x^2 + kx + 12.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Given that x−4x - 4 is a factor of x3−3x2−6x+8x^3 - 3x^2 - 6x + 8, find all the zeros of the polynomial.

Separate answers with commas, e.g. 2, -5

Practice 6

Use synthetic substitution to find P(5)P(5) for P(x)=x4−6x3+8x2−5x+3P(x) = x^4 - 6x^3 + 8x^2 - 5x + 3.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Given that 22 is a zero of P(x)=2x3+x2−13x+6P(x) = 2x^3 + x^2 - 13x + 6, find all the zeros of PP.

Separate answers with commas, e.g. 2, -5

Practice 8

The polynomial P(x)=x3+ax2+bx−6P(x) = x^3 + ax^2 + bx - 6 has x−1x - 1 as a factor, and it leaves a remainder of −8-8 when divided by x+1x + 1. Find (a,b)(a, b).

Enter a point like (2, -3)