How Polynomial Division works
Polynomial long division divides a dividend polynomial A(x) by a divisor polynomial B(x) to produce a quotient Q(x) and a remainder R(x) such that A(x) = B(x) · Q(x) + R(x), with the degree of R(x) strictly less than the degree of B(x). It mirrors ordinary numeric long division, but instead of dividing digits you repeatedly divide, multiply, and subtract leading terms of polynomials.
The long division algorithm, step by step
- Divide the leading term of the current remainder by the leading term of the divisor to get the next quotient term.
- Multiply the entire divisor by that quotient term and subtract the result from the current remainder, canceling the leading term.
- Repeat with the new, lower-degree remainder until its degree is smaller than the divisor's degree — what's left is the final remainder R(x).
Understanding the output
- Quotient and remainder: the quotient Q(x) has degree deg(A) − deg(B); the remainder R(x) always has degree less than deg(B) (or is 0).
- Exact division: if R(x) = 0, the divisor is a factor of the dividend and A(x) = B(x) · Q(x) exactly.
- Checking your answer: multiply B(x) by Q(x) and add R(x) back — the result must equal the original dividend A(x). This catches arithmetic and sign errors.
- Missing powers: if a term is absent (e.g., no x² term), enter 0 as its coefficient so the place values line up correctly.
Synthetic division shortcut
When the divisor is a linear binomial of the form x − c, synthetic division gives the same quotient and remainder as long division but with less writing. This calculator performs the general long-division algorithm, so it also works for quadratic, cubic, or higher-degree divisors where synthetic division does not apply.