Polynomial Long Division Calculator

Enter a dividend and a divisor to find the quotient and the remainder by long division.

Use one variable, brackets and whole powers.

Use the same variable as the dividend.

Try

Result

You entered(x3+2x+1)÷(x2+1)\left(x^{3} + 2x + 1\right) \div \left(x^{2} + 1\right)

Q(x)=x,R(x)=x+1\displaystyle Q\left(x\right) = x,\quad R\left(x\right) = x + 1

As a mixed expression

x+x+1x2+1\displaystyle x + \frac{x + 1}{x^{2} + 1}

Check

(x2+1)(x)+(x+1)\displaystyle \left(x^{2} + 1\right)\left(x\right) + \left(x + 1\right)
Show the work
  1. Division algorithm for polynomials

    Dividing the dividend PP by the divisor DD gives a quotient QQ and a remainder RR whose degree is smaller than the degree of DD. Here PP has degree 3 and DD has degree 2.

    Using P(x)=D(x) Q(x)+R(x)P\left(x\right) = D\left(x\right)\,Q\left(x\right) + R\left(x\right)

    P(x)=x3+2x+1D(x)=x2+1\begin{gathered} P\left(x\right) = x^{3} + 2x + 1 \\ D\left(x\right) = x^{2} + 1 \end{gathered}
  2. Long division, cycle 1

    Divide the leading term x3x^{3} of what is left by the leading term x2x^{2} of the divisor. This gives xx, the next term of the quotient. Multiply it back through the divisor and subtract, which cancels the leading term.

    (x3+2x+1)−(x3+x)=x+1\left(x^{3} + 2x + 1\right) - \left(x^{3} + x\right) = x + 1
  3. Degree of the remainder

    What is left has degree 1, which is smaller than the degree 2 of the divisor, so no further term of the quotient fits. The division stops and what is left is the remainder RR.

    R(x)=x+1R\left(x\right) = x + 1
  4. Result

    So the quotient is xx and the remainder is x+1x + 1.

Worked examples