Dot/scalar product
We continue with a definition of the dot product, sometimes also referred to as the scalar product.
Given two vectors and , expressed in terms of the standard basis vectors , the dot product is defined as,
We note the following properties:
- If , then
We move to a geometric interpretation of the dot product. Figure 9.4 depicts two vectors, and , as well as the vector . The angle between and is given by .
Figure 9.4: Geometric interpretation of the dot product.
We have the following theorem: given and , the dot product is defined by
Starting from the Law of Cosines, we have
Expanding the LHS of Eq. (9.17) and using the properties listed above, gives
Plugging back to Eq. (9.17)
which yields Eq. (9.16)
If the angle , i.e. and are perpendicular, then the dot product is zero. In an orthonormal basis such as , we have the following identities:
Consider again the two vectors and . If we are asked to find the angle between the vectors we use the dot product as follows,
Moreover, using Eq. (9.18), we can find the length of the missing edge in a triangle. Given and , the length of the missing edge is given by (see Fig. 9.4).
Remarks
- The triangle inequalities
Substituting in Eq. (9.17) yields
since Eq. (9.17) takes its minimum value at and its maximum at . From Eq. (9.20), taking the positive square root of each term gives the triangle inequalities,
- Suppose we have the identity
for . Note that this does not necessarily mean that . Rather,
which leads to,
It follows that the above is true if, either or if is perpendicular to .
Exercise - What is the angle between:
- and ?
- and ?
- and ?