Inequalities

Study Sheet

Inequalities

AM–GM, Cauchy–Schwarz, smoothing

The Essential Inequalities

Tip
AM–GM and Cauchy–Schwarz

AM–GM: ∑ain≥∏ain\dfrac{\sum a_i}{n}\ge\sqrt[n]{\prod a_i}. Cauchy–Schwarz: (∑aibi)2≤(∑ai2)(∑bi2)\left(\sum a_ib_i\right)^2\le\left(\sum a_i^2\right)\left(\sum b_i^2\right).

In plain terms. AM–GM says an average beats a geometric mean; Cauchy–Schwarz bounds a "dot product" by the sizes of the two lists. Together they settle most olympiad inequalities.

Example. By AM–GM, a+b+c≥3abc3a+b+c\ge 3\sqrt[3]{abc}; if abc=1abc=1 this gives a+b+c≥3a+b+c\ge 3.

Concept
Rearrangement and smoothing

A sum ∑aibi\sum a_ib_i is largest when both sequences are sorted the same way; "smoothing" nudges variables toward equality while keeping the constraint.

In plain terms. Pair big with big to maximize a sum of products; to find an extreme, gently push the variables together and watch the value improve.

Example. To maximize abab with a+b=10a+b=10 fixed, smoothing pushes toward a=b=5a=b=5, giving the maximum 2525.

Good-to-Know Inequalities

Tip
Titu’s lemma (Cauchy, Engel form)

x12a1+x22a2+⋯+xn2an ≥ (x1+x2+⋯+xn)2a1+a2+⋯+an\dfrac{x_1^2}{a_1}+\dfrac{x_2^2}{a_2}+\cdots+\dfrac{x_n^2}{a_n}\ \ge\ \dfrac{(x_1+x_2+\cdots+x_n)^2}{a_1+a_2+\cdots+a_n} for positive denominators, with equality when the xiai\tfrac{x_i}{a_i} are all equal.

In plain terms. Any sum of "squares over things" is at least the square of the summed tops over the summed bottoms — the fastest tool for minimizing sums of fractions under a linear constraint.

Example. With a+b+c=20a+b+c=20: 4a+9b+25c≥(2+3+5)220=5\dfrac4a+\dfrac9b+\dfrac{25}{c} \ge \dfrac{(2+3+5)^2}{20} = 5, met at (4,6,10)(4,6,10).

Tip
The QM–AM–GM–HM chain

For positive reals: ∑ai2n ≥ ∑ain ≥ ∏ain ≥ n∑1ai\sqrt{\dfrac{\sum a_i^2}{n}}\ \ge\ \dfrac{\sum a_i}{n}\ \ge\ \sqrt[n]{\prod a_i}\ \ge\ \dfrac{n}{\sum \tfrac{1}{a_i}}, all with equality exactly when the numbers are equal.

In plain terms. Four averages, always in this order: quadratic, arithmetic, geometric, harmonic. Contest problems hand you one end of the chain and ask about the other.

Example. (a+b+c)(1a+1b+1c)≥9(a+b+c)\left(\tfrac1a+\tfrac1b+\tfrac1c\right)\ge 9 is exactly AM ≥\ge HM in disguise.

Concept
Check the equality case first

Before hunting bounds, ask WHERE equality would hold and whether the constraint permits it — an unattainable equality point means the true extremum sits at a boundary instead.

In plain terms. AM–GM promising 1212 means nothing if the balancing point violates the constraint: minimize 9u+4u\tfrac9u + 4u on 0<u≤10<u\le1 and the answer is 1313 at the endpoint, not 1212.

Example. Equality in Cauchy–Schwarz needs proportional sequences; if the constraint forbids proportionality, look at the boundary.

Weighted AM–GM and the Equality Case

Tip
Weighted AM–GM

For positive x1,…,xnx_1,\dots,x_n and positive weights w1,…,wnw_1,\dots,w_n with w1+⋯+wn=1w_1+\cdots+w_n=1,

w1x1+w2x2+⋯+wnxn ≥ x1w1x2w2⋯xnwn,w_1x_1+w_2x_2+\cdots+w_nx_n\ \ge\ x_1^{w_1}x_2^{w_2}\cdots x_n^{w_n},

with equality exactly when x1=x2=⋯=xnx_1=x_2=\cdots=x_n. To use it, cut the expression into pieces that are equal to each other at the point where you expect equality, chosen so that their product is a constant.

