Polynomial Division Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the coefficients of the dividend (degree 4 or less) and of the divisor (degree 1 or 2). Use 0 for a missing term.
Result
Quotient: coefficient of x²
Quotient: coefficient of x³
- Quotient: coefficient of x
- Quotient: constant term
- Remainder: coefficient of x (always 0 for a linear divisor)
- Remainder: constant term
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Dividend: coefficient of x⁴: enter a number.
- Dividend: coefficient of x³: enter a number.
- Dividend: coefficient of x²: enter a number.
- Dividend: coefficient of x: enter a number.
- Dividend: constant term: enter a number.
- Divisor degree: choose Quadratic: d₂x² + d₁x + d₀ or Linear: d₁x + d₀.
- Divisor: coefficient of x² d₂ (quadratic only, not 0): enter a number.
- Divisor: coefficient of x d₁: enter a number.
- Divisor: constant term d₀: enter a number.
- Read the result: Quotient: coefficient of x²; the panel also shows Quotient: coefficient of x³, Quotient: coefficient of x, Quotient: constant term, Remainder: coefficient of x (always 0 for a linear divisor) and Remainder: constant term.
How this calculator works
Polynomial long division finds Q(x) and R(x) such that P(x) = D(x) × Q(x) + R(x), with the degree of R lower than the degree of D. Each step divides the leading term of what is left by the leading term of D, writes that term in the quotient, multiplies it by D and subtracts.
For a quadratic divisor d₂x² + d₁x + d₀ the quotient of a degree-4 dividend is q₂x² + q₁x + q₀ with q₂ = a₄ ÷ d₂, q₁ = (a₃ − q₂d₁) ÷ d₂, q₀ = (a₂ − q₂d₀ − q₁d₁) ÷ d₂; the remainder is (a₁ − q₁d₀ − q₀d₁)x + (a₀ − q₀d₀). A linear divisor gives a cubic quotient and a constant remainder in the same way.
The formula
| Symbol | Meaning |
|---|---|
| Dividend: coefficient of x⁴ | |
| Dividend: coefficient of x³ | |
| Divisor degree (2: Quadratic: d₂x² + d₁x + d₀; 1: Linear: d₁x + d₀) | |
| Divisor: coefficient of x² d₂ (quadratic only, not 0) | |
| Divisor: coefficient of x d₁ | |
| Divisor: constant term d₀ | |
| Quotient: coefficient of x³ | |
| Quotient: coefficient of x² |
Worked example
| Dividend: coefficient of x⁴ | 2 |
|---|---|
| Dividend: coefficient of x³ | 3 |
| Dividend: coefficient of x² | 0 |
| Dividend: coefficient of x | -1 |
| Dividend: constant term | 5 |
| Divisor degree | Quadratic: d₂x² + d₁x + d₀ |
| Divisor: coefficient of x² d₂ (quadratic only, not 0) | 1 |
| Divisor: coefficient of x d₁ | 0 |
| Divisor: constant term d₀ | 1 |
| Quotient: coefficient of x³ | 0 |
|---|---|
| Quotient: coefficient of x | 3 |
| Quotient: constant term | -2 |
| Remainder: coefficient of x (always 0 for a linear divisor) | -4 |
| Remainder: constant term | 7 |
Quotient: coefficient of x² 2
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is (2x⁴ + 3x³ − x + 5) ÷ (x² + 1)?
The quotient is 2x² + 3x − 2 and the remainder is −4x + 7, so 2x⁴ + 3x³ − x + 5 = (x² + 1)(2x² + 3x − 2) − 4x + 7.
How is this different from synthetic division?
Synthetic division only works for a divisor of the form x − r. Long division also handles divisors such as 2x + 1 or x² + 1.