M5.1.3 Chapter 3
Dividing polynomials
Can I divide x³ + 2x² − 5x − 6 by x + 1 the way I divide 86 by 7?
Your guess
Pick one before you read on. It is fine to be wrong.
By the end you can
- Divide x³ + 2x² − 5x − 6 by x + 1
- Find a remainder quickly with the remainder theorem
A polynomial in x is a sum of terms. Each term is a number times a power of x, and the power is a whole number: 0, 1, 2, 3, and so on. For example 4x³ − 2x² + x + 7 is a polynomial.
The number in front of a power is its coefficient. The highest power of x is the degree of the polynomial. The term with no x is the constant term. So 1/x and √x are not polynomials.
With numbers, 17 ÷ 5 = 3 remainder 2 means 17 = 5 × 3 + 2. The remainder is smaller than 5. With polynomials we say the same thing, with the word "smaller" meaning "lower degree".
If f(x) is divided by d(x), with quotient q(x) and remainder r(x), then f(x) = d(x) × q(x) + r(x), and r(x) has a lower degree than d(x). Dividing by x − a gives a remainder with degree 0: just a number.
Worked example
Divide x² + 5x + 7 by x + 2.
- Divide the first terms: x² ÷ x = x. Write x above the x column.
- Multiply the divisor by x: x(x + 2) = x² + 2x. Write it under the dividend.
- Subtract. The x² terms cancel, and 5x − 2x = 3x.
- Bring down the 7. The new line is 3x + 7.
- Divide the first terms: 3x ÷ x = 3. Write + 3 above.
- Multiply: 3(x + 2) = 3x + 6. Subtract: (3x + 7) − (3x + 6) = 1.
- The remainder 1 has degree 0, which is lower than the degree 1 of the divisor. Stop.
Answer: The quotient is x + 3 and the remainder is 1.
To check, multiply back: (x + 2)(x + 3) + 1 = x² + 5x + 6 + 1 = x² + 5x + 7. This is the dividend, so the division is right.
Now a cubic. The steps repeat once for each power. Watch each line build up in the picture below.
Draw it first
Divide x³ + 2x² − 5x − 6 by x + 1
1 Divide x³ by x to get x². Multiply x²(x + 1) = x³ + x², subtract, and bring down to get x² − 5x.
2 Divide x² by x to get x. Multiply x(x + 1) = x² + x, subtract, and bring down to get −6x − 6.
3 Divide −6x by x to get −6. Multiply −6(x + 1) = −6x − 6, subtract, and the remainder is 0.
Worked example
Divide x³ + 2x² − 5x − 6 by x + 1.
- Divide the first terms: x³ ÷ x = x². Write x² above the x² column.
- Multiply: x²(x + 1) = x³ + x². Subtract from the top: (x³ + 2x²) − (x³ + x²) = x². Bring down −5x to get x² − 5x.
- Divide the first terms: x² ÷ x = x. Write + x above.
- Multiply: x(x + 1) = x² + x. Subtract: (x² − 5x) − (x² + x) = −6x. Bring down −6 to get −6x − 6.
- Divide the first terms. Write − 6 above, because −6x ÷ x = −6.
- Multiply: −6(x + 1) = −6x − 6. Subtract: (−6x − 6) − (−6x − 6) = 0.
- The remainder is 0, so x + 1 divides exactly. So x³ + 2x² − 5x − 6 = (x + 1)(x² + x − 6).
Answer: The quotient is x² + x − 6 and the remainder is 0.
If a power of x is missing, write it in with coefficient 0. This keeps the columns in line. So x³ − 7x + 6 is written x³ + 0x² − 7x + 6.
Worked example
Divide x³ − 4x² + x + 9 by x − 2. Write the result as f(x) = (x − 2) × q(x) + r.
- Divide x³ ÷ x = x². Multiply: x²(x − 2) = x³ − 2x². Subtract: (x³ − 4x²) − (x³ − 2x²) = −2x². Bring down x: −2x² + x.
- Divide −2x² ÷ x = −2x. Multiply: −2x(x − 2) = −2x² + 4x. Subtract: (−2x² + x) − (−2x² + 4x) = −3x. Bring down 9: −3x + 9.
- Divide −3x ÷ x = −3. Multiply: −3(x − 2) = −3x + 6. Subtract: (−3x + 9) − (−3x + 6) = 3.
- The quotient is x² − 2x − 3 and the remainder is 3.
- So x³ − 4x² + x + 9 = (x − 2)(x² − 2x − 3) + 3.
- Check at x = 2. The bracket (x − 2) is 0, so the right side is 3. And the left side is 8 − 16 + 2 + 9 = 3.
Answer: The quotient is x² − 2x − 3 and the remainder is 3.
The check in the last step is the key. When x = 2 the divisor x − 2 is zero, so the whole product vanishes and only the remainder is left. The remainder equals the value of the polynomial at x = 2.
The remainder theorem says: when a polynomial f(x) is divided by x − a, the remainder is f(a).
Proof. Divide by x − a. The remainder has degree less than 1, so it is a number r. Then f(x) = (x − a) q(x) + r for every x. Put x = a. The bracket is 0, so f(a) = 0 × q(a) + r = r.
Take care with the sign. The divisor x + 2 is x − (−2), so a = −2 and the remainder is f(−2). In general, the divisor x + b gives f(−b), and the divisor 2x − 1 gives f(1/2).
Worked example
Find the remainder when f(x) = 2x³ − 5x² + x + 7 is divided by x + 2.
- Write the divisor as x − (−2). So a = −2.
- By the remainder theorem the remainder is f(−2).
- Work out each term: 2 × (−2)³ = 2 × (−8) = −16, and −5 × (−2)² = −5 × 4 = −20.
- The other terms: x = −2, and the constant is 7.
- Add: f(−2) = −16 − 20 − 2 + 7 = −31.
Answer: The remainder is −31.
Worked example
The polynomial f(x) = x³ + px² − 4x + 3 leaves remainder 11 when divided by x − 2. Find p. Then find the remainder when f(x) is divided by x + 1.
- The divisor is x − 2, so a = 2 and the remainder is f(2).
- f(2) = 2³ + p × 2² − 4 × 2 + 3 = 8 + 4p − 8 + 3 = 4p + 3.
- The remainder is 11, so 4p + 3 = 11. Then 4p = 8, so p = 2.
- So f(x) = x³ + 2x² − 4x + 3.
- The divisor x + 1 is x − (−1), so the remainder is f(−1).
- f(−1) = (−1)³ + 2 × (−1)² − 4 × (−1) + 3 = −1 + 2 + 4 + 3 = 8.
Answer: p = 2, and the second remainder is 8.
For a divisor such as 2x − 1, write f(x) = (2x − 1)q(x) + r. At x = 1/2 the bracket 2x − 1 is 0, so r = f(1/2). In general, the divisor px − q gives the remainder f(q/p), where q/p is the value of x that makes the divisor 0.
Worked example
Find the remainder when f(x) = 4x³ − 2x + 5 is divided by 2x − 1.
- The divisor 2x − 1 is 0 when x = 1/2. So the remainder is f(1/2).
- f(1/2) = 4 × (1/2)³ − 2 × (1/2) + 5.
- (1/2)³ = 1/8, so 4 × 1/8 = 1/2. And 2 × 1/2 = 1.
- So f(1/2) = 1/2 − 1 + 5 = 9/2.
Answer: The remainder is 9/2.
A divisor can have degree 2 as well. The remainder then has degree 1 or less, so it can hold an x term. The long division is the same.
Worked example
Divide x³ + 3x² − 2x + 4 by x² + 1.
- Divide the first terms: x³ ÷ x² = x. Write x above the x column.
- Multiply: x(x² + 1) = x³ + x. Subtract: (x³ + 3x²) − (x³ + 0x²) = 3x². The x column gives −2x − x = −3x. So the line is 3x² − 3x.
- Divide the first terms: 3x² ÷ x² = 3. Write + 3 above.
- Multiply: 3(x² + 1) = 3x² + 3. Subtract: (3x² − 3x + 4) − (3x² + 3) = −3x + 1.
- The remainder −3x + 1 has degree 1, which is less than the degree 2 of the divisor. Stop.
Answer: The quotient is x + 3 and the remainder is −3x + 1.
Try it
Multiply back to check a division
You need: paper, a pencil.
- Take the result of the first worked example: quotient x + 3, divisor x + 2, remainder 1.
- Draw a grid with x and + 2 across, and x and + 3 down. Multiply each pair of terms.
- Add the four products and collect like terms.
- Add the remainder 1. Compare with the dividend x² + 5x + 7.
What you will see: The grid gives x² + 5x + 6. Adding the remainder 1 gives x² + 5x + 7, the dividend. A division is right when dividend = divisor × quotient + remainder.
A wrong idea many people have
To find the remainder when dividing by x + 2, work out f(2).
Why it feels right: The number 2 is the one written in the divisor, so it seems the one to put in.
The test that breaks it: Take f(x) = x + 2 itself. It divides exactly by x + 2, so the remainder is 0. But f(2) = 4, and f(−2) = 0.
What is true: The divisor x + 2 is x − (−2). Put in x = −2. Write the divisor as x − a first, and then the number is a.
A wrong idea many people have
A missing power of x can be left out of the long division.
Why it feels right: The term is not there, so it seems there is nothing to write.
The test that breaks it: In x³ − 7x + 6 the −7x would then stand in the x² column. The first subtraction would mix an x term with an x² term, and the answer would be wrong.
What is true: Write the missing power with coefficient 0: x³ + 0x² − 7x + 6. Each column then holds one power.
A wrong idea many people have
To subtract (x² − 5x) − (x² + x) you get −5x + x = −4x.
Why it feels right: The first term cancels, and then we carry on adding what is left.
The test that breaks it: Multiply back: (x + 1)(x² + x − 4) = x³ + 2x² − 3x − 4. This is not the dividend x³ + 2x² − 5x − 6, so the division is wrong.
What is true: Subtract every term of the line below: change the sign of each term. (x² − 5x) − (x² + x) = −5x − x = −6x.
Key words
- polynomial
- a sum of terms, each a number times a whole number power of x.
- coefficient
- the number in front of a power of x.
- degree
- the highest power of x in a polynomial.
- quotient
- the result of a division, without the remainder.
- remainder
- what is left when the division stops. It has a lower degree than the divisor.
- remainder theorem
- the remainder of f(x) divided by x − a is f(a).
Back to your guess
The answer is B: Yes. The same steps work, one power of x at a time.
The steps for long division of numbers work for polynomials too. At each step you divide the first term by the first term of the divisor, multiply back and subtract. A remainder is allowed, as it is with numbers, and it can be found without any division at all.
Check yourself
Try each one before you look. A wrong answer tells you where to go next.
What is the degree of the polynomial 5x⁴ − 3x² + 7?
See the answer
4
The powers of x are 4, 2 and 0 (for the constant 7). The highest is 4.
- If you chose B: You took the power of the second term. The degree is the highest power, wherever it stands. Go to M5.1.3.
- If you chose C: You counted the terms. The degree is the highest power of x, not the number of terms. Go to M5.1.3.
- If you chose D: That is a coefficient, the number in front of x⁴. The degree is the power, 4. Go to M5.1.3.
What is the remainder when x³ − 2x + 5 is divided by x − 3?
See the answer
26
The divisor is x − 3, so a = 3. The remainder is f(3) = 3³ − 2 × 3 + 5 = 27 − 6 + 5 = 26.
- If you chose A: You left out the +5. f(3) = 27 − 6 + 5, which needs every term. Go to M5.1.3.
- If you chose B: You worked out f(−3). The divisor is x − 3, so a = 3 and the remainder is f(3). Go to M5.1.3.
- If you chose C: That is f(0), the constant term. It is the remainder only when you divide by x. Go to M5.1.3.
x + 4 divides the polynomial f(x) exactly, with no remainder. Which statement must be true?
See the answer
f(−4) = 0
The remainder on dividing by x + 4 is f(−4). Dividing exactly means the remainder is 0, so f(−4) = 0.
- If you chose B: The divisor x + 4 is x − (−4), so the number to put in is −4, not 4. Go to M5.1.3.
- If you chose C: That mixes up the number in the divisor with the value of f. The remainder is f(−4), and here it is 0. Go to M5.1.3.
- If you chose D: The remainder is f(−4), and "divides exactly" means the remainder is 0, not 4. Go to M5.1.3.
The picture shows the first step of dividing x³ + 4x² + x − 6 by x + 2. What is the next term of the quotient?
See the answer
2x
Divide the first term of the line, 2x², by the first term of the divisor, x. That gives 2x.
- If you chose A: That is the first term of the new line, not a quotient term. Divide it by x, the first term of the divisor. Go to M5.1.3.
- If you chose B: You divided the numbers but forgot the powers. 2x² ÷ x = 2x, because x² ÷ x = x. Go to M5.1.3.
- If you chose D: That is the divisor. The quotient term is the first term of the line divided by the first term of the divisor. Go to M5.1.3.
Amina divides f(x) = x² + 3x − 4 by x − 1 and says the remainder is f(−1) = −6. Which statement is right?
See the answer
Use f(1), so the remainder is 0.
The divisor x − 1 gives a = 1. The remainder is f(1) = 1 + 3 − 4 = 0, so x − 1 divides exactly.
Find the remainder when x³ − 2x² + 3x + 4 is divided by x − 2.
See the answer
10
The divisor is x − 2, so a = 2. The remainder is f(2) = 8 − 8 + 6 + 4 = 10.
The polynomial f(x) = x³ + kx² − 5x + 1 leaves remainder 11 when divided by x − 2. Find k.
See the answer
3
The remainder is f(2) = 8 + 4k − 10 + 1 = 4k − 1. This equals 11, so 4k = 12 and k = 3.
Divide x³ − 6x² + 11x − 5 by x − 1. Write the quotient and the remainder.
See the answer
The quotient is x² − 5x + 6 and the remainder is 1.
x³ ÷ x = x². Multiply: x³ − x². Subtract: −5x² + 11x. Then −5x² ÷ x = −5x. Multiply: −5x² + 5x. Subtract: 6x − 5. Then 6x ÷ x = 6. Multiply: 6x − 6. Subtract: −5 − (−6) = 1. The remainder 1 equals f(1) = 1 − 6 + 11 − 5 = 1.
From an earlier chapter
Which values of x satisfy |x − 3| < 2?
See the answer
1 < x < 5
The distance from x to 3 is less than 2, so x lies between 3 − 2 = 1 and 3 + 2 = 5.
f(x) = x³ + ax² + bx − 6. The expression x − 2 is a factor of f(x), and the remainder is −12 when f(x) is divided by x + 1. Find b.
See the answer
3
x − 2 is a factor, so f(2) = 0: 8 + 4a + 2b − 6 = 0, so 4a + 2b = −2, which is 2a + b = −1. The remainder on dividing by x + 1 is f(−1) = −12: −1 + a − b − 6 = −12, so a − b = −5. Add the two equations: 3a = −6, so a = −2. Then b = −1 − 2a = 3.
Keep it
Copy this into your exercise book.
Divide first terms, multiply back, subtract, bring down. dividend = divisor × quotient + remainder. Remainder of f(x) ÷ (x − a) is f(a). Divisor x + 2 means a = −2.
Draw: A long division in columns, one column for each power of x, with 0 as a place holder.