Docsity

Cauchy-Schwartz Inequality: Proof and Geometric Interpretation, Lecture notes of Linear Algebra

Toggle sidebar
bg1
A QUICK PROOF OF THE CAUCHY-SCHWARTZ INEQUALITY
Let uand vbe two vectors in Rn. The Cauchy-Schwartz inequality states that
|u·v|≤|u||v|.
Written out in coordinates, this says
|u1v1+u2v2+· · · +unvn| ≤ qu2
1+u2
2+· · · +u2
nqv2
1+v2
2+· · · +v2
n(∗).
This equation makes sure that vectors act the way we geometrically expect. For example, we
know that
|u+v|2= (u+v)·(u+v) = u·u+v·v+ 2u·v=|u|2+|v|2+ 2u·v.
Using Cauchy-Schwartz, we have
|u|2+|v|2+ 2u·v≤ |u|2+|v|2+ 2|u||v|= (|u|+|v|)2.
So the Cauchy-Schwartz inequality tells us that
|u+v|2≤(|u|+|v|)2or |u+v|≤|u|+|v|.
In other words, the length of the sum of two vectors is no more then the sum of the lengths of the
vectors.
As explained in class, if you believe that vectors in hundreds of dimensions act like the vectors
you know and love in R2, then the Cauchy-Schwartz inequality is a consequence of the law of
cosines. Specifically, u·v=|u||v|cos θ, and cos θ≤1. In case you are nervous about using
geometric intuition in hundreds of dimensions, here is a direct proof.
First, note that we have
w·w=w2
1+w2
2+· · · w2
n≥0
for any w.
We rescale uand vto new vectors which have the same length; namely |v|uand |u|v. We take
the difference of these two vectors: |u|v− |v|u. So this is a vector which vanishes if uis a positive
multiple of v. We compute the dot product of this vector with itself:
0≤(|u|v− |v|u)·(|u|v− |v|u) = |u|2(v·v)−2|u||v|(u·v) + |v|2(u·u)=2|u|2|v|2−2|u||v|(u·v).
Rearranging
2|u||v|(u·v)≤2|u|2|v|2
u·v≤ |u||v|
A similar argument using (|u|v+|v|u)·(|u|v+|v|u) shows that −u·v≤ |u||v|as well. So
|u·v|≤|u||v|
as we promised.

Partial preview of the text

Download Cauchy-Schwartz Inequality: Proof and Geometric Interpretation and more Lecture notes Linear Algebra in PDF only on Docsity!

A QUICK PROOF OF THE CAUCHY-SCHWARTZ INEQUALITY

Let u and v be two vectors in Rn. The Cauchy-Schwartz inequality states that |u · v| ≤ |u||v|.

Written out in coordinates, this says

|u 1 v 1 + u 2 v 2 + · · · + unvn| ≤

u^21 + u^22 + · · · + u^2 n

v 12 + v 22 + · · · + v^2 n (∗). This equation makes sure that vectors act the way we geometrically expect. For example, we know that

|u + v|^2 = (u + v) · (u + v) = u · u + v · v + 2u · v = |u|^2 + |v|^2 + 2u · v.

Using Cauchy-Schwartz, we have

|u|^2 + |v|^2 + 2u · v ≤ |u|^2 + |v|^2 + 2|u||v| = (|u| + |v|)^2.

So the Cauchy-Schwartz inequality tells us that

|u + v|^2 ≤ (|u| + |v|)^2 or |u + v| ≤ |u| + |v|.

In other words, the length of the sum of two vectors is no more then the sum of the lengths of the vectors. As explained in class, if you believe that vectors in hundreds of dimensions act like the vectors you know and love in R^2 , then the Cauchy-Schwartz inequality is a consequence of the law of cosines. Specifically, u · v = |u||v| cos θ, and cos θ ≤ 1. In case you are nervous about using geometric intuition in hundreds of dimensions, here is a direct proof. First, note that we have w · w = w^21 + w^22 + · · · w^2 n ≥ 0

for any w. We rescale u and v to new vectors which have the same length; namely |v|u and |u|v. We take the difference of these two vectors: |u|v − |v|u. So this is a vector which vanishes if u is a positive multiple of v. We compute the dot product of this vector with itself:

0 ≤ (|u|v − |v|u) · (|u|v − |v|u) = |u|^2 (v · v) − 2 |u||v|(u · v) + |v|^2 (u · u) = 2|u|^2 |v|^2 − 2 |u||v|(u · v).

Rearranging 2 |u||v|(u · v) ≤ 2 |u|^2 |v|^2 u · v ≤ |u||v| A similar argument using (|u|v + |v|u) · (|u|v + |v|u) shows that −u · v ≤ |u||v| as well. So |u · v| ≤ |u||v|

as we promised.