Unit 2, lesson 25

The Remainder and Factor Theorems

Why dividing a polynomial by x minus c leaves the value of the polynomial at c as the remainder, how that turns factoring into checking a single value, and how to split off linear factors.

  • Theory part 49
  • Practice part 50
  • Polynomial Functions

Dividing a polynomial by x−3x - 3 and plugging 33 into it look like two different jobs, yet the remainder of the division is exactly the value at 33. That one fact turns the question of whether x−3x - 3 is a factor into the question of whether one value is zero, and it is the main way polynomials of degree three and higher get factored by hand.

Key terms

Evaluating a polynomial

Definition A polynomial in xx with real coefficients is an expression

P(x)=anxn+an−1xn−1+⋯+a1x+a0,\begin{aligned} P(x) &= a_n x^n + a_{n-1} x^{n-1} \\[0.4em] &\quad + \cdots + a_1 x + a_0, \end{aligned}

where nn is a nonnegative integer and a0,…,ana_0, \ldots, a_n are real numbers. If an≠0a_n \ne 0, the degree is nn and ana_n is the leading coefficient. For a number cc, the value P(c)P(c) is the number you get by replacing every xx with cc. The same value comes out of the nested form, also called Horner’s method,

P(c)=(⋯((anc+an−1)c+an−2)c+⋯+a1)c+a0.\begin{aligned} &P(c) \\[0.4em] &= \Big( \cdots \big( (a_n c + a_{n-1}) c + a_{n-2} \big) c \\[0.4em] &\quad + \cdots + a_1 \Big) c + a_0. \end{aligned}

In plain words Start with the leading coefficient, then repeat two steps, multiply by cc and add the next coefficient. No powers are needed, only nn multiplications and nn additions.

Example Take P(x)=2x3−3x2+4x−5P(x) = 2x^3 - 3x^2 + 4x - 5 and c=2c = 2. Directly, P(2)=16−12+8−5=7P(2) = 16 - 12 + 8 - 5 = 7. In nested form,

P(2)=((2⋅2−3)⋅2+4)⋅2−5=(1⋅2+4)⋅2−5=7.\begin{aligned} P(2) &= \big( (2 \cdot 2 - 3) \cdot 2 + 4 \big) \cdot 2 - 5 \\[0.4em] &= (1 \cdot 2 + 4) \cdot 2 - 5 \\[0.4em] &= 7. \end{aligned}

Dividing by x minus c

Definition Let P(x)P(x) be a polynomial and cc a number. There is exactly one polynomial Q(x)Q(x) and one constant rr such that

P(x)=(x−c) Q(x)+rfor every x.\begin{gathered} P(x) = (x - c)\,Q(x) + r \\[0.4em] \text{for every } x. \end{gathered}

This is the division algorithm for the divisor x−cx - c. The remainder rr is a constant because it is 00 or has lower degree than the divisor, which has degree 11. If PP has degree n≥1n \ge 1, the quotient QQ has degree n−1n - 1. Synthetic division finds QQ and rr.

In plain words Dividing by x−cx - c always leaves a plain number behind, never an expression with xx in it.

Example Divide P(x)=x3−4x2+2x+5P(x) = x^3 - 4x^2 + 2x + 5 by x−3x - 3 with synthetic division.

31−4253−3−31−1−12\begin{array}{r|rrrr} 3 & 1 & -4 & 2 & 5 \\ & & 3 & -3 & -3 \\ \hline & 1 & -1 & -1 & 2 \end{array}

The top row holds the coefficients of PP, and the leading coefficient comes straight down. Each entry of the middle row is 33 times the bottom entry one column to its left, and each later bottom entry is the sum of the two entries above it. The bottom row gives Q(x)=x2−x−1Q(x) = x^2 - x - 1 and r=2r = 2, so

x3−4x2+2x+5=(x−3)(x2−x−1)+2.\begin{aligned} &x^3 - 4x^2 + 2x + 5 \\[0.4em] &\quad = (x - 3)(x^2 - x - 1) + 2. \end{aligned}

