Skip to main content
   
Logo image

Physics Bootcamp

Section 3.5 Scalar Product

We have already discussed the definition of scalar products in Subsubsection 3.1.8.1. To recap, the value of scalar product between two vectors \(\vec A\) and \(\vec B\) is ordinary multiplication of the magnitude of one of the vectors and the projection of the other vector on this vector.
Mathematically, we we able to write this using the cosine of the angle between the two vectors.
\begin{align} \vec A \cdot \vec B \amp= A_{\parallel B} B\tag{3.16}\\ \amp = A B_{\parallel A} = A B \cos\theta.\tag{3.17} \end{align}
Figure 3.87. Vectors for definition of dot product of vectors.
Here, \(A_{\parallel B}\) is prjection of vector \(\vec A\) on vector \(\vec B\) and \(B_{\parallel A}\) is prjection of vector \(\vec B\) on vector \(\vec A\text{.}\) These are explained in Subsection 3.1.7.
Here, we will learn to make use of the Cartesian components of these vectors. Let us write each vector in terms of its Cartesian components.
\begin{align*} \amp \vec A = A_x \hat u_x + A_y\hat u_y + A_z \hat u_z\\ \amp \vec B= B_x \hat u_x + B_y\hat u_y + B_z \hat u_z \end{align*}
We can make us of the Distributive Property Item 2 of scalar product to expand their product as follows.
\begin{align*} \vec A \cdot \vec B \amp = \left(A_x \hat u_x + A_y\hat u_y + A_z \hat u_z\right) \cdot \left( B_x \hat u_x + B_y\hat u_y + B_z \hat u_z\right>)\\ \amp = A_xB_x \hat u_x\cdot \hat u_x + A_x B_y \hat u_x\cdot\hat u_y+\cdots \end{align*}
Now, the dot product between the unit vectors along the axes is easily worked by using the angle form of the product in Eq. (3.17) giving simple results.
\begin{align*} \amp \hat u_x \cdot \hat u_x = |\hat u_x||\hat u_x|\cos\,0^\circ = 1 \times 1 \times 1 = 1. \\ \amp \hat u_x \cdot \hat u_y = |\hat u_x||\hat u_y|\cos\,90^\circ = 1 \times 1 \times 0 = 0. \end{align*}
You can work out the other pairs you need. The upshot is that the product between Cartesian components equals \(1\) when they are the same vectors and zero otherwise.
\begin{equation} \hat u_i \cdot \hat u_j = \begin{cases} 1 \amp\quad \text{ if } i = j,\\ 0 \amp\quad \text{ if } i \ne j,\\ \end{cases}\tag{3.18} \end{equation}
where \(i\) and \(j\) stand for \(x,y,z\text{.}\) Now, we can complete the calculation for the dot product in terms of components left with \(\cdots\) above.
\begin{equation} \vec A \cdot \vec B = A_xB_x \hat u_x\cdot \hat u_x + A_x B_y \hat u_x\cdot\hat u_y+\cdots = A_xB_x + A_yB_y + A_zB_z.\tag{3.19} \end{equation}
Thus scalar product between \(\vec A \) and \(\vec B\) can be obtained in multiple ways. The following two are very useful for analytical work.
\begin{align} \vec A \cdot\vec B \amp = A_x B_x + A_y B_y + A_z B_z,\tag{3.20}\\ \amp = A B \cos\theta,\tag{3.21} \end{align}
where \(A \) and \(B \) are magnitudes of these vectors.
\begin{align*} \amp A = \sqrt{A_x^2 + A_y^2 + A_z^2}\\ \amp B = \sqrt{B_x^2 + B_y^2 + B_z^2} \end{align*}
An important use of these formulas to find the angle between two vectors, given their components. Equating these Eqs. (3.20) and (3.21), and solving for \(\cos\theta \) we get
\begin{equation} \cos\theta = \dfrac{A_x B_x + A_y B_y + A_z B_z}{A\, B}.\tag{3.22} \end{equation}
Since components are simple numbers, their multiplication order does not matter, i.e., \(A_xB_x = B_xA_x\text{,}\) therefore, the order of vectors in the dot product does not matter. That is,
\begin{equation} \vec A \cdot \vec B = \vec B \cdot \vec A.\tag{3.23} \end{equation}
This will not be the case with the other product between vectors, called cross product, we will define below - we will find that reversing the order introduces a negative sign.

