Polynomial Long Division Calculator
This Polynomial Long Division Calculator divides one polynomial by another and shows the working at every step. It follows the same pattern as long division with numbers: the leading term is divided, the result is multiplied back by the whole divisor, and that product is subtracted. The round repeats until what is left has a lower degree than the divisor, and that leftover is the remainder. Following the same pattern every time makes any polynomial division easy to set out and check.
Step-by-step method
- Set up the problem.
- Divide the leading terms, multiply back and subtract, repeating until what is left has a lower degree than the divisor.
- Write the quotient and the remainder.
Required knowledge
- How to divide one power by another, covered in the Quotient Rule for Exponents Calculator.
- How to multiply out a bracket, covered in the Distributive Property Calculator.
- How to subtract like terms, covered in the Combining Like Terms Calculator.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Divide the leading terms, multiply back and subtract, repeating until what is left has a lower degree than the divisor.
- Write the quotient and the remainder.
Step 1
Step 1 - Set up the problem.
In this problem: The dividend \(x^{3} - 2x^{2} + 4\) goes inside the division bracket and the divisor \(x - 3\) goes outside it. Every missing power is written with a \(0\) so each power keeps its own column, giving \(x^{3} - 2x^{2} + 0x + 4\).
| \(x - 3\) | \(x^{3}\) | \(-\) | \(2x^{2}\) | \(+\) | \(0x\) | \(+\) | \(4\) |
Step 2
Step 2 - Divide the leading terms, multiply back and subtract, repeating until what is left has a lower degree than the divisor.
In this problem: Each round finds one term of the quotient. The quotient's highest power is \(x^{3 - 1} = x^{2}\), so the division takes at most \(3\) rounds, one for each power from there down to the number.
| \(x - 3\) | \(x^{3}\) | \(-\) | \(2x^{2}\) | \(+\) | \(0x\) | \(+\) | \(4\) |
Step 2a
Step 2a - Work through the first round.
In this problem: Divide the leading terms: \(\frac{x^{3}}{x} = x^{2}\), which goes on top. Multiply it back: \(x^{2}\left(x - 3\right) = x^{3} - 3x^{2}\), written under the matching powers. Subtract column by column: \(x^{3} - x^{3} = 0\) and \(-2x^{2} - (-3x^{2}) = x^{2}\), and \(0x\) and \(4\) are brought down.
| \(x^{2}\) | ||||||||
| \(x - 3\) | \(x^{3}\) | \(-\) | \(2x^{2}\) | \(+\) | \(0x\) | \(+\) | \(4\) | |
| \(-\) | \(x^{3}\) | \(-\) | \(3x^{2}\) | |||||
| \(x^{2}\) | \(+\) | \(0x\) | \(+\) | \(4\) |
Step 2b
Step 2b - Work through the second round.
In this problem: Divide the leading terms: \(\frac{x^{2}}{x} = x\), which goes on top. Multiply it back: \(x\left(x - 3\right) = x^{2} - 3x\), written under the matching powers. Subtract column by column: \(x^{2} - x^{2} = 0\) and \(0x - (-3x) = 3x\), and \(4\) is brought down.
| \(x^{2}\) | \(+\) | \(x\) | ||||||
| \(x - 3\) | \(x^{3}\) | \(-\) | \(2x^{2}\) | \(+\) | \(0x\) | \(+\) | \(4\) | |
| \(-\) | \(x^{3}\) | \(-\) | \(3x^{2}\) | |||||
| \(x^{2}\) | \(+\) | \(0x\) | \(+\) | \(4\) | ||||
| \(-\) | \(x^{2}\) | \(-\) | \(3x\) | |||||
| \(3x\) | \(+\) | \(4\) |
Step 2c
Step 2c - Work through the third round.
In this problem: Divide the leading terms: \(\frac{3x}{x} = 3\), which goes on top. Multiply it back: \(3\left(x - 3\right) = 3x - 9\), written under the matching powers. Subtract column by column: \(3x - 3x = 0\) and \(4 - (-9) = 13\).
| \(x^{2}\) | \(+\) | \(x\) | \(+\) | \(3\) | ||||
| \(x - 3\) | \(x^{3}\) | \(-\) | \(2x^{2}\) | \(+\) | \(0x\) | \(+\) | \(4\) | |
| \(-\) | \(x^{3}\) | \(-\) | \(3x^{2}\) | |||||
| \(x^{2}\) | \(+\) | \(0x\) | \(+\) | \(4\) | ||||
| \(-\) | \(x^{2}\) | \(-\) | \(3x\) | |||||
| \(3x\) | \(+\) | \(4\) | ||||||
| \(-\) | \(3x\) | \(-\) | \(9\) | |||||
| \(13\) |
Step 3
Step 3 - Write the quotient and the remainder.
In this problem: The terms on top make the quotient, \(x^{2} + x + 3\), and the bottom line, \(13\), is the remainder. Its degree is lower than the divisor's, so the division stops and the remainder is written over the divisor.
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Divide the leading terms, multiply back and subtract, repeating until what is left has a lower degree than the divisor.
- Write the quotient and the remainder.
Step 1
Step 1 - Set up the problem.
In this problem: The dividend \(2x^{3} + 3x^{2} - x + 5\) goes inside the division bracket and the divisor \(x^{2} + 1\) goes outside it.
| \(x^{2} + 1\) | \(2x^{3}\) | \(+\) | \(3x^{2}\) | \(-\) | \(x\) | \(+\) | \(5\) |
Step 2
Step 2 - Divide the leading terms, multiply back and subtract, repeating until what is left has a lower degree than the divisor.
In this problem: Each round finds one term of the quotient. The quotient's highest power is \(x^{3 - 2} = x\), so the division takes at most \(2\) rounds, one for each power from there down to the number.
| \(x^{2} + 1\) | \(2x^{3}\) | \(+\) | \(3x^{2}\) | \(-\) | \(x\) | \(+\) | \(5\) |
Step 2a
Step 2a - Work through the first round.
In this problem: Divide the leading terms: \(\frac{2x^{3}}{x^{2}} = 2x\), which goes on top. Multiply it back: \(2x\left(x^{2} + 1\right) = 2x^{3} + 2x\), written under the matching powers. Subtract column by column: \(2x^{3} - 2x^{3} = 0\), \(3x^{2} - 0x^{2} = 3x^{2}\) and \(-x - 2x = -3x\), and \(5\) is brought down.
| \(2x\) | ||||||||
| \(x^{2} + 1\) | \(2x^{3}\) | \(+\) | \(3x^{2}\) | \(-\) | \(x\) | \(+\) | \(5\) | |
| \(-\) | \(2x^{3}\) | \(+\) | \(0x^{2}\) | \(+\) | \(2x\) | |||
| \(3x^{2}\) | \(-\) | \(3x\) | \(+\) | \(5\) |
Step 2b
Step 2b - Work through the second round.
In this problem: Divide the leading terms: \(\frac{3x^{2}}{x^{2}} = 3\), which goes on top. Multiply it back: \(3\left(x^{2} + 1\right) = 3x^{2} + 3\), written under the matching powers. Subtract column by column: \(3x^{2} - 3x^{2} = 0\), \(-3x - 0x = -3x\) and \(5 - 3 = 2\).
| \(2x\) | \(+\) | \(3\) | ||||||
| \(x^{2} + 1\) | \(2x^{3}\) | \(+\) | \(3x^{2}\) | \(-\) | \(x\) | \(+\) | \(5\) | |
| \(-\) | \(2x^{3}\) | \(+\) | \(0x^{2}\) | \(+\) | \(2x\) | |||
| \(3x^{2}\) | \(-\) | \(3x\) | \(+\) | \(5\) | ||||
| \(-\) | \(3x^{2}\) | \(+\) | \(0x\) | \(+\) | \(3\) | |||
| \(-\) | \(3x\) | \(+\) | \(2\) |
Step 3
Step 3 - Write the quotient and the remainder.
In this problem: The terms on top make the quotient, \(2x + 3\), and the bottom line, \(-3x + 2\), is the remainder. Its degree is lower than the divisor's, so the division stops and the remainder is written over the divisor.
Final Answer
Login and upgrade to Plus to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.