Quadratic equationsFormulBase · formulary masterclass
Analysis · algebra

Quadratic equations

Everyone can recite “minus b plus or minus the square root of delta, all over two a”, and hardly anyone knows where that line comes from. It is nothing more than an algebraic identity: the one you get by completing the square. Once you have seen it, it explains the discriminant, the sum and product of the roots, and the vertex of the parabola.

0What we are looking for

A quadratic equation is written ax² + bx + c = 0, where a is not 0. Solving it means finding where the parabola y = ax² + bx + c crosses the x-axis.

PieceRole
aThe coefficient of x², never zero. Positive, it opens the parabola upwards; negative, downwards.
bThe coefficient of x, which shifts the vertex to the left or to the right.
cThe constant term: the parabola crosses the vertical axis at (0, c).
ΔThe discriminant b² − 4ac, which decides whether there are two roots, one or none.

1Completing the square

The formula does not come out of nowhere. You rewrite ax² + bx + c as a perfect square plus a constant, which lets you isolate x.

Why

In the form ax² + bx + c, x appears twice and cannot be isolated. In the form a(x − α)² + β, it appears only once, inside a square: all that is left is to take a square root. The whole task is getting from one form to the other.

The transformation, step by step
ax² + bx + c = a[(x + b/2a)² − b²/4a²] + c = a(x + b/2a)² − (b² − 4ac)/4a
How

The equation becomes a(x + b/2a)² = Δ/4a, with Δ = b² − 4ac. Divide by a, take the square root of both sides, then isolate x. The ± sign appears because a square has two square roots, one positive and one negative.

The quadratic formula
x = (−b ± √Δ) / 2a    with   Δ = b² − 4ac
A worked example For x² + 6x + 5 = 0, half of 6 is 3, so x² + 6x + 5 = (x + 3)² − 4. The equation becomes (x + 3)² = 4, hence x = −1 or x = −5. Check: 1 − 6 + 5 = 0 and 25 − 30 + 5 = 0.

2What Δ decides

In a(x + b/2a)² = Δ/4a, the left-hand side is a square multiplied by a. The sign of Δ tells you whether the equality can hold at all.

Sign of ΔReal rootsExample
Δ > 0two, distinctx² − 5x + 6 = 0: Δ = 1, roots 2 and 3
Δ = 0one, repeatedx² − 6x + 9 = 0: Δ = 0, root 3
Δ < 0nonex² + 2x + 5 = 0: Δ = −16
Why

No real number has a negative square: if Δ is negative, the equality is impossible. If Δ equals 0, the ± sign no longer makes any difference and the single root −b/2a is called a repeated root. The vertex of the parabola then sits right on the axis.

3Sum and product of the roots

When Δ is positive, the roots x₁ and x₂ satisfy two relations that often let you avoid the square root altogether.

Vieta’s formulas
x₁ + x₂ = −b / a     x₁ · x₂ = c / a
Why

Adding the two roots given by the formula makes the ± vanish: (−b + √Δ)/2a + (−b − √Δ)/2a = −b/a. Multiplying them gives (b² − Δ)/4a² = 4ac/4a² = c/a. For 2x² + 3x − 2 = 0, the roots 1/2 and −2 do indeed give −3/2 and −1.

A factorisation for free Whenever the roots exist, ax² + bx + c = a(x − x₁)(x − x₂). With x² − 5x + 6, you can read off (x − 2)(x − 3) directly, without writing the formula at all.

4Vertex form and vertex

Completing the square also delivers the vertex form, and with it the coordinates of the vertex.

Vertex form
ax² + bx + c = a(x − α)² + β    with   α = −b / 2a   and   β = −Δ / 4a
What

The square (x − α)² vanishes at x = α: the vertex is the point (α, β), a minimum if a is positive, a maximum otherwise. For x² − 4x + 1, α = 2 and β = −3, that is (x − 2)² − 3.

Why

You can reach α another way: the derivative 2ax + b vanishes exactly at x = −b/2a, where the tangent is horizontal (see derivatives and antiderivatives).

5The lab

Vary a, b and c: the discriminant, the roots and the vertex are recomputed, and the parabola is redrawn.

Lab · the parabola and its discriminant
Equation
Discriminant Δ
Roots
Vertex (α, β)
Sum · product
parabolarootsvertex

Sanity check With a = 1, b = −4, c = 1: Δ = 12, roots 2 − √3 and 2 + √3 (about 0.268 and 3.732), sum 4, product 1, vertex (2, −3). The window runs from −6 to 6.

6The traps

Trap 1
Forgetting that a must be non-zero. If a = 0, the equation becomes bx + c = 0 and the formula divides by zero. Everything must also be brought into standard form first: 3x = 2 − x² is written x² + 3x − 2 = 0, so c = −2.
Trap 2
Getting a sign or a fraction wrong. For x² − 5x + 6, b is −5 and (−5)² is 25. The fraction bar runs under both −b and √Δ: x = (−b ± √Δ) / 2a.
Trap 3
Cancelling x. Dividing x² = 3x by x loses the root 0: write x(x − 3) = 0 instead, hence x = 0 or x = 3.
A use outside algebra How many people exchanged 45 handshakes, each shaking hands with everyone else? The number of pairs is n(n − 1)/2 = 45, so n² − n − 90 = 0, with Δ = 361 = 19² and n = 10 (the other root, −9, makes no sense). That is the number of ways of choosing two out of n, seen in combinatorics. The sum 1 + 2 + … + n from sequences, sums and series is also a quadratic in n, and the position of a body under uniformly accelerated motion is a quadratic in t.

7Test yourself

Five questions, one correct answer each time.

8Glossary

TermMeaning
discriminantthe number Δ = b² − 4ac, whose sign fixes the number of real roots
roota value of x that makes the expression zero, in other words a solution of the equation
repeated rootthe single root when Δ = 0, equal to −b/2a; also called a double root
completing the squarerewriting ax² + bx + c as a square plus a constant
vertex formthe form a(x − α)² + β, which gives the vertex; called the canonical form in French textbooks
vertexthe point (α, β), the minimum or maximum of the parabola
Vieta’s formulasx₁ + x₂ = −b/a and x₁ · x₂ = c/a
quadratic formulax = (−b ± √Δ) / 2a; German pupils call it the Mitternachtsformel, the midnight formula