Take logarithms: the claim is ln⁡(∑wixi)≥∑wiln⁡xi\ln\left(\sum w_ix_i\right)\ge\sum w_i\ln x_i, which is Jensen's inequality for the concave function ln⁡\ln — a chord of a concave graph lies below the graph, so the logarithm of an average beats the average of the logarithms. Equality in Jensen for a strictly concave function forces all the xix_i to coincide. With rational weights wi=ki/Nw_i=k_i/N the statement is ordinary AM–GM on NN numbers in which xix_i appears kik_i times, and that is how it is used in practice: "write yy as two copies of y2\tfrac y2". The bookkeeping rule is the equality condition read backwards. AM–GM can only be sharp if all the averaged pieces can be equal at once, so guess the extremal point first, then cut the terms so the pieces agree there and multiply to a constant.

Example
Worked: split so the pieces match
xy12346121824AM–GM floor y = 12y = x² + 16/x
The curve touches the dashed AM–GM floor at x = 2, where the three pieces are equal.

Find the minimum of x2+16xx^2+\dfrac{16}{x} over x>0x>0. (folklore)

Step 1 — the two-term AM–GM, x2+16x≥216xx^2+\tfrac{16}{x}\ge2\sqrt{16x}, is useless: the bound still depends on xx. A constant bound needs a product of pieces that is constant, so the x2x^2 must be cancelled by two factors of 1x\tfrac1x.

Step 2 — split 16x=8x+8x\tfrac{16}{x}=\tfrac8x+\tfrac8x:

x2+8x+8x ≥ 3x2⋅8x⋅8x3=3643=12.x^2+\frac8x+\frac8x\ \ge\ 3\sqrt[3]{x^2\cdot\frac8x\cdot\frac8x}=3\sqrt[3]{64}=12.

Step 3 — equality needs the three pieces equal, x2=8xx^2=\tfrac8x, so x=2x=2; and indeed 4+8=124+8=12. The minimum is 1212.

How to find it. The exponent 22 on top and 11 below say how many copies to make: x2x^2 balances two copies of x−1x^{-1}. Calculus agrees — 2x−16x22x-\tfrac{16}{x^2} vanishes at x=2x=2 — but AM–GM proves the global bound in one line, with no second-derivative or endpoint check.

Example
Worked: unequal weights

Positive reals x,y,zx,y,z satisfy x+y+z=6x+y+z=6. Find the maximum of xy2z3xy^2z^3. (folklore)

Step 1 — the product has weights 1,2,31,2,3, so write the sum as six pieces: xx, two copies of y2\tfrac y2, three copies of z3\tfrac z3. They still add up to x+y+z=6x+y+z=6.

Step 2 — AM–GM on the six pieces:

1=x+y2+y2+z3+z3+z36 ≥ x⋅y24⋅z3276,1=\frac{x+\frac y2+\frac y2+\frac z3+\frac z3+\frac z3}{6}\ \ge\ \sqrt[6]{x\cdot\frac{y^2}{4}\cdot\frac{z^3}{27}},

so xy2z3≤4⋅27=108xy^2z^3\le4\cdot27=108.

Step 3 — equality needs x=y2=z3x=\tfrac y2=\tfrac z3; with x+y+z=6x+y+z=6 that is (x,y,z)=(1,2,3)(x,y,z)=(1,2,3), and 1⋅4⋅27=1081\cdot4\cdot27=108. The maximum is 108108.

How to find it. The exponents are the weights. The maximum of xaybzcx^ay^bz^c on the plane x+y+z=sx+y+z=s splits ss in the ratio a:b:ca:b:c — Lagrange multipliers find that point, and the weighted AM–GM split proves it is the maximum.

Example
Worked: IMO 2012 Problem 2

Let n≥3n\ge3 and let a2,a3,…,ana_2,a_3,\dots,a_n be positive reals with a2a3⋯an=1a_2a_3\cdots a_n=1. Prove that

(1+a2)2(1+a3)3⋯(1+an)n>nn.(1+a_2)^2(1+a_3)^3\cdots(1+a_n)^n>n^n.

(IMO 2012/2)

Step 1 — decide what each factor should be compared with. The constraint only controls the product of the aka_k, so the bound for (1+ak)k(1+a_k)^k should be a constant times aka_k to the first power; then the product of the bounds is a constant.

Step 2 — AM–GM on kk pieces, with the 11 cut into k−1k-1 equal parts:

1+ak=1k−1+⋯+1k−1⏟k−1 pieces+ak ≥ kak(k−1)k−1k,1+a_k=\underbrace{\tfrac1{k-1}+\cdots+\tfrac1{k-1}}_{k-1\text{ pieces}}+a_k\ \ge\ k\sqrt[k]{\frac{a_k}{(k-1)^{k-1}}},

