÷

Polynomial Long Division Calculator

Long Division · Synthetic Division · Remainder Theorem · Factor Check

Divide polynomial P(x) by divisor D(x). Get quotient Q(x) and remainder R(x) with P(x) = Q(x)·D(x) + R(x). Full step-by-step visual layout.

Quick Examples

P(x) = —

D(x) = —

What Is Polynomial Long Division?

Polynomial long division is the standard algorithm for dividing one polynomial by another, producing a quotient and a remainder. Just as dividing integers gives a result like 17 ÷ 5 = 3 remainder 2 (meaning 17 = 3 × 5 + 2), dividing polynomials gives P(x) = Q(x) · D(x) + R(x), where R(x) has a lower degree than D(x).

This operation is fundamental in algebra and appears in many areas of mathematics — from factoring polynomials and finding roots, to partial fractions in calculus, to error-correcting codes in computer science.

The Long Division Algorithm Step by Step

To divide polynomial P(x) by D(x):

  1. Divide the leading term of P(x) by the leading term of D(x) to get the first quotient term q₁.
  2. Multiply q₁ by the entire divisor D(x).
  3. Subtract this product from P(x) to obtain a new, lower-degree remainder.
  4. Repeat the process with the new remainder as the new dividend, until the degree of the remainder falls below the degree of D(x).
  5. The accumulated quotient terms form Q(x); the final remainder is R(x).

Example: Dividing (2x² − x − 6) by (x − 2):

StepOperationCurrent Remainder
12x² ÷ x = 2x   (first quotient term)2x² − x − 6
22x × (x − 2) = 2x² − 4x   (subtract)3x − 6
33x ÷ x = 3   (second quotient term)3x − 6
43 × (x − 2) = 3x − 6   (subtract)0

Result: Q(x) = 2x + 3, R = 0. Since R = 0, (x − 2) is a factor of 2x² − x − 6.

Synthetic Division — The Shortcut for Linear Divisors

Synthetic division is a streamlined technique for dividing any polynomial by a linear divisor of the form (x − k). Instead of writing out polynomial expressions at each step, it works only with the coefficients in a compact three-row table:

  • Row 1: Coefficients of the dividend (include zeros for missing degree terms)
  • Row 2: Products computed during division (shifted right)
  • Row 3: Sums — these are the quotient coefficients (last entry is the remainder)

Synthetic division is faster than long division and is the preferred method when dividing by (x − k). However, it cannot be used for divisors of degree 2 or higher — you must use long division in those cases.

The Remainder Theorem

The Remainder Theorem states: when P(x) is divided by (x − k), the remainder R equals P(k). This is a powerful result because it means you can evaluate the remainder without performing any division at all — just substitute k into P(x). Our calculator automatically states this whenever your divisor is linear.

The Factor Theorem

The Factor Theorem follows directly from the Remainder Theorem: (x − k) is a factor of P(x) if and only if P(k) = 0. In other words, if the division yields remainder 0, then k is a root of the polynomial and (x − k) divides it exactly. This is how polynomial factoring works — you test candidate roots and factor them out one at a time.

Applications

  • Factoring polynomials: Use the Rational Root Theorem to identify candidate roots, then synthetic division to confirm them and reduce the degree.
  • Finding all roots: Once a linear factor is confirmed, divide it out to obtain a lower-degree quotient, then find its roots recursively.
  • Partial fraction decomposition: When the numerator degree ≥ denominator degree, long division must be performed first to extract the polynomial part before applying partial fractions for integration.
  • Simplifying rational expressions: Division allows cancellation of common factors in rational functions.
  • Error-correcting codes: Reed-Solomon and CRC codes use polynomial division over finite fields.

Frequently Asked Questions

What is polynomial long division?
Polynomial long division is an algorithm for dividing one polynomial (the dividend) by another (the divisor) to produce a quotient polynomial and a remainder polynomial. It mirrors the standard long division algorithm for integers. Given dividend P(x) and divisor D(x), the result satisfies P(x) = Q(x)·D(x) + R(x), where the degree of R(x) is less than the degree of D(x).
What is synthetic division and when can you use it?
Synthetic division is a shorthand algorithm for dividing a polynomial by a linear factor of the form (x − k). It works only with coefficients in a compact three-row table, making it faster than full long division. Synthetic division can only be used when the divisor is a monic linear polynomial (x − k). For any other divisor form, standard long division is required.
What is the Remainder Theorem?
The Remainder Theorem states that when a polynomial P(x) is divided by a linear divisor (x − k), the remainder equals P(k). You can find the remainder without performing full division — just evaluate the polynomial at x = k. This is extremely useful for quickly checking whether a specific value is a root of the polynomial.
What is the Factor Theorem?
The Factor Theorem is a special case of the Remainder Theorem. It states that (x − k) is a factor of polynomial P(x) if and only if P(k) = 0. Equivalently, when dividing P(x) by (x − k), if the remainder R = 0, then (x − k) divides P(x) exactly, meaning k is a root of P(x).
How do you perform polynomial long division step by step?
Step 1: Divide the leading term of the dividend by the leading term of the divisor to get the first quotient term. Step 2: Multiply this term by the entire divisor. Step 3: Subtract the result from the current dividend. Step 4: Repeat until the degree of the remainder is less than the degree of the divisor. The result satisfies P(x) = Q(x)·D(x) + R(x).
What are rational roots and how does polynomial division help find them?
The Rational Root Theorem states any rational root of a polynomial with integer coefficients must be ±p/q, where p is a factor of the constant term and q is a factor of the leading coefficient. To test a candidate k, divide P(x) by (x − k) using synthetic division. If the remainder is 0, k is a root and (x − k) is a factor, allowing further factoring of the reduced quotient.
How is polynomial division used in partial fraction decomposition?
Partial fraction decomposition is used in calculus to break rational functions into simpler integrable pieces. When the numerator degree is greater than or equal to the denominator degree (improper fraction), you must first perform polynomial long division to extract the polynomial part. The remainder over the divisor then forms the proper fraction that can be decomposed into partial fractions.