Key facts
- Polynomial long division finds Q(x) and R(x) with P(x) = D(x) × Q(x) + R(x), where R has a lower degree than D.
- (x³ − 2x² − 4) ÷ (x − 3) = x² + x + 3, remainder 5.
- Missing powers count as zero: x³ − 2x² − 4 has 0x, which must be included in the working.
- If the remainder is 0, the divisor is a factor of the dividend.
- For divisors of the form x − c, synthetic division gives the same answer with less writing.
How polynomial long division works
- Divide the leading term of what is left by the leading term of the divisor. That is the next term of the quotient.
- Multiply the whole divisor by that term.
- Subtract the result from what is left.
- Repeat until what is left has a lower degree than the divisor. That leftover is the remainder.
The calculator’s step table shows each quotient term, what is subtracted and what remains.
How to enter polynomials
- Use ^ for powers: 2x^3 + 3x^2 − x + 5. You can also type superscripts such as x³.
- Or enter coefficients from the highest power down, separated by commas: 1, 0, −1 means x² − 1.
- Decimals and fractions are fine; the result stays exact.
- Only one variable, x, is supported.
Worked examples: polynomial division
Example 1: a linear divisor
(x³ − 2x² + 0x − 4) ÷ (x − 3).
- x³ ÷ x = x². Subtract x²(x − 3) = x³ − 3x² to leave x² + 0x − 4.
- x² ÷ x = x. Subtract x(x − 3) = x² − 3x to leave 3x − 4.
- 3x ÷ x = 3. Subtract 3(x − 3) = 3x − 9 to leave 5.
Quotient x² + x + 3, remainder 5. So the division equals x² + x + 3 + 5 ÷ (x − 3).
Example 2: a quadratic divisor
(2x³ + 3x² − x + 5) ÷ (x² + 1) gives quotient 2x + 3 and remainder −3x + 2. Check: (x² + 1)(2x + 3) − 3x + 2 = 2x³ + 3x² − x + 5.
Example 3: an exact division
(x² − 1) ÷ (x − 1) = x + 1 with no remainder, so x − 1 is a factor of x² − 1.
Example 4: coefficient lists
Dividend 1, 0, −1 and divisor 1, 1 means (x² − 1) ÷ (x + 1) = x − 1.
The division algorithm
For any polynomials P and D (with D not zero), there are unique polynomials Q and R such that:
P(x) = D(x) × Q(x) + R(x), with deg R < deg DThe degree of the quotient is deg P − deg D. In Example 1 that is 3 − 1 = 2.
Why divide polynomials?
- Factoring: once you know one root r, dividing by x − r leaves a smaller polynomial to factor.
- Simplifying rational functions before graphing or integrating.
- Finding slant asymptotes: the quotient of a rational function whose numerator is one degree higher is its slant asymptote.
- Partial fractions in calculus start with a division when the numerator’s degree is too high.
Common mistakes with polynomial division
- Skipping missing powers. Write 0x or 0x² as placeholders, or the columns get out of line.
- Sign errors when subtracting. Subtracting −3x² means adding 3x².
- Stopping too early or too late. Stop exactly when the degree of what is left is less than the degree of the divisor.
For divisors like x − c, try the synthetic division calculator. For factoring quadratics, use the factoring trinomials calculator, and for dividing whole numbers, the long division calculator.
Polynomial division and the codes in your phone
Dividing polynomials works like long division of numbers, with powers of x in place of place value, and it rests on the polynomial remainder theorem: dividing P(x) by (x − r) leaves remainder P(r). The Euclidean algorithm works for polynomials too, finding their greatest common divisor by repeated division, a fact used throughout algebra and computer algebra systems such as Mathematica and SymPy.
Polynomial division has a surprising everyday role. Cyclic redundancy checks (CRCs), which detect errors in Ethernet frames, ZIP files and storage, work by dividing a message, treated as a polynomial with binary coefficients, by a fixed generator polynomial and appending the remainder. Reed–Solomon codes, invented by Irving Reed and Gustave Solomon in 1960, use polynomial arithmetic over finite fields to correct errors in QR codes, CDs, DVDs and deep-space communication from probes such as Voyager. In US high schools, Common Core standard A-APR.D.6 asks students to rewrite rational expressions using long division of polynomials. For dividing by a linear factor faster, use the synthetic division calculator; to find roots of the quotient, the quadratic formula calculator or the cubic equation calculator.
How this calculator works
- Divides the leading term, multiplies back, subtracts and brings down the next term, repeating until the remainder’s degree is less than the divisor’s.
- Shows each step, the quotient Q(x), the remainder R(x) and the degrees.
- The result is also written as Q(x) + R(x) ÷ D(x), with the check P(x) = D(x) × Q(x) + R(x).
- Missing powers must be entered as zero coefficients.
Frequently asked questions
How do you divide polynomials?
Use long division: divide leading terms, multiply the divisor, subtract and repeat until the remainder has a lower degree than the divisor.
What is (x³ − 2x² − 4) ÷ (x − 3)?
x² + x + 3 with remainder 5.
What does a remainder of 0 mean?
The divisor is a factor of the dividend.
How do I handle missing terms?
Insert them with a coefficient of 0, for example x³ + 0x² + 0x − 4.
How do I write the answer with a remainder?
Quotient + remainder ÷ divisor, such as x² + x + 3 + 5 ÷ (x − 3).
When can I use synthetic division instead?
When the divisor is linear with leading coefficient 1, like x − 3.
What is the degree of the quotient?
The degree of the dividend minus the degree of the divisor.
Can the divisor have a higher degree than the dividend?
Yes, but then the quotient is 0 and the remainder is the whole dividend.