Quadratic Equation Solver · Tutorial

How to solve a quadratic equation with the formula

6 min readintermediateUpdated

Not every quadratic factorises nicely. You will solve x² − 2x − 4 = 0 with the quadratic formula, simplify the square root and compare your answer with the solver's exact result.

What you need

Steps

  1. Identify a, b and c

    Compare x² − 2x − 4 = 0 with ax² + bx + c = 0: a = 1, b = −2 and c = −4. Watch the signs: b is negative.

  2. Work out the discriminant

    b² − 4ac = (−2)² − 4 × 1 × (−4) = 4 + 16 = 20. It is positive but not a perfect square, so there are two irrational roots.

  3. Apply the formula

    x = (−b ± √20) ÷ 2a = (2 ± √20) ÷ 2. Simplify √20 = √(4 × 5) = 2√5, then divide everything by 2.

    x = (2 ± 2√5) ÷ 2 = 1 ± √5
  4. Check with the solver

    Enter 1, −2 and −4. The solver shows x₁ = 1 − √5 and x₂ = 1 + √5, about −1.236 and 3.236, and the graph crosses the x-axis at those points.

Try it yourself

Opens the Quadratic Equation Solver with this tutorial's sample loaded.

Try it now

Common mistakes

Dropping the sign of b
−b means the opposite of b. When b is −2, −b is +2.
Dividing only part of the top by 2a
The whole numerator, −b ± √D, is divided by 2a, not just the square root.

Next steps

Go back to the Quadratic Equation Solver, or keep going with one of these: