Skip to content
Tutorials Center
My learning

Topics

Lesson 13 of 37 · Polynomial and Rational Functions

Polynomial Division and the Remainder Theorem

Divide polynomials by long and synthetic division, apply the Remainder and Factor Theorems, and find rational zeros with the Rational Root Theorem.

Factoring a quadratic is easy. Factoring a cubic or quartic is harder, because there is no simple pattern. The trick is to find one zero, divide it out, and be left with a lower-degree polynomial. This lesson gives you the three tools: polynomial division, the Remainder Theorem and the Rational Root Theorem.

Long division of polynomials

Polynomial long division works just like long division of numbers. To divide x³ - 2x² - 5x + 6 by x - 3:

  1. Divide the leading terms: x³ / x = x². Write x². Multiply back: x²(x - 3) = x³ - 3x². Subtract (the x³ terms cancel and -2x² + 3x² = x²), then bring down the rest: x² - 5x + 6.
  2. Divide x² / x = x. Multiply back: x² - 3x. Subtract: -2x + 6.
  3. Divide -2x / x = -2. Multiply back: -2x + 6. Subtract: 0.

The quotient is x² + x - 2 and the remainder is 0. In general,

P(x) = D(x)·Q(x) + R(x)

where the remainder R has smaller degree than the divisor D. When R = 0, D divides P exactly.

Synthetic division

When dividing by a linear factor x - c, synthetic division is a fast shortcut that uses only coefficients.

For x³ - 2x² - 5x + 6 divided by x - 3, write c = 3 and the coefficients 1, -2, -5, 6:

Text
3 |  1   -2   -5    6
  |       3    3   -6
  ----------------------
     1    1   -2    0

Bring down 1. Multiply by 3 and add to the next coefficient: -2 + 3 = 1. Repeat: -5 + 3 = -2, then 6 + (-6) = 0. The bottom row gives the quotient x² + x - 2 and remainder 0.

The algorithm is short enough to code in a few lines.

Python Synthetic division in Python

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The Remainder and Factor Theorems

Remainder Theorem: when P(x) is divided by x - c, the remainder equals P(c).

So you can evaluate a polynomial by dividing. For P(x) = 2x³ - 3x² + 5 and c = 2: P(2) = 16 - 12 + 5 = 9, so the remainder on dividing by x - 2 is 9.

Factor Theorem: (x - c) is a factor of P(x) if and only if P(c) = 0 (remainder zero).

This turns "is this a factor?" into "does it evaluate to zero?".

The Rational Root Theorem

Which numbers should you try? For a polynomial with integer coefficients,

P(x) = aₙxⁿ + ... + a₀ (with a₀ ≠ 0),

any rational zero p/q (in lowest terms) has p dividing a₀ and q dividing aₙ.

Example: 2x³ - 3x² - 11x + 6. Here a₀ = 6 and aₙ = 2. Candidates: ±1, ±2, ±3, ±6 and ±1/2, ±3/2. Testing finds P(3) = 54 - 27 - 33 + 6 = 0, so x = 3 is a zero. Dividing leaves 2x² + 3x - 2 = (2x - 1)(x + 2), so the full factorization is (x - 3)(2x - 1)(x + 2) with zeros 3, 1/2 and -2.

The theorem lists possible rational zeros. It says nothing about irrational zeros such as √2.

Python Find rational zeros automatically

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Factoring completely with SymPy

Use SymPy to confirm: it factors over the rationals and divides polynomials too.

Python Check division and factoring

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the remainder when x³ - 4x + 1 is divided by x - 2?

    By the Remainder Theorem it equals P(2) = 8 - 8 + 1 = 1.
  2. 2. P(5) = 0 for a polynomial P. Which must be a factor of P(x)?

    By the Factor Theorem, P(c) = 0 means (x - c) is a factor.
  3. 3. Which is a possible rational zero of 3x³ - x² + 4x - 2?

    p divides -2 and q divides 3, so ±2/3 is allowed. ±1/2 has q = 2, which does not divide 3, and ±4 does not divide 2.
  4. 4. In the identity P(x) = D(x)Q(x) + R(x), how does R compare with D?

    Division stops when the remainder has lower degree than the divisor.

Summary

  • Long division works like numbers; synthetic division is a coefficient-only shortcut for x - c.
  • Remainder Theorem: dividing by x - c leaves P(c).
  • Factor Theorem: P(c) = 0 if and only if (x - c) divides P.
  • Rational Root Theorem: candidates are ±p/q with p | a₀ and q | aₙ.

Next: Rational Functions and Asymptotes