Cauchy–Schwarz inequality for vectors, with a worked example
The dot product and the lengths of two vectors are connected. Cauchy–Schwarz tells us how large the absolute dot product can be. We can also use the equality case to tell whether the vectors are linearly dependent.
Compare the absolute dot product with the lengths
The inequality holds for vectors of the same dimension. Equality holds exactly when the pair is linearly dependent, including when one of the vectors is zero.
Find both sides for two vectors
Let and . First, find the absolute value of the dot product.
Then find the lengths and multiply them.
Use equality to identify dependence
Both sides equal , so this pair is linearly dependent. We can also see the relationship directly because .
For nonzero vectors, a strict inequality means that neither vector is a scalar multiple of the other. That pair is linearly independent.