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

|u·v|≤‖u‖‖v‖

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 u=(3,4) and v=(-6,-8). First, find the absolute value of the dot product.

|u·v|=|3(-6)+4(-8)|=50

Then find the lengths and multiply them.

‖u‖=32+42=5‖v‖=(-6)2+(-8)2=10‖u‖‖v‖=50

Use equality to identify dependence

Both sides equal 50, so this pair is linearly dependent. We can also see the relationship directly because v=-2u.

For nonzero vectors, a strict inequality means that neither vector is a scalar multiple of the other. That pair is linearly independent.