Polynomial Long Division Notes
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.
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
See Example 3 Hide Example 3
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 \(6x^{2} + x - 2\) goes inside the division bracket and the divisor \(2x - 1\) goes outside it.
| \(2x - 1\) | \(6x^{2}\) | \(+\) | \(x\) | \(-\) | \(2\) |
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^{2 - 1} = x\), so the division takes at most \(2\) rounds, one for each power from there down to the number.
| \(2x - 1\) | \(6x^{2}\) | \(+\) | \(x\) | \(-\) | \(2\) |
Step 2a
Step 2a - Work through the first round.
In this problem: Divide the leading terms: \(\frac{6x^{2}}{2x} = 3x\), which goes on top. Multiply it back: \(3x\left(2x - 1\right) = 6x^{2} - 3x\), written under the matching powers. Subtract column by column: \(6x^{2} - 6x^{2} = 0\) and \(x - (-3x) = 4x\), and \(-2\) is brought down.
| \(3x\) | ||||||
| \(2x - 1\) | \(6x^{2}\) | \(+\) | \(x\) | \(-\) | \(2\) | |
| \(-\) | \(6x^{2}\) | \(-\) | \(3x\) | |||
| \(4x\) | \(-\) | \(2\) |
Step 2b
Step 2b - Work through the second round.
In this problem: Divide the leading terms: \(\frac{4x}{2x} = 2\), which goes on top. Multiply it back: \(2\left(2x - 1\right) = 4x - 2\), written under the matching powers. Subtract column by column: \(4x - 4x = 0\) and \(-2 - (-2) = 0\).
| \(3x\) | \(+\) | \(2\) | ||||
| \(2x - 1\) | \(6x^{2}\) | \(+\) | \(x\) | \(-\) | \(2\) | |
| \(-\) | \(6x^{2}\) | \(-\) | \(3x\) | |||
| \(4x\) | \(-\) | \(2\) | ||||
| \(-\) | \(4x\) | \(-\) | \(2\) | |||
| \(0\) |
Step 3
Step 3 - Write the quotient and the remainder.
In this problem: The terms on top make the quotient, \(3x + 2\), and the bottom line, \(0\), is the remainder, so the divisor goes in exactly.
Final Answer
See Example 4 Hide Example 4
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^{4} - 1\) goes inside the division bracket and the divisor \(x^{2} + x\) goes outside it. Every missing power is written with a \(0\) so each power keeps its own column, giving \(x^{4} + 0x^{3} + 0x^{2} + 0x - 1\).
| \(x^{2} + x\) | \(x^{4}\) | \(+\) | \(0x^{3}\) | \(+\) | \(0x^{2}\) | \(+\) | \(0x\) | \(-\) | \(1\) |
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^{4 - 2} = x^{2}\), so the division takes at most \(3\) rounds, one for each power from there down to the number.
| \(x^{2} + x\) | \(x^{4}\) | \(+\) | \(0x^{3}\) | \(+\) | \(0x^{2}\) | \(+\) | \(0x\) | \(-\) | \(1\) |
Step 2a
Step 2a - Work through the first round.
In this problem: Divide the leading terms: \(\frac{x^{4}}{x^{2}} = x^{2}\), which goes on top. Multiply it back: \(x^{2}\left(x^{2} + x\right) = x^{4} + x^{3}\), written under the matching powers. Subtract column by column: \(x^{4} - x^{4} = 0\), \(0x^{3} - x^{3} = -x^{3}\) and \(0x^{2} - 0x^{2} = 0\), and \(0x\) and \(-1\) are brought down.
| \(x^{2}\) | ||||||||||
| \(x^{2} + x\) | \(x^{4}\) | \(+\) | \(0x^{3}\) | \(+\) | \(0x^{2}\) | \(+\) | \(0x\) | \(-\) | \(1\) | |
| \(-\) | \(x^{4}\) | \(+\) | \(x^{3}\) | \(+\) | \(0x^{2}\) | |||||
| \(-\) | \(x^{3}\) | \(+\) | \(0x^{2}\) | \(+\) | \(0x\) | \(-\) | \(1\) |
Step 2b
Step 2b - Work through the second round.
In this problem: Divide the leading terms: \(\frac{-x^{3}}{x^{2}} = -x\), which goes on top. Multiply it back: \(-x\left(x^{2} + x\right) = -x^{3} - x^{2}\), written under the matching powers. Subtract column by column: \(-x^{3} - (-x^{3}) = 0\), \(0x^{2} - (-x^{2}) = x^{2}\) and \(0x - 0x = 0\), and \(-1\) is brought down.
| \(x^{2}\) | \(-\) | \(x\) | ||||||||
| \(x^{2} + x\) | \(x^{4}\) | \(+\) | \(0x^{3}\) | \(+\) | \(0x^{2}\) | \(+\) | \(0x\) | \(-\) | \(1\) | |
| \(-\) | \(x^{4}\) | \(+\) | \(x^{3}\) | \(+\) | \(0x^{2}\) | |||||
| \(-\) | \(x^{3}\) | \(+\) | \(0x^{2}\) | \(+\) | \(0x\) | \(-\) | \(1\) | |||
| \(-\) | \(-\) | \(x^{3}\) | \(-\) | \(x^{2}\) | \(+\) | \(0x\) | ||||
| \(x^{2}\) | \(+\) | \(0x\) | \(-\) | \(1\) |
Step 2c
Step 2c - Work through the third round.
In this problem: Divide the leading terms: \(\frac{x^{2}}{x^{2}} = 1\), which goes on top. Multiply it back: \(1\left(x^{2} + x\right) = x^{2} + x\), written under the matching powers. Subtract column by column: \(x^{2} - x^{2} = 0\), \(0x - x = -x\) and \(-1 - 0 = -1\).
| \(x^{2}\) | \(-\) | \(x\) | \(+\) | \(1\) | ||||||
| \(x^{2} + x\) | \(x^{4}\) | \(+\) | \(0x^{3}\) | \(+\) | \(0x^{2}\) | \(+\) | \(0x\) | \(-\) | \(1\) | |
| \(-\) | \(x^{4}\) | \(+\) | \(x^{3}\) | \(+\) | \(0x^{2}\) | |||||
| \(-\) | \(x^{3}\) | \(+\) | \(0x^{2}\) | \(+\) | \(0x\) | \(-\) | \(1\) | |||
| \(-\) | \(-\) | \(x^{3}\) | \(-\) | \(x^{2}\) | \(+\) | \(0x\) | ||||
| \(x^{2}\) | \(+\) | \(0x\) | \(-\) | \(1\) | ||||||
| \(-\) | \(x^{2}\) | \(+\) | \(x\) | \(+\) | \(0\) | |||||
| \(-\) | \(x\) | \(-\) | \(1\) |
Step 3
Step 3 - Write the quotient and the remainder.
In this problem: The terms on top make the quotient, \(x^{2} - x + 1\), and the bottom line, \(-x - 1\), 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