Polynomial Long Division Calculator

Type the dividend and the divisor, for example (x^3 + 2x^2 − 5x + 3)/(x − 2).

Example problem, solved below. Type your own above.

Answer

Polynomial division
Q(x)=x2+4x+3,R(x)=9Q(x) = x^{2} + 4x + 3, \quad R(x) = 9

Checked numerically before it is shown

Step-by-step solution

Solve by

Synthetic division

  1. Find a

    The divisor is x − a; set it equal to 0 to find a:

    x−2=0  ⇒  x=2x - 2 = 0 \;\Rightarrow\; x = 2
  2. Coefficients

    Coefficients of the dividend, highest power first (0 for a missing power):

    1,  2,  −5,  31,\; 2,\; -5,\; 3
  3. Bring down

    Bring down the first coefficient:

    b2=1b_{2} = 1
  4. Multiply and add

    Multiply the last number by a and add the next coefficient:

    b1=2+2⋅1=4b_{1} = 2 + 2 \cdot 1 = 4
  5. Multiply and add

    Multiply the last number by a and add the next coefficient:

    b0=−5+2⋅4=3b_{0} = -5 + 2 \cdot 4 = 3
  6. Remainder

    The last multiply-and-add gives the remainder:

    r=3+2⋅3=9r = 3 + 2 \cdot 3 = 9
  7. Table

    The synthetic division table:

    212−532861439\begin{array}{r|rrrr} 2 & 1 & 2 & -5 & 3 \\ & & 2 & 8 & 6 \\ \hline & 1 & 4 & 3 & 9 \end{array}
  8. Read the result

    Quotient and remainder:

    Q(x)=x2+4x+3,R=9Q(x) = x^{2} + 4x + 3, \quad R = 9
  9. Result

    So the division gives:

    x3+2x2−5x+3x−2=x2+4x+3+9x−2\frac{x^{3} + 2x^{2} - 5x + 3}{x - 2} = x^{2} + 4x + 3 + \frac{9}{x - 2}
  10. Check

    Divisor × quotient + remainder gives back the dividend:

    (x−2)⋅(x2+4x+3)+9=x3+2x2−5x−6+9=x3+2x2−5x+3\left(x - 2\right) \cdot \left(x^{2} + 4x + 3\right) + 9 = x^{3} + 2x^{2} - 5x - 6 + 9 = x^{3} + 2x^{2} - 5x + 3

Use the dedicated calculator: Synthetic division calculator →

Try an example

About this solver

How to use

  1. Write the division as (dividend)/(divisor), or as “divide … by …”.
  2. Missing powers are fine: x^3 − 8 is read as x^3 + 0x^2 + 0x − 8.
  3. Coefficients can be integers or fractions; use one variable.

How to type math

To enterType
Powerx^2 x^(n+1)
Rootsqrt(x) \sqrt[3]{x}
Fraction(x+1)/(x-1) \frac{1}{x}
Functionssin(x) ln(x) log_2(x) exp(x)
Absolute value|x| abs(x)
Derivatived/dx x^2 sin x (x^2+x)'
Integral\int x^2 dx \int_0^1 x^2 dx
Limitlim x->0 sin(x)/x \lim_{x\to\infty} 1/x
Degreessin(30°)
System of equations2x+y=5, x-y=1

How it works

Long division repeats three moves: divide the leading term of what is left by the leading term of the divisor, multiply the divisor by that term, and subtract. It stops when what is left has a lower degree than the divisor; that is the remainder.

When the divisor is x − a, synthetic division (Horner’s method) gives the same quotient faster: bring down the first coefficient, then multiply by a and add, one coefficient at a time. The last number is the remainder, which also equals P(a).

Frequently asked questions

Which method is shown first?

The simplest one that applies: synthetic division when the divisor is x − a, with long division next to it; long division for any other divisor. Both give the same quotient and remainder.

How can I check the answer?

Multiply the divisor by the quotient and add the remainder: the result must be the dividend. The solver does this as its last step.

What does a remainder of 0 mean?

The divisor is a factor of the dividend: the dividend equals divisor × quotient.