Three integer roots
- Input
- x^3 - 6x^2 + 11x - 6
- Expected output
- x = 1, 2, 3
Sum 6 and product 6, as Vieta’s formulas require.
roots of a cubic polynomial
Type the polynomial on the Roots and factoring tab. The tool lists the rational candidates p/q, tests them one by one, removes each root found with synthetic division and solves what is left with the quadratic formula.
Sum 6 and product 6, as Vieta’s formulas require.
Twelve candidates tested; three of them zero the polynomial.
It factors as (x + 2)(x − 1)².
The factor x² + x + 1 has discriminant −3.
The real root is about 1.2599; the complex ones are −0.6300 ± 1.0911i.
It factors as (3x + 2)(2x + 1)(x − 1).
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.
Yes, when the coefficients are real. The graph of a cubic goes from −∞ to +∞ (or the reverse) and crosses the x-axis at least once. The other two roots are either real or a complex conjugate pair.
Then x = 0 is a root and x is a common factor. The tool removes the factor x before testing candidates. In x³ − x, what is left is x² − 1, and the roots are −1, 0 and 1.
Multiply the polynomial by the least common multiple of the denominators to get integer coefficients; the roots do not change. The tool does this step on its own. In x²/2 − 3x/2 + 1, multiplying by 2 gives x² − 3x + 2, with roots 1 and 2.
= 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.