Expand (x − 2)(x − 3): x² − 3x − 2x + 6 = x² − 5x + 6. Now the other way round: the quadratic x² − 5x + 6 can be written as the product (x − 2)(x − 3). Notice that the numbers 2 and 3 are exactly the roots of the equation x² − 5x + 6 = 0.
That's no coincidence. If you know the roots, you can factorise the quadratic, and the other way round: from the factorised form you can read off the roots straight away.
If the equation ax² + bx + c = 0 has roots x₁ and x₂, then
ax² + bx + c = a · (x − x₁) · (x − x₂)
The brackets (x − x₁) and (x − x₂) are the linear factors of the quadratic. You must not leave out the number a in front of the brackets.
Why does this work? The product a(x − x₁)(x − x₂) is zero exactly when x = x₁ or x = x₂, and its coefficient of x² is a. A quadratic with the same roots and the same a is the same quadratic.
Worked examples
Worked example 1
Factorise x² + x − 12.
Roots of the equation x² + x − 12 = 0: D = 1 + 48 = 49, x = (−1 ± 7) / 2, so x₁ = 3, x₂ = −4.
a = 1, so x² + x − 12 = (x − 3)(x + 4).
Watch the sign: the root −4 gives the factor x − (−4) = x + 4.
x² − 6x + 9 has only one root, 3 (D = 0), so x² − 6x + 9 = (x − 3)(x − 3) = (x − 3)².
When a quadratic cannot be factorised
If D < 0, the equation has no real roots and the quadratic cannot be factorised into linear factors with real numbers. For example x² + x + 1 (D = 1 − 4 = −3).
Building an equation from its roots
The rule also works the other way round: if you know the roots, you build the equation by expanding the brackets.