Math Calculators
Quadratic Equation Solver
Solve ax² + bx + c = 0 for real or complex roots. Shows the discriminant, both roots, the vertex of the parabola, and step-by-step solution. Free, runs in your browser.
Solution
Two real rootsShow step-by-step solution
ax² + bx + c = 0
1x² + -3x + 2 = 0
Discriminant = b² − 4ac = -3² − 4 × 1 × 2 = 1
√discriminant = 1
x = (−-3 ± 1) / (2 × 1)
x₁ = 2
x₂ = 1
Vertex: (1.5, -0.25)
Parabola: 1x² + -3x + 2
| x | f(x) = 1x² + -3x + 2 |
|---|---|
| -3.5000 | 24.7500 |
| -2.3889 | 14.8735 |
| -1.2778 | 7.4660 |
| -0.1667 | 2.5278 |
| 0.9444 | 0.0586 |
| 2.0556 | 0.0586 |
| 3.1667 | 2.5278 |
| 4.2778 | 7.4660 |
| 5.3889 | 14.8735 |
| 6.5000 | 24.7500 |
The quadratic formula
For any equation of the form ax² + bx + c = 0, the solutions are:
x = (−b ± √(b² − 4ac)) / 2a
Interpreting the discriminant
| Discriminant (b²−4ac) | Root type |
|---|---|
| Positive (> 0) | Two distinct real roots |
| Zero (= 0) | One repeated real root (tangent to x-axis) |
| Negative (< 0) | Two complex conjugate roots (no real x-intercepts) |
The vertex of the parabola
The vertex (h, k) is the turning point of the parabola y = ax² + bx + c:
h = −b / 2a k = c − b² / 4a
When a > 0 the parabola opens upward and the vertex is a minimum. When a < 0 it opens downward and the vertex is a maximum.
Completing the square
The quadratic formula is derived by completing the square on ax² + bx + c = 0:
- Divide through by a: x² + (b/a)x + c/a = 0
- Move the constant: x² + (b/a)x = −c/a
- Add (b/2a)² to both sides: (x + b/2a)² = (b² − 4ac) / 4a²
- Take the square root and solve for x to get the quadratic formula.
Understanding this derivation helps students connect the formula to the structure of the parabola.
Worked examples
| Equation | Discriminant | Roots |
|---|---|---|
| x² − 5x + 6 = 0 | 25 − 24 = 1 > 0 | x = 2, x = 3 (two real roots) |
| x² − 4x + 4 = 0 | 16 − 16 = 0 | x = 2 (repeated root) |
| x² + x + 1 = 0 | 1 − 4 = −3 < 0 | x = (−1 ± i√3) / 2 (complex pair) |
Graphing connection
Every part of ax² + bx + c corresponds to a geometric property of the parabola:
- The roots (solutions) are the x-intercepts — where the parabola crosses the x-axis.
- The vertex formula (h = −b/2a) gives the turning point and axis of symmetry.
- The sign of a determines orientation: a > 0 opens upward (minimum); a < 0 opens downward (maximum).