Proofs of the AM-GM Inequality
At a glance
- 1. State the inequality
For nonnegative numbers, their arithmetic mean is at least their geometric mean.
- 2. Check two numbers
The identity (√a − √b)² ≥ 0 proves the two-number case.
- 3. Extend to n numbers
Use concavity of the logarithm or maximize the product at a fixed sum.
- 4. Check equality
Equality holds exactly when all the numbers are equal.
The arithmetic mean–geometric mean inequality (AM-GM) compares the average of nonnegative numbers with the geometric mean of those numbers. It is useful in optimization and in proofs where sums and products appear together.
For , the inequality is
Equality holds if and only if . Here are several ways to prove it, from a one-line argument for two numbers to general proofs for any finite number of terms.
Proof for two numbers
For , a square is always nonnegative:
Expanding and rearranging gives
The square is zero exactly when , which gives the equality condition. This proof is often the quickest way to establish AM-GM for two terms.
Proof by maximizing the product at a fixed sum
Fix a sum and consider all nonnegative -tuples with that sum. This set is closed and bounded, so the product has a maximum on it. The maximum is positive: the choice has positive product. Therefore a maximizing tuple cannot have a zero entry.
Suppose two entries of a maximizing tuple are unequal, say . Keep their sum fixed and replace both by their average. Their product changes from to
which is larger because
The other entries and the total sum do not change, so this replacement increases the full product. That contradicts maximality. Thus all entries at the maximum must be equal, and the maximum product is .
For any tuple with sum , its product is therefore at most . Taking nonnegative th roots gives
which is AM-GM. If , every entry is zero and the result is immediate.
Proof using the logarithm
First suppose all . The natural logarithm is concave on the positive real numbers because
The concavity inequality for an average says that the logarithm of the arithmetic mean is at least the mean of the logarithms:
The right-hand side equals . Since is increasing, exponentiating proves AM-GM. Strict concavity shows equality is possible only when all the are equal.
If some , the geometric mean is zero, while the arithmetic mean is nonnegative, so the inequality holds directly. This handles the cases where the logarithm proof cannot be applied.
Worked example
For and , the arithmetic mean is
while the geometric mean is
Thus , as AM-GM predicts. The inequality is strict because the three numbers are not all equal.
Common mistakes
- Mixing up the two means: The arithmetic mean is a sum divided by the number of terms; the geometric mean is the corresponding product raised to the reciprocal of that number.
- Forgetting the domain: The standard real-valued statement assumes nonnegative inputs. The logarithm proof specifically requires positive inputs, so handle zero entries separately.
- Claiming equality too broadly: Equality requires every input to be the same, not merely that some pair of inputs match.
- Using a mismatched number of terms: For three numbers, for example, the geometric mean is , not .
Weighted AM-GM
A useful extension assigns nonnegative weights whose sum is . For positive , concavity of gives
so
The ordinary inequality is the special case . For positive inputs, equality in the weighted version holds when all inputs with positive weight are equal.
References
- Inequalities
- A Course of Pure Mathematics
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.