Alternatively we say is the length or the magnitude of the vector . As a sum of squares is always nonnegative, and zero if and only if is the zero vector. If we call a unit vector.
For vectors in the plane and in space it follows from Pythagoras’ theorem that is the length of . Even for we still talk about the “length” of the vector , meaning its norm.
The formula follows from the cosine rule in a triangle. Indeed, applying the cosine rule to the triangle with side lengths , and as shown in Figure 1.8 we deduce that
.(1.3)
Figure1.8.Triangle formed by , and .
Using the rules Note 1.5 for the scalar product, and the definition of the norm we see that
One important consequence of Figure 1.8, which we will use extensively later, is, that the scalar product allows us to compute the projection of one vector in the direction of another vector. More precisely,
Note however that needs to be between and . If we can show that in general then we can indeed define angles between -vectors. The above inequality turns out to be true always and is often called the Cauchy-Schwarz inequality.
If or the inequality is obvious and and are linearly dependent. Hence assume that and . We can then define
.
A geometric interpretation of is shown in Figure 1.12.
Figure1.12.Geometric interpretation of .
Using the algebraic rules Note 1.5 of the scalar product and the definition of the norm we get
.
Therefore , and by taking square roots we find (1.5). Clearly if and only if
,
that is, for some , that is, and are linearly independent. This completes the proof of the theorem.
It is common practice in mathematics to make a fact in some particular situation a definition in a more general situation. Here we proved that in the plane or in space the cosine of the angle between two vectors is given by (1.2). For higher dimension no angles are defined, so we take (1.2) as a definition of the angle.
The first two properties follow easily from the definition of the norm. To prove the last one we use Note 1.5, the definition of the norm and the Cauchy-Schwarz inequality (1.5) to see that
Taking the square root, the inequality follows.
The last of the above properties reflects the fact that the total length of two edges in a triangle is bigger than the length of the third edge. For this reason it is called the triangle inequality.