Skip to content
Family Table Math
Auto

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.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.

Give remainders as exact numbers (fractions, not decimals).

H1. (Foundations) Let P(x)=x3−4x2+6x−2P(x) = x^3 - 4x^2 + 6x - 2. Use the remainder theorem to find the remainder when P(x)P(x) is divided by each divisor.

  • (a) x−3x - 3
  • (b) x+2x + 2
  • (c) xx

H2. (Foundations) Let Q(x)=6x3+x2−5x+4Q(x) = 6x^3 + x^2 - 5x + 4. Find the remainder when Q(x)Q(x) is divided by each divisor. Say which value of xx you substitute and why.

  • (a) 3x−23x - 2
  • (b) 2x+32x + 3

H3. (Core) Find kk in each case, then check your answer.

  • (a) When x3+2x2+kx−4x^3 + 2x^2 + kx - 4 is divided by x−3x - 3, the remainder is 2626.
  • (b) When 3x3−kx2+53x^3 - kx^2 + 5 is divided by 3x+13x + 1, the remainder is 44.

H4. (Core) (IB style) The polynomial P(x)=2x3+ax2+bx+3P(x) = 2x^3 + ax^2 + bx + 3 leaves a remainder of 44 when divided by x−1x - 1 and a remainder of 77 when divided by x+2x + 2.

  • (a) Find the values of aa and bb.
  • (b) Hence find the remainder when P(x)P(x) is divided by 2x−12x - 1.

H5. (Core) Let P(x)=2x4−3x3+x−5P(x) = 2x^4 - 3x^3 + x - 5.

  • (a) Use the remainder theorem to find the remainder when P(x)P(x) is divided by x−2x - 2.
  • (b) Confirm your answer with long division (or synthetic division). Write the result in the form P(x)=(x−2)Q(x)+RP(x) = (x - 2)Q(x) + R.
  • (c) Part (b) gave you something that part (a) could not. What is it?

H6. (Core) Find cc so that dividing x3−2x2+cx+6x^3 - 2x^2 + cx + 6 by x+2x + 2 leaves a remainder of 00. What does a remainder of 00 tell you about x+2x + 2 and the polynomial? (This idea is the factor theorem.)

H7. (Challenge) Sam was asked two questions about P(x)=x3+2x2−5x+1P(x) = x^3 + 2x^2 - 5x + 1. Here is Sam’s work.

  • (a) “Remainder on dividing by x−2x - 2: the divisor has −2-2 in it, so I use P(−2)=−8+8+10+1=11P(-2) = -8 + 8 + 10 + 1 = 11.”
  • (b) “Remainder on dividing by 3x−23x - 2: I use P(32)=278+92−152+1=118P\left(\tfrac{3}{2}\right) = \tfrac{27}{8} + \tfrac{9}{2} - \tfrac{15}{2} + 1 = \tfrac{11}{8}.”

For each part, explain Sam’s error and find the correct remainder.

H8. (Challenge) You want a polynomial P(x)P(x) that leaves remainder 22 when divided by x−1x - 1 and remainder −4-4 when divided by x+1x + 1.

  • (a) Find a polynomial of degree 11 that works.
  • (b) Find a different polynomial, of degree 33, that also works. Check both remainders.
  • (c) Explain why there are infinitely many polynomials that work.

H9. (Challenge)

  • (a) Show that, for any polynomial P(x)P(x), the remainder when P(x)P(x) is divided by x−1x - 1 equals the sum of its coefficients (including the constant term).
  • (b) Use part (a) to find, in one line, the remainder when 5x7−3x4+2x2−95x^7 - 3x^4 + 2x^2 - 9 is divided by x−1x - 1.

H10. (Challenge) Long division would take a very long time here, so use the remainder theorem.

  • (a) Find the remainder when x2026−3x15+4x^{2026} - 3x^{15} + 4 is divided by x+1x + 1, and when it is divided by x−1x - 1.
  • (b) Let nn be a positive integer. Find the remainder when xn−1x^n - 1 is divided by x+1x + 1. Your answer should depend on whether nn is even or odd.