Polynomial Roots Calculator Formula
Understand the math behind the polynomial roots calculator. Each variable explained with a worked example.
Formulas Used
Sum Roots
sum_roots = a != 0 ? -b / a : 0Sum Products Pairs
sum_products_pairs = a != 0 ? c / a : 0Product Roots
product_roots = a != 0 ? -d / a : 0Discriminant
discriminant = a != 0 ? 18*a*b*c*d - 4*pow(b,3)*d + pow(b,2)*pow(c,2) - 4*a*pow(c,3) - 27*pow(a,2)*pow(d,2) : 0Variables
| Variable | Description | Default |
|---|---|---|
a | Coefficient a (x³) | 1 |
b | Coefficient b (x²) | -6 |
c | Coefficient c (x) | 11 |
d | Coefficient d (constant) | -6 |
How It Works
Polynomial Roots via Vieta's Formulas
For a Cubic ax³ + bx² + cx + d = 0
Vieta's formulas relate the roots (r₁, r₂, r₃) to the coefficients:
Discriminant
The discriminant tells you about the nature of the roots:
Worked Example
Analyze x³ - 6x² + 11x - 6 = 0 (roots are 1, 2, 3).
a = 1b = -6c = 11d = -6
- 01Sum of roots = -(-6)/1 = 6 (= 1+2+3)
- 02Sum of pairwise products = 11/1 = 11 (= 1×2+1×3+2×3)
- 03Product of roots = -(-6)/1 = 6 (= 1×2×3)
Ready to run the numbers?
Open Polynomial Roots Calculator