A quadratic equation has the unknown squared, and no higher power: ax² + bx + c = 0, where a ≠ 0. Unlike a linear equation, it can have two solutions, one, or none among the real numbers. This lesson covers the three ways to solve it and how the discriminant tells you in advance what kind of answer to expect.
In this lesson you will learn
- Solving by factorisation
- Solving by completing the square
- Using the quadratic formula
- Reading the discriminant b² − 4ac
- The sum and product of the roots
You should know how to factorise by splitting the middle term, from Algebraic Formulas and Factorisation.
Method 1: Factorisation
If a product is 0, at least one of the factors must be 0. So once a quadratic is factorised, each bracket gives a solution, called a root.
x² − 5x + 6 = 0
(x − 2)(x − 3) = 0
x − 2 = 0 or x − 3 = 0
x = 2 or x = 3
Always rearrange so that one side is 0 before factorising. For x² = 5x, write x² − 5x = 0, so x(x − 5) = 0, giving x = 0 or x = 5. Dividing both sides by x would lose the root x = 0.
Method 2: Completing the Square
Rewrite the left side as a perfect square plus a number. Add the square of half the x coefficient to both sides.
x² + 6x − 7 = 0
x² + 6x = 7
x² + 6x + 9 = 7 + 9 half of 6 is 3, and 3² = 9
(x + 3)² = 16
x + 3 = ±4
x = 1 or x = −7
This method works for every quadratic, and it is how the quadratic formula is derived.
Method 3: The Quadratic Formula
Quadratic formula
For ax² + bx + c = 0: x = (−b ± √(b² − 4ac)) / 2a
2x² + 3x − 2 = 0 a = 2, b = 3, c = −2
b² − 4ac = 9 − 4(2)(−2) = 9 + 16 = 25
x = (−3 ± 5) / 4
x = 2/4 = 1/2 or x = −8/4 = −2
Use the formula when factorising is hard or impossible. Write down a, b and c with their signs first; most mistakes come from a lost minus sign.
The Discriminant
The expression under the square root, D = b² − 4ac, is called the discriminant. It decides the type of roots.
| Discriminant | Roots | Example |
|---|---|---|
| D > 0 | Two different real roots | x² − 5x + 6 = 0: D = 1, roots 2 and 3 |
| D = 0 | One repeated real root | x² − 4x + 4 = 0: D = 0, root 2 (twice) |
| D < 0 | No real roots | x² + x + 1 = 0: D = −3 |
If D is a perfect square (0, 1, 4, 9, 25, …) and a, b, c are integers, the roots are rational and the quadratic can be factorised with whole numbers.
Sum and Product of the Roots
If the roots of ax² + bx + c = 0 are α and β:
- α + β = −b/a
- αβ = c/a
For 2x² + 3x − 2 = 0 the roots are 1/2 and −2. Their sum is −3/2 = −b/a and their product is −1 = c/a. These formulas are a fast way to check your roots.
A Word Problem
A rectangle’s length is 3 m more than its width, and its area is 40 m². Find its sides.
Let the width be w m. Length = w + 3.
w(w + 3) = 40
w² + 3w − 40 = 0
(w + 8)(w − 5) = 0
w = 5 or w = −8
A width cannot be negative, so w = 5 m and the length is 8 m.
Check: 5 × 8 = 40 ✓
In word problems, reject roots that make no sense, such as a negative length or a fraction of a person.
Common Mistakes
- Not setting the equation to 0 before factorising. (x − 2)(x − 3) = 6 does not mean x − 2 = 6.
- Dividing by x and losing the root x = 0.
- Forgetting the ± when taking a square root.
- Dividing only the √ part by 2a. The whole numerator, −b ± √D, is divided by 2a.
Practice Exercises
Exercise 1. Solve x² − 7x + 10 = 0 by factorisation.
Show answer
(x − 2)(x − 5) = 0, so x = 2 or x = 5.
Exercise 2. Solve 3x² − 5x − 2 = 0 with the formula.
Show answer
D = 25 + 24 = 49. x = (5 ± 7)/6, so x = 2 or x = −1/3.
Exercise 3. For which value of k does x² + kx + 9 = 0 have equal roots? (k > 0)
Show answer
Equal roots need D = 0: k² − 36 = 0, so k = 6 (the question asks for k > 0). Then x² + 6x + 9 = (x + 3)², with the repeated root −3.
Frequently Asked Questions
What happens when the discriminant is negative?
There are no real roots, because no real number squares to a negative. At HSC level you meet complex numbers, which give such equations two complex roots.
What does a quadratic look like on a graph?
y = ax² + bx + c is a U-shaped curve called a parabola (upside down when a < 0). Its roots are where it crosses the x-axis: twice, once (touching) or not at all, matching D > 0, D = 0 and D < 0.
Summary
- Set the equation to 0, then factorise, complete the square or use the formula.
- x = (−b ± √(b² − 4ac)) / 2a works for every quadratic.
- D = b² − 4ac: positive gives two roots, zero gives one, negative gives none (real).
- α + β = −b/a and αβ = c/a.
Next: Trigonometric Ratios.
