Skip to content
Family Table Math
Auto

Dividing Polynomials

You already know how to add, subtract and multiply polynomials. Dividing them works just like long division with numbers: you get a quotient and a remainder. Polynomial division is the engine behind the remainder theorem, the factor theorem, and factoring cubics and quartics, so it’s worth getting fast and accurate at it.

When you divide 4747 by 55, you get 99 remainder 22, and you can check it by writing 47=5×9+247 = 5 \times 9 + 2. Polynomials work the same way. Dividing a polynomial P(x)P(x) by a divisor D(x)D(x) gives a quotient Q(x)Q(x) and a remainder RR with

P(x)=D(x) Q(x)+RP(x) = D(x)\,Q(x) + R
PartNameExample: dividing by x−1x - 1
P(x)P(x)dividendx3+4x2−3x+5x^3 + 4x^2 - 3x + 5
D(x)D(x)divisorx−1x - 1
Q(x)Q(x)quotientx2+5x+2x^2 + 5x + 2
RRremainder77

You stop dividing when the remainder has a lower degree than the divisor. For a linear divisor like x−1x - 1, that means the remainder is a constant. (For a quadratic divisor, the remainder can be linear, like −3x+4-3x + 4.)

The division statement is also your check: multiply D(x)Q(x)D(x)Q(x), add RR, and you should get P(x)P(x) back.

Write both polynomials in descending powers of xx. If a power is missing, put in a placeholder with coefficient 00, so the columns line up. Then repeat four steps:

  1. Divide the leading term of what’s left by the leading term of the divisor. That’s the next term of the quotient.
  2. Multiply that term by the whole divisor.
  3. Subtract (change every sign, then add).
  4. Bring down the next term.
Long division of 2x cubed plus 3x squared minus 4 by x plus 2, giving quotient 2x squared minus x plus 2 and remainder negative 8 2x² − x + 2 x + 2 2x³ + 3x² + 0x − 4 −(2x³ + 4x²) −x² + 0x −(−x² − 2x) 2x − 4 −(2x + 4) −8 quotient placeholder 0x for the missing x term 2x³ ÷ x = 2x², times (x + 2) subtract, bring down 0x −x² ÷ x = −x, times (x + 2) subtract, bring down −4 2x ÷ x = 2, times (x + 2) remainder
Long division of 2x3+3x2−42x^3 + 3x^2 - 4 by x+2x + 2. The placeholder 0x0x keeps the columns lined up.

When the divisor has the form x−ax - a, synthetic division is a shortcut that uses only the coefficients. For (x3+4x2−3x+5)÷(x−1)(x^3 + 4x^2 - 3x + 5) \div (x - 1), use a=1a = 1:

114−351521527\def\arraystretch{1.3} \begin{array}{r|rrrr} 1 & 1 & 4 & -3 & 5 \\ & & 1 & 5 & 2 \\ \hline & 1 & 5 & 2 & \boxed{7} \end{array}
  1. Write aa on the left and the coefficients of P(x)P(x) across the top (with 00 for any missing power).
  2. Bring the first coefficient straight down.
  3. Multiply it by aa, write the result under the next coefficient, and add.
  4. Repeat to the end. The last number is the remainder. The others are the coefficients of the quotient, which is one degree lower than P(x)P(x).

Here the bottom row 1, 5, 2∣71,\ 5,\ 2 \mid 7 means Q(x)=x2+5x+2Q(x) = x^2 + 5x + 2 and R=7R = 7.

Careful with the sign of aa: for the divisor x+2x + 2, write it as x−(−2)x - (-2), so a=−2a = -2.

Writing the answer as a quotient plus a fraction

Section titled “Writing the answer as a quotient plus a fraction”

Dividing both sides of P(x)=(x−a)Q(x)+RP(x) = (x - a)Q(x) + R by x−ax - a gives another useful form:

P(x)x−a=Q(x)+Rx−a,x≠a\frac{P(x)}{x - a} = Q(x) + \frac{R}{x - a}, \qquad x \ne a

For example, x3+4x2−3x+5x−1=x2+5x+2+7x−1\dfrac{x^3 + 4x^2 - 3x + 5}{x - 1} = x^2 + 5x + 2 + \dfrac{7}{x - 1}. This form is handy later, when you graph rational functions.

Divide x3+4x2−3x+5x^3 + 4x^2 - 3x + 5 by x−1x - 1. Write the division statement and check it.

