two clean real roots
- a (coefficient of x squared)
- 1
- b (coefficient of x)
- -5
- c (constant)
- 6
Rootsx = 3 and x = 2
Roots 2 and 3, checked against Vieta's formulas
Open this exampleA quadratic solved with the discriminant, the vertex and both roots, including complex ones. A negative discriminant is a conjugate pair rather than an error, and reporting it as no solution is simply wrong.
Also called: quadratic formula calculator, solve ax2+bx+c.
The discriminant is 1, so there are two real roots: x = 3 and x = 2. The parabola turns at (2.5, -0.25).
The discriminant, b squared minus four a c, decides everything before any root is computed. Positive means the parabola crosses the axis twice; zero means it touches once; negative means it never crosses and the roots are a complex conjugate pair. Vieta gives a free check: the roots must sum to minus b over a and multiply to c over a, and both are shown so the answer can be verified without redoing the arithmetic.
x = (-b +/- sqrt(b^2 - 4ac)) / 2aEach of these is asserted on every build. If a change to the engine ever moved one of these answers, the build would fail before the page could print it.
Rootsx = 3 and x = 2
Roots 2 and 3, checked against Vieta's formulas
Open this exampleRootsx = 0 + 1i and x = 0 - 1i
The case most calculators report wrongly as no solution
Open this exampleRootsx = 2 and x = 2
boundary: the discriminant is exactly zero
Open this exampleFormula version 1.0.0 · definition 1.0.0 · India · Report a problem with this calculator