Understanding your calculation
Method, example and limitations
How the calculation works
For ax² + bx + c = 0 with a ≠ 0, the roots are (−b ± √(b² − 4ac)) / (2a). The discriminant determines the nature of the roots.
Example to check
x² − 5x + 6 = 0 has discriminant 1 and roots 2 and 3. Substituting either root makes the expression zero.
Before using the result
If a is zero the equation is not quadratic. A negative discriminant has no real roots; complex output depends on the tool’s supported mode.