Math - Algebra

Quadratic Equations Explained Simply

Written by Viktor Jonas · Reading time about 6 minutes

You recognise a quadratic equation by the fact that the unknown appears squared and in no higher power. Its graph is always a parabola, and the question about the solutions is the question of where this parabola crosses the x-axis. That can be two points, a single one or none at all — and exactly these three cases make up the topic.

ax² + bx + c = 0  →  x = ( −b ± √(b² − 4ac) ) / (2a) The quadratic formula (in German schools nicknamed the “Mitternachtsformel”, the midnight formula). It always works as long as a is not zero
Key terms

Normal form — x² + px + q = 0, that is, with a = 1 in front.
Discriminant D — the expression under the root, b² − 4ac. It decides the number of solutions.
Root (zero) — an x-value at which the parabola meets the x-axis.
Vertex — the highest or lowest point of the parabola.
Vieta's formulas — for x² + px + q the following holds: x₁ + x₂ = −p and x₁ · x₂ = q.

Two formulas, the same thing

At school two formulas are in circulation, and many people take them for different methods. They are not. The p-q formula is just the quadratic formula for the special case a = 1. If you first divide an equation like 2x² + 6x − 8 = 0 by 2, you end up with x² + 3x − 4 = 0 and may use the shorter formula. If you want to avoid the dividing, you take the quadratic formula straight away. Both give the same result.

x² + px + q = 0  →  x = −p/2 ± √( (p/2)² − q ) p-q formula — only valid if there is a 1 in front of the x²

The decisive part of both formulas is the expression under the root. It is called the discriminant because it discriminates — discriminare is Latin for to distinguish. If it is positive, there are two different roots and therefore two solutions. If it is exactly zero, the two solutions coincide: the parabola touches the x-axis instead of crossing it. If it is negative, there is no solution among the real numbers, because you cannot take the square root of a negative number. The parabola then floats completely above or below the axis.

D > 0: two roots D = 0: one root D < 0: no real root

Three parabolas with two, one and no roots

Example 1: 2x² − 8x + 6 = 0
a = 2, b = −8, c = 6
D = (−8)² − 4 · 2 · 6 = 64 − 48 = 16
x = ( 8 ± √16 ) / 4 = ( 8 ± 4 ) / 4
x₁ = 3, x₂ = 1

Example 2: x² − 6x + 9 = 0
D = 36 − 36 = 0
x = 6/2 = 3 (double solution)

Example 3: x² + 2x + 5 = 0
D = 4 − 20 = −16 → no real solution
What the discriminant tells you
D = b² − 4acSolutionsThe parabola …
D > 0two differentcrosses the x-axis twice
D = 0one doubletouches the x-axis at the vertex
D < 0no real solutiondoes not meet the x-axis

When you do not need a formula at all

Two types can be solved in your head, and it is worth checking for them first. If the constant term is missing, that is, in ax² + bx = 0, you factor out x: x(ax + b) = 0. A product is zero when one factor is zero — so x = 0 or x = −b/a. If instead the linear term is missing, as in x² − 49 = 0, you take the square root directly and get x = ±7. The plus-minus is especially often forgotten here.

Vieta's formulas are also practical. For x² + px + q = 0 the sum of the solutions is −p and their product is q. For x² − 7x + 12 = 0 you are therefore looking for two numbers that add up to 7 and multiply to 12 — those are 3 and 4. Done, without a formula. For problems with whole-number solutions this is often the quickest way, and it also serves as a check for a result from the formula.

💬 Mia asks Grandpa Theo

Mia

Why is it called the “midnight formula” in German, of all things?

Grandpa Theo

Because you are supposed to know it so well that you could recite it at midnight if someone woke you up. A teacher's saying, not a mathematical term.

Mia

And if there is something negative under the root — is the problem broken then?

Grandpa Theo

No, the answer is simply: no real solution. Later you will learn about complex numbers, where there are solutions after all. At school, though, you simply write down at that point that none exists.

Common mistakes

Using the p-q formula although there is no 1 in front of the x²
First divide by a, otherwise nonsense comes out.
Forgetting the sign of b
For b = −8 the formula contains −(−8) = +8.
Giving only the positive solution when taking the square root
x² = 49 has two solutions, +7 and −7.
Not bringing the equation to zero
Both formulas assume that there is a zero on the right of the equals sign.
Practice problem

A rectangular flower bed is 3 m longer than it is wide and has an area of 40 m². How wide is it?

Show solution

Width x, length x + 3, area x(x + 3) = 40
x² + 3x − 40 = 0
p-q formula with p = 3 and q = −40:
x = −1.5 ± √(2.25 + 40) = −1.5 ± √42.25 = −1.5 ± 6.5
x₁ = 5, x₂ = −8
There is no such thing as a negative width, so the bed is 5 m wide and 8 m long. Check: 5 · 8 = 40 m².
Remember: with word problems you always have to check whether the solutions make sense — mathematics delivers both, reality only one.

Quadratic equations are the entry point to everything that comes after: vertex form, families of parabolas, later the roots of polynomial functions. If you can reliably tell the three cases of the discriminant apart, you have got the hardest part behind you.

← Back to overview