There are two ways to multiply two vectors. Here, we will learn about the scalar product. It has many applications in STEM. For example, scalar products are used to calculate the work done by a system, in computer graphics to calculate the amount of light hitting surfaces, and in engineering to determine the stress applied to materials.
The scalar product is the result of multiplying the magnitudes of the components of two or more vectors. This does not result in a vector, but a scalar; a scalar or dot product does not have a direction.
For two vectors \(\vec{a}\left(a_{1},a_{2},a_{3}\right)\) and \(\vec{b}\left(b_{1},b_{2},b_{3}\right)\). The scalar product is defined by:
\[ \vec{a}\cdot\vec{b}=\left|\vec{a}\right|\left|\vec{b}\right|\cos\theta \] where \(\theta\) is the angle between \(\vec{a}\) and \(\vec{b}\).
It is also commonly called the dot product as a dot is used between the two vectors being multiplied instead of a multiplication symbol.
Properties of the scalar or dot product
There are some key characteristics of scalar products that are handy to remember.
If \(\vec{a}\) and \(\vec{b}\) are non-zero vectors and \(\vec{a}\) is perpendicular to \(\vec{b}\) (i.e. there is \(90^{\circ}\) or \(\dfrac{\pi}{2}\) radians between them), then \(\vec{a}\cdot\vec{b}=0\), since \(\cos\left(90^{\circ}\right)=\cos\left(\dfrac{\pi}{2}\right)=0\).
If \(\vec{a}\) is parallel to \(\vec{b}\), then the angle between the vectors is \(0\) and \(\vec{a}\cdot\vec{b}=\left|\vec{a}\right|\left|\vec{b}\right|\) as \(\cos\left(0\right)=1\).
The dot product does not depend on the order of multiplication, so \( \vec{a}\cdot\vec{b}=\vec{b}\cdot\vec{a} \).
In three dimensions, with \(\hat{i}\), \(\hat{j}\) and \(\hat{k}\) unit vectors along the \(x\)-, \(y\)- and \(z\)-axes, respectively: \[\begin{align*} \vec{i}\cdot\vec{j} & = \vec{j}\cdot\vec{k}=\vec{k}\cdot\vec{i}=0\\ \vec{i}\cdot\vec{i} & = \vec{j}\cdot\vec{j}=\vec{k}\cdot\vec{k}=1
\end{align*}\]
Determine which of the following vectors are perpendicular.
\((5,2,3)\)
\((0,1,-1)\)
\((-2,2,2)\)
\(12\)
\(0\)
\(10\)
\(6\)
\(0\)
\(26\)
A and C; B and C
Angle between two vectors
The angle \(\theta\) where \(\left(0\leq\theta\leq\pi\right)\), between two vectors can be found using same equations used to calculate the scalar product:
\[\vec{a}\cdot\vec{b}=\mid\vec{a}\mid\mid\vec{b}\mid\cos\theta\]
We can rearrange this to make \(\theta\) the subject:
\[\begin{align*} \cos\theta & = \frac{\vec{a}\cdot\vec{b}}{\left|\vec{a}\right|\left|\vec{b}\right|}\\
\theta & = \cos^{-1}\left(\frac{\vec{a}\cdot\vec{b}}{\left|\vec{a}\right|\left|\vec{b}\right|}\right)
\end{align*}\]
Example 1 – finding the angle between two vectors
If \(\vec{a}=\left(2,3,1\right)\) and \(\vec{b}=\left(5,-2,2\right)\), find the angle \(\theta\) between \(\vec{a}\) and \(\vec{b}\).
We can start by finding \(\vec{a}\cdot\vec{b}\).
\[\begin{align*} \vec{a}\cdot\vec{b} & = \left(2,3,1\right)\cdot\left(5,-2,2\right)\\
& = 6
\end{align*}\]
Now, let's find \(\left|\vec{a}\right|\) and \(\left|\vec{b}\right|\).
\[\begin{align*} \left|\vec{a}\right| & = \sqrt{2^{2}+3^{2}+1^{2}}\\
& = \sqrt{14}
\end{align*}\]
\[\begin{align*} \left|\vec{b}\right| & = \sqrt{25+4+4}\\
& = \sqrt{33}
\end{align*}\]
Let's substitute these values into the rearranged scalar product equation.
\[\begin{align*} \theta & = \cos^{-1}\left(\frac{6}{\sqrt{33}\times\sqrt{14}}\right)\\
& = \cos^{-1}\left(0.2791\right)\\
& = 73.8^{\circ}
\end{align*}\]
Therefore, the angle between \(\vec{a}\) and \(\vec{b}\) is \(73.8^{\circ}\).
Find the angle \(\theta\) between \(\vec{a}\left(1,0,1\right)\) and \(\vec{b}\left(-2,-1,1\right).\)
Starting with \(\vec{a}\cdot\vec{b}\):
\[\begin{align*} \vec{a}\cdot\vec{b} & = (1,0,1)\cdot(-2,-1,1)\\
& = -1
\end{align*}\]
Now, \(\left|\vec{a}\right|\) and \(\left|\vec{b}\right|\):
\[\left|\vec{a}\right| = \sqrt{2}\]
\[\left|\vec{b}\right| = \sqrt{6}\]
Finally, we can plug them into the equation:
\[\begin{align*} \theta & = \cos^{-1}\left(\frac{\vec{a}\cdot\vec{b}}{\left|\vec{a}\right|\left|\vec{b}\right|}\right)\\
& = \cos^{-1}\left(\frac{-1}{\sqrt{2}\times\sqrt{6}}\right)\\
& = \cos^{-1}\left(-0.2887\right)\\
& = 106.8^{\circ}
\end{align*}\]
The angle between \(\vec{a}\) and \(\vec{b}\) is \(106.8^{\circ}\).
Your turn – finding the angle between two vectors
Find the angle between the following pairs of vectors.
\((1,2,3)\) and \((4,-1,0)\)
\((2,1,-2)\) and \((1,5,-1)\)
\((0,5,1)\) and \((2,0,0)\)
\((1,-2,3)\) and \((-4,1,-3)\)
\((2,1,-2)\) and \((0,4,0)\)
\((0,3,0)\) and \((0,1,0)\)
Consider the vectors \(\vec{a}\), \(\vec{b}\) and \(\vec{c}\) where \(\vec{a}=(2,2,2)\), \(\vec{b}=(3,2,-1)\) and \(\vec{c}=(-1,4,1)\).
Show that \(\vec{a}\cdot\vec{b}=\vec{a}\cdot\vec{c}\).
Rearranging \(\vec{a}\cdot\vec{b}=\vec{a}\cdot\vec{c}\) gives \(\vec{a}\cdot\left(\vec{b}-\vec{c}\right)=0\). Assuming that \(\vec{b}\neq\vec{c}\), determine the relationship between \(\vec{a}\) and \(\left(\vec{b}-\vec{c}\right)\).