Skip to content
Tutorial · 7 min read
0% read

How to solve a quadratic equation — step by step (with a worked example)

A quadratic equation has the form ax² + bx + c = 0 with a ≠ 0. You solve it with the quadratic formula: x = (−b ± √(b² − 4ac)) / (2a). Worked example: x² − 5x + 6 = 0 → x₁ = 3, x₂ = 2, in four steps. Suitable for Grade 9 / Year 10 algebra.

Quick answer

Put the equation in the form ax² + bx + c = 0 and substitute into the quadratic formula x = (−b ± √(b² − 4ac)) / (2a). The discriminant D = b² − 4ac tells you the number of solutions. For x² − 5x + 6 = 0: D = 1, so x₁ = 3 and x₂ = 2.

At a glance

Summary of this tutorial
Equationx² − 5x + 6 = 0
MethodQuadratic formula
Steps4
Answerx₁ = 3, x₂ = 2
Check (Vieta)3 + 2 = 5, 3 · 2 = 6 ✓
Grade levelGrade 9 (ages 14–15)

Worked example: x² − 5x + 6 = 0

EXAMPLE
x² − 5x + 6 = 0

Here a = 1, b = −5, c = 6. We first compute the discriminant, then both solutions.

The 4 steps to solve a quadratic equation

These four steps work for any equation of the form ax² + bx + c = 0.

  1. Step 1 · Start

    x² − 5x + 6 = 0
    Standard form with a = 1, b = −5, c = 6.
  2. Step 2 · Discriminant

    D = (−5)² − 4 · 1 · 6 = 1
    D = b² − 4ac. Because D > 0, there are two real solutions.
  3. Step 3 · Formula

    x = (5 ± √1) / 2
    Substitute into the quadratic formula x = (−b ± √D)/(2a).
  4. Step 4 · Answer

    x₁ = 3, x₂ = 2
    Work out both values: (5 + 1)/2 = 3 and (5 − 1)/2 = 2.
  5. Step 5 · Check

    3 + 2 = 5 = −b/a, 3 · 2 = 6 = c/a
    Vieta's formulas confirm the solutions.

Why the quadratic formula works

The quadratic formula is simply the result of completing the square, done once in general. You rewrite ax² + bx + c = 0 as a perfect square and take the square root — the ± appears because a square root allows two signs. The expression D = b² − 4ac sits under that root: when it is negative there is no real root and hence no real solution, when it is zero the two solutions merge into one, and when it is positive you get two distinct values.

Practice it yourself

Frequently asked questions

End of tutorial
Cite this page: LearnMath, "Solving quadratic equations", .