The famous
Cauchy-Schwarz inequality has a knack of cropping up all over the world of science: from properties of covariance in statistics, to the Heisenberg uncertainty principle of quantum mechanics. More directly pertinent to our discussion, the Cauchy-Schwarz inequality implies the triangle inequalities (
5.1.24) and ensures that our notion of the angle between two nonzero vectors (
Definition 5.1.25) is well-defined.
Fix vectors and For any we have by positivity
where
Since for all the quadratic polynomial has at most one root. Using the quadratic formula we conclude that we must have since otherwise would have two distinct roots. It follows that
or equivalently
Taking square-roots yields the desired inequality.
The same reasoning shows that the Cauchy-Schwarz inequality is an actual equality if and only if for some if and only if if and only if for some (by positivity).
This is an elementary exercise of unpacking the definitions of norm and distance in terms of the inner product, and then applying the Cauchy-Schwarz inequality appropriately. The proof is left as an exercise.