Long Division of Polynomials

April 12, 2026

Problem

Divide 2x⁴+3x³−x²+5x−4 by x²+2. Show long division steps like arithmetic.

Explanation

How polynomial long division works

The process is identical to integer long division — divide, multiply, subtract, bring down — but with polynomials instead of numbers.

Step-by-step: (2x4+3x3x2+5x4)÷(x2+2)(2x^4 + 3x^3 - x^2 + 5x - 4) \div (x^2 + 2)

Step 1 — Divide leading terms: 2x4÷x2=2x22x^4 \div x^2 = 2x^2. Write 2x22x^2 in the quotient.

Step 2 — Multiply: 2x2(x2+2)=2x4+4x22x^2 \cdot (x^2 + 2) = 2x^4 + 4x^2.

Step 3 — Subtract from dividend: (2x4+3x3x2)(2x4+4x2)=3x35x2(2x^4 + 3x^3 - x^2) - (2x^4 + 4x^2) = 3x^3 - 5x^2. Bring down +5x+5x.

Step 4 — Repeat. Divide: 3x3÷x2=3x3x^3 \div x^2 = 3x. Multiply: 3x(x2+2)=3x3+6x3x(x^2 + 2) = 3x^3 + 6x. Subtract: (3x35x2+5x)(3x3+6x)=5x2x(3x^3 - 5x^2 + 5x) - (3x^3 + 6x) = -5x^2 - x. Bring down 4-4.

Step 5 — Repeat. Divide: 5x2÷x2=5-5x^2 \div x^2 = -5. Multiply: 5(x2+2)=5x210-5(x^2 + 2) = -5x^2 - 10. Subtract: (5x2x4)(5x210)=x+6(-5x^2 - x - 4) - (-5x^2 - 10) = -x + 6.

Step 6 — Stop. The remainder x+6-x + 6 has degree 1, which is less than the divisor's degree 2.

Result: Quotient=2x2+3x5\text{Quotient} = 2x^2 + 3x - 5, Remainder=x+6\text{Remainder} = -x + 6.

2x4+3x3x2+5x4=(x2+2)(2x2+3x5)+(x+6)2x^4 + 3x^3 - x^2 + 5x - 4 = (x^2 + 2)(2x^2 + 3x - 5) + (-x + 6)

Check: Expand (x2+2)(2x2+3x5)+(x+6)=2x4+3x35x2+4x2+6x10x+6=2x4+3x3x2+5x4(x^2 + 2)(2x^2 + 3x - 5) + (-x + 6) = 2x^4 + 3x^3 - 5x^2 + 4x^2 + 6x - 10 - x + 6 = 2x^4 + 3x^3 - x^2 + 5x - 4

When to use long division vs synthetic

  • Long division: works for ANY divisor (including x2+2x^2 + 2, 2x32x - 3, etc.)
  • Synthetic division: only works when dividing by (xc)(x - c) (linear, leading coefficient 1)

Try it in the visualization

Each step of the long division is shown like arithmetic long division. The quotient builds up term by term, and the remainder decreases in degree at each step.

Interactive Visualization

Parameters

All steps
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Long Division of Polynomials | MathSpin