Maths & numbers

Polynomial long division

Divide two polynomial coefficient lists and inspect quotient and remainder.

Polynomial long division
Esc to restore

Your inputs

Plain coefficients separated by commas or spaces; include zero coefficients. At most degree 20.

Plain coefficients separated by commas or spaces; include zero coefficients. At most degree 20.

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Polynomial long division cancels descending leading terms. The divisor must not be the zero polynomial. Returns quotient and a remainder of lower degree than the divisor; if the dividend has lower degree the quotient is zero. At most degree 20 per input. Tiny floating-point remainders are retained rather than claimed to be exact algebraic factors.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Dividend coefficients
1, 0, -1
Divisor coefficients
1, -1

Example result

Example result
PolynomialPower of XCoefficient
Quotient11
Quotient01
Remainder00