What the formula says
p(x) = q(x) · d(x) + r(x), where the degree of r is lower than the degree of d
Here p(x) is the polynomial being divided, d(x) the polynomial you divide by, q(x) the quotient and
r(x) the remainder. It is a theorem, the division algorithm for polynomials: for every p, and every
d that is not the zero polynomial, there is exactly one such quotient and one such remainder.
Written out in columns, it is called polynomial long division.
It is the same thing as division with remainder for whole numbers, 17 = 5 · 3 + 2, where the remainder is smaller than what you divide by. For polynomials it is the degree that has to be lower. Dividing by x − a, the divisor has degree 1, so the remainder is a plain number.
Worked examples
Long division. Divide x³ − 2x² − 4 by x − 3. Each step takes the leading term of what is left, divides it by x, multiplies back and subtracts.
| Step | Left to divide | Quotient term | Subtract | Left after |
|---|---|---|---|---|
| 1 | x³ − 2x² − 4 | x² | x²(x − 3) = x³ − 3x² | x² − 4 |
| 2 | x² − 4 | x | x(x − 3) = x² − 3x | 3x − 4 |
| 3 | 3x − 4 | 3 | 3(x − 3) = 3x − 9 | 5 |
The quotient is x² + x + 3 and the remainder 5, since 5 has lower degree than x − 3. Check: (x² + x + 3)(x − 3) + 5 = x³ − 2x² − 4.
The remainder is the polynomial’s value. Put x = 3 into the dividend: 27 − 18 − 4 = 5, the same as the remainder. That is the remainder theorem, and it holds whenever you divide by x − a.
Dividing by x + 2. (2x³ + 3x² − x + 5) ÷ (x + 2) gives the quotient 2x² − x + 1 and the remainder 3. Dividing by x + 2 is dividing by x − (−2), and the dividend at −2 is −16 + 12 + 2 + 5 = 3.
A division that comes out even. x² − 5x + 6 divided by x − 2 gives x − 3 with remainder 0. So x − 2 is a factor and x = 2 is a root, by the factor theorem. That is how you factor a cubic once you have guessed one root: divide the factor out and solve the quadratic that is left.
Common mistakes
- Skipping a missing term. x³ − 2x² − 4 has no x term. Write it as 0x, or the subtractions end up in the wrong column.
- Sign errors when subtracting. The whole product is subtracted: x² − 4 − (x² − 3x) is 3x − 4, not −3x − 4.
- Stopping too early or too late. The division is done when what is left has lower degree than the divisor, and not before or after.
Common questions
What is the difference between long division and synthetic division?
Synthetic division is a shortened long division that only works when dividing by x − a. You work with
the coefficients and leave out the x. The answer is the same.
How do you know when the division is done?
When what is left has lower degree than the divisor. Dividing by x − 3, you are done when only a number
is left. Dividing by x² + 1, you are done when what is left has degree 1 at most.
What does a remainder of zero mean?
That the divisor is a factor of the dividend. The dividend can then be written as the divisor times the
quotient, and if the divisor is x − a, then a is a root.