so (1+ak)k≥kk(k−1)k−1 ak(1+a_k)^k\ge\dfrac{k^k}{(k-1)^{k-1}}\,a_k.

Step 3 — multiply over k=2,…,nk=2,\dots,n. The constants telescope,

∏k=2nkk(k−1)k−1=nn11=nn,\prod_{k=2}^{n}\frac{k^k}{(k-1)^{k-1}}=\frac{n^n}{1^1}=n^n,

and the aka_k multiply to 11, so the left side is at least nnn^n.

Step 4 — strictness. Equality in Step 2 would need ak=1k−1a_k=\tfrac1{k-1} for every kk, but then a2a3⋯an=1(n−1)!<1a_2a_3\cdots a_n=\tfrac1{(n-1)!}<1 when n≥3n\ge3, which the constraint forbids. So some factor is strict, and the inequality is strict.

How to find it. The exponent kk on 1+ak1+a_k is the number of pieces AM–GM should use, and the constraint says each bound must contain aka_k exactly once. Those two facts force the split of 11 into k−1k-1 equal parts. The equality case ak=1k−1a_k=\tfrac1{k-1} then explains the strict sign: the only point where every step is tight violates the constraint.

Side note
Where it goes wrong

Positive a,ba,b with a+b=1a+b=1: minimize (a+1a)(b+1b)\left(a+\tfrac1a\right)\left(b+\tfrac1b\right). The tempting proof: a+1a≥2a+\tfrac1a\ge2 and b+1b≥2b+\tfrac1b\ge2, so the product is at least 44.

Each step is true, but the bound 44 is never reached: a+1a=2a+\tfrac1a=2 only at a=1a=1, and then b=0b=0 is not allowed. A bound whose equality case violates the constraint is a true but weak inequality, not the minimum. Expanding instead, the product is ab+1ab+a2+b2abab+\tfrac1{ab}+\tfrac{a^2+b^2}{ab}, and with t=abt=ab (so a2+b2=1−2ta^2+b^2=1-2t) it equals t+2t−2t+\tfrac2t-2. Since t≤14t\le\tfrac14 by AM–GM and t+2tt+\tfrac2t decreases on (0,14]\left(0,\tfrac14\right], the minimum is at t=14t=\tfrac14: the value 254\tfrac{25}{4}, at a=b=12a=b=\tfrac12. In a chain of inequalities, write down each step's equality point and check that one admissible point makes them all tight.

Try it
Try it: how many copies?

Find the minimum of x+4x2x+\dfrac{4}{x^2} over x>0x>0, and prove that it is the minimum.

Show the answer

Cut xx into two halves so that the product of the three pieces is constant:

x2+x2+4x2 ≥ 3x2⋅x2⋅4x23=3.\frac x2+\frac x2+\frac4{x^2}\ \ge\ 3\sqrt[3]{\frac x2\cdot\frac x2\cdot\frac4{x^2}}=3.

Equality needs x2=4x2\tfrac x2=\tfrac4{x^2}, i.e. x3=8x^3=8, x=2x=2, where the value is 2+1=32+1=3. So the minimum is 33.

Cauchy–Schwarz: Choosing What to Pair

Tip
Cauchy–Schwarz, Titu and Hölder

For real ai,bia_i,b_i: (∑aibi)2≤(∑ai2)(∑bi2)\left(\sum a_ib_i\right)^2\le\left(\sum a_i^2\right)\left(\sum b_i^2\right), with equality exactly when (ai)(a_i) and (bi)(b_i) are proportional. Titu (Engel form), for yi>0y_i>0:

x12y1+⋯+xn2yn ≥ (x1+⋯+xn)2y1+⋯+yn,equality when x1y1=⋯=xnyn.\frac{x_1^2}{y_1}+\cdots+\frac{x_n^2}{y_n}\ \ge\ \frac{(x_1+\cdots+x_n)^2}{y_1+\cdots+y_n},\qquad\text{equality when }\frac{x_1}{y_1}=\cdots=\frac{x_n}{y_n}.

Hölder, for positive reals: (∑ai)(∑bi)(∑ci)≥(∑aibici3)3\left(\sum a_i\right)\left(\sum b_i\right)\left(\sum c_i\right)\ge\left(\sum\sqrt[3]{a_ib_ic_i}\right)^3.