Example 3.88. Scalar Product of Two Vectors Given in Components.

Find the scalar product between the following vectors: \(\vec A = (100\ \textrm{N})\ \hat u_x\) + \((10\ \textrm{N})\ \hat u_y\) + \((100\ N)\ \hat u_z \text{,}\) and \(\vec B = (30\ \textrm{m/s})\ \hat u_y\) + \((-4\ \textrm{m/s})\ \hat u_z\text{.}\)
Answer.
\(100\text{ N.m/s}\text{.}\)
Solution.
A straightforward applications of the following formula for the scalar product: \(\vec A\cdot \vec B = A_x B_x + A_y B_y + A_z B_z\) gives (suppressing units)
\begin{align*} \vec A\cdot \vec B \amp = 100\times 0 + 10 \times 30 + 100 \times (-4) \\ \amp = 0 + 300 - 400 = -100\text{ N.m/s}. \end{align*}

Example 3.89. Scalar Product of Two Vectors Given Magnitudes and Directions.

Find the scalar product between the following two vectors. \(\vec F\) that has magnitude \(100\text{ N}\) pointed towards East and \(\vec d\) that has magnitude \(50\text{ cm}\) pointed towards \(30^\circ\) West of North.
Answer.
\(- 2500\text{ N.cm}\text{.}\)
Solution.
Since we already have magnitudes of the two vectors, we need to figure out angle between them if they are drawn with their tails at the same point. You can draw to find that the angle between them is \(\theta = 90^\circ+30^\circ=120^\circ\text{.}\) Therefore,
\begin{equation*} \vec F\cdot \vec d = F d \cos\theta = 100\times 50\cos120^\circ = - 2500\text{ N.cm}. \end{equation*}

Example 3.90. Finding Angle Between Two Vectors.

Consider the following vectors given in their component forms in a three-dimensional space, \(\vec F = (3 \text{ N}, 4 \text{ N}, -5 \text{ N})\text{,}\) and \(\vec d = (-4 \text{ m}, 5 \text{ m}, 3 \text{ m})\text{.}\) (a) Find the magnitudes of the two vectors. (b) Find the dot product of the two vectors. (c) What is the angle betwen the two vectors?
Answer.
(a) \(7.07\text{ N} \text{,}\) \(7.07\text{ m} \text{,}\) (b) \(- 7\text{ N.m} \text{,}\) (c) \(98^{\circ}\)
Solution 1. a
Using \(F = \sqrt{F_x^2 + F_y^2 + F_z^2}\) on \(\vec F\) and similar formula on \(\vec d \) we immediately get the answer. The only thing we need to notice that we will also get units.
\begin{align*} F \amp = \sqrt{F_x^2 + F_y^2 + F_z^2} \\ \amp = \sqrt{(3 \text{ N})^2 + (4 \text{ N})^2 + (-5 \text{ N})^2} = 7.07\text{ N}. \end{align*}
Similarly, \(d = 7.07\text{ m}\text{.}\)
Solution 2. b
Since, vectors to be multiplied are given in the component forms, we use the definition of the scalar product based on the components.
\begin{align*} \vec F \cdot \vec d \amp = F_x d_x + F_y d_y + F_z d_z\\ \amp = (3 \text{ N})\times(-4 \text{ m}) + (4 \text{ N})\times(5 \text{ m}) + (-5 \text{ N})\times(3 \text{ m}) = - 7 \text{ N.m}. \end{align*}
Solution 3. c
Since two definitions of scalar product would give the same value and one of them has the angle \(\theta \) we seek. Therefore, we solve for \(\theta \) to get
\begin{equation*} \cos\theta = \dfrac{\vec F \cdot \vec d}{ F \, d}. \end{equation*}
Now, using the numerical values, we find that
\begin{equation*} \cos\theta = \dfrac{- 7 \text{ N.m}}{ 7.07\text{ N} \times 7.07\text{ m}} = -0.14. \end{equation*}
Inverting this we get
\begin{equation*} \theta = 1.71 \text{ rad or } 98^{\circ}. \end{equation*}