The Remainder Theorem

Definition If a polynomial P(x)P(x) is divided by x−cx - c, the remainder is P(c)P(c). In other words,

P(x)=(x−c) Q(x)+P(c).P(x) = (x - c)\,Q(x) + P(c).

The proof is one line. Put x=cx = c into P(x)=(x−c)Q(x)+rP(x) = (x - c)Q(x) + r. The first term becomes 0⋅Q(c)=00 \cdot Q(c) = 0, which leaves P(c)=rP(c) = r. The theorem holds word for word for complex coefficients and a complex number cc.

In plain words The leftover from dividing by x−cx - c is the value of the polynomial at cc. Watch the sign. Dividing by x+2x + 2 means c=−2c = -2, because x+2=x−(−2)x + 2 = x - (-2).

Example Find the remainder when P(x)=x4−3x2+2x−1P(x) = x^4 - 3x^2 + 2x - 1 is divided by x+2x + 2. Here c=−2c = -2, so the remainder is

P(−2)=16−12−4−1=−1.P(-2) = 16 - 12 - 4 - 1 = -1.

Long division agrees, since

x4−3x2+2x−1=(x+2)(x3−2x2+x)−1.\begin{aligned} &x^4 - 3x^2 + 2x - 1 \\[0.4em] &\quad = (x + 2)(x^3 - 2x^2 + x) - 1. \end{aligned}

Synthetic substitution

Definition The bottom row of synthetic division of P(x)P(x) by x−cx - c lists exactly the intermediate numbers of the nested form at cc. Its last entry is the remainder, and by the Remainder Theorem it equals P(c)P(c). Using synthetic division to evaluate a polynomial this way is called synthetic substitution. Every power of xx below the degree needs its own coefficient in the top row, written as 00 when that term is missing.

In plain words The same table that divides also evaluates. For large inputs or long polynomials it is faster and less error prone than computing each power.

Example Evaluate P(x)=x5−4x4+3x2−8P(x) = x^5 - 4x^4 + 3x^2 - 8 at x=4x = 4. The terms in x3x^3 and xx are missing, so their coefficients are 00.

41−4030−8400124810031240\begin{array}{r|rrrrrr} 4 & 1 & -4 & 0 & 3 & 0 & -8 \\ & & 4 & 0 & 0 & 12 & 48 \\ \hline & 1 & 0 & 0 & 3 & 12 & 40 \end{array}

So P(4)=40P(4) = 40. The direct check is 1024−1024+48−8=401024 - 1024 + 48 - 8 = 40.

The Factor Theorem

Definition Let P(x)P(x) be a polynomial and cc a number. We say x−cx - c is a factor of P(x)P(x) if P(x)=(x−c) Q(x)P(x) = (x - c)\,Q(x) for some polynomial Q(x)Q(x). The Factor Theorem states that

x−c is a factor of P(x)exactly when P(c)=0.\begin{gathered} x - c \text{ is a factor of } P(x) \\[0.4em] \text{exactly when } P(c) = 0. \end{gathered}

It follows from the Remainder Theorem, because P(x)=(x−c)Q(x)+P(c)P(x) = (x - c)Q(x) + P(c), and the remainder is zero exactly when P(c)=0P(c) = 0.

In plain words A zero of the polynomial and a linear factor are the same information. Find one and you have the other.

Example For P(x)=x3−7x+6P(x) = x^3 - 7x + 6 the values at 11, 22 and −3-3 are

P(1)=1−7+6=0,P(2)=8−14+6=0,P(−3)=−27+21+6=0.\begin{aligned} P(1) &= 1 - 7 + 6 = 0, \\[0.4em] P(2) &= 8 - 14 + 6 = 0, \\[0.4em] P(-3) &= -27 + 21 + 6 = 0. \end{aligned}

So x−1x - 1, x−2x - 2 and x+3x + 3 are all factors. Their product has degree 33 and leading coefficient 11, like PP, and multiplying out shows that it is exactly PP,

