MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Pre-University
MathematicsPre-University

The remainder theorem — remainders without dividing

P1 — Pure Algebra and Functions › P1.1 — PolynomialsLecture 3 of 5~2690 words

A remainder you can know before you divide

Two lectures ago, you divided by . It took three rounds, and the remainder was 21. At the end, there was a quick check: put into . The answer was , the same number. That lecture promised that this check would become a theorem.

Here is a second puzzle, from ordinary arithmetic. Divide 7435 by 9. The answer is 826, remainder 1. Now add the digits of 7435: . Add the digits again: , and again: . The same remainder appears, and no division was done. Many students learn this "digit sum" trick for 9. Very few are told why it works.

The two puzzles have the same answer. By the end of this lecture, you will be able to explain both in a few lines.

Why one substitution gives the remainder

The last lecture proved the factor theorem. On the way, it found a line that said more than it needed. That lecture promised that the next one would use the whole line. Here it is.

Divide any polynomial by . The division always works, and it gives a quotient and a remainder :

The divisor has degree 1. The remainder must have a lower degree than the divisor, so its degree is 0. This means that is a plain number. It has no in it.

The statement is true for every value of . So it is true for . On the right, the bracket becomes , and the whole first term disappears. Only is left. So .

That is it. That is the whole idea. The value is the one value that switches off the quotient. Whatever the quotient is, it is multiplied by zero, and the remainder stands alone.

The remainder theorem

When a polynomial is divided by , the remainder is .

The factor theorem is now one case of this. A factor is a divisor that leaves remainder 0. By the remainder theorem, that happens exactly when . You do not need two separate facts. One theorem contains the other.

Notice what the theorem does not give. It gives the remainder, but not the quotient. If you need the quotient, you still have to divide, or compare coefficients as in the last lecture.

The remainder is a height on the graph

There is a picture behind the theorem. The value is the height of the graph above the point . So the remainder on dividing by is the height of the graph at .

A root is a place where the graph meets the -axis. Its height is zero, so the remainder is zero. This is the factor theorem, seen on a graph. Everywhere else, the height is the amount "left over".

Try it yourself on the cubic from the start of the lecture.

Graph builder — the remainder as a height

Move a, or use − and +. The page divides f(x) = 2x³ + 3x² − 4x + 1 by x − a and shows the quotient and the remainder. Compare the remainder with the height of the graph at x = a. Find the value of a that leaves no remainder.


The graph of f(x) = 2x³ + 3x² − 4x + 1. Each bar runs from the x-axis up to the graph, and its length is the remainder on dividing by x − a. The table gives the division at three values of a.

−10 0 10 20 −3 −1 f(−2) = 5 f(2) = 21 −2 2 ½ 1 x y = f(x)
The remainder on dividing f(x) by x − a is the height of the graph at x = a: 5 at a = −2 and 21 at a = 2. At a = ½ the graph meets the axis, so x − ½ leaves no remainder.
DivisorQuotientRemainderf(a)
x − 22x² + 7x + 102121
x + 22x² − x − 255
x − ½2x² + 4x − 200

Every setting tells the same story. The division and the substitution always give the same number. At the remainder is 0, so is a factor, and so is . The cubic from two lectures ago had a factor all along.

Dividing by 2x − 1, or any ax − b

Suppose the divisor is . The same argument works with a different value. Write

The divisor still has degree 1, so is still a number. Now choose the value of that makes the divisor zero. That is . Then . In general, the remainder on dividing by is .

The rule in practice is short. Set the divisor equal to zero, solve for , and substitute that value.

Two lectures ago, you divided by and found remainder 5. Check it now: . ✓

Stop and think

Divide by instead of . The divisor is half as big. Is the remainder half as big, ?

Show the answer

No. The remainder is in both cases. The substitution does not care which form of the divisor you used, because both are zero at .

What changes is the quotient. Dividing by gives . Dividing by gives , twice as much. Half the divisor needs twice the quotient to rebuild the same , and the remainder stays the same.

The digit-sum trick, explained

Now return to 7435. Write it in place value: . This is the value at of the polynomial

Divide by . By the remainder theorem, the remainder is , the digit sum. So .

Now put . The bracket becomes , so . The quotient has whole-number coefficients, because dividing by never creates a fraction. So is a whole number. In fact , and .

This means that 7435 and its digit sum 19 differ by a multiple of 9. So they leave the same remainder on division by 9. Repeating the digit sum keeps the remainder the same each time, until a single digit is left. (A final 9 means remainder 0.) The trick is the remainder theorem with and .

Change and you get a second trick. Divide by instead. The remainder is . At , the bracket is 11. So 7435 and differ by a multiple of 11. A remainder of means "one short of a multiple of 11", so the true remainder is . Indeed, . This is the alternating-sum test for 11: add and subtract the digits in turn, starting from the units digit.

Stop and think

Does the digit sum also give the remainder on division by 3? Explain using .

Show the answer

Yes. The number is a multiple of 9, so it is also a multiple of 3. So 7435 and 19 differ by a multiple of 3, and they leave the same remainder on division by 3. That remainder is 1, because . Check: . ✓

The same reasoning fails for 7. The number 9 is not a multiple of 7, so the digit sum says nothing about division by 7.

Worked examples

Worked Example 1 — Three remainders, no division

Find the remainder when is divided by (a) , (b) , (c) .

(a) .

(b) The divisor is zero at . . A polynomial remainder can be negative. Nothing needs to be adjusted, because is simply the number left over.

(c) The divisor is zero at . Then .

