Introducing the concept of angle is more subtle than length. To this end we need the Cauchy-Schwarz inequality:
In each inner product space we have, for all ,
This inequality is an equality if and only if the vectors and are linearly dependent.
Let and be two vectors from . If one of the two vectors is the zero vector, both statements are obviously true, since then the left-hand and right-hand side of the equation both are equal to .
We will now assume that the vectors and are distinct from the zero vector. Because of the definition of the inner product, we have
for each scalar
. If we expand this inner product using linearity we find
We can see the expression before the inequality sign as a quadratic polynomial
. Since this function has at most one zero, we know that the discriminant is less than or equal to
. If the function
has no roots, the discriminant is negative. The well-known
discriminant formula gives us
We can rewrite this to
Dividing this by
and writing the right-hand side in terms of norms, this gives us
Because both sides are positive, we can take the square root. This leads to the Cauchy-Schwarz inequality:
It remains for us to consider the case of equality. Equality occurs if and only if the discriminant is zero. If the discriminant equals , there is a unique solution to the equation . In other words, there is a unique satisfying
In view of the definition of the inner product this means that
, which we can rewrite to
. This expresses linear dependence of
and
.
In the inner product space with standard inner product the inequality for and reads
Note that here both sides have been squared.
In the inner product space of all real continuous functions on with the inner product of functions we find, for each pair of real continuous functions and , on
These formulas are often used for estimates in Analysis of functions. For the functions
and
on the interval
the Cauchy-Schwarz inequality gives
Here too, both sides of the Cauchy-Schwarz inequality have been squared.
The following characteristics of the norm have been announced previously.
Let
be an inner product space. For all vectors
and
and all scalars
we have
- Positivity: , with equality if and only if
- Triangle inequality:
- Multiplicativity:
The triangle inequality reflects the inequality known from the space of arrows:
The diagonal is the segment from to . This is the shortest path from to .
The first part follows immediately from the third property of the definition of inner product.
For the triangle inequality, we need the Cauchy-Schwarz inequality:
The triangle inequality follows by taking square roots at both sides.
The third part follows from the linearity and symmetry of the inner product:
If we take the square root of the rightmost and the leftmost side, we get the equality
The triangle inequality gives us an upper bound on the length of a sum of two vectors. However, from the triangle inequality we can also find a lower bound. The inequality holds for all and , and so also for the vectors and . We then find
so
This statement applies to all vectors. In particular for the vectors
and
, it gives us
Interchanging
and
now produces
so, for all vectors
and
, we find
We conclude that
A vector space having a length concept that meets the requirements of the theorem is also referred to as a normed vector space.
The triangle inequality for distance, , is a direct consequence of the triangle inequality for length:
Thanks to the Cauchy-Schwarz inequality we can also use the inner product on a real vector space to define the angle between two vectors:
Let be an inner product space and let and be two vectors distinct from the zero vector. Then there exists a real number such that
The number
is called the
angle between the two vectors
and
. The angle does not depend on the length of
or the length of
.
We recall the Cauchy-Schwarz inequality
We divide both sides by
to get
Application of the definition of absolute value gives the following inequalities:
Thus there exists an angle
such that
The angle does not depend on the length:
In the figure below we see how the angle and the inner product are related to each other. If we rewrite the equation we get
We keep the lengths and equal (this does not matter for the inner product). You can drag the non-horizontal vector in order to see what happens to the angle. We can see from the equation that the absolute value of the inner product is at a maximum if the angle equals or degrees.
What angle do the vectors and make in the inner product space with standard inner product?]
Give your answer in radians.
First we calculate the inner product of the vectors
and
and their lengths
It follows that the angle
between
and
satisfies
We conclude that the answer is
.