Solution. Work one term of the quotient at a time.

  • x3÷x=x2x^3 \div x = x^2. Multiply: x2(x−1)=x3−x2x^2(x - 1) = x^3 - x^2. Subtract: (x3+4x2)−(x3−x2)=5x2(x^3 + 4x^2) - (x^3 - x^2) = 5x^2. Bring down −3x-3x to get 5x2−3x5x^2 - 3x.
  • 5x2÷x=5x5x^2 \div x = 5x. Multiply: 5x(x−1)=5x2−5x5x(x - 1) = 5x^2 - 5x. Subtract: (5x2−3x)−(5x2−5x)=2x(5x^2 - 3x) - (5x^2 - 5x) = 2x. Bring down +5+5 to get 2x+52x + 5.
  • 2x÷x=22x \div x = 2. Multiply: 2(x−1)=2x−22(x - 1) = 2x - 2. Subtract: (2x+5)−(2x−2)=7(2x + 5) - (2x - 2) = 7.

The quotient is x2+5x+2x^2 + 5x + 2 and the remainder is 77:

x3+4x2−3x+5=(x−1)(x2+5x+2)+7x^3 + 4x^2 - 3x + 5 = (x - 1)(x^2 + 5x + 2) + 7

Check: (x−1)(x2+5x+2)=x3+5x2+2x−x2−5x−2=x3+4x2−3x−2(x - 1)(x^2 + 5x + 2) = x^3 + 5x^2 + 2x - x^2 - 5x - 2 = x^3 + 4x^2 - 3x - 2. Adding 77 gives x3+4x2−3x+5x^3 + 4x^2 - 3x + 5. ✓

Divide 2x3+3x2−42x^3 + 3x^2 - 4 by x+2x + 2.

Solution. There’s no xx term, so write the dividend as 2x3+3x2+0x−42x^3 + 3x^2 + 0x - 4. The figure in Key ideas shows the full layout:

  • 2x3÷x=2x22x^3 \div x = 2x^2. Subtract 2x2(x+2)=2x3+4x22x^2(x + 2) = 2x^3 + 4x^2 to get −x2-x^2, then bring down 0x0x.
  • −x2÷x=−x-x^2 \div x = -x. Subtract −x(x+2)=−x2−2x-x(x + 2) = -x^2 - 2x to get 2x2x, then bring down −4-4.
  • 2x÷x=22x \div x = 2. Subtract 2(x+2)=2x+42(x + 2) = 2x + 4 to get −8-8.
2x3+3x2−4=(x+2)(2x2−x+2)−82x^3 + 3x^2 - 4 = (x + 2)(2x^2 - x + 2) - 8

Check with x=0x = 0: the left side is −4-4, and the right side is (2)(2)−8=−4(2)(2) - 8 = -4. ✓

Use synthetic division to divide 2x4−5x3+7x−32x^4 - 5x^3 + 7x - 3 by x−2x - 2. Write the result in the form Q(x)+Rx−2Q(x) + \dfrac{R}{x - 2}.

Solution. The divisor is x−2x - 2, so a=2a = 2. The x2x^2 term is missing, so its coefficient is 00:

22−507−34−2−462−1−233\def\arraystretch{1.3} \begin{array}{r|rrrrr} 2 & 2 & -5 & 0 & 7 & -3 \\ & & 4 & -2 & -4 & 6 \\ \hline & 2 & -1 & -2 & 3 & \boxed{3} \end{array}

The dividend has degree 44, so the quotient has degree 33: Q(x)=2x3−x2−2x+3Q(x) = 2x^3 - x^2 - 2x + 3, and R=3R = 3.

2x4−5x3+7x−3x−2=2x3−x2−2x+3+3x−2,x≠2\frac{2x^4 - 5x^3 + 7x - 3}{x - 2} = 2x^3 - x^2 - 2x + 3 + \frac{3}{x - 2}, \qquad x \ne 2

Divide 4x3−8x2+3x+54x^3 - 8x^2 + 3x + 5 by 2x−12x - 1.

Solution. The leading term of the divisor is 2x2x, so divide by 2x2x each time.

  • 4x3÷2x=2x24x^3 \div 2x = 2x^2. Multiply: 2x2(2x−1)=4x3−2x22x^2(2x - 1) = 4x^3 - 2x^2. Subtract: (4x3−8x2)−(4x3−2x2)=−6x2(4x^3 - 8x^2) - (4x^3 - 2x^2) = -6x^2. Bring down 3x3x.
  • −6x2÷2x=−3x-6x^2 \div 2x = -3x. Multiply: −3x(2x−1)=−6x2+3x-3x(2x - 1) = -6x^2 + 3x. Subtract: (−6x2+3x)−(−6x2+3x)=0(-6x^2 + 3x) - (-6x^2 + 3x) = 0. Bring down 55.
  • 5÷2x5 \div 2x isn’t a polynomial term, and 55 has a lower degree than 2x−12x - 1, so we stop.
4x3−8x2+3x+5=(2x−1)(2x2−3x)+54x^3 - 8x^2 + 3x + 5 = (2x - 1)(2x^2 - 3x) + 5

