Long division works for any divisor, but it is slow. When the divisor is linear, such as x−3 or 2x+1, there is a shortcut that finds the remainder in one line, without dividing at all. It is called the remainder theorem, and it turns many division questions into simple substitution. In this lesson we see why it works and use it to find unknown coefficients.
The theorem#
Remainder theorem. When a polynomial f(x) is divided by x−a, the remainder is f(a).
Why it is true. By the division algorithm, f(x)=(x−a)q(x)+r. The divisor x−a has degree 1, so the remainder has degree 0: it is just a number r. This equation is true for every value of x, so put x=a:
f(a)=(a−a)q(a)+r=0×q(a)+r=r
So the remainder r equals f(a).
A simple way to remember which number to substitute: set the divisor equal to zero and solve. For x−a=0 we get x=a.
The same idea works when x has a coefficient.
- When f(x) is divided by ax−b, the remainder is f(ab), because ax−b=0 gives x=ab.
- When f(x) is divided by ax+b, the remainder is f(−ab), because ax+b=0 gives x=−ab.
Example 1#
Find the remainder when f(x)=x3−1 is divided by x+1.
x+1=0 gives x=−1.
Remainder=f(−1)=(−1)3−1=−1−1=−2
Example 2#
Find the remainder when f(x)=2x4−6x3+2x2−x+2 is divided by x+2.
f(−2)=2(16)−6(−8)+2(4)−(−2)+2=32+48+8+2+2=92
In the last lesson we found this same remainder, 92, after four rounds of long division. The theorem gets it in one line. (It does not give the quotient, though; for that we still need to divide.)
Example 3#
Find the remainder when 9x3−3x2+x−5 is divided by x−32.
f(32)=9(278)−3(94)+32−5=38−34+32−5=38−4+2−5=2−5=−3
The remainder is −3.
Finding unknown coefficients#
When a question gives the remainder and hides a coefficient, the theorem gives an equation for the unknown.
Example 4#
The polynomials ax3+4x2+3x−4 and x3−4x+a leave the same remainder when divided by x−3. Find a.
Let f(x)=ax3+4x2+3x−4 and g(x)=x3−4x+a. Both remainders come from x=3, and they are equal, so f(3)=g(3).
27a+36+9−427a+4126a26aa=27−12+a=15+a=15−41=−26=−1
Example 5#
Find the quadratic polynomial which, when divided by x−1, x−2 and x−3, leaves remainders 1, 2 and 4 respectively.
Let f(x)=ax2+bx+c. By the remainder theorem the three remainders are f(1), f(2) and f(3).
f(1)=1⟹a+b+c=1(1)
f(2)=2⟹4a+2b+c=2(2)
f(3)=4⟹9a+3b+c=4(3)
Subtract to remove c:
(2)−(1):3a+b=1
(3)−(2):5a+b=2
Subtracting these two gives 2a=1, so a=21. Then b=1−3a=1−23=−21, and from (1), c=1−a−b=1.
f(x)=21x2−21x+1
Check: f(3)=29−23+1=3+1=4. Correct.
Practice#
- Find the remainder when x4−3x2+2x+1 is divided by x−1.
- Find the remainder when x3+4x2−3x+10 is divided by x+4.
- Find the remainder when 4x3−12x2+14x−3 is divided by 2x−1.
- Find the remainder when x3−6x2+2x−4 is divided by 3x−1.
- Find the remainder when x3+3x2+3x+1 is divided by (a) x+1 (b) x−21 (c) x (d) 5+2x.
- When kx3+9x2+4x−8 is divided by x+3, the remainder is −20. Find k.
- The polynomials 2x3+ax2+3x−5 and x3+x2−4x+a leave the same remainder when divided by x−2. Find a.
- When x2+bx+c is divided by x−1 the remainder is 0, and when it is divided by x+2 the remainder is 12. Find b and c.
- When 2x3+3x2+ax+b is divided by x−2 the remainder is 2, and when it is divided by x+2 the remainder is −2. Find a and b.
- When f(x)=x4−2x3+3x2−ax+b is divided by x−1 and x+1, the remainders are 5 and 19. Find the remainder when f(x) is divided by x−2.
Answers#
Show answers
- f(1)=1−3+2+1=1
- f(−4)=−64+64+12+10=22
- f(21)=21−3+7−3=23
- f(31)=271−32+32−4=271−4=−27107
- (a) f(−1)=0 (b) f(21)=827 (c) f(0)=1 (d) f(−25)=−827. (The polynomial is (x+1)3, which makes the arithmetic quick.)
- f(−3)=−27k+81−12−8=−27k+61=−20, so −27k=−81 and k=3.
- 16+4a+6−5=8+4−8+a, so 17+4a=4+a, 3a=−13 and a=−313.
- 1+b+c=0 and 4−2b+c=12. Subtracting gives 3b−3=−12, so b=−3 and c=2.
- 28+2a+b=2 gives 2a+b=−26; −4−2a+b=−2 gives −2a+b=2. Adding: 2b=−24, so b=−12 and a=−7.
- f(1)=2−a+b=5 gives −a+b=3; f(−1)=6+a+b=19 gives a+b=13. So b=8, a=5, and f(2)=16−16+12−10+8=10.