Nonzero remainder
- Input
- (2x^3 - 3x + 1) / (x^2 + x - 2)
- Expected output
- Q = 2x − 2; R = 3x − 3
Two steps: 2x and −2. The x² term of the dividend goes in as 0x².
polynomial long division calculator
Pick the A ÷ B operation on the Operations tab, type both polynomials and the division appears as long division, row by row. Missing terms go in with a zero coefficient, and the remainder is checked with the identity A = B·Q + R.
Two steps: 2x and −2. The x² term of the dividend goes in as 0x².
Zero remainder: x − 1 is a factor and 1 is a root of the dividend.
Exact fractions in the quotient, no decimals.
It amounts to x⁴ − 1 = (x² + 1)(x² − 1).
No steps: the quotient is zero and the remainder is the dividend.
The remainder 2x − 4 has degree 1, below 2, and the division stops.
Divide the leading term of the dividend by the leading term of the divisor, multiply the result by the whole divisor, subtract it from the dividend and repeat with the running remainder until the remainder has a lower degree than the divisor. Example: (2x³ − 3x + 1) ÷ (x² + x − 2). First 2x³ ÷ x² = 2x; 2x·(x² + x − 2) = 2x³ + 2x² − 4x; what is left is −2x² + x + 1. Then −2x² ÷ x² = −2; −2·(x² + x − 2) = −2x² − 2x + 4; what is left is 3x − 3. Quotient 2x − 2, remainder 3x − 3. Missing terms, like the x² in the dividend, go in with a zero coefficient.
Stop when the remainder is zero or has a lower degree than the divisor. In (4x³ + 2x² − 5) ÷ (2x² − 1), after the second step what is left is 2x − 4, of degree 1, and you can no longer divide by a term in x².
Fill in a zero coefficient, in descending order of degree. That keeps the columns aligned: x³ − 1 becomes x³ + 0x² + 0x − 1. The tool does this automatically and shows the zeros in gray.
Multiply the divisor by the quotient and add the remainder: the result must be the dividend. In (x³ − 6x² + 11x − 6) ÷ (x − 1), (x − 1)(x² − 5x + 6) + 0 = x³ − 6x² + 11x − 6. The Check section does exactly this.
= 2x³ − 3x + 1
= x² + x − 2
Long division
Division stops when the degree of the remainder is less than the degree of the divisor.
Check
All calculation happens in your browser. No polynomial is sent to a server.