Check: (2x−1)(2x2−3x)=4x3−6x2−2x2+3x=4x3−8x2+3x(2x - 1)(2x^2 - 3x) = 4x^3 - 6x^2 - 2x^2 + 3x = 4x^3 - 8x^2 + 3x, and adding 55 gives the dividend. ✓

Aside. You can use synthetic division here with a=12a = \tfrac{1}{2} (the zero of 2x−12x - 1). The bottom row is 4, −6, 0∣54,\ -6,\ 0 \mid 5, which is the quotient for dividing by x−12x - \tfrac{1}{2}. Since 2x−1=2(x−12)2x - 1 = 2\left(x - \tfrac{1}{2}\right), you then divide those quotient coefficients by 22 to get 2x2−3x2x^2 - 3x. The remainder stays 55.

Forgetting placeholders for missing powers. In 2x3+3x2−42x^3 + 3x^2 - 4 there’s no xx term, so write 0x0x. Without it, the columns slide out of line and every later step is wrong. The same goes for synthetic division: write a 00 for each missing power.

Subtracting only the first term. When you subtract −x(x+2)=−x2−2x-x(x + 2) = -x^2 - 2x, you must subtract both terms: (−x2+0x)−(−x2−2x)=2x(-x^2 + 0x) - (-x^2 - 2x) = 2x. Putting the subtracted line in brackets, or changing all its signs before adding, avoids this.

Using the wrong sign in synthetic division. For the divisor x+3x + 3, the number in the box is −3-3, not 33. Ask yourself: what value of xx makes the divisor zero?

Using synthetic division for 2x − 1 without adjusting. Synthetic division with a=12a = \tfrac{1}{2} gives the quotient for x−12x - \tfrac{1}{2}, which is twice the quotient for 2x−12x - 1. Either divide those coefficients by 22 or use long division.

Reading the quotient’s degree wrong. In synthetic division, the bottom row (without the remainder) starts one degree lower than the dividend. Dividing a quartic by x−ax - a gives a cubic.

Dropping the divisor from the remainder. P(x)x−2=Q(x)+3\dfrac{P(x)}{x - 2} = Q(x) + 3 is wrong. The remainder must stay over the divisor: Q(x)+3x−2Q(x) + \dfrac{3}{x - 2}.

1. (Warm-up) For the statement 2x3−x+5=(x−1)(2x2+2x+1)+62x^3 - x + 5 = (x - 1)(2x^2 + 2x + 1) + 6, name the dividend, divisor, quotient and remainder.

Solution

Dividend: 2x3−x+52x^3 - x + 5. Divisor: x−1x - 1. Quotient: 2x2+2x+12x^2 + 2x + 1. Remainder: 66.

2. (Warm-up) Use synthetic division to divide x3−2x2+4x−5x^3 - 2x^2 + 4x - 5 by x−2x - 2.

Solution21−24−52081043\def\arraystretch{1.3} \begin{array}{r|rrrr} 2 & 1 & -2 & 4 & -5 \\ & & 2 & 0 & 8 \\ \hline & 1 & 0 & 4 & \boxed{3} \end{array}

Q(x)=x2+0x+4=x2+4Q(x) = x^2 + 0x + 4 = x^2 + 4 and R=3R = 3.

3. (Warm-up) Divide 3x2+5x−13x^2 + 5x - 1 by x+1x + 1.

Solution

3x2÷x=3x3x^2 \div x = 3x. Subtract 3x(x+1)=3x2+3x3x(x + 1) = 3x^2 + 3x to get 2x−12x - 1.

2x÷x=22x \div x = 2. Subtract 2(x+1)=2x+22(x + 1) = 2x + 2 to get −3-3.

3x2+5x−1=(x+1)(3x+2)−33x^2 + 5x - 1 = (x + 1)(3x + 2) - 3

4. (Core) Use long division to divide x4−3x2+2x−7x^4 - 3x^2 + 2x - 7 by x+2x + 2.

Solution

Write the dividend as x4+0x3−3x2+2x−7x^4 + 0x^3 - 3x^2 + 2x - 7.

  • x4÷x=x3x^4 \div x = x^3. Subtract x3(x+2)=x4+2x3x^3(x + 2) = x^4 + 2x^3 to get −2x3-2x^3. Bring down −3x2-3x^2.
  • −2x3÷x=−2x2-2x^3 \div x = -2x^2. Subtract −2x2(x+2)=−2x3−4x2-2x^2(x + 2) = -2x^3 - 4x^2 to get x2x^2. Bring down 2x2x.
  • x2÷x=xx^2 \div x = x. Subtract x(x+2)=x2+2xx(x + 2) = x^2 + 2x to get 00. Bring down −7-7.
  • −7-7 has lower degree than x+2x + 2, so the remainder is −7-7.