The quadratic q(t)=∑(ait−bi)2q(t)=\sum(a_it-b_i)^2 is a sum of squares, so it is never negative. Written out it is At2−2Bt+CAt^2-2Bt+C with A=∑ai2A=\sum a_i^2, B=∑aibiB=\sum a_ib_i, C=∑bi2C=\sum b_i^2, and a quadratic that never goes negative has discriminant 4B2−4AC≤04B^2-4AC\le0 — that is Cauchy–Schwarz. Equality means qq has a real root tt, so bi=taib_i=ta_i for every ii: proportionality. Titu is Cauchy–Schwarz applied to xiyi\tfrac{x_i}{\sqrt{y_i}} and yi\sqrt{y_i}. Hölder follows from AM–GM: with A=∑aiA=\sum a_i and so on, aiA⋅biB⋅ciC3≤13(aiA+biB+ciC)\sqrt[3]{\tfrac{a_i}{A}\cdot\tfrac{b_i}{B}\cdot\tfrac{c_i}{C}}\le\tfrac13\left(\tfrac{a_i}{A}+\tfrac{b_i}{B}+\tfrac{c_i}{C}\right), and summing over ii gives 11 on the right. The skill is choosing the pairing so that the equality case — proportional vectors — happens where you expect the extremum.

Example
Worked: the nearest point of a plane

Real numbers x,y,zx,y,z satisfy 2x+3y+6z=142x+3y+6z=14. Find the minimum of x2+y2+z2x^2+y^2+z^2. (folklore)

Step 1 — pair (x,y,z)(x,y,z) with the coefficient vector (2,3,6)(2,3,6):

(2x+3y+6z)2≤(22+32+62)(x2+y2+z2)=49(x2+y2+z2).(2x+3y+6z)^2\le(2^2+3^2+6^2)(x^2+y^2+z^2)=49(x^2+y^2+z^2).

Step 2 — the left side is 142=19614^2=196, so x2+y2+z2≥4x^2+y^2+z^2\ge4.

Step 3 — equality needs (x,y,z)=t(2,3,6)(x,y,z)=t(2,3,6); substituting, 49t=1449t=14, t=27t=\tfrac27, so the minimum 44 is attained at (47,67,127)\left(\tfrac47,\tfrac67,\tfrac{12}7\right). Geometrically x2+y2+z2x^2+y^2+z^2 is the squared distance to the origin, (2,3,6)(2,3,6) is the normal of the plane, and the distance from the origin to the plane is 147=2\tfrac{14}{7}=2.

How to find it. A linear constraint and a sum of squares: the constraint's coefficients are the other vector. The equality case, a point along the normal, is the foot of the perpendicular.

Example
Worked: IMO 1995 Problem 2

Positive reals a,b,ca,b,c satisfy abc=1abc=1. Prove that

1a3(b+c)+1b3(c+a)+1c3(a+b) ≥ 32.\frac1{a^3(b+c)}+\frac1{b^3(c+a)}+\frac1{c^3(a+b)}\ \ge\ \frac32.

(IMO 1995/2)

Step 1 — the variables sit in the denominators, so substitute x=1ax=\tfrac1a, y=1by=\tfrac1b, z=1cz=\tfrac1c; then xyz=1xyz=1 and

1a3(b+c)=x31y+1z=x3yzy+z=x2y+z,\frac1{a^3(b+c)}=\frac{x^3}{\frac1y+\frac1z}=\frac{x^3yz}{y+z}=\frac{x^2}{y+z},

using xyz=1xyz=1 in the last step.

Step 2 — each term is now a square over a positive quantity, the shape of Titu:

x2y+z+y2z+x+z2x+y ≥ (x+y+z)22(x+y+z)=x+y+z2.\frac{x^2}{y+z}+\frac{y^2}{z+x}+\frac{z^2}{x+y}\ \ge\ \frac{(x+y+z)^2}{2(x+y+z)}=\frac{x+y+z}{2}.

Step 3 — by AM–GM, x+y+z≥3xyz3=3x+y+z\ge3\sqrt[3]{xyz}=3, so the sum is at least 32\tfrac32.

Step 4 — both steps are tight at x=y=z=1x=y=z=1, i.e. a=b=c=1a=b=c=1, where each term is 12\tfrac12.

How to find it. A cube in the denominator together with abc=1abc=1 invites the reciprocal substitution. Once the numerators are squares and the denominators are linear, Titu is the tool, and the leftover x+y+z≥3x+y+z\ge3 uses the constraint exactly once.

Example
Worked: USAMO 2004 Problem 5

Prove that for all positive reals a,b,ca,b,c,

(a5−a2+3)(b5−b2+3)(c5−c2+3) ≥ (a+b+c)3.(a^5-a^2+3)(b^5-b^2+3)(c^5-c^2+3)\ \ge\ (a+b+c)^3.

(USAMO 2004/5)

Step 1 — the left side is a product of three one-variable factors, the right side the cube of a sum: that is the shape of Hölder, which wants each factor to be a sum of three terms with one cube among them.

