MathLabs
TheoremProved

AM–GM inequality (two numbers)

Statement

For all real numbers a≥0a\ge 0 and b≥0b\ge 0, a+b2≥ab\dfrac{a+b}{2} \ge \sqrt{ab}, with equality exactly when a=ba=b.

Why is it true?

The arithmetic mean a+b2\frac{a+b}{2} treats "spread out" numbers gently, while the geometric mean ab\sqrt{ab} punishes spread: multiplying two very different numbers gives a smaller "typical size" than adding and halving them.

Proof sketch

Start from a fact that is always true: any real square is nonnegative. Apply this to a−b\sqrt{a}-\sqrt{b}, which is a real number since a,b≥0a,b\ge 0: (a−b)2≥0(\sqrt{a}-\sqrt{b})^2 \ge 0.

Expand the square using (u−v)2=u2−2uv+v2(u-v)^2=u^2-2uv+v^2 with u=au=\sqrt a, v=bv=\sqrt b: this gives a−2ab+b≥0a - 2\sqrt{ab} + b \ge 0, i.e. a−2ab+b≥0a - 2\sqrt{ab} + b \ge 0.

Rearrange by adding 2ab2\sqrt{ab} to both sides and then dividing everything by 22 (a positive number, so the direction is preserved): a+b2−ab≥0\dfrac{a+b}{2} - \sqrt{ab} \ge 0, which is exactly a+b2≥ab\dfrac{a+b}{2} \ge \sqrt{ab}.

Equality holds throughout only when the very first step was equality, i.e. (a−b)2=0(\sqrt a-\sqrt b)^2=0, which happens exactly when a=b\sqrt a=\sqrt b, i.e. a=ba=b.

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.