Hands first, words secondDrag the tips of u and v. When are the two sides equal? Keep an eye on the area of the pale parallelogram.
Loading figure…
Try this
Drag v onto the same line as u (same direction or opposite, either works). What does “Gap = area²” become?
Keep u fixed and swing v once around the origin (keeping its length roughly the same). When is the left side (u⋅v)2 largest? When is it 0?
Look at the thick segment: the projection of v onto the direction of u. Why is it never longer than ∣v∣?
Put the vectors anywhere, compute (a1b2−a2b1)2, and compare it with right side minus left side.
For two vectors u=(a1,a2) and v=(b1,b2), the dot product is a1b1+a2b2=∣u∣∣v∣cosθ, and ∣cosθ∣≤1. Squaring gives
(a1b1+a2b2)2≤(a12+a22)(b12+b22).
Replace two numbers by n numbers and you get the Cauchy inequality: for any real numbers a1,…,an and b1,…,bn,
(i=1∑naibi)2≤(i=1∑nai2)(i=1∑nbi2),
with equality if and only if the two lists are proportional (there is a λ with bi=λai for every i, or all the ai are 0).
Predict first
u=(3,4), and v has length 2 and any direction. What is the largest possible value of u⋅v?
Choose an answer first; then you can see the result.
✓You predicted it!✗Not what you expected — which is exactly why it is worth a pause.
u⋅v≤∣u∣∣v∣=5×2=10, reached when v points the same way as u, i.e. v=(56,58).
In coordinates: 3b1+4b2≤32+42⋅b12+b22=10. The inequality gives the upper bound, and the equality condition tells you where the bound is reached. That is the template for every “find the maximum or minimum” problem later in this volume.
Loading figure…
Drag v onto the direction of u (the grid step is 0.5; try somewhere near (1,1.5) and watch the readings change).
Why: a parabola that never dips below the axis
The geometric argument only covers n=2,3. For any n there is a proof that uses nothing but school algebra: a sum of squares is never negative.
Proving Cauchy with the discriminant
Step 1 / 5
Loading figure…
Build a sum of squares
Take a variable t, turn each pair of numbers into (ait−bi)2, and add them all up. The dashed curves are the single terms, the solid curve is their sum. Every term is ≥0, so f(t)≥0 for everyt.
f(t)=i=1∑n(ait−bi)2≥0
Expand into a quadratic
Never below the axis ⇒ discriminant not positive
When does it touch the t-axis?
The converse holds too
How big is the gap? Lagrange's identity
The discriminant shows the inequality never goes the other way, but it does not say how much is lost. For n=2, just expand:
Right side minus left side is exactly a square
Step 1 / 5
Loading figure…
Numbers first
u=(3,1), v=(1,2): the left side is (3+2)2=25, the right side 10×5=50, a gap of 25.
(3⋅1+1⋅2)2=25≤50=(32+12)(12+22)
Expand the right side
What is left is a perfect square
Flatten it
The same for n numbers
Three proofs, three ways of looking: the angle (∣cosθ∣≤1), the discriminant (the parabola never dips below the axis) and completing the square (the gap is a sum of squares). They all say the same thing: how tight the inequality is depends entirely on how far the two lists are from being proportional.
Practice
Exercise 1Basic
Real numbers x,y satisfy 3x+4y=10. Find the minimum of x2+y2.
Hint · direction
You are given a “multiply in pairs and add” expression and asked about a sum of squares. The Cauchy inequality connects exactly these two things.
Hint · method
Use the two lists (x,y) and (3,4).
Hint · first step
(3x+4y)2≤(32+42)(x2+y2), that is, 100≤25(x2+y2).
Full solution
So x2+y2≥4. Equality needs 3x=4y; together with 3x+4y=10 this gives x=56, y=58, and then x2+y2=2536+64=4. The minimum is 4. Geometrically: the distance from the origin to the line 3x+4y=10 is 2.
Exercise 2Basic
Real numbers x,y,z satisfy x2+y2+z2=4. Find the maximum of x+2y+2z.
Hint · direction
This time the sum of squares is given, and you want the “multiply in pairs and add” expression.
Hint · method
Use the two lists (x,y,z) and (1,2,2).
Hint · first step
(x+2y+2z)2≤(1+4+4)(x2+y2+z2)=36.
Full solution
So x+2y+2z≤6. Equality needs (x,y,z)=k(1,2,2) with k>0; from 9k2=4 we get k=32, i.e. (32,34,34), and substituting gives 32+38+38=6. The maximum is 6.
Exercise 3Advanced
Real numbers x,y satisfy x2+4y2=5. Find the maximum of x+y.
Hint · direction
The condition contains 4y2=(2y)2, not y2. Should the list contain y or 2y?
Hint · method
Write x+y as x⋅1+(2y)⋅21 and use the lists (x,2y) and (1,21).
Hint · first step
(x+y)2≤(x2+4y2)(1+41)=5⋅45=425.
Full solution
So x+y≤25. Equality needs 1x=1/22y, i.e. x=4y; substituting into 16y2+4y2=5 gives y=21, x=2, and then x+y=25. The maximum is 25.
Exercise 4Challenge
Let a,b>0. Prove that (a3+b3)(a+b)≥(a2+b2)2, and say when equality holds.
Hint · direction
The right side is “a sum, squared”; the left side is a product of two sums. That is exactly the shape of the Cauchy inequality.
Hint · method
Find two lists whose sums of squares are a3+b3 and a+b, and whose sum of pairwise products is a2+b2.
Hint · first step
Take (a3,b3) and (a,b): a3⋅a=a2.
Full solution
By the Cauchy inequality, (a3+b3)(a+b)≥(a3a+b3b)2=(a2+b2)2. Equality holds if and only if aa3=bb3, i.e. a=b. You can also check it directly: left side minus right side =ab(a−b)2≥0.
The wrong step: By the Cauchy inequality, (a+b+c)2≤a2+b2+c2.
What went wrong? Think first, then open
DiagnosisThe right-hand side of the Cauchy inequality is the product of two sums of squares. Here the second list is 1,1,1; its sum of squares is 3, and you cannot drop it. Take a=b=c=1: the left side is 9, the right side 3, so the inequality as written is simply false.
✓
The right step: (a⋅1+b⋅1+c⋅1)2≤(a2+b2+c2)(12+12+12), that is, (a+b+c)2≤3(a2+b2+c2).
“Write down both lists first, then apply the formula”
Exhibit
Mistaking “proportional” for “equal”
✗
The wrong step: (x+2y)2≤5(x2+y2), with equality when x=y.
What went wrong? Think first, then open
DiagnosisTake x=y=1: the left side is 9 and the right side 10, not equal. The two lists are (x,y) and (1,2); equality needs them to be proportional, not x equal to y.
✓
The right step: Equality holds if and only if 1x=2y, i.e. y=2x. Check: at x=1,y=2 both sides are 25.
“Equality is about the ratio between the two lists, not about the numbers inside one list”
The Cauchy Inequality and Its Proofs ← → step · F full screen · Esc exit