The quadratic formula
Every quadratic equation has the form ax² + bx + c = 0, with a ≠ 0. The formula solves x by first computing the discriminant: Δ = b² − 4ac. The roots are then x = (−b ± √Δ) / (2a).
The three possible cases
| Discriminant | Result |
|---|---|
| Δ > 0 | Two different real roots |
| Δ = 0 | One repeated real root |
| Δ < 0 | Two complex (conjugate) roots |
Worked example
For x² − 5x + 6 = 0: a=1, b=−5, c=6. Δ = 25 − 24 = 1. Roots: x₁ = (5+1)/2 = 3 and x₂ = (5−1)/2 = 2.
Where quadratic equations show up
Besides schoolwork, quadratic equations model projectile trajectories, area calculations, profit optimization in economics problems, and many physics and engineering problems.
Get the equation into standard form first
If you start from 2x² = 8x − 6, move every term to one side: 2x² − 8x + 6 = 0, so a = 2, b = −8, c = 6. Then Δ = 64 − 48 = 16 and x = (8 ± 4) ÷ 4, giving 3 and 1.
Two special outcomes
For x² − 6x + 9 = 0, Δ = 36 − 36 = 0 and the single repeated root is x = 3: the parabola just touches the x-axis. For x² + 2x + 5 = 0, Δ = 4 − 20 = −16, so there are no real roots; the complex pair is −1 ± 2i.
Use the result to check by substitution: plug a root back into the equation and you should get zero, up to rounding when the roots are decimals. For x = 3 in x² − 6x + 9, that gives 9 − 18 + 9 = 0.
Frequently asked questions
What is the discriminant (Δ)?
It is b² − 4ac, which determines how many roots the equation has and what type: two real, one repeated, or two complex.
What happens if a = 0?
The equation stops being quadratic (it becomes linear), so a must be different from zero.
What are complex roots?
When the discriminant is negative, there are no real roots — the solutions involve the imaginary unit i (the square root of −1).
Does this calculator accept negative and decimal numbers?
Yes, coefficients a, b and c can be positive, negative or decimal.