AM–GM: proofs, equality conditions, and five worked problems

Original publication: Updated:

The inequality and its equality condition

For nonnegative real numbers a,ba,b,

a+b2≥ab,\frac{a+b}{2}\ge\sqrt{ab},

with equality exactly when a=ba=b. The arithmetic mean is the average of the numbers; the geometric mean is the square root of their product. A short proof is

a+b2−ab=12(a−b)2≥0.\frac{a+b}{2}-\sqrt{ab}=\frac12(\sqrt a-\sqrt b)^2\ge0.

The square vanishes exactly when a=ba=b.

A geometric picture

Take a circle of diameter a+ba+b, and divide that diameter into lengths aa and bb. The perpendicular half-chord at the division point has length ab\sqrt{ab} by the intersecting-chords theorem. It cannot exceed the radius (a+b)/2(a+b)/2; equality occurs when the division point is the center, or a=ba=b.

A circle with diameter divided into lengths a and b; the perpendicular half-chord has length square root of ab and the radius is (a+b)/2.

The degenerate cases a=0a=0 or b=0b=0 follow directly from the algebraic inequality.

The general form

For nn nonnegative numbers,

a1+⋯+ann≥(a1⋯an)1/n,\boxed{\frac{a_1+\cdots+a_n}{n}\ge(a_1\cdots a_n)^{1/n},}

with equality exactly when all numbers are equal.

Here is a proof using eu≥1+ue^u\ge1+u, whose equality condition is u=0u=0. This auxiliary inequality follows because eu−1−ue^u-1-u decreases before zero, increases afterward, and is zero at zero.

The exponential curve lies above its tangent line y=x+1 and meets it at x=0.

Let MM be the arithmetic mean. If M=0M=0, all the numbers are zero and the conclusion is immediate. If M>0M>0, apply the auxiliary inequality with u=ak/M−1u=a_k/M-1 and multiply the resulting nonnegative inequalities:

∏k=1nakM≤exp⁡(∑k=1nakM−n)=1.\prod_{k=1}^n\frac{a_k}{M} \le\exp\left(\sum_{k=1}^n\frac{a_k}{M}-n\right)=1.

Thus a1⋯an≤Mna_1\cdots a_n\le M^n. If any ak=0a_k=0 while M>0M>0, the AM–GM inequality is strict. Otherwise equality in the product requires equality in every exponential inequality, hence ak=Ma_k=M for all kk.

Three checks when using AM–GM for an extremum

Check that the terms are nonnegative, obtain a bound independent of the free variables, and verify that equality is attainable under all constraints.

For instance, when x>0x>0,

x+1x≥2,x+\frac1x\ge2,

with equality at x=1x=1, so the minimum is two. If the domain were x≥2x\ge2, that equality point would be unavailable; the minimum would instead be 5/25/2 at x=2x=2.

A moving lower bound is not a minimum

For x>0x>0, AM–GM correctly gives

x2+1x≥2x,x^2+\frac1x\ge2\sqrt x,

with equality at x=1x=1. It does not prove that the minimum is two, because the right side changes with xx.

The graph of x squared+1/x touches 2 square root of x at x=1, but its own minimum occurs at a different point.

Instead, split the reciprocal:

x2+1x=x2+12x+12x≥3143=343.x^2+\frac1x=x^2+\frac1{2x}+\frac1{2x} \ge3\sqrt[3]{\frac14}=\frac3{\sqrt[3]4}.

Equality requires x2=1/(2x)x^2=1/(2x), giving x=1/23>0x=1/\sqrt[3]2>0. This proves the stated constant is the minimum.

Problem 1: divide first, then complete a useful pair

For x>−1x>-1, minimize (x2+x+4)/(x+1)(x^2+x+4)/(x+1).

Polynomial division gives

x2+x+4x+1=x+4x+1=(x+1)+4x+1−1.\frac{x^2+x+4}{x+1}=x+\frac4{x+1} =(x+1)+\frac4{x+1}-1.

Both terms in the pair are positive, with product four. Therefore

(x+1)+4x+1−1≥4−1=3.(x+1)+\frac4{x+1}-1\ge4-1=3.

Equality requires (x+1)2=4(x+1)^2=4 and x+1>0x+1>0, so x=1x=1. Hence the minimum is three, attained at one. Adding and subtracting one created a pair with a constant product.

Problem 2: maximize by bounding a reciprocal

For x>0x>0, maximize x/(x2−x+4)x/(x^2-x+4).

The denominator is (x−1/2)2+15/4>0(x-1/2)^2+15/4>0, so the fraction is positive. Its reciprocal satisfies

x2−x+4x=x+4x−1≥4−1=3.\frac{x^2-x+4}{x}=x+\frac4x-1\ge4-1=3.

Equality occurs at x=4/xx=4/x, or x=2x=2. Taking reciprocals reverses the inequality between these positive numbers, giving

max⁡xx2−x+4=13(x=2).\boxed{\max\frac{x}{x^2-x+4}=\frac13\quad(x=2).}

The constant in the completed square is 15/415/4; the source's different constant is a typographical error.

Problem 3: exploit homogeneity

For x,y>0x,y>0, maximize

x2+xy+y2x2−xy+y2.\frac{x^2+xy+y^2}{x^2-xy+y^2}.

Divide numerator and denominator by y2y^2, and set t=x/y>0t=x/y>0. Every positive tt is attainable. Then

