Skip to content
Family Table Math

The Remainder Theorem

Dividing polynomials takes a few steps. But if all you need is the remainder, there’s a shortcut: substitute one number into the polynomial. This is the remainder theorem. It saves time, and it’s the key step towards the factor theorem and factoring cubics and quartics.

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

Here’s why. Any division by x−ax - a can be written as

P(x)=(x−a) Q(x)+RP(x) = (x - a)\,Q(x) + R

This is true for every xx, so put in x=ax = a. The first term becomes (a−a)Q(a)=0⋅Q(a)=0(a - a)Q(a) = 0 \cdot Q(a) = 0, which leaves

P(a)=RP(a) = R

For example, dividing P(x)=x3+4x2−3x+5P(x) = x^3 + 4x^2 - 3x + 5 by x−1x - 1 gives remainder 77 (that’s Example 1 on the division page). Check: P(1)=1+4−3+5=7P(1) = 1 + 4 - 3 + 5 = 7. ✓

Substitute the value of xx that makes the divisor zero:

DivisorSet it to zeroRemainder
x−3x - 3x=3x = 3P(3)P(3)
x+2x + 2x=−2x = -2P(−2)P(-2)
2x−12x - 1x=12x = \tfrac{1}{2}P(12)P\left(\tfrac{1}{2}\right)
ax−bax - bx=bax = \tfrac{b}{a}P(ba)P\left(\tfrac{b}{a}\right)

The last row works for the same reason: P(x)=(ax−b)Q(x)+RP(x) = (ax - b)Q(x) + R, and ax−b=0ax - b = 0 when x=bax = \tfrac{b}{a}.

P(a)P(a) is the yy-coordinate of the point on the graph of y=P(x)y = P(x) where x=ax = a. So the remainder when you divide by x−ax - a is the height of the graph at x=ax = a.

Graph of P(x) = x cubed minus 3x squared minus x plus 4 with the points (2, -2) and (-1, 1) marked −2 2 −3 3 (2, −2) (−1, 1) y = P(x)
For P(x)=x3−3x2−x+4P(x) = x^3 - 3x^2 - x + 4, the points (−1,1)(-1, 1) and (2,−2)(2, -2) give the remainders on dividing by x+1x + 1 and by x−2x - 2.

If a polynomial has an unknown coefficient, like kk, and you know a remainder, the remainder theorem gives you an equation in kk. Two unknowns need two conditions, which give a system of two equations.

Find the remainder when P(x)=x3−3x2−x+4P(x) = x^3 - 3x^2 - x + 4 is divided by (a) x−2x - 2 and (b) x+1x + 1.

Solution. (a) Substitute x=2x = 2:

P(2)=23−3(2)2−2+4=8−12−2+4=−2P(2) = 2^3 - 3(2)^2 - 2 + 4 = 8 - 12 - 2 + 4 = -2

The remainder is −2-2.

(b) The divisor x+1x + 1 is zero when x=−1x = -1:

P(−1)=(−1)3−3(−1)2−(−1)+4=−1−3+1+4=1P(-1) = (-1)^3 - 3(-1)^2 - (-1) + 4 = -1 - 3 + 1 + 4 = 1

The remainder is 11. These are the two points marked on the graph above.

Check (a) with synthetic division:

21−3−142−2−61−1−3−2\def\arraystretch{1.3} \begin{array}{r|rrrr} 2 & 1 & -3 & -1 & 4 \\ & & 2 & -2 & -6 \\ \hline & 1 & -1 & -3 & \boxed{-2} \end{array}

Find the remainder when P(x)=4x3+2x2−5x+1P(x) = 4x^3 + 2x^2 - 5x + 1 is divided by 2x−12x - 1.

Solution. 2x−1=02x - 1 = 0 when x=12x = \tfrac{1}{2}:

P(12)=4(18)+2(14)−5(12)+1=12+12−52+1=−12\begin{aligned} P\left(\tfrac{1}{2}\right) &= 4\left(\tfrac{1}{8}\right) + 2\left(\tfrac{1}{4}\right) - 5\left(\tfrac{1}{2}\right) + 1 \\ &= \tfrac{1}{2} + \tfrac{1}{2} - \tfrac{5}{2} + 1 \\ &= -\tfrac{1}{2} \end{aligned}

The remainder is −12-\tfrac{1}{2}.

When x3+kx2−4x+3x^3 + kx^2 - 4x + 3 is divided by x−2x - 2, the remainder is 77. Find kk.

Solution. By the remainder theorem, P(2)=7P(2) = 7:

23+k(2)2−4(2)+3=78+4k−8+3=74k=4k=1\begin{aligned} 2^3 + k(2)^2 - 4(2) + 3 &= 7 \\ 8 + 4k - 8 + 3 &= 7 \\ 4k &= 4 \\ k &= 1 \end{aligned}

Check: with k=1k = 1, P(2)=8+4−8+3=7P(2) = 8 + 4 - 8 + 3 = 7. ✓

Example 4: The same remainder for two divisors

Section titled “Example 4: The same remainder for two divisors”

Find kk so that f(x)=x3+2x2+kx+5f(x) = x^3 + 2x^2 + kx + 5 leaves the same remainder when divided by x−1x - 1 and by x+3x + 3.

Solution. The two remainders are f(1)f(1) and f(−3)f(-3):

f(1)=1+2+k+5=8+kf(1) = 1 + 2 + k + 5 = 8 + k f(−3)=−27+18−3k+5=−4−3kf(-3) = -27 + 18 - 3k + 5 = -4 - 3k

Set them equal:

8+k=−4−3k⇒4k=−12⇒k=−38 + k = -4 - 3k \quad\Rightarrow\quad 4k = -12 \quad\Rightarrow\quad k = -3

Check: with k=−3k = -3, f(1)=8−3=5f(1) = 8 - 3 = 5 and f(−3)=−4+9=5f(-3) = -4 + 9 = 5. Both remainders are 55. ✓

Substituting the wrong sign. For the divisor x+1x + 1, the remainder is P(−1)P(-1), not P(1)P(1). Always ask: what value of xx makes the divisor zero?

Using the coefficient instead of the zero for ax − b. For 2x−12x - 1, substitute x=12x = \tfrac{1}{2}, not x=1x = 1 or x=2x = 2.

Making arithmetic errors with negatives and powers. (−1)2=1(-1)^2 = 1, so −3(−1)2=−3-3(-1)^2 = -3, but (−1)3=−1(-1)^3 = -1. Put every substituted value in brackets and work slowly.

Thinking the remainder theorem gives the quotient. P(a)P(a) gives only the remainder. If you also need the quotient, you still have to divide.

Solving for k and stopping. After finding kk, substitute it back and check the remainder (or both remainders) comes out right. It takes ten seconds and catches most slips.

1. (Warm-up) Find the remainder when x3+2x−7x^3 + 2x - 7 is divided by x−1x - 1.

Solution

P(1)=1+2−7=−4P(1) = 1 + 2 - 7 = -4. The remainder is −4-4.

2. (Warm-up) Which value would you substitute to find the remainder on dividing by each divisor?

  • (a) x−4x - 4
  • (b) x+5x + 5
  • (c) 2x−32x - 3
  • (d) 3x+13x + 1
Solution

(a) x=4x = 4

(b) x=−5x = -5

(c) x=32x = \tfrac{3}{2}

(d) x=−13x = -\tfrac{1}{3}

3. (Warm-up) Find the remainder when 2x3−x2+32x^3 - x^2 + 3 is divided by x+2x + 2. Check with synthetic division.

SolutionP(−2)=2(−8)−4+3=−16−4+3=−17P(-2) = 2(-8) - 4 + 3 = -16 - 4 + 3 = -17

Synthetic division with a=−2a = -2 (and 00 for the missing xx term):

−22−103−410−202−510−17\def\arraystretch{1.3} \begin{array}{r|rrrr} -2 & 2 & -1 & 0 & 3 \\ & & -4 & 10 & -20 \\ \hline & 2 & -5 & 10 & \boxed{-17} \end{array}

Both give a remainder of −17-17.

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

