Mathwords logoMathwords

AM-GM Inequality — Definition, Formula & Example

The AM-GM Inequality is the rule that, for nonnegative numbers, the ordinary average is always greater than or equal to the geometric mean. The two are equal only when all the numbers are the same.

For any nonnegative real numbers x1,x2,…,xnx_1, x_2, \ldots, x_n, x1+x2+⋯+xnn≥x1x2⋯xnn,\frac{x_1 + x_2 + \cdots + x_n}{n} \ge \sqrt[n]{x_1 x_2 \cdots x_n}, with equality if and only if x1=x2=⋯=xnx_1 = x_2 = \cdots = x_n. For two numbers, it follows from (a−b)2≥0(\sqrt{a} - \sqrt{b})^2 \ge 0, because a+b2−ab=(a−b)22\frac{a+b}{2} - \sqrt{ab} = \frac{(\sqrt{a} - \sqrt{b})^2}{2}.

Key Formula

a+b2≥ab,a,b≥0\frac{a + b}{2} \ge \sqrt{ab}, \qquad a, b \ge 0
Where:
  • a,ba, b = Any two nonnegative real numbers
  • a+b2\frac{a+b}{2} = The arithmetic mean (ordinary average) of a and b
  • ab\sqrt{ab} = The geometric mean of a and b. Equality holds exactly when a = b

Worked Example

Problem: You want to fence a rectangular dog pen with an area of 100 square feet. What is the least amount of fencing you need, and what dimensions give it?
Step 1: Let the length be LL and the width be WW, both positive, with LW=100LW = 100. Apply AM-GM to LL and WW, then multiply both sides by 2.
L+W≥2LW=2100=20L + W \ge 2\sqrt{LW} = 2\sqrt{100} = 20
Step 2: The perimeter is 2(L+W)2(L + W). Doubling the bound from Step 1 gives a lower bound for the fencing.
P=2(L+W)≥2(20)=40P = 2(L + W) \ge 2(20) = 40
Step 3: Equality in AM-GM requires L=WL = W. Combined with LW=100LW = 100, this gives a square, so the bound of 40 feet is actually reached.
L=W=100=10L = W = \sqrt{100} = 10
Answer: You need at least 40 feet of fencing. The minimum occurs with a 10 ft by 10 ft square pen.

Why It Matters

AM-GM lets you solve optimization problems without calculus. When a product is fixed, it gives the smallest possible sum. When a sum is fixed, it gives the largest possible product. It appears constantly in math competitions such as the AMC and AIME, and it is a standard tool for proving other inequalities in precalculus and analysis.

Common Mistakes

Mistake: Applying AM-GM to negative numbers, such as a=−4a = -4 and b=−1b = -1.
Correction: The inequality requires nonnegative numbers. Here the arithmetic mean is −2.5-2.5, but (−4)(−1)=2\sqrt{(-4)(-1)} = 2, so the inequality fails. Check that every quantity is nonnegative before you use AM-GM.

Related Terms