ironfern @ docs ~/math/grade-9/4-inequalities/means-cauchy-schwarz $

Means & Cauchy-Schwarz Inequality

Two of the most powerful and widely-used inequalities in mathematics are the AM-GM inequality and the Cauchy-Schwarz inequality. They appear everywhere — from olympiad problems to optimization, from probability to physics.

Arithmetic Mean and Geometric Mean

📐Definition — AM and GM

For positive real numbers aa and bb:

  • The arithmetic mean (AM) is a+b2\dfrac{a + b}{2}.
  • The geometric mean (GM) is ab\sqrt{ab}.
Theorem — AM-GM Inequality

For all positive reals a,ba, b:

a+b2ab\frac{a + b}{2} \geq \sqrt{ab}

with equality if and only if a=ba = b.

Proof.

(ab)20(\sqrt{a} - \sqrt{b})^2 \geq 0 a2ab+b0a - 2\sqrt{ab} + b \geq 0 a+b2ab\frac{a + b}{2} \geq \sqrt{ab} \quad \square

Geometric Interpretation

Consider a semicircle with diameter a+ba + b. Place the diameter along the xx-axis, with the dividing point at distance aa from the left endpoint. The altitude from this point to the semicircle has length ab\sqrt{ab} (the geometric mean), while the radius equals a+b2\dfrac{a+b}{2} (the arithmetic mean). Since a radius is always at least as long as any altitude within the semicircle, AM \geq GM.

Note — n-Variable Generalization

For positive reals a1,a2,,ana_1, a_2, \ldots, a_n:

a1+a2++anna1a2ann\frac{a_1 + a_2 + \cdots + a_n}{n} \geq \sqrt[n]{a_1 a_2 \cdots a_n}

with equality iff all aia_i are equal. (Stated without proof.)

Applications of AM-GM

Example — Minimizing a Sum

For positive xx, find the minimum value of x+1xx + \dfrac{1}{x}.

Solution. By AM-GM:

x+1x2x1x=21=2x + \frac{1}{x} \geq 2\sqrt{x \cdot \frac{1}{x}} = 2\sqrt{1} = 2

Equality holds when x=1xx = \dfrac{1}{x}, i.e., x=1x = 1. The minimum value is 2\boxed{2}.

Example — Maximizing a Product

If a+b=10a + b = 10 with a,b>0a, b > 0, find the maximum value of abab.

Solution. By AM-GM:

aba+b2=102=5\sqrt{ab} \leq \frac{a + b}{2} = \frac{10}{2} = 5

Squaring: ab25ab \leq 25. Equality holds when a=b=5a = b = 5. The maximum value is 25\boxed{25}.

Cauchy-Schwarz Inequality

Theorem — Cauchy-Schwarz Inequality

For all real numbers a1,a2,b1,b2a_1, a_2, b_1, b_2:

(a1b1+a2b2)2(a12+a22)(b12+b22)(a_1 b_1 + a_2 b_2)^2 \leq (a_1^2 + a_2^2)(b_1^2 + b_2^2)

with equality if and only if a1b1=a2b2\dfrac{a_1}{b_1} = \dfrac{a_2}{b_2} (the vectors (a1,a2)(a_1, a_2) and (b1,b2)(b_1, b_2) are proportional).

Proof. Start with the non-negative square:

(a1b2a2b1)20(a_1 b_2 - a_2 b_1)^2 \geq 0

Expanding:

a12b222a1a2b1b2+a22b120a_1^2 b_2^2 - 2a_1 a_2 b_1 b_2 + a_2^2 b_1^2 \geq 0

Add a12b12+a22b22a_1^2 b_1^2 + a_2^2 b_2^2 to both sides:

a12b22+a22b12+a12b12+a22b222a1a2b1b2+a12b12+a22b22a_1^2 b_2^2 + a_2^2 b_1^2 + a_1^2 b_1^2 + a_2^2 b_2^2 \geq 2a_1 a_2 b_1 b_2 + a_1^2 b_1^2 + a_2^2 b_2^2

Factor:

(a12+a22)(b12+b22)(a1b1+a2b2)2(a_1^2 + a_2^2)(b_1^2 + b_2^2) \geq (a_1 b_1 + a_2 b_2)^2 \quad \square

Note — n-Variable Form

For real numbers a1,,ana_1, \ldots, a_n and b1,,bnb_1, \ldots, b_n:

(i=1naibi)2(i=1nai2)(i=1nbi2)\left(\sum_{i=1}^{n} a_i b_i\right)^2 \leq \left(\sum_{i=1}^{n} a_i^2\right)\left(\sum_{i=1}^{n} b_i^2\right)

Application of Cauchy-Schwarz

Example — Constrained Optimization

Given x2+y2=1x^2 + y^2 = 1, find the maximum value of 3x+4y3x + 4y.

Solution. By Cauchy-Schwarz:

(3x+4y)2(32+42)(x2+y2)=251=25(3x + 4y)^2 \leq (3^2 + 4^2)(x^2 + y^2) = 25 \cdot 1 = 25

Therefore 3x+4y53x + 4y \leq 5. The maximum is 5\boxed{5}, achieved when x3=y4\dfrac{x}{3} = \dfrac{y}{4}, i.e., x=35x = \dfrac{3}{5}, y=45y = \dfrac{4}{5}.

Practice

Exercise — Apply Cauchy-Schwarz

Given x2+y2=4x^2 + y^2 = 4, find the maximum value of 2x+6y2x + 6y.

Hint: Apply Cauchy-Schwarz with vectors (2,6)(2, 6) and (x,y)(x, y).