x4−3x2+2x−7=(x+2)(x3−2x2+x)−7x^4 - 3x^2 + 2x - 7 = (x + 2)(x^3 - 2x^2 + x) - 7

5. (Core) Use synthetic division to divide x3+6x2+5x−8x^3 + 6x^2 + 5x - 8 by x+3x + 3, and write the division statement.

Solution

The divisor is x−(−3)x - (-3), so a=−3a = -3:

−3165−8−3−91213−44\def\arraystretch{1.3} \begin{array}{r|rrrr} -3 & 1 & 6 & 5 & -8 \\ & & -3 & -9 & 12 \\ \hline & 1 & 3 & -4 & \boxed{4} \end{array}x3+6x2+5x−8=(x+3)(x2+3x−4)+4x^3 + 6x^2 + 5x - 8 = (x + 3)(x^2 + 3x - 4) + 4

6. (Core) Divide 6x3+7x2−x+36x^3 + 7x^2 - x + 3 by 3x+23x + 2.

Solution
  • 6x3÷3x=2x26x^3 \div 3x = 2x^2. Subtract 2x2(3x+2)=6x3+4x22x^2(3x + 2) = 6x^3 + 4x^2 to get 3x23x^2. Bring down −x-x.
  • 3x2÷3x=x3x^2 \div 3x = x. Subtract x(3x+2)=3x2+2xx(3x + 2) = 3x^2 + 2x to get −3x-3x. Bring down 33.
  • −3x÷3x=−1-3x \div 3x = -1. Subtract −1(3x+2)=−3x−2-1(3x + 2) = -3x - 2 to get 55.
6x3+7x2−x+3=(3x+2)(2x2+x−1)+56x^3 + 7x^2 - x + 3 = (3x + 2)(2x^2 + x - 1) + 5

7. (Core) Write f(x)=3x3−2x2+5x−1f(x) = \dfrac{3x^3 - 2x^2 + 5}{x - 1} in the form Q(x)+Rx−1Q(x) + \dfrac{R}{x - 1}.

Solution

Synthetic division with a=1a = 1 and a 00 for the missing xx term:

13−2053113116\def\arraystretch{1.3} \begin{array}{r|rrrr} 1 & 3 & -2 & 0 & 5 \\ & & 3 & 1 & 1 \\ \hline & 3 & 1 & 1 & \boxed{6} \end{array}f(x)=3x2+x+1+6x−1,x≠1f(x) = 3x^2 + x + 1 + \frac{6}{x - 1}, \qquad x \ne 1

8. (Challenge) Divide x4+2x3−x+3x^4 + 2x^3 - x + 3 by x2+1x^2 + 1. (Hint: the remainder can be linear.)

Solution

Write the dividend as x4+2x3+0x2−x+3x^4 + 2x^3 + 0x^2 - x + 3 and the divisor as x2+0x+1x^2 + 0x + 1.

  • x4÷x2=x2x^4 \div x^2 = x^2. Subtract x2(x2+1)=x4+x2x^2(x^2 + 1) = x^4 + x^2 to get 2x3−x2−x2x^3 - x^2 - x.
  • 2x3÷x2=2x2x^3 \div x^2 = 2x. Subtract 2x(x2+1)=2x3+2x2x(x^2 + 1) = 2x^3 + 2x to get −x2−3x+3-x^2 - 3x + 3.
  • −x2÷x2=−1-x^2 \div x^2 = -1. Subtract −1(x2+1)=−x2−1-1(x^2 + 1) = -x^2 - 1 to get −3x+4-3x + 4.
  • −3x+4-3x + 4 has degree 11, lower than the divisor’s degree 22, so we stop.
x4+2x3−x+3=(x2+1)(x2+2x−1)+(−3x+4)x^4 + 2x^3 - x + 3 = (x^2 + 1)(x^2 + 2x - 1) + (-3x + 4)

9. (Challenge) A box has volume V(x)=2x3+11x2+17x+6V(x) = 2x^3 + 11x^2 + 17x + 6 cubic centimetres and height x+2x + 2 centimetres. Find an expression for the area of its base, then factor it to find possible expressions for the length and width.

Solution

Volume is base area times height, so divide V(x)V(x) by x+2x + 2, using a=−2a = -2:

−2211176−4−14−62730\def\arraystretch{1.3} \begin{array}{r|rrrr} -2 & 2 & 11 & 17 & 6 \\ & & -4 & -14 & -6 \\ \hline & 2 & 7 & 3 & \boxed{0} \end{array}

The remainder is 00, so the base area is 2x2+7x+32x^2 + 7x + 3 square centimetres. Factoring, 2x2+7x+3=(2x+1)(x+3)2x^2 + 7x + 3 = (2x + 1)(x + 3), so the base could be 2x+12x + 1 cm by x+3x + 3 cm.