Check (a) by dividing. Division gives . At : , and . ✓ The long division needed three rounds. The theorem needed one line.

Worked Example 2 — Two remainders, two unknowns

When is divided by , the remainder is 4. When it is divided by , the remainder is . Find and .

Turn each fact into an equation. . So .

. So , which gives .

This is the step where sign slips happen. Write each power out: , , and .

Solve. Subtract the first equation from the second: , so . Then .

Check both facts. . ✓ . ✓

Worked Example 3 — A question with no answer

For , suppose you are told that is a factor and that dividing by leaves remainder . Find and .

Try it. , so . And , so .

The two equations contradict each other. Before you search for an arithmetic slip, look at why. The terms and have even powers, so they are the same at and . The terms and have odd powers, so they change sign. So , whatever and are. No choice of and can make one value 0 and the other . The question has no answer.

A version that works. Keep as a factor, but say that dividing by leaves . Then , so . Subtract : , so and .

Check. . . ✓ . ✓

Dividing by a quadratic

What happens when the divisor has degree 2? The remainder must have a lower degree, so it can have degree 1. It is no longer a single number. It has the form , and there are two unknowns to find.

Before you read on, make a guess.

Predict, then reveal — dividing x⁵ by (x − 1)(x − 2)

The polynomial x⁵ is divided by (x − 1)(x − 2) = x² − 3x + 2. What is the remainder? Choose one.

The remainder on dividing x⁵ by (x − 1)(x − 2) is 31x − 30. Its graph is the straight line through the two points of y = x⁵ where x = 1 and x = 2.

0 10 20 30 40 1 2 (1, 1) (2, 32) y = 31x − 30 y = x⁵ x
The curve y = x⁵ and the line y = 31x − 30. They meet at x = 1 and x = 2, where the divisor is zero. The remainder is the straight line through those two points.

The method is the same idea, used twice. Write

Each root of the divisor switches off the first term. Putting gives . Putting gives . Subtract: , and then . So the remainder is .

The graph shows what this means. The remainder is the straight line that agrees with at and at . For a linear divisor, the remainder matched the curve at one point. For a quadratic divisor, it matches the curve at two points.

Check at . Division gives the quotient , and . So the right side is . ✓

Worked Example 4 — A remainder for a very high power

Find the remainder when is divided by .

Set up. The divisor is , with degree 2. So write .

Use both roots. At : . At : , because 100 is even. Add the equations: , so , and then .

Answer. The remainder is 1. In other words, divides exactly.

Check. The last lecture showed that divides . Put , and . Then divides . ✓ The two methods agree.

Three traps

Trap 1 — Substituting the wrong sign

For the divisor , the value to substitute is , not . Always ask which value makes the divisor zero.

Trap 2 — Substituting b or a for ax − b

For , the value is . Substituting or gives a number with no meaning. Solve first.

Trap 3 — A number as the remainder for a quadratic divisor

When the divisor has degree 2, the remainder is usually , not a single number. Writing just or as "the remainder" answers a different question.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. Find the remainder when is divided by (a) , (b) .

    Hint 1

    For each divisor, find the value of that makes it zero.

    Hint 2

    The values are and . For (b), .

    Full answer

    (a) .

    (b) .

    Check (a) by dividing: . At : , and . ✓

  2. The polynomial leaves remainder 4 when divided by , and remainder 10 when divided by . Find and .

    Hint 1

    Each remainder gives one equation in and .

    Hint 2

    and .

    Full answer

    , so . , so .

    Add the two equations: , so and . The polynomial is .

    Check: . ✓ . ✓

  3. Without dividing, find the remainders when 7 435 286 is divided by 9 and by 11.

    Hint 1

    The number is for a polynomial with the digits as coefficients. Use for 9 and for 11.

    Hint 2

    For , start from the units digit: .

    Full answer

    By 9: the digit sum is . Then . The remainder is 8.

    By 11: . The number and 1 differ by a multiple of 11, so the remainder is 1.

    Check: , and . ✓ , and the difference is 1. ✓

  4. A polynomial leaves remainder 3 when divided by , and remainder when divided by . Find the remainder when is divided by . Then test your answer on .

    Hint 1

    Factorise the divisor. What are its roots?

    Hint 2

    Write . The facts say and .

    Full answer

    The divisor is , so the remainder is . Putting gives . Putting gives . Subtract: , so and . The remainder is .

    You did not need to know itself. Any polynomial with those two remainders gives the same answer.

    Test: has and . ✓ Division gives . Expand to check: . ✓

The bigger idea

The remainder theorem says that dividing by keeps exactly one piece of information about : its value at . The quadratic case says more. Dividing by keeps the values at 1 and at 2, packed into a straight line. Dividing by a product of different linear factors keeps the values at points, packed into the one polynomial of degree below that passes through them. Mathematicians call this fitting a curve through points "interpolation".

This idea protects data. In 1960, Irving Reed and Gustave Solomon, then at MIT Lincoln Laboratory, described codes built on polynomials. A block of data is treated as a polynomial, and the stored code includes its values at more points than strictly needed. A polynomial of degree below is fixed by any of its values, so the extra values give a check. If a few are damaged by a scratch, the rest can still recover the polynomial. Reed–Solomon codes are used in CDs, DVDs and QR codes, and in data sent back from spacecraft. Many versions compute their check symbols as a polynomial remainder.

The digit-sum trick points the other way, towards whole numbers. Replacing a number by its remainder on division by 9 is the starting point of modular arithmetic, a later topic. There, numbers that differ by a multiple of 9 are treated as equal.

Key concepts in this lesson