Algebra 2

Dividing polynomials

To divide polynomials, use long division: divide the leading terms, multiply, subtract, bring down the next term, and repeat. When the divisor is x−cx - c, synthetic division does the same work using only the coefficients. The remainder theorem says that remainder equals p(c)p(c). The factor theorem follows: x−cx - c is a factor of p(x)p(x) exactly when p(c)=0p(c) = 0.

Updated

The key idea

Dividing polynomials works like long division with numbers. You get a quotient and a remainder, and they always fit this equation:

p(x)=d(x) q(x)+r(x)p(x) = d(x)\,q(x) + r(x)

Here p is what you divide, d is the divisor, q is the quotient and r is the remainder, which has a lower degree than d. When you divide by x−cx - c, the remainder is a single number, and plugging in x=cx = c shows it equals p(c)p(c). That is the remainder theorem.

Worked examples

Example 1: long division with a remainder

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

  1. Divide the leading terms: x3÷x=x2x^3 \div x = x^2. Multiply x2x^2 by the divisor.
    x2(x−3)=x3−3x2x^2(x - 3) = x^3 - 3x^2
  2. Subtract that from the first two terms.
    (x3−4x2)−(x3−3x2)=−x2(x^3 - 4x^2) - (x^3 - 3x^2) = -x^2
  3. Bring down 2x2x to get −x2+2x-x^2 + 2x. Divide: −x2÷x=−x-x^2 \div x = -x. Multiply.
    −x(x−3)=−x2+3x-x(x - 3) = -x^2 + 3x
  4. Subtract.
    (−x2+2x)−(−x2+3x)=−x(-x^2 + 2x) - (-x^2 + 3x) = -x
  5. Bring down 5 to get −x+5-x + 5. Divide: −x÷x=−1-x \div x = -1. Multiply and subtract.
    (−x+5)−(−1)(x−3)=2(-x + 5) - (-1)(x - 3) = 2
  6. Nothing is left to bring down, so 2 is the remainder. Check by multiplying back.
    (x−3)(x2−x−1)+2=x3−4x2+2x+5(x - 3)(x^2 - x - 1) + 2 = x^3 - 4x^2 + 2x + 5

Answer Quotient x2−x−1x^2 - x - 1, remainder 2. So x3−4x2+2x+5x−3=x2−x−1+2x−3\frac{x^3 - 4x^2 + 2x + 5}{x - 3} = x^2 - x - 1 + \frac{2}{x - 3}.

Example 2: synthetic division, then factor

Problem Divide 2x3+3x2−11x−62x^3 + 3x^2 - 11x - 6 by x−2x - 2 and factor the polynomial completely.

  1. For x−2x - 2, use c=2c = 2. Write the coefficients 2, 3, −11-11, −6-6. Bring down the first one: 2.
  2. Multiply by c and add to the next coefficient.
    3+2⋅2=73 + 2 \cdot 2 = 7
  3. Repeat with the new number.
    −11+7⋅2=3-11 + 7 \cdot 2 = 3
  4. Repeat once more. The last number is the remainder.
    −6+3⋅2=0-6 + 3 \cdot 2 = 0
  5. The bottom row 2, 7, 3 gives the quotient 2x2+7x+32x^2 + 7x + 3 (one degree lower). The remainder is 0, so x−2x - 2 is a factor. Factor the quotient.
    2x2+7x+3=(2x+1)(x+3)2x^2 + 7x + 3 = (2x + 1)(x + 3)

Answer Quotient 2x2+7x+32x^2 + 7x + 3, remainder 0, so 2x3+3x2−11x−6=(x−2)(2x+1)(x+3)2x^3 + 3x^2 - 11x - 6 = (x - 2)(2x + 1)(x + 3).

The synthetic division layout for Example 2 (c = 2)
x3x^3x2x^2xxconstant
Coefficients23−11-11−6-6
Add c times the number before4146
Bottom row2730 (remainder)

Example 3: the remainder theorem

Problem Find the remainder when p(x)=x4−3x3+5x−8p(x) = x^4 - 3x^3 + 5x - 8 is divided by x+2x + 2.

  1. x+2x + 2 is x−(−2)x - (-2), so c=−2c = -2. By the remainder theorem, the remainder is p(−2)p(-2). No division needed.
  2. Evaluate carefully with parentheses.
    (−2)4−3(−2)3+5(−2)−8=16+24−10−8=22(-2)^4 - 3(-2)^3 + 5(-2) - 8 = 16 + 24 - 10 - 8 = 22

Answer The remainder is 22.

Example 4 (test-hard): find k so that x - 3 is a factor

Problem For what value of k is x−3x - 3 a factor of p(x)=x3+kx2−4x+12p(x) = x^3 + kx^2 - 4x + 12? Then factor p(x)p(x) completely.

  1. By the factor theorem, p(3)p(3) must be 0.
    27+9k−12+12=027 + 9k - 12 + 12 = 0
  2. Simplify.
    27+9k=027 + 9k = 0
  3. Solve.
    k=−3k = -3
  4. Now p(x)=x3−3x2−4x+12p(x) = x^3 - 3x^2 - 4x + 12. Factor by grouping.
    x3−3x2−4x+12=x2(x−3)−4(x−3)x^3 - 3x^2 - 4x + 12 = x^2(x - 3) - 4(x - 3)
  5. Pull out x−3x - 3 and use the difference of squares.
    x2(x−3)−4(x−3)=(x−3)(x−2)(x+2)x^2(x - 3) - 4(x - 3) = (x - 3)(x - 2)(x + 2)

Answer k=−3k = -3, and p(x)=(x−3)(x−2)(x+2)p(x) = (x - 3)(x - 2)(x + 2).

Common mistakes

  • Skipping a missing power. Dividing 3x3−5x2+43x^3 - 5x^2 + 4 needs coefficients 3, −5-5, 0, 4. Fix: write a 0 for every missing power before you start.
  • Using the wrong sign for c. For x+2x + 2, c is −2-2, not 2. Fix: set the divisor equal to zero and solve: x+2=0x + 2 = 0 gives x=−2x = -2.
  • Subtracting only the first term in long division. (−x2+2x)−(−x2+3x)(-x^2 + 2x) - (-x^2 + 3x) is −x-x, not 5x5x. Fix: put the whole product in parentheses and distribute the minus sign.
  • Reading the quotient's degree wrong. Dividing a cubic by x−cx - c gives a quadratic. Fix: the bottom row starts one power lower than you began with.
  • Using synthetic division for a divisor like x2+1x^2 + 1. Synthetic division only works for divisors of the form x−cx - c. Fix: use long division for anything else.

Quick methods

Practice

5 practice questions

  1. What is the remainder when x3+2x2−5x+1x^3 + 2x^2 - 5x + 1 is divided by x−1x - 1?

    1. −1-1
    2. 11
    3. 77
    4. 99
    Show answer

    Answer: −1-1

    By the remainder theorem, compute p(1)=1+2−5+1=−1p(1) = 1 + 2 - 5 + 1 = -1. The answer 7 is p(−1)p(-1), which uses the wrong sign for c.

  2. Divide 3x3−5x2+43x^3 - 5x^2 + 4 by x−2x - 2. What are the quotient and remainder?

    1. 3x2+x+23x^2 + x + 2, remainder 88
    2. 3x2−11x+223x^2 - 11x + 22, remainder −40-40
    3. 3x+13x + 1, remainder 66
    4. 3x2+x+23x^2 + x + 2, remainder 00
    Show answer

    Answer: 3x2+x+23x^2 + x + 2, remainder 88

    Coefficients 3, −5-5, 0, 4 with c=2c = 2 give the bottom row 3, 1, 2, 8. The remainder 8 also equals p(2)=24−20+4p(2) = 24 - 20 + 4. The −40-40 choice used c=−2c = -2, and 3x+13x + 1 skipped the 0 placeholder.

  3. Which of these is a factor of p(x)=x3−7x−6p(x) = x^3 - 7x - 6?

    1. x−1x - 1
    2. x−2x - 2
    3. x+2x + 2
    4. x+3x + 3
    Show answer

    Answer: x+2x + 2

    p(−2)=−8+14−6=0p(-2) = -8 + 14 - 6 = 0, so x+2x + 2 is a factor. The others give p(1)=−12p(1) = -12, p(2)=−12p(2) = -12 and p(−3)=−12p(-3) = -12, so they are not factors.

  4. When p(x)=x3−2x2+kx+6p(x) = x^3 - 2x^2 + kx + 6 is divided by x−2x - 2, the remainder is 4. What is k?

    1. −5-5
    2. −1-1
    3. 11
    4. 55
    Show answer

    Answer: −1-1

    p(2)=8−8+2k+6=2k+6p(2) = 8 - 8 + 2k + 6 = 2k + 6. Set it equal to 4: 2k=−22k = -2, so k=−1k = -1. Setting p(2)=0p(2) = 0 instead would give k=−3k = -3, which is not the question.

  5. What is the remainder when 2x4−x3+32x^4 - x^3 + 3 is divided by x+1x + 1?

    Show answer

    Answer: 6

    Use c=−1c = -1: 2(−1)4−(−1)3+3=2+1+3=62(-1)^4 - (-1)^3 + 3 = 2 + 1 + 3 = 6. Watch the odd power: (−1)3=−1(-1)^3 = -1, and subtracting it adds 1.

Frequently asked questions

When can I use synthetic division?

Only when you divide by a linear factor of the form x−cx - c, like x−4x - 4 or x+3x + 3. For a divisor such as x2+2x−1x^2 + 2x - 1, use long division. For 2x−12x - 1, use c=12c = \frac{1}{2} and then divide the quotient by 2.

What is the difference between the remainder theorem and the factor theorem?

The remainder theorem says dividing p(x)p(x) by x−cx - c leaves a remainder of p(c)p(c). The factor theorem is the special case where that remainder is 0: then x−cx - c divides evenly and is a factor, and c is a root.

How do I write the answer when there is a remainder?

Write the quotient plus the remainder over the divisor: x2−x−1+2x−3x^2 - x - 1 + \frac{2}{x - 3}. You can also write p(x)=(x−3)(x2−x−1)+2p(x) = (x - 3)(x^2 - x - 1) + 2. Both say the same thing. Your teacher may prefer one form, so check how your class writes it.

How do I find a root to start factoring a cubic?

Try the rational root test: possible rational roots are factors of the constant term divided by factors of the leading coefficient. Test them with p(c)p(c) or synthetic division until one gives 0, then factor the quadratic that is left.

Try asking Ducky

  • “Can you watch me do synthetic division and stop me when I slip?”
  • “Why does plugging in c give the remainder?”
  • “I got a remainder of 7 but the answer is -1. What did I do wrong?”

Free to start. The web app works in any browser, Chromebooks included; the Mac app can also draw on your real screen.