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(x2+5x+6)÷(x+2)\left(x^{2} + 5x + 6\right) \div \left(x + 2\right)

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

As a mixed expression

x+3\displaystyle x + 3

Check

(x+2)(x+3)\displaystyle \left(x + 2\right)\left(x + 3\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 2 and DD has degree 1.

    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)=x2+5x+6D(x)=x+2\begin{gathered} P\left(x\right) = x^{2} + 5x + 6 \\ D\left(x\right) = x + 2 \end{gathered}
  2. Long division, cycle 1

    Divide the leading term x2x^{2} of what is left by the leading term xx 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.

    (x2+5x+6)−(x2+2x)=3x+6\left(x^{2} + 5x + 6\right) - \left(x^{2} + 2x\right) = 3x + 6
  3. Long division, cycle 2

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

    (3x+6)−(3x+6)=0\left(3x + 6\right) - \left(3x + 6\right) = 0
  4. Degree of the remainder

    Nothing is left, so the remainder is 0 and the divisor divides the dividend exactly.

    R(x)=0R\left(x\right) = 0
  5. Result

    So the quotient is x+3x + 3 and the remainder is 00.

Worked examples