Exercises Exercises

1. Calculating Scalar Products.

Calculate the scalar product between the following pairs of vectors:
  1. \((10\ \textrm{N})\ \hat u_x\) + \((-5\ \textrm{N})\ \hat u_y\) and \((3\ \textrm{m})\ \hat u_x\) + \((4\ \textrm{m})\ \hat u_y\text{,}\)
  2. \((40\ \textrm{N})\ \hat u_x\) + \((-10\ \textrm{N})\ \hat u_y\) and \((3\ \textrm{m})\ \hat u_x\) + \((4\ \textrm{m})\ \hat u_z\text{,}\)
  3. \((100\ \textrm{N})\ \hat u_x\) + \((-10\ \textrm{N})\ \hat u_y\) and \((30\ \textrm{m})\ \hat u_y\) + \((4\ \textrm{m})\ \hat u_z\text{,}\)
  4. \((2\ \textrm{N})\ \hat u_x\) + \((3\ \textrm{N})\ \hat u_y + (4\ N)\ \hat u_z\) and \((4\ \textrm{m/s})\ \hat u_x\) + \((3\ \textrm{m/s})\ \hat u_y\) + \((2\ \textrm{m/s})\ \hat u_z\text{,}\)
  5. \((100\ \textrm{N})\ \hat u_x\) + \((-10\ \textrm{N})\ \hat u_y\) + \((100\ N)\ \hat u_z\) and \((30\ \textrm{m/s})\ \hat u_y\) + \((4\ \textrm{m/s})\ \hat u_z\text{.}\)
Answer.
See solution.
Solution.
These exercises are straightforward applications of the following formula for the scalar product: \(\vec A\cdot \vec B = A_x B_x + A_y B_y + A_z B_z\text{.}\)
(a) \(\vec A\cdot \vec B = (10\ \textrm{N})(3\ \textrm{m}) + (-5\ \textrm{N})(4\ \textrm{m}) = -7 \ \textrm{N.m}\)
(b) \(\vec A\cdot \vec B = (40\ \textrm{N})(3\ \textrm{m}) + 0 + 0 = 120\ \textrm{N.m}\)
(c) \(\vec A\cdot \vec B = (-10\ \textrm{N})(30\ \textrm{m}) + 0 + 0 = -300\ \textrm{N.m}\)
(d) 25 N.m/s.
(e) 100 N.m/s.

2. Angles Between Pairs of Vectors.

Find the angle between each pair of vectors given in Exercise 3.5.1.
Solution.
The scalar product is also equal to the product of the magnitudes of the two vectors times the cosine of the angle between the two. Therefore, the angle \(\theta\) between two vectors \(\vec A\) and \(\vec B\) can be obtained from the scalar product and the magnitudes of the two vectors by the following formula.
\begin{equation*} \cos\theta = \frac{\vec A\cdot \vec B}{|\vec A||\vec B|}. \end{equation*}
(a) Here \(|\vec A|\) = \(\sqrt{(10\ \textrm{N})^2 + (-5\ \textrm{N})^2 }\) = \(11.2\ \textrm{N}\text{,}\) and \(|\vec B|\) = \(\sqrt{(3\ \textrm{m})^2 + (4\ \textrm{m})^2 }\) = \(5\ \textrm{m}\text{.}\) We have already found that \(\vec A\cdot \vec B = -7 \ \textrm{N.m}\text{.}\) Therefore,
\begin{equation*} \cos\theta = \frac{-7 \ \textrm{N.m}}{11.2\ \textrm{N}. |5\ \textrm{m}} = -0.125. \end{equation*}
This gives the angle to be \(\theta = 97^{\circ}\text{.}\)
(b) Similarly,
\begin{equation*} \cos\theta = \frac{120}{\sqrt{40^2 + 10^2}\sqrt{3^2+4^2}} = \frac{120}{41.2} = 0.58, \end{equation*}
which gives \(\theta = 54^{\circ}\text{.}\)
(c) \(\theta = 96^{\circ}\text{.}\)
(d) \(\theta = 31^{\circ}\text{.}\)
(e) \(\theta = 89^{\circ}\text{.}\)