Step 2 — compare each factor with a3+2a^3+2:

(a5−a2+3)−(a3+2)=a5−a3−a2+1=(a2−1)(a3−1) ≥ 0,(a^5-a^2+3)-(a^3+2)=a^5-a^3-a^2+1=(a^2-1)(a^3-1)\ \ge\ 0,

because a2−1a^2-1 and a3−1a^3-1 have the same sign for a>0a>0 (both negative below 11, both positive above). So each factor is at least a3+1+1a^3+1+1.

Step 3 — put the cubes in different positions and apply Hölder:

(a3+1+1)(1+b3+1)(1+1+c3) ≥ (a33+b33+c33)3=(a+b+c)3.(a^3+1+1)(1+b^3+1)(1+1+c^3)\ \ge\ \left(\sqrt[3]{a^3}+\sqrt[3]{b^3}+\sqrt[3]{c^3}\right)^3=(a+b+c)^3.

Step 4 — equality throughout needs a=b=c=1a=b=c=1, where both sides equal 2727.

How to find it. Test a=b=c=1a=b=c=1: both sides are 2727, so every lemma must be tight at 11. The factor a5−a2+3a^5-a^2+3 is not a natural Hölder term but a3+2a^3+2 is, and their difference factors because both a5−a3a^5-a^3 and a2−1a^2-1 vanish at a=1a=1.

Side note
Where it goes wrong
a0.250.50.755.566.57false floor 4√2 ≈ 5.66true minimum 3 + 2√21/a + 1/b
Along a + 2b = 1 the sum never comes down to the dashed line 4√2; its lowest point is 3 + 2√2.

Positive a,ba,b satisfy a+2b=1a+2b=1; minimize 1a+1b\tfrac1a+\tfrac1b. Tempting chain: 1=a+2b≥22ab1=a+2b\ge2\sqrt{2ab}, so ab≤18ab\le\tfrac18, and then 1a+1b≥2ab≥28=42\tfrac1a+\tfrac1b\ge\tfrac2{\sqrt{ab}}\ge2\sqrt8=4\sqrt2.

Both inequalities are true, but the first is tight only when a=2ba=2b and the second only when a=ba=b. No admissible point makes both tight, so 42≈5.664\sqrt2\approx5.66 is never attained. Pair the terms with the constraint instead: by Titu,

1a+1b=12a+(2)22b ≥ (1+2)2a+2b=3+22≈5.83,\frac1a+\frac1b=\frac{1^2}{a}+\frac{(\sqrt2)^2}{2b}\ \ge\ \frac{(1+\sqrt2)^2}{a+2b}=3+2\sqrt2\approx5.83,

with equality when 1a=22b\tfrac1a=\tfrac{\sqrt2}{2b}, i.e. a=2−1a=\sqrt2-1, b=2−22b=\tfrac{2-\sqrt2}{2} — an admissible point, so 3+223+2\sqrt2 is the minimum.

Try it
Try it: four variables, one Titu

Prove that for positive reals a,b,c,da,b,c,d,

ab+2c+3d+bc+2d+3a+cd+2a+3b+da+2b+3c ≥ 23.\frac{a}{b+2c+3d}+\frac{b}{c+2d+3a}+\frac{c}{d+2a+3b}+\frac{d}{a+2b+3c}\ \ge\ \frac23.

(IMO Shortlist 1993)

Show the answer

Multiply each fraction by its numerator on top and bottom: the left side is ∑a2a(b+2c+3d)\sum\dfrac{a^2}{a(b+2c+3d)}, so by Titu it is at least (a+b+c+d)2D\dfrac{(a+b+c+d)^2}{D}, where DD is the sum of the four new denominators. Expanding DD, every product of two different variables appears with total coefficient 44 (for instance abab comes from a⋅ba\cdot b and from b⋅3ab\cdot3a), so D=4σD=4\sigma with σ=ab+ac+ad+bc+bd+cd\sigma=ab+ac+ad+bc+bd+cd. Next, 3(a2+b2+c2+d2)−2σ3(a^2+b^2+c^2+d^2)-2\sigma is the sum of the six squares (a−b)2,…,(c−d)2(a-b)^2,\dots,(c-d)^2, so a2+b2+c2+d2≥23σa^2+b^2+c^2+d^2\ge\tfrac23\sigma and (a+b+c+d)2≥23σ+2σ=83σ(a+b+c+d)^2\ge\tfrac23\sigma+2\sigma=\tfrac83\sigma. The bound is therefore at least 8σ/34σ=23\dfrac{8\sigma/3}{4\sigma}=\dfrac23, with equality at a=b=c=da=b=c=d.