SolutionP(3)=81−2(27)+15−6=81−54+15−6=36P(3) = 81 - 2(27) + 15 - 6 = 81 - 54 + 15 - 6 = 36

The remainder is 3636.

5. (Core) Find the remainder when 6x3−x2+4x+26x^3 - x^2 + 4x + 2 is divided by 2x+12x + 1.

Solution

2x+1=02x + 1 = 0 when x=−12x = -\tfrac{1}{2}:

P(−12)=6(−18)−14+4(−12)+2=−34−14−2+2=−1\begin{aligned} P\left(-\tfrac{1}{2}\right) &= 6\left(-\tfrac{1}{8}\right) - \tfrac{1}{4} + 4\left(-\tfrac{1}{2}\right) + 2 \\ &= -\tfrac{3}{4} - \tfrac{1}{4} - 2 + 2 \\ &= -1 \end{aligned}

The remainder is −1-1.

6. (Core) When 2x3+kx2−x+62x^3 + kx^2 - x + 6 is divided by x+1x + 1, the remainder is 99. Find kk.

SolutionP(−1)=−2+k+1+6=5+kP(-1) = -2 + k + 1 + 6 = 5 + k

Set 5+k=95 + k = 9, so k=4k = 4.

Check: P(−1)=−2+4+1+6=9P(-1) = -2 + 4 + 1 + 6 = 9. ✓

7. (Core) Find kk so that x3−kx2+2x+1x^3 - kx^2 + 2x + 1 leaves the same remainder when divided by x−2x - 2 and by x+1x + 1. What is that remainder?

SolutionP(2)=8−4k+4+1=13−4kP(2) = 8 - 4k + 4 + 1 = 13 - 4kP(−1)=−1−k−2+1=−2−kP(-1) = -1 - k - 2 + 1 = -2 - k

Set them equal: 13−4k=−2−k13 - 4k = -2 - k, so 15=3k15 = 3k and k=5k = 5.

The remainder is 13−4(5)=−713 - 4(5) = -7. Check: −2−5=−7-2 - 5 = -7. ✓

8. (Challenge) When P(x)=x3+ax2+bx−6P(x) = x^3 + ax^2 + bx - 6 is divided by x−1x - 1, the remainder is −4-4. When it is divided by x−2x - 2, the remainder is 88. Find aa and bb.

Solution

P(1)=−4P(1) = -4:

1+a+b−6=−4⇒a+b=11 + a + b - 6 = -4 \quad\Rightarrow\quad a + b = 1

P(2)=8P(2) = 8:

8+4a+2b−6=8⇒4a+2b=6⇒2a+b=38 + 4a + 2b - 6 = 8 \quad\Rightarrow\quad 4a + 2b = 6 \quad\Rightarrow\quad 2a + b = 3

Subtract the first equation from the second: a=2a = 2. Then b=1−2=−1b = 1 - 2 = -1.

Check: P(x)=x3+2x2−x−6P(x) = x^3 + 2x^2 - x - 6, so P(1)=1+2−1−6=−4P(1) = 1 + 2 - 1 - 6 = -4 and P(2)=8+8−2−6=8P(2) = 8 + 8 - 2 - 6 = 8. ✓

9. (Challenge) When P(x)P(x) is divided by x−1x - 1 the remainder is 33, and when it is divided by x+2x + 2 the remainder is −3-3. Find the remainder when P(x)P(x) is divided by (x−1)(x+2)(x - 1)(x + 2).

Solution

The divisor (x−1)(x+2)(x - 1)(x + 2) is quadratic, so the remainder has degree at most 11. Call it mx+cmx + c:

P(x)=(x−1)(x+2) Q(x)+mx+cP(x) = (x - 1)(x + 2)\,Q(x) + mx + c

Substitute x=1x = 1: the first term is 00, so P(1)=m+c=3P(1) = m + c = 3.

Substitute x=−2x = -2: P(−2)=−2m+c=−3P(-2) = -2m + c = -3.

Subtracting the second equation from the first gives 3m=63m = 6, so m=2m = 2 and c=1c = 1.

The remainder is 2x+12x + 1.