3. Vectors Whose Dot Product is Zero.

When will the dot product between two non-zero vectors be zero?
Hint.
Think about directions.
Answer.
Dot product is zero when vectors are perpendicular to each other, i.e., \(\theta = 90^{\circ}\text{.}\)
Solution.
Let \(A \) and \(B \) be the magnitudes of the vectors and \(\theta \) be the angle between them. Then, we want
\begin{equation*} A\, B\, \cos\,\theta = 0 \text{ when } A\ne 0 \text{ and } B\ne 0. \end{equation*}
That means,
\begin{equation*} \cos\, \theta = 0. \end{equation*}
Since, \(\theta\) can be at most \(180^{\circ}\text{,}\) there is only one value at which \(\cos\, \theta = 0\text{.}\) That is, when
\begin{equation*} \theta = 90^{\circ}. \end{equation*}
That is, the dot product is zero when the two vector are perpendicular.

4. Unit Vectors in the Direction of Perpendicular to a Given Vector.

Find a unit vector in the \(xy\)-plane perpendicular to \(a\hat u_x + b\hat u_y\) with both \(a\) and \(b\) not zero.
Solution.
Let vector \(c\hat u_x + d\hat u_y\) with \(c\) and \(d\) unknown but both \(c\) and \(d\) not zero be a vector that is perendicular to the given vector. The condition that must be satisfied is that its dot product with the given vector must be zero and that neither of the vectors are null vectors. This gives the following conditions for
\begin{equation*} a c + b d = 0. \end{equation*}
Now, if \(b\) is not zero, then
\begin{equation*} d = - \frac{a}{b} c, \end{equation*}
There are infinite number of choices here. We need only two. Let us pick \(c= \pm b\) to cancel the denominator and make it simpler expression. Then, we get \(d = \mp a\text{.}\) This says that \(b\hat u_x - a\hat u_y\) and \(-b\hat u_x + a\hat u_y\) will be perpendicular to \(a\hat u_x + b\hat u_y\text{.}\) To get unit vectors in these directions, we just divide these by their magnitude.
\begin{align*} \amp \hat u_1 = \frac{b\hat u_x - a\hat u_y}{\sqrt{a^2 + b^2}},\\ \amp \hat u_1 = \frac{-b\hat u_x + a\hat u_y}{\sqrt{a^2 + b^2}}. \end{align*}
Either of these unit vectors will be correct answer for this question. These vectors are of course just pointing away in the opposite directions from each other.

5. More Practice on Dot Product.

Find the dot products:
(a) between \(\vec A = \) ( \(30 \) m/s, due East) and \(\vec B = \) ( \(40 \) m/s, due \(60^{\circ}\) North of East),
(b) between \(\vec F = \) ( \(100 \) N, due East) and \(\vec d = \) ( \(40 \) m, due \(120^{\circ}\) Counterclockwise from East, i.e., towards North and \(30^{\circ} \) past North).
Hint.
Use \(A B \cos\, \theta \)
Answer.
(a) \(600\text{ m}^2/\text{s}^2\text{,}\) (b) \(- 2000\text{ N.m}\text{.}\)
Solution 1. (a)
(a) Here we know the magnitudes and the angle between the two vectors. Therefore, we use the dot product formula based on these quantities.
\begin{align*} \vec A\cdot \vec B \amp = A B \cos\, \theta \\ \amp = 30\text{ m/s } \times 40\text{ m/s } \times \cos\, 60^{\circ}, \\ \amp = 600\text{ m}^2/\text{s}^2. \end{align*}
Solution 2. (b)
(b) Here we know the magnitudes and the angle between the two vectors. Therefore, we use the dot product formula based on these quantities.
\begin{align*} \vec F\cdot \vec d \amp = F d \cos\, \theta\\ \amp = 100\text{ N } \times 40\text{ m } \times \cos\, 120^{\circ}, \\ \amp = - 2000\text{ N.m}. \end{align*}