Stage 12 · Inequalities

12.6  The Basic Inequality

Two ways to average two positive numbers — and why the gap between them unlocks "largest" and "smallest."

For ages 15–17 · Intuition before notation
Knowledge point page

Point 1 of 4 in this lesson: 12.6.1 Two averages, and the tug-of-war between them

12.6.1 Two averages, and the tug-of-war between them

Take two positive numbers, a and b. The arithmetic mean is the one you already know — add them and halve: (a + b)/2. The geometric mean is what you get by multiplying and taking the square root: √(ab). Both are honest "middles." Both sit between a and b. But they are not the same number, and one of them always wins.

The claim — the basic inequality, often called AM–GM — is this:

(a + b)/2√(ab) equivalently   a + b  ≥  2√(ab)   (for a, b > 0)
The arithmetic mean (amber) is never below the geometric mean (green). Doubling both sides gives the form a + b ≥ 2√(ab), which is the version we'll lean on for optimizing.

Why must this be true? Not by magic — by a square. A square of a real number is never negative. Start from the most innocent fact in algebra, (√a − √b)² ≥ 0, and just expand it:

(√a − √b)2 ≥ 0 a − 2√(ab) + b ≥ 0 a + b2√(ab)
Three honest lines. The whole inequality is just "a square is never negative," rearranged. Halving the last line gives (a + b)/2√(ab).

The middle line is the heart of it: (√a − √b)² equals a − 2√(ab) + b, and since that whole thing is ≥ 0, the 2√(ab) can be carried to the other side. One squared quantity does all the work.

Key idea

For positive a and b:  (a + b)/2 ≥ √(ab),  the same as a + b ≥ 2√(ab). It comes straight from (√a − √b)² ≥ 0. The arithmetic mean is the champion; the geometric mean can tie it but never beat it.

There is a close cousin that needs no square roots and works for any real numbers, positive or not. Start from (a − b)² ≥ 0 and expand: a² − 2ab + b² ≥ 0, so

a² + b² ≥ 2ab.

You met this one already, in a smaller costume. Back in 12.1 we compared a² + 1 with 2a and found a² + 1 − 2a = (a − 1)² ≥ 0, so a² + 1 ≥ 2a for every number, with equality only at a = 1. That was just a² + b² ≥ 2ab with b = 1. The basic inequality is the same instinct grown up.

Example · a = 4, b = 16

Arithmetic mean (4 + 16)/2 = 10. Geometric mean √(4 · 16) = √64 = 8. And indeed 10 > 8. The gap is 2. (Try a = b = 9: both means come out 9 — the gap shuts.)

🎮 Try it AM vs GM — two bars
Set two positive numbers. The amber bar is their ordinary average; the green bar is their geometric mean. Watch the amber bar stay ahead — and see the gap snap shut the instant the two numbers are equal.
a 4
b 16
eastmath.com · 12.6 The Basic Inequality · 12.6.1 Two averages, and the tug-of-war between them