t2+t+1t2−t+1=1+2t+1/t−1≤1+22−1=3.\frac{t^2+t+1}{t^2-t+1} =1+\frac2{t+1/t-1}\le1+\frac2{2-1}=3.

The denominator is positive. Equality holds exactly when t=1t=1, or x=yx=y. Thus the maximum is three, attained for every positive equal pair. Homogeneity reduced two free variables to their ratio.

Problem 4: a triangle with a moving point

Let O=(0,0)O=(0,0), A=(0,1)A=(0,1), B=(1,0)B=(1,0), and C=(t,0)C=(t,0), where 0<t<10<t<1. Choose DD on segment ABAB so that ∠ACO=∠BCD\angle ACO=\angle BCD. Find the maximum area of triangle ACDACD.

Triangle with A=(0,1), B=(1,0), C=(t,0), and D on AB, with equal angles marked at C.

The slope of CACA is −1/t-1/t, so the equal-angle condition gives slope 1/t1/t for CDCD. Intersect

y=1−x,y=x−tty=1-x,\qquad y=\frac{x-t}{t}

to obtain

D=(2t1+t,1−t1+t).D=\left(\frac{2t}{1+t},\frac{1-t}{1+t}\right).

These coordinates do lie on ABAB for 0<t<10<t<1. The determinant area formula gives

[ACD]=t(1−t)1+t=3−(t+1+2t+1)≤3−22.\begin{aligned} [ACD]&=\frac{t(1-t)}{1+t} =3-\left(t+1+\frac2{t+1}\right)\\ &\le3-2\sqrt2. \end{aligned}

Equality requires (t+1)2=2(t+1)^2=2, so t=2−1t=\sqrt2-1, which lies in the allowed interval. Therefore

max⁡[ACD]=3−22.\boxed{\max[ACD]=3-2\sqrt2.}

Problem 5: minimize a tetrahedron volume

Let OABCOABC be a regular tetrahedron of side one, and let GG satisfy

4OG→=OA→+OB→+OC→.4\overrightarrow{OG}=\overrightarrow{OA}+\overrightarrow{OB}+\overrightarrow{OC}.

Points P,Q,RP,Q,R lie in the interiors of OA,OB,OCOA,OB,OC, respectively, with

OP→=pOA→,OQ→=qOB→,OR→=rOC→,0<p,q,r<1.\overrightarrow{OP}=p\overrightarrow{OA},\qquad \overrightarrow{OQ}=q\overrightarrow{OB},\qquad \overrightarrow{OR}=r\overrightarrow{OC},\qquad0<p,q,r<1.

Suppose GG lies in triangle PQRPQR. Prove 1/p+1/q+1/r=41/p+1/q+1/r=4, find the perpendicular foot HH from RR to plane OABOAB, and minimize the volume of OPQROPQR.

The plane condition

The vectors along the three edges at OO are linearly independent. Expressing GG using OP,OQ,OROP,OQ,OR gives

OG→=14pOP→+14qOQ→+14rOR→.\overrightarrow{OG}=\frac1{4p}\overrightarrow{OP} +\frac1{4q}\overrightarrow{OQ} +\frac1{4r}\overrightarrow{OR}.

Membership in the affine plane PQRPQR means these coefficients sum to one. Thus

1p+1q+1r=4.\boxed{\frac1p+\frac1q+\frac1r=4.}

The coefficients are positive, so when the equation holds, GG is indeed inside the triangle, not merely on its extended plane.

The perpendicular foot

Write OH=s OA+t OBOH=s\,OA+t\,OB in vector notation. Each edge vector has length one, and their pairwise inner products are 1/21/2. The conditions RH⋅OA=RH⋅OB=0RH\cdot OA=RH\cdot OB=0 become

s+t2−r2=0,s2+t−r2=0.s+\frac t2-\frac r2=0,\qquad \frac s2+t-\frac r2=0.

Hence s=t=r/3s=t=r/3, and

OH→=r3(OA→+OB→).\boxed{\overrightarrow{OH}=\frac r3(\overrightarrow{OA}+\overrightarrow{OB}).}

Notice the minus signs on the rr terms; they are required because RH=OH−ORRH=OH-OR. Computing the squared length yields ∣RH∣2=2r2/3|RH|^2=2r^2/3.

The volume bound

The base OPQOPQ has area pq3/4pq\sqrt3/4, and the height is r2/3r\sqrt{2/3}. Therefore

V=212pqr.V=\frac{\sqrt2}{12}pqr.

AM–GM applied to the positive reciprocals gives

4=1p+1q+1r≥31pqr3,pqr≥(34)3.4=\frac1p+\frac1q+\frac1r\ge3\sqrt[3]{\frac1{pqr}}, \qquad pqr\ge\left(\frac34\right)^3.

Equality is attained at p=q=r=3/4p=q=r=3/4, which satisfies the segment constraints and the triangle condition. Thus

Vmin⁡=92256.\boxed{V_{\min}=\frac{9\sqrt2}{256}.}

In each problem, the bound alone is only part of the solution. Its equality condition is what turns an inequality into an attained minimum or maximum.

Related articles

About the author

Koki Saito

Physician and graduate of the University of Tokyo Faculty of Medicine. Drawing on his entrance-exam experience, he explains how to choose mathematical methods and construct complete solutions.

Full profile →

Have a question or spotted an error? Contact us.