How to use the calculator
Type the polynomial you want to divide in the first field and the one you divide by in the second, the way
you would on a calculator: x^3 - 2x^2 - 4 and x - 3. The multiplication sign is optional, so 2x and
3(x + 1) work. The quotient, the remainder and the working appear as you type.
Both polynomials have to use the same letter. A plain number is fine in either field, but x in one and y
in the other cannot be divided. The address bar keeps both polynomials, so a link opens the same division
again.
Long division, step by step
Polynomial division works like ordinary long division, with powers of x instead of tens and units. At each step you look only at the leading terms: what does the divisor’s first term need to be multiplied by to make the dividend’s? That is the next term of the quotient. Multiply the whole divisor by it, subtract the product and carry on with what is left. You are done when what is left has a lower degree than the divisor. What is left is the remainder.
Dividing x³ − 2x² − 4 by x − 3:
| Step | Left to divide | New quotient term | Subtract | Left after |
|---|---|---|---|---|
| 1 | x³ − 2x² − 4 | x² | x²(x − 3) = x³ − 3x² | x² − 4 |
| 2 | x² − 4 | x | x(x − 3) = x² − 3x | 3x − 4 |
| 3 | 3x − 4 | 3 | 3(x − 3) = 3x − 9 | 5 |
The quotient is x² + x + 3 and the remainder 5. That means x³ − 2x² − 4 = (x² + x + 3)(x − 3) + 5, and multiplying out the right-hand side gives the dividend back. That is the easiest way to check the answer. The method and more examples are on the polynomial division formula page.
When the division comes out even
A remainder of 0 means the divisor is a factor of the dividend. x² − 1 divided by x − 1 is x + 1 with nothing left over, so x² − 1 = (x + 1)(x − 1). The calculator says so instead of showing a remainder.
This is how you factor a cubic. Find a root by trying values such as x = 1 or x = −2. If p(a) = 0, then x − a is a factor by the factor theorem. Divide it out, and what is left is a quadratic the equation solver can finish.
The remainder without dividing
When the divisor is x − a you do not need to divide to find the remainder. The remainder theorem says it is p(a). In the example above a = 3, and p(3) = 27 − 18 − 4 = 5, the same remainder the division gave. The calculator does the whole division anyway, because the quotient is usually what you need.
Common mistakes
- Forgetting a missing term. x³ − 2x² − 4 has no x term. Working by hand, write in 0x so the columns line up.
- Subtracting only the first term. The whole product is subtracted, and a minus in front of a bracket changes the sign of every term inside it.
- Stopping too early or too late. You are done when what is left has a lower degree than the divisor, not before and not after.
Common questions
What happens if I divide by zero?
It cannot be done, any more than with numbers. The calculator says so instead of calculating, even when
the divisor only becomes zero after simplifying, as with x − x.
Can the quotient contain fractions?
Yes. Divide x + 1 by 2x + 1 and the quotient is ½ with remainder ½. The calculator shows fractions
exactly, never as rounded decimals.
What if the dividend has a lower degree than the divisor?
Then the quotient is 0 and the whole dividend is the remainder, just as 3 divided by 7 is 0 remainder 3.