x3−7x+6=(x−1)(x−2)(x+3).\begin{aligned} &x^3 - 7x + 6 \\[0.4em] &\quad = (x - 1)(x - 2)(x + 3). \end{aligned}

On the other hand P(3)=12≠0P(3) = 12 \ne 0, so x−3x - 3 is not a factor.

Extracting linear factors

Definition Suppose P(c)=0P(c) = 0. Synthetic division by x−cx - c gives a remainder of 00 and a quotient Q(x)Q(x) with

P(x)=(x−c) Q(x),P(x) = (x - c)\,Q(x),

where QQ has degree one less than PP. This quotient is often called the depressed polynomial. The zeros of PP are cc together with the zeros of QQ, so the search continues on QQ. If Q(c)=0Q(c) = 0 as well, then (x−c)2(x - c)^2 divides PP, and the factor is repeated. More generally, for a≠0a \ne 0 the linear factor ax−bax - b divides P(x)P(x) exactly when P(b/a)=0P(b/a) = 0.

In plain words Each zero you find peels off one linear factor and lowers the degree by one. Once you are down to a quadratic, factor it or use the quadratic formula.

Example The number 33 is a zero of P(x)=2x3−3x2−11x+6P(x) = 2x^3 - 3x^2 - 11x + 6, since 54−27−33+6=054 - 27 - 33 + 6 = 0. 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 quotient is 2x2+3x−2=(2x−1)(x+2)2x^2 + 3x - 2 = (2x - 1)(x + 2), so

2x3−3x2−11x+6=(x−3)(2x−1)(x+2),\begin{aligned} &2x^3 - 3x^2 - 11x + 6 \\[0.4em] &\quad = (x - 3)(2x - 1)(x + 2), \end{aligned}

with zeros 33, 12\frac{1}{2} and −2-2.

Extracting a factor also settles limits that look like 00\frac{0}{0}. Dividing x3−7x+6x^3 - 7x + 6 by x−1x - 1 gives the quotient x2+x−6x^2 + x - 6, and cancelling the common factor for x≠1x \ne 1 gives

lim⁡x→1x3−7x+6x−1=lim⁡x→1(x2+x−6)=−4.\begin{aligned} &\lim_{x \to 1} \frac{x^3 - 7x + 6}{x - 1} \\[0.8em] &\quad = \lim_{x \to 1} (x^2 + x - 6) = -4. \end{aligned}

The calculus lesson on limit theorems explains why the cancellation is allowed.

Check yourself

  1. Use the Remainder Theorem to find the remainder when x4−5x2+3x+2x^4 - 5x^2 + 3x + 2 is divided by x−2x - 2.
Show the answer

The remainder is the value at 22, which is 16−20+6+2=416 - 20 + 6 + 2 = 4.

  1. Find the number kk for which x+2x + 2 is a factor of x3+kx2+5x+6x^3 + kx^2 + 5x + 6.
Show the answer

By the Factor Theorem the value at −2-2 must be zero. That value is −8+4k−10+6=4k−12-8 + 4k - 10 + 6 = 4k - 12, so k=3k = 3. Indeed

x3+3x2+5x+6=(x+2)(x2+x+3).\begin{aligned} &x^3 + 3x^2 + 5x + 6 \\[0.4em] &\quad = (x + 2)(x^2 + x + 3). \end{aligned}
  1. Show that x+1x + 1 is a factor of P(x)=x3−4x2+x+6P(x) = x^3 - 4x^2 + x + 6, then factor P(x)P(x) completely.
Show the answer

The value P(−1)=−1−4−1+6=0P(-1) = -1 - 4 - 1 + 6 = 0, so x+1x + 1 is a factor. Synthetic division by x+1x + 1 gives the quotient x2−5x+6=(x−2)(x−3)x^2 - 5x + 6 = (x - 2)(x - 3), so

x3−4x2+x+6=(x+1)(x−2)(x−3).\begin{aligned} &x^3 - 4x^2 + x + 6 \\[0.4em] &\quad = (x + 1)(x - 2)(x - 3). \end{aligned}

How this lesson connects

Where this leads in Calculus