The Cauchy-Schwarz inequality states that for all vectors
It is considered one of the most widely used inequalities in math.
Equality in the Cauchy-Schwarz inequality (a.k.a.
Example: Euclidean Space
In an Euclidean space where the inner product is defined as the dot product, we have
where
Taking the square root, and we get the Cauchy-Schwarz inequality:
Further, we can see that the inequality is only equal when
Relation with The Triangle Inequality
The triangle inequality is a consequence of the Cauchy-Schwarz inequality: 1
Taking square roots gives the triangle inequality: