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−2x2−4)÷(x−3)\left(x^{3} - 2x^{2} - 4\right) \div \left(x - 3\right)

Q(x)=x2+x+3,R(x)=5\displaystyle Q\left(x\right) = x^{2} + x + 3,\quad R\left(x\right) = 5

As a mixed expression

x2+x+3+5x−3\displaystyle x^{2} + x + 3 + \frac{5}{x - 3}

Check

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

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

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

    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−4)−(x2−3x)=3x−4\left(x^{2} - 4\right) - \left(x^{2} - 3x\right) = 3x - 4
  4. Long division, cycle 3

    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−4)−(3x−9)=5\left(3x - 4\right) - \left(3x - 9\right) = 5
  5. Degree of the remainder

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

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

    So the quotient is x2+x+3x^{2} + x + 3 and the remainder is 55.

Worked examples