Quadratic Equation Solver
Solve ax² + bx + c = 0. Roots are exact (fractions when rational, surd form otherwise), and complex roots are reported too.
Equationtwo distinct real roots
1x² + -5x + 6 = 0
Discriminant
1
D = b² − 4ac, two distinct real roots.
Vertex
(5/2, -1/4)
x = −b/2a, the parabola's turning point.
Roots
x = 3≈ 3
x = 2≈ 2
Factored form
(x − 3)(x − 2)
Step-by-step solution
- 1
Identify the coefficients
a = 1, b = −5, c = 6.
- 2
Compute the discriminant
The discriminant is D = b² − 4ac.
- b² = (−5)² = 25
- 4ac = 4 · 1 · 6 = 24
- D = 25 − 24 = 1
- 3
Quadratic formula
x = (−b ± √(b² − 4ac)) / (2a) = (−b ± √D) / (2a).
- 4
Interpret the discriminant
D > 0: two distinct real roots.
- 5
Substitute the values
x = (−(−5) ± √(1)) / (2).
- −b = 5
- 2a = 2
- 6
Simplify the roots
√D = √(1) = 1 is rational, giving two rational roots.
- x₁ = 5/2 + 1/2 = 3
- x₂ = 5/2 − 1/2 = 2
- 7
Factored form
(x − 3)(x − 2)
- 8
Vertex of the parabola
x = −b / (2a) = 5/2, y = c − b² / (4a) = −1/4.
- 9
Solution
Roots: 3, 2.