The dot product measures how aligned two vectors are with each other.

1 Appendix

In the dot products section, we saw that there was a way to find the dot product using magnitudes and angles and components. We also saw that there were several algebraic properties of the dot product. As it turns out, we can start with either the magnitude-angle formulation (as we did), the component description, or the list of properties as our definition of the dot product, and derive the others from them. For the curious reader, we have included this appendix in which we show some of the details.

2 Equivalence of the magnitude-angle and component formulations of the dot product

Both arguments we give shortly rely on the Law of Cosines.

Note that when \(\theta = \pi /2\) the law of cosines reduces to the Pythagorean theorem.

We can rephrase the Law of Cosines in the language of vectors. The vectors \(\vec {v}\), \(\vec {w}\), and \(\vec {v} - \vec {w}\) form a triangle

so if \(\theta \) is the angle between \(\vec {v}\) and \(\vec {w}\) we must have

\[ |\vec {v} - \vec {w}|^2=|\vec {v}|^2+|\vec {w}|^2-2|\vec {w}||\vec {v}|\cos (\theta ). \]

This triangle will give be important in both arguments that follow.

2.1 From magnitudes and angles to components

Let \(\vec {u}\) and \(\vec {v}\) be nonzero vectors and let \(\theta \) be the angle between them. We take the defintion of the dot product to be \(\vec {u} \dotp \vec {v} = |\vec {u}||\vec {v}|\cos (\theta )\) and show that, if \(\vec {v} = \vector {v_1,v_2,\ldots ,v_n}\) and \(\vec {w} = \vector {w_1,w_2,\ldots ,w_n}\), we have

\[ \vec {v} \dotp \vec {w} = \sum _{k=1}^n u_kv_k \]

2.2 From components to magnitudes and angles

We can instead take the component formulation as our definition and show how we can derive the magnitude-angle formulation from it. That is, we take as a definition that for any two vectors \(\vec {v}\) and \(\vec {w}\) in \(\R ^n\),

\[ \vec {v} \dotp \vec {w} = \sum _{k=1}^n u_kv_k, \]

and we derive that \( \vec {v} \dotp \vec {w} = |\vec {v}||\vec {w}| \cos (\theta )\).

3 The algebra of the dot product

Recall the arithmetic and algebraic properties of the dot product.

For all scalars \(s\) and vectors \(\vec {u}\), \(\vec {v}\), and \(\vec {w}\) in \(\R ^n\).

Commutativity:

\(\vec {v} \dotp \vec {w} = \vec {w} \dotp \vec {v}\)

Linear in first argument:

\((\vec {u}+\vec {v})\dotp \vec {w} = \vec {u}\dotp \vec {w} + \vec {v}\dotp \vec {w}\) and \((s\vec {v})\dotp \vec {w} = s(\vec {v} \dotp \vec {w})\)

Linear in second argument:

\(\vec {u} \dotp (\vec {v}+\vec {w}) = \vec {u}\dotp \vec {v}+ \vec {u}\dotp \vec {w}\) and \(\vec {v} \dotp (s\vec {w}) = s(\vec {v} \dotp \vec {w})\)

Defintion of magnitude:

\(\vec {v} \dotp \vec {v} = |\vec {v}|^2\)

Definition of orthogonality:

Let \(\uvec {e}_j =\) denote the vector whose \(j\)-th component is \(1\), and whose other components are \(0\). Then,

\[\uvec {e}_i \dotp \uvec {e}_j = \left \{ \begin{array}{ll} 0, & i \neq j \\ 1, & i=j \end{array}\right . . \]

We will now use the above properties to show that there is only one formula which gives us all of these properties, and it will be our component formula for the dot product. As a warning, this argument is quite abstract, but it is reflective of the style of many arguments in more theoretically-oriented courses.

4 Summary

In this section, we have established how to take either the magnitude-angle formulation, the component formulation, or the algebraic properties as our definition for how to define the dot product. From any one of these three starting points, the other two formulations follow. As a bit of commentary, this author feels that the magnitude-angle formulation of the dot product is the most logical starting point for students who are familiar with the concept of work from physics, but many mathematicians or people who enjoy a more “pure” approach like to begin with the list of properties and establish the other results from it. The latter approach though trades a definition that is motivated from physical or geometric intuition for one that is more axiomatic from which the geometry is derived.