Quadratic Equation Solver explained with worked examples
The Quadratic Equation Solver answers three kinds of question, and the clearest way to learn them is to see one of each worked out. Here are the three cases, with the working shown so you can follow every step.
Example 1 — two real roots
Solve x² − 5x + 6 = 0. The discriminant is (−5)² − 4 × 1 × 6 = 25 − 24 = 1, which is positive, so there are two real roots: (5 ± 1) ÷ 2 gives x = 3 and x = 2.
D = 25 − 24 = 1 x = (5 ± 1) ÷ 2 → x = 3 and x = 2
Example 2 — one repeated root
Solve x² − 6x + 9 = 0. The discriminant is (−6)² − 4 × 1 × 9 = 36 − 36 = 0, so the two roots coincide: x = 6 ÷ 2 = 3, counted twice. Check: 3² − 6 × 3 + 9 = 9 − 18 + 9 = 0. The curve just touches the x-axis at x = 3 and turns back.
D = 36 − 36 = 0 x = 6 ÷ 2 = 3 (repeated)
Example 3 — no real roots
Solve x² + 2x + 5 = 0. The discriminant is 2² − 4 × 1 × 5 = 4 − 20 = −16, which is negative, so there are no real roots. The roots are a complex pair: x = (−2 ± √−16) ÷ 2 = −1 ± 2i.
D = 4 − 20 = −16 x = (−2 ± √−16) ÷ 2 = −1 ± 2i
The mistake to avoid
Treating “no real roots” as “no answer”. The equation x² + 2x + 5 = 0 still has two roots, −1 + 2i and −1 − 2i — they are complex, not real. If your homework only asks for real roots, the answer is “none”. But the equation itself is not unsolvable.
Frequently asked questions
What does the discriminant tell me?
When D is positive there are two real roots. When D is zero there is one repeated root. When D is negative there are no real roots, only two complex roots.
Can a quadratic have exactly one root?
Yes, when D = 0 the two roots coincide: x² − 6x + 9 = 0 has the single root x = 3, counted twice.
What are complex roots?
Roots involving i, the square root of −1. For x² + 2x + 5 = 0 they are −1 + 2i and −1 − 2i.
How do I know which example matches my equation?
Work out D = b² − 4ac first. Its sign picks the case before you touch the formula.
More guides on the Quadratic Equation Solver
- How to use the Quadratic Equation Solver — step by step
- Quadratic Equation Solver formula — how it actually works
- Quadratic Equation Solver for beginners — start here
- Common mistakes people make with the Quadratic Equation Solver
- Quadratic Equation Solver vs doing it by hand — which is faster?
- quadratic equation solver — the complete guide
- How to get an accurate result from the Quadratic Equation Solver
- Quadratic Equation Solver for students — with examples
- Quadratic Equation Solver for homeowners and DIYers
Solve a quadratic equation, see the discriminant and both roots — free, in your browser.