Math Core

Lesson 3.2 · Polynomials

Dividing polynomials

Multiplying polynomials builds bigger ones. Dividing takes them apart, and that's exactly what you need to factor a cubic or a quartic and find its zeros. The good news: polynomial division works just like the long division of numbers you learned in elementary school.

What division tells you

When you divide 437437 by 1212, you get 3636 with remainder 55. That's a compact way of saying

437=12⋅36+5,0≤5<12.437 = 12 \cdot 36 + 5, \qquad 0 \le 5 < 12.

Polynomials follow the same pattern. The remainder has to be "smaller" than the divisor, and for polynomials smaller means lower degree.

The division algorithm

For polynomials P(x)P(x) (the dividend) and D(x)D(x) (the divisor, not zero), there are unique polynomials Q(x)Q(x) (the quotient) and R(x)R(x) (the remainder) with

P(x)=D(x)⋅Q(x)+R(x),P(x) = D(x) \cdot Q(x) + R(x),

where R(x)=0R(x) = 0 or the degree of RR is less than the degree of DD. Equivalently, P(x)D(x)=Q(x)+R(x)D(x)\dfrac{P(x)}{D(x)} = Q(x) + \dfrac{R(x)}{D(x)}.

If the remainder is 00, then D(x)D(x) is a factor of P(x)P(x). When you divide by a linear divisor like x−3x - 3, the remainder is always a constant.

Polynomial long division

Each round of long division has four moves:

  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 the product from what's left.
  4. Bring down the next term and repeat until the degree of what's left is less than the degree of the divisor.

Worked example: Dividing by a linear binomial

Divide 2x3+3x2−8x+52x^3 + 3x^2 - 8x + 5 by x+3x + 3.

stepdividemultiply by x+3x + 3subtract, what's left
12x3÷x=2x22x^3 \div x = 2x^22x3+6x22x^3 + 6x^2−3x2−8x+5-3x^2 - 8x + 5
2−3x2÷x=−3x-3x^2 \div x = -3x−3x2−9x-3x^2 - 9xx+5x + 5
3x÷x=1x \div x = 1x+3x + 322

The degree of 22 is less than the degree of x+3x + 3, so you stop. The quotient is 2x2−3x+12x^2 - 3x + 1 and the remainder is 22:

2x3+3x2−8x+5=(x+3)(2x2−3x+1)+2.2x^3 + 3x^2 - 8x + 5 = (x + 3)(2x^2 - 3x + 1) + 2.

Check by multiplying: (x+3)(2x2−3x+1)=2x3+3x2−8x+3(x + 3)(2x^2 - 3x + 1) = 2x^3 + 3x^2 - 8x + 3, and adding 22 gives the original. ✓

Common mistake

If the dividend skips a power of xx, write that term with a coefficient of 00 before you start. For x4+2x3−x+3x^4 + 2x^3 - x + 3, use x4+2x3+0x2−x+3x^4 + 2x^3 + 0x^2 - x + 3. Skipping the placeholder shifts every later column and wrecks the answer. The same goes for the divisor: x2+1x^2 + 1 is x2+0x+1x^2 + 0x + 1.

Worked example: Dividing by a quadratic

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

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

stepdividemultiply by x2+1x^2 + 1subtract, what's left
1x4÷x2=x2x^4 \div x^2 = x^2x4+x2x^4 + x^22x3−x2−x+32x^3 - x^2 - x + 3
22x3÷x2=2x2x^3 \div x^2 = 2x2x3+2x2x^3 + 2x−x2−3x+3-x^2 - 3x + 3
3−x2÷x2=−1-x^2 \div x^2 = -1−x2−1-x^2 - 1−3x+4-3x + 4

What's left, −3x+4-3x + 4, has degree 11, less than the divisor's degree 22. So

x4+2x3−x+3x2+1=x2+2x−1+−3x+4x2+1.\frac{x^4 + 2x^3 - x + 3}{x^2 + 1} = x^2 + 2x - 1 + \frac{-3x + 4}{x^2 + 1}.

The remainder here is not a constant, which is fine: it only has to have lower degree than x2+1x^2 + 1.

Synthetic division

When the divisor has the form x−cx - c, you can drop the variables and work with coefficients only. This shortcut is called synthetic division.

  1. Write cc in a box on the left and the dividend's coefficients (with 00 placeholders) in a row.
  2. Bring the first coefficient straight down.
  3. Multiply it by cc, write the product under the next coefficient, and add.
  4. Repeat multiply-and-add across the row.

The bottom row gives the quotient's coefficients (one degree lower than the dividend) followed by the remainder.

Worked example: Synthetic division

Divide 2x4−7x3+5x−12x^4 - 7x^3 + 5x - 1 by x−3x - 3.

Here c=3c = 3, and the coefficients are 2,−7,0,5,−12, -7, 0, 5, -1 (notice the 00 for the missing x2x^2 term).

32−705−16−3−9−122−1−3−4−13\begin{array}{r|rrrrr} 3 & 2 & -7 & 0 & 5 & -1 \\ & & 6 & -3 & -9 & -12 \\ \hline & 2 & -1 & -3 & -4 & -13 \end{array}

Bring down 22. Then 2⋅3=62 \cdot 3 = 6 and −7+6=−1-7 + 6 = -1. Next −1⋅3=−3-1 \cdot 3 = -3 and 0+(−3)=−30 + (-3) = -3. Then −3⋅3=−9-3 \cdot 3 = -9 and 5+(−9)=−45 + (-9) = -4. Finally −4⋅3=−12-4 \cdot 3 = -12 and −1+(−12)=−13-1 + (-12) = -13.

The dividend has degree 44, so the quotient has degree 33:

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

Common mistake

For a divisor like x+2x + 2, the number in the box is c=−2c = -2, because x+2=x−(−2)x + 2 = x - (-2). Using +2+2 is the most common synthetic division mistake.

Dividing by ax − b

Synthetic division needs a leading coefficient of 11 in the divisor. For a divisor like 2x−12x - 1, write it as 2(x−12)2\left(x - \tfrac{1}{2}\right). Do synthetic division with c=12c = \tfrac{1}{2}, then divide the quotient (but not the remainder) by 22.

Worked example: A divisor with leading coefficient 2

Divide 6x3−x2−5x+26x^3 - x^2 - 5x + 2 by 2x−12x - 1.

Use c=12c = \tfrac{1}{2}:

126−1−5231−262−40\begin{array}{r|rrrr} \tfrac{1}{2} & 6 & -1 & -5 & 2 \\ & & 3 & 1 & -2 \\ \hline & 6 & 2 & -4 & 0 \end{array}

So 6x3−x2−5x+2=(x−12)(6x2+2x−4)6x^3 - x^2 - 5x + 2 = \left(x - \tfrac{1}{2}\right)(6x^2 + 2x - 4). Move the factor of 22 from the quotient into the divisor:

6x3−x2−5x+2=(2x−1)(3x2+x−2).6x^3 - x^2 - 5x + 2 = (2x - 1)(3x^2 + x - 2).

The quotient is 3x2+x−23x^2 + x - 2 and the remainder is 00, so 2x−12x - 1 is a factor. Long division gives the same result if you prefer it.

Tip

Always check a division by multiplying back: divisor times quotient, plus remainder, must equal the dividend. A faster partial check is to compare the constant terms, or to substitute x=1x = 1 into both sides.

Practice

Practice 1

When x2+5x−14x^2 + 5x - 14 is divided by x−2x - 2, the quotient is x+ax + a and the remainder is 00. Find aa.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Find the remainder when 4x3+2x2−5x+74x^3 + 2x^2 - 5x + 7 is divided by x+1x + 1.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

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

Practice 4

Divide x4−16x^4 - 16 by x−2x - 2.

Practice 5

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

Practice 6

A rectangle has area 2x3+5x2−4x−32x^3 + 5x^2 - 4x - 3 square units and width x+3x + 3 units. What is its length?

Practice 7

When a polynomial P(x)P(x) is divided by x−4x - 4, the quotient is x2+3x−1x^2 + 3x - 1 and the remainder is 55. What is the constant term of P(x)P(x)?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

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