You may have noticed that while we did define multiplication of a vector by a scalar in the previous section on vector algebra, we did not define multiplication of a vector by a vector. We will now see one type of multiplication of vectors, called the dot product.
Definition 1.6
Let \(\textbf{v} = \vecthree{v}\) and \(\textbf{w} = \vecthree{w}\) be vectors in \(\Real{3}\).
The
dot product of \(\textbf{v}\) and \(\textbf{w}\), denoted by \(\Dotprod{\textbf{v}}{\textbf{w}}\), is given by:
Similarly, for vectors \(\textbf{v} =\vectwo{v}\) and \(\textbf{w} = \vectwo{w}\) in \(\Real{2}\), the dot product is:
Notice that the dot product of two vectors is a scalar, not a vector. So the associative law that holds for multiplication of numbers and for addition of vectors (see Theorem 1.5(b),(e)), does not hold for the dot product of vectors. Why? Because for vectors \(\textbf{u}\), \(\textbf{v}\), \(\textbf{w}\), the dot product \(\Dotprod{\textbf{u}}{\textbf{v}}\) is a scalar, and so \(\Dotprod{(\Dotprod{\textbf{u}}{\textbf{v}})}{\textbf{w}}\) is not defined since the left side of that dot product (the part in parentheses) is a scalar and not a vector.
For vectors \(\textbf{v} = \vecthreeijk{v}\) and \(\textbf{w} = \vecthreeijk{w}\) in component form, the dot product is still \(\Dotprod{\textbf{v}}{\textbf{w}} = \ssub{v}{1}\ssub{w}{1} + \ssub{v}{2}\ssub{w}{2} + \ssub{v}{3}\ssub{w}{3}\).
Also notice that we defined the dot product in an analytic way, i.e. by referencing vector coordinates. There is a geometric way of defining the dot product, which we will now develop as a consequence of the analytic definition.
Definition 1.7
The angle between two nonzero vectors with the same initial point is the smallest angle between them.
We do not define the angle between the zero vector and any other vector. Any two nonzero vectors with the same initial point have two angles between them: \(\theta\) and \(360\Degrees - \theta\). We will always choose the smallest nonnegative angle \(\theta\) between them, so that \(0\Degrees \leq \theta \leq 180\Degrees\). See Figure 1.3.1.
We can now take a more geometric view of the dot product by establishing a relationship between the dot product of two vectors and the angle between them.
Theorem 1.6
Let \(\textbf{v}\), \(\textbf{w}\) be nonzero vectors, and let \(\theta\) be the angle between them. Then
width height 0.5pt
Example 1.5
Find the angle \(\theta\) between the vectors \(\textbf{v} = (2,1,-1)\) and \(\textbf{w} =
(3,-4,1)\).
Solution:
Since \(\Dotprod{\textbf{v}}{\textbf{w}} = (2)(3) + (1)(-4) + (-1)(1) = 1\),
\(\norm{\textbf{v}} = \sqrt{6}\), and \(\norm{\textbf{w}} = \sqrt{26}\), then
width height 0.5pt
Two nonzero vectors are perpendicular if the angle between them is \(90\Degrees\). Since \(\cos 90\Degrees = 0\), we have the following important corollary to Theorem 1.6:
Corollary 1.7
Two nonzero vectors \(\textbf{v}\) and \(\textbf{w}\) are perpendicular if and only if \(\Dotprod{\textbf{v}}{\textbf{w}} = 0\).
We will write \(\textbf{v} \perp \textbf{w}\) to indicate that \(\textbf{v}\) and \(\textbf{w}\) are perpendicular. Since \(\cos \theta > 0\) for \(0\Degrees \le \theta < 90\Degrees\) and \(\cos \theta < 0\) for \(90\Degrees < \theta \le 180\Degrees\), we also have:
Corollary 1.8
If \(\theta\) is the angle between nonzero vectors \(\textbf{v}\) and \(\textbf{w}\), then
By Corollary 1.8, the dot product can be thought of as a way of telling if the angle between two vectors is acute, obtuse, or a right angle, depending on whether the dot product is positive, negative, or zero, respectively. See Figure 1.3.2.
width height 0.5pt
Example 1.6
Are the vectors \(\textbf{v} = (-1,5,-2)\) and \(\textbf{w} = (3,1,1)\) perpendicular?
Solution:
Yes, \(\textbf{v} \perp \textbf{w}\) since \(\Dotprod{\textbf{v}}{\textbf{w}} = (-1)(3) + (5)(1) + (-2)(1) = 0\).
width height 0.5pt
The following theorem summarizes the basic properties of the dot product.
Theorem 1.9
For any vectors u, v, w, and scalar \(k\), we have
| (a) \(\Dotprod{\textbf{v}}{\textbf{w}} = \Dotprod{\textbf{w}}{\textbf{v}}\) | Commutative Law |
| (b) \(\Dotprod{(k\textbf{v})}{\textbf{w}} = \Dotprod{\textbf{v}}{(k\textbf{w})} = k(\Dotprod{\textbf{v}}{\textbf{w}})\) | Associative Law |
| (c) \(\Dotprod{\textbf{v}}{\textbf{0}} = 0 = \Dotprod{\textbf{0}}{\textbf{v}}\) | |
| (d) \(\Dotprod{\textbf{u}}{(\textbf{v} + \textbf{w})} = \Dotprod{\textbf{u}}{\textbf{v}} + \Dotprod{\textbf{u}}{\textbf{w}}\) | Distributive Law |
| (e) \(\Dotprod{(\textbf{u} + \textbf{v})}{\textbf{w}} = \Dotprod{\textbf{u}}{\textbf{w}} + \Dotprod{\textbf{v}}{\textbf{w}}\) | Distributive Law |
| (f) \(\abs{\Dotprod{\textbf{v}}{\textbf{w}}} \le \norm{\textbf{v}}\,\norm{\textbf{w}}\) | Cauchy-Schwarz Inequality[1] |
Using Theorem 1.9, we see that if \(\Dotprod{\textbf{u}}{\textbf{v}} = 0\) and \(\Dotprod{\textbf{u}}{\textbf{w}} = 0\), then \(\Dotprod{\textbf{u}}{(k\textbf{v} + l\textbf{w})} = k(\Dotprod{\textbf{u}}{\textbf{v}}) + l(\Dotprod{\textbf{u}}{\textbf{w}}) = k(0) + l(0) =0\) for all scalars \(k, l\). Thus, we have the following fact:
For vectors v and w, the collection of all scalar combinations \(k\textbf{v} + l\textbf{w}\) is called the span of v and w. If nonzero vectors v and w are parallel, then their span is a line; if they are not parallel, then their span is a plane. So what we showed above is that a vector which is perpendicular to two other vectors is also perpendicular to their span.
The dot product can be used to derive properties of the magnitudes of vectors, the most important of which is the Triangle Inequality, as given in the following theorem:
Theorem 1.10
For any vectors v, w, we have
| (a) \(\norm{\textbf{v}}^2 = \Dotprod{\textbf{v}}{\textbf{v}}\) | |
| (b) \(\norm{\textbf{v} + \textbf{w}} \le \norm{\textbf{v}} + \norm{\textbf{w}}\) | Triangle Inequality |
| (c) \(\norm{\textbf{v} - \textbf{w}} \ge \norm{\textbf{v}} - \norm{\textbf{w}}\) |
The Triangle Inequality gets its name from the fact that in any triangle, no one side is longer than the sum of the lengths of the other two sides (see Figure 1.3.4). Another way of saying this is with the familiar statement “the shortest distance between two points is a straight line.”
A
Let \(\textbf{v} = (5,1,-2)\) and \(\textbf{w} = (4,-4,3)\). Calculate \(\Dotprod{\textbf{v}}{\textbf{w}}\).
Let \(\textbf{v} = -3\,\textbf{i} - 2\,\textbf{j} - \textbf{k}\) and \(\textbf{w} = 6\,\textbf{i} + 4\,\textbf{j} + 2\,\textbf{k}\). Calculate \(\Dotprod{\textbf{v}}{\textbf{w}}\).
For Exercises 3-8, find the angle \(\theta\) between the vectors \(\textbf{v}\) and \(\textbf{w}\).
2
\(\textbf{v} = (5,1,-2)\), \(\textbf{w} = (4,-4,3)\)
\(\textbf{v} = (7,2,-10)\), \(\textbf{w} = (2,6,4)\)
2
\(\textbf{v} = (2,1,4)\), \(\textbf{w} = (1,-2,0)\)
\(\textbf{v} = (4,2,-1)\), \(\textbf{w} = (8,4,-2)\)
2
\(\textbf{v} = -\,\textbf{i} + 2\,\textbf{j} + \textbf{k}\), \(\textbf{w} = -3\,\textbf{i} + 6\,\textbf{j} + 3\,\textbf{k}\)
\(\textbf{v} = \textbf{i}\), \(\textbf{w} = 3\,\textbf{i} + 2\,\textbf{j} + 4\textbf{k}\)
Let \(\textbf{v} = (8,4,3)\) and \(\textbf{w} = (-2,1,4)\). Is \(\textbf{v} \perp \textbf{w}\)? Justify your answer.
Let \(\textbf{v} = (6,0,4)\) and \(\textbf{w} = (0,2,-1)\). Is \(\textbf{v} \perp \textbf{w}\)? Justify your answer.
For \(\textbf{v}\), \(\textbf{w}\) from Exercise 5, verify the Cauchy-Schwarz Inequality \(\abs{\Dotprod{\textbf{v}}{\textbf{w}}} \le \norm{\textbf{v}}\,\norm{\textbf{w}}\).
For \(\textbf{v}\), \(\textbf{w}\) from Exercise 6, verify the Cauchy-Schwarz Inequality \(\abs{\Dotprod{\textbf{v}}{\textbf{w}}} \le \norm{\textbf{v}}\,\norm{\textbf{w}}\).
For \(\textbf{v}\), \(\textbf{w}\) from Exercise 5, verify the Triangle Inequality \(\norm{\textbf{v} + \textbf{w}} \le \norm{\textbf{v}} + \norm{\textbf{w}}\).
For \(\textbf{v}\), \(\textbf{w}\) from Exercise 6, verify the Triangle Inequality \(\norm{\textbf{v} + \textbf{w}} \le \norm{\textbf{v}} + \norm{\textbf{w}}\).
B
Note: Consider only vectors in \(\Real{3}\) for Exercises 15-25.
2
Prove Theorem 1.9(a).
Prove Theorem 1.9(b).
2
Prove Theorem 1.9(c).
Prove Theorem 1.9(d).
2
Prove Theorem 1.9(e).
Prove Theorem 1.10(a).
Prove or give a counterexample: If \(\Dotprod{\textbf{u}}{\textbf{v}} = \Dotprod{\textbf{u}}{\textbf{w}}\), then \(\textbf{v} =\textbf{w}\).
C
Prove or give a counterexample: If \(\Dotprod{\textbf{v}}{\textbf{w}} = 0\) for all \(\textbf{v}\), then \(\textbf{w} =\textbf{0}\).
Prove or give a counterexample: If \(\Dotprod{\textbf{u}}{\textbf{v}} = \Dotprod{\textbf{u}}{\textbf{w}}\) for all \(\textbf{u}\), then \(\textbf{v} =\textbf{w}\).
Prove that \(\Abs{\norm{\textbf{v}} - \norm{\textbf{w}}} \le \norm{\textbf{v} - \textbf{w}}\) for all v, w.
For nonzero vectors v and w, the projection of v onto w (sometimes written as \(proj_{\textbf{w}}\textbf{v}\)) is the vector u along the same line \(L\) as w whose terminal point is obtained by dropping a perpendicular line from the terminal point of v to \(L\) (see Figure 1.3.5). Show that
\[\norm{\textbf{u}} = \frac{\abs{\Dotprod{\textbf{v}}{\textbf{w}}}}{\norm{\textbf{w}}}.\](Hint: Consider the angle between v and w.)
Let \(\alpha\), \(\beta\), and \(\gamma\) be the angles between a nonzero vector v in \(\Real{3}\) and the vectors i, j, and k, respectively. Show that \(\cos^2 \alpha + \cos^2 \beta + \cos^2 \gamma = 1\).
(Note: \(\alpha\), \(\beta\), \(\gamma\) are often called the direction angles of v, and \(\cos \alpha\), \(\cos \beta\), \(\cos \gamma\) are called the direction cosines.)
- Also known as the Cauchy-Schwarz-Buniakovski Inequality. ↩
If \(\textbf{u} \perp \textbf{v}\) and \(\textbf{u} \perp \textbf{w}\), then \(\textbf{u} \perp (k\textbf{v} + l\textbf{w})\) for all scalars \(k, l\).