Dot Product
Definition of the Dot Product
The dot product (or scalar product) of two vectors is the number equal to the product of the lengths of these vectors and the cosine of the angle between them.
The dot product of vectors a and b will be denoted by the symbol a·b. If the angle between vectors a and b is equal to φ, then by definition the dot product of these two vectors is expressed by the formula
The dot product can also be defined in terms of vector projection. Indeed, the projection of vector b on the axis defined by the vector a is equal to
Comparing this with the previous expression, we find
In our reasoning, we can reverse the roles of the vectors a and b, which leads to the following expression for the dot product
Geometric Properties of the Dot Product
The dot product of vectors a and b is zero if the vectors a and b are perpendicular, or if one of the vectors a and b or both of them are zero:
The dot product of two vectors a and b is positive if the angle φ between the vectors a and b is acute:
The dot product of two vectors a and b is negative if the angle φ between the vectors a and b is obtuse:
The dot product of two vectors a and b is less than or equal to the product of their lengths:
The dot product of two vectors a and b is equal to the product of their lengths if only the vectors a and b are parallel:
Algebraic Properties of the Dot Product
Commutative law for dot product:
Associative law for dot product:
Distributive law for dot product:
If a is a nonzero vector, then
If \(\mathbf{a} = \mathbf{0},\) then
Dot Product in Cartesian Coordinates
If \(\mathbf{a} = \left({X_1, Y_1, Z_1}\right)\) and \(\mathbf{b} = \left({X_2, Y_2, Z_2}\right),\) then the dot product of these vectors is given by
The angle φ between vectors \(\mathbf{a} = \left({X_1, Y_1, Z_1}\right)\) and \(\mathbf{b} = \left({X_2, Y_2, Z_2}\right)\) is determined by the formula
It is assumed here that a and b are nonzero vectors.
The vectors \(\mathbf{a} = \left({X_1, Y_1, Z_1}\right)\) and \(\mathbf{b} = \left({X_2, Y_2, Z_2}\right)\) are perpendicular if
The scalar square of a vector is equal to the square of its length. If \(\mathbf{a} = \left({X, Y, Z}\right),\) then
Scalar squares of the unit vectors:
Dot product of distinct unit vectors:
Some Applications of the Dot Product
Law of Cosines
Consider two vectors a and b. Let the angle between them be φ. Let's draw a vector c which is equal to the difference of a and b. These three vectors form a triangle.
We derive the Law of Cosines using the dot product of vectors. Express \(\Vert{\mathbf{c}}\Vert^2\) in terms of a, b and φ.
Using the properties of the dot product, we get
Thus, we have proved the Law of Cosines:
Work Done by a Force
If the vector F represents the force, the point of application of which moves along the displacement vector d, then the work W done by the specified force is defined to be
that is, it is equal to the dot product of the force and displacement vectors.
Power
The rate at which a force F does work W is called power of that force. It is denoted by the symbol P. Divide the previous expression by the time t:
The quantity \(\frac{\mathbf{d}}{t}\) represents the velocity v of the body. Hence, power is the dot product of the force and velocity vectors:
Solved Problems
Example 1.
Find the dot product of vectors \(\mathbf{a}\) and \(\mathbf{b}\) if
- \(\Vert\mathbf{a}\Vert = 5,\) \(\Vert\mathbf{b}\Vert = 2,\) \(\varphi = 60^\circ\)
- \(\Vert\mathbf{a}\Vert = 1,\) \(\Vert\mathbf{b}\Vert = 4,\) \(\varphi = 90^\circ,\) where \(\varphi\) is the angle between \(\mathbf{a}\) and \(\mathbf{b}\)
- \(\Vert\mathbf{a}\Vert = 3,\) \(\Vert\mathbf{b}\Vert = 6,\) vectors \(\mathbf{a}\) and \(\mathbf{b}\) are in the same direction
- \(\Vert\mathbf{a}\Vert = 7,\) \(\Vert\mathbf{b}\Vert = 2,\) vectors \(\mathbf{a}\) and \(\mathbf{b}\) are in the opposite direction
Solution.
- The dot product of vectors \(\mathbf{a}\) and \(\mathbf{b}\) is defined by the formula
\[\mathbf{a} \cdot \mathbf{b} = \Vert{\mathbf{a}}\Vert \Vert{\mathbf{b}}\Vert \cos\varphi.\]Substituting the given values we find\[\mathbf{a} \cdot \mathbf{b} = 5 \cdot 2 \cos60^\circ = 10\cdot\frac{1}{2} = 5;\]
- The vectors \(\mathbf{a}\) and \(\mathbf{b}\) are perpendicular. Therefore, their dot product is zero:
\[\mathbf{a} \cdot \mathbf{b} = \Vert{\mathbf{a}}\Vert \Vert{\mathbf{b}}\Vert \cos\varphi = 1 \cdot 4\cos90^\circ = 4\cdot0 = 0;\]
- The angle between vectors \(\mathbf{a}\) and \(\mathbf{b}\) is equal to zero. Hence
\[\mathbf{a} \cdot \mathbf{b} = \Vert{\mathbf{a}}\Vert \Vert{\mathbf{b}}\Vert \cos\varphi = 3 \cdot 6\cos0^\circ = 18\cdot1 = 18;\]
- Here the angle between the vectors is \(180^\circ.\) Then the dot product is
\[\mathbf{a} \cdot \mathbf{b} = \Vert{\mathbf{a}}\Vert \Vert{\mathbf{b}}\Vert \cos\varphi = 7 \cdot 2\cos180^\circ = 14\cdot\left({-1}\right) = -14.\]
Example 2.
Given vectors \(\mathbf{a}\left({1,2,3}\right)\) and \(\mathbf{b}\left({6,4,-2}\right).\) Calculate:
- \(\mathbf{a} \cdot \mathbf{b}\)
- \(\left({\mathbf{a} - 3\mathbf{b}}\right)\left({2\mathbf{a} + \mathbf{b}}\right)\)
- \(\left({\mathbf{a} + \mathbf{b}}\right)^2\)
Solution.
- The dot product of two vectors \(\mathbf{a} = \left({X_1, Y_1, Z_1}\right)\) and \(\mathbf{b} = \left({X_2, Y_2, Z_2}\right)\) in coordinate form is given by the formula
\[\mathbf{a} \cdot \mathbf{b} = X_1X_2 + Y_1Y_2 + Z_1Z_2.\]Hence,\[\mathbf{a} \cdot \mathbf{b} = 1\cdot6 + 2\cdot4 + 3\cdot\left({-2}\right) = 6 + 8 - 6 = 8;\]
- First we compute the vectors \(\left({\mathbf{a} - 3\mathbf{b}}\right)\) and \(\left({2\mathbf{a} + \mathbf{b}}\right).\) By writing them as column vectors, we have
\[\mathbf{a} - 3\mathbf{b} = \left[\begin{array}{*{20}{c}} 1\\ 2\\ 3 \end{array} \right] - 3\left[\begin{array}{*{20}{c}} 6\\ 4\\ -2 \end{array} \right] = \left[\begin{array}{*{20}{c}} 1\\ 2\\ 3 \end{array} \right] - \left[\begin{array}{*{20}{c}} 18\\ 12\\ -6 \end{array} \right] = \left[\begin{array}{*{20}{c}} -17\\ -10\\ 9 \end{array} \right];\]\[2\mathbf{a} + \mathbf{b} = 2\left[\begin{array}{*{20}{c}} 1\\ 2\\ 3 \end{array} \right] + \left[\begin{array}{*{20}{c}} 6\\ 4\\ -2 \end{array} \right] = \left[\begin{array}{*{20}{c}} 2\\ 4\\ 6 \end{array} \right] + \left[\begin{array}{*{20}{c}} 6\\ 4\\ -2 \end{array} \right] = \left[\begin{array}{*{20}{c}} 8\\ 8\\ 4 \end{array} \right].\]Now we calculate the dot product:\[\left({\mathbf{a} - 3\mathbf{b}}\right)\left({2\mathbf{a} + \mathbf{b}}\right) = \left[\begin{array}{*{20}{c}} -17\\ -10\\ 9 \end{array} \right] \cdot \left[\begin{array}{*{20}{c}} 8\\ 8\\ 4 \end{array} \right] = \left({-17}\right)\cdot8 + \left({-10}\right)\cdot8 + 9\cdot4 = -136-80+36=-180;\]
- It's obvious that
\[\mathbf{a} + \mathbf{b} = \left[\begin{array}{*{20}{c}} 1\\ 2\\ 3 \end{array} \right] + \left[\begin{array}{*{20}{c}} 6\\ 4\\ -2 \end{array} \right] = \left[\begin{array}{*{20}{c}} 7\\ 8\\ 1 \end{array} \right].\]Using the formula\[\mathbf{a}^2 = \Vert{\mathbf{a}}\Vert^2 = X^2 +Y^2 +Z^2,\]we find:\[\left({\mathbf{a} + \mathbf{b}}\right)^2 = \Vert{\mathbf{a} + \mathbf{b}}\Vert^2 = 7^2 + 8^2 + 1^2 = 49+64+1=114.\]
Example 3.
Prove that vectors \(\mathbf{a}\) and \(\mathbf{b}\left({\mathbf{a}\cdot\mathbf{c}}\right) - \mathbf{c}\left({\mathbf{a}\cdot\mathbf{b}}\right)\) are mutually perpendicular.
Solution.
Compute the dot product of the given vectors:
As you can see, the dot product is zero. This means that the vectors are perpendicular.
Example 4.
Lines drawn from the vertex of a square divide the opposite sides in half. Find the angle between these lines.
Solution.
Let the points M and N be the midpoints of the sides of the square.
We need to calculate the angle \(\varphi\) between vectors \(\mathbf{OM} = \mathbf{a}\) and \(\mathbf{ON} = \mathbf{b}.\) Introduce the coordinate system as shown in the Figure. In this coordinate system, the coordinates of the points M and N are \(M\left(1, \frac{1}{2}\right),\) \(N\left(\frac{1}{2}, 1\right).\)
Vectors a and b have the same coordinates:
Calculate the angle between these vectors using the dot product:
Therefore, the angle φ is
Example 5.
Find the angle between bisectors in the xy- and yz-plane.
Solution.
Let OM be the bisector in the xy-plane and ON the bisector in the yz-plane.
Vectors \(\mathbf{OM} = \mathbf{a}\) and \(\mathbf{ON} = \mathbf{b}\) built on the bisectors have the following coordinates in the given coordinate system:
Calculate the angle between vectors a and b:
Hence, the angle between the bisectors is
Example 6.
Given two vectors \(\mathbf{a}\left({2,1}\right)\) and \(\mathbf{b}\left({1,-3}\right).\) Find a vector \(\mathbf{x}\) that satisfies the system of equations \[{\left\{ \begin{array}{l} \mathbf{x} \cdot \mathbf{a} = 10\\ \mathbf{x} \cdot \mathbf{b} = -2 \end{array} \right..}\]
Solution.
Let vector \(\mathbf{x}\) have coordinates \(\left({x,y}\right).\) Then the system of equations can be re-written in coordinate form:
Solving the resulting system, we find x and y:
So the vector \(\mathbf{x}\) is equal to \(\left({4,2}\right).\)