AM–GM: Why Multiplication and Addition Are Connected

Imagine that you have 40 meters of fencing and want to enclose a rectangular garden. Should you make it long and narrow, or nearly square? The answer comes from a deceptively simple inequality connecting two ways of averaging numbers: addition and multiplication.

The arithmetic–geometric mean inequality, usually abbreviated AM–GM, says that for nonnegative numbers, their arithmetic mean is at least their geometric mean. It is both an elementary fact about squares and a powerful tool for optimization.

1. Two different kinds of average

For two nonnegative numbers a and b, the arithmetic mean is (a+b)/2, while the geometric mean is (ab)^{1/2}. The AM–GM inequality states

\boxed{\frac{a+b}{2}\ge(ab)^{1/2}.}

Equality holds precisely when a=b. For example, the numbers 2 and 8 have arithmetic mean 5 and geometric mean 4. When the numbers are both 5, the two means agree.

2. First proof: a square cannot be negative

Start with the obvious observation

(a^{1/2}-b^{1/2})^2\ge0.

Expanding and rearranging gives

a+b-2(ab)^{1/2}\ge0,\qquad \frac{a+b}{2}\ge(ab)^{1/2}.

The inequality becomes equality exactly when a^{1/2}=b^{1/2}, or a=b. This short proof also tells us how far apart the two means are:

\frac{a+b}{2}-(ab)^{1/2}=\frac12(a^{1/2}-b^{1/2})^2.

3. A geometric proof: a circle and a right triangle

Draw a semicircle with diameter a+b. Mark a point on its diameter that divides it into segments of lengths a and b. Raise a perpendicular to the semicircle at that point. Let its height be h.

ACBDabhdiameter = a + b
The altitude to the hypotenuse has length h=(ab)^{1/2}, while the semicircle’s radius is (a+b)/2.

Because the angle at D is a right angle (Thales’ theorem), the altitude-to-the-hypotenuse theorem gives

h^2=a\cdot b.

Thus h=(ab)^{1/2}. But no perpendicular segment from the diameter to the semicircle can exceed the radius (a+b)/2. Therefore

(ab)^{1/2}\le\frac{a+b}{2}.

Equality holds when the perpendicular is drawn at the center, which means a=b.

4. A calculus proof: equal numbers maximize the product

Suppose the sum a+b=s is fixed, with a,b\ge0. Write b=s-a. Their product is

P(a)=a(s-a)=sa-a^2.

Differentiate:

P'(a)=s-2a,\qquad P''(a)=-2\lt 0.

The unique maximum occurs at a=s/2, and hence b=s/2. Thus

ab\le\left(\frac{a+b}{2}\right)^2.

Taking square roots recovers AM–GM. The same fact can be seen without calculus by completing the square:

ab=\frac{s^2}{4}-\left(a-\frac s2\right)^2.

5. Back to the garden: why the square wins

A rectangle with sides x and y has perimeter 2x+2y=40, so x+y=20. By AM–GM,

xy\le\left(\frac{x+y}{2}\right)^2=100.

The greatest possible area is 100 square meters, attained when x=y=10. The optimal rectangle is a square.

More generally, for a rectangle of perimeter P, the largest area is P^2/16.

6. The inequality for any number of terms

For n nonnegative numbers a_1,\ldots,a_n, AM–GM says

\boxed{\frac{a_1+\cdots+a_n}{n}\ge(a_1a_2\cdots a_n)^{1/n}.}

Equality holds if and only if all the numbers are equal. For positive numbers there is a particularly elegant proof using logarithms. The function \ln x is concave, since

\frac{d^2}{dx^2}\ln x=-\frac1{x^2}\lt 0.

Concavity tells us that the logarithm of an average is at least the average of the logarithms:

\ln\left(\frac{a_1+\cdots+a_n}{n}\right)\ge\frac{\ln a_1+\cdots+\ln a_n}{n}.

Exponentiating proves the general AM–GM inequality. This is also an application of Jensen’s inequality. If some of the a_i are zero, the general inequality follows immediately because the geometric mean is zero.

7. An unexpected application: three positive numbers with a fixed sum

Suppose x,y,z\gt 0 and x+y+z=12. What is the largest possible product xyz? AM–GM gives

(xyz)^{1/3}\le\frac{x+y+z}{3}=4,\qquad xyz\le64.

Equality holds at x=y=z=4. No derivatives or multivariable optimization are needed.

There is an important qualification: AM–GM applies directly to nonnegative numbers. Also, the equality condition is essential when identifying an actual maximum rather than just an upper bound.

8. Try it yourself

Exercise 1. Two positive numbers have sum 18. What is their largest possible product?

By AM–GM, ab\le((a+b)/2)^2=9^2=81. Equality holds at a=b=9.

Exercise 2. Prove that x+1/x\ge2 for x\gt 0.

Apply AM–GM to x and 1/x: (x+1/x)/2\ge(x(1/x))^{1/2}=1. Equality holds at x=1.

Exercise 3. A box has positive side lengths x,y,z with x+y+z=15. Find the maximum volume.

AM–GM gives xyz\le((x+y+z)/3)^3=5^3=125. The maximum is 125 cubic units, attained by a cube with side length 5.

9. The main idea

AM–GM is more than a comparison of averages. It expresses a principle of balance: when a sum is fixed, making positive quantities more equal tends to increase their product, and complete equality gives the maximum. The principle appears in geometry, calculus, economics, and optimization.

Its simplest proof begins with a square; its general proof connects to the curvature of the logarithm. That is what makes this elementary inequality so useful.

Related Reading

The AM–GM inequality is also a consequence of a more general principle involving convexity and concavity. See Jensen’s Inequality: How Curvature Controls Averages for another perspective on why averages satisfy inequalities.

Leave a Reply

Your email address will not be published. Required fields are marked *