<meta http-equiv="refresh" content="1; url=/nojavascript/">

# 5.3: Dot Products

Difficulty Level: At Grade Created by: CK-12

## Learning objectives

• Calculate the dot product of a pair of vectors.
• Determine the angle between a pair of vectors.
• Determine the vector and scalar projections of one vector onto another.

## Introduction

Previously, we discussed the multiplication of a vector by a scalar. There are actually two ways to multiply two vectors, both of which depend on the relative directions of the two vectors. One of the methods has its maximum when the two vectors are parallel; the other is maximized when the two vectors are perpendicular to one another. In this section we will look at the type of vector multiplication that gives a scalar value as the product. The Dot Product, also known as the scalar product, of two vectors will allow us to determine the angle between the two vectors and therefore will also help us to determine whether two vectors are parallel, perpendicular, or something in between.

## Dot Product

The dot product of two vector quantities is a scalar quantity which varies as the angle between the two vectors changes. The dot product is therefore sometimes referred to as the scalar product of the two vectors. The maximum value for the dot product occurs when the two vectors are parallel to one another, but when the two vectors are perpendicular to one another the value of the dot product is equal to 0. Furthermore, the dot product must satisfy several important properties of multiplication. The dot product must be commutative

A×B=B×A$\overrightarrow{A} \times \overrightarrow{B} = \overrightarrow{B} \times \overrightarrow{A}$

The dot product must also be distributive

A×(B+C)=A×B+A×C$\overrightarrow{A} \times (\overrightarrow{B} + \overrightarrow{C}) = \overrightarrow{A} \times \overrightarrow{B} + \overrightarrow{A} \times \overrightarrow{C}$

If we simply multiply the magnitudes of the two vectors together, we would fulfill the commutative property, but not the distributive property, since the magnitude

|B+C||B|+|C|$| \overrightarrow{B} + \overrightarrow{C} |\ne|\overrightarrow{B}| + |\overrightarrow{C} |$

There are two ways to calculate the dot product. One way is to multiply the individual components. Each component of vector A$\overrightarrow{A}$ is multiplied by the component of vectorB$\overrightarrow{B}$ which is in the same direction. Then we add the results.

A×B=AxBx+AyBy+AzBz+...$\overrightarrow{A} \times \overrightarrow{B} = {A_x}{B_x} + {A_y}{B_y} + {A_z}{B_z} + ...$

Another way to describe the process is to say that the dot product is the multiplication of one vector by the component of a second vector which is parallel to the first vector. In the diagram below are two vectors, A and B. A perpendicular line has been drawn radially outward from B towards A to create a right triangle with A as the hypotenuse.

The component ofA$\overrightarrow{A}$ which is parallel to B$\overrightarrow{B}$ is given by A cos θ so the second way to compute the dot product is A×B=A(B cos θ)=|A||B| cos θ$\overrightarrow{A} \times \overrightarrow{B} = \overrightarrow{A}(\overrightarrow{B}\ \mbox{cos}\ \theta) = | \overrightarrow{A} ||\overrightarrow{B}|\ \mbox{cos}\ \theta$

Likewise, the component of B$\overrightarrow{B}$ which is parallel to A$\overrightarrow{A}$ is given by B cos θ , so the dot product B×A=|B|(|A| cos θ)=|A||B| cos θ$\overrightarrow{B} \times \overrightarrow{A} = |\overrightarrow{B}|(|\overrightarrow{A}|\ \mbox{cos}\ \theta) = |\overrightarrow{A}||\overrightarrow{B}|\ \mbox{cos}\ \theta$

No matter which of the two vectors we project onto the other, the value of the dot product is maximized when the two vectors are parallel and zero when the two vectors are perpendicular to one another. When a vector is dotted with itself, the result is the square of the vectors magnitude since, by definition, a vector has the same direction as an equal vector.

A×A=|A| (|A| cos θ)=|A||A| cos 0=|A|2$\overrightarrow{A} \times \overrightarrow{A} = |\overrightarrow{A}|\ (|\overrightarrow{A}|\ \mbox{cos}\ \theta) = |\overrightarrow{A}||\overrightarrow{A}|\ \mbox{cos}\ 0 = |\overrightarrow{A}|^2$

Also, the dot product of any vector with the zero vector is equal to zero since the magnitude of the zero vector is itself equal to 0.

Now that we have two ways to compute the dot product, we can use these two methods to solve problems about vectors. The following examples illustrate one instance of this.

Example: (a) Calculate the dot product of the two vectors shown below. (b) Then determine the angle between the two vectors.A=1,3$\overrightarrow{A} = \left \langle {1},{3} \right \rangle$ and B=3,2$\overrightarrow{B} = \left \langle {3},{2} \right \rangle$.

Solution: First we will use the components of the two vectors to determine the dot product.

A×B=AxBx+AyBy=(13)+(32)=3+6=9$\overrightarrow{A} \times \overrightarrow{B} = {A_x}{B_x} + {A_y}{B_y} = (1 \cdot 3) + (3 \cdot 2) = 3 + 6 = 9$

Now that we know the dot product, the alternative definition of the dot product, A×B=|A||B| cos θ$\overrightarrow{A} \times \overrightarrow{B} = |A||B|\ \mbox{cos}\ \theta$ to find θ, the angle between the vectors. First find the magnitudes of the two vectors:

|A|=Ax2+Ay2=12+32=1+9=10$|A| = \sqrt{{A_x}^2 + {A_y}^2} = \sqrt{{1^2}+{3^2}}=\sqrt{{1}+{9}}=\sqrt{10}$

|B|=Bx2+By2=32+22=9+4=13$|B| = \sqrt{{B_x}^2 + {B_y}^2} = \sqrt{{3^2}+{2^2}}=\sqrt{{9}+{4}}=\sqrt{13}$

Then use these magnitudes with the cosine version of the dot product to find θ.

A×B=|A||B| cos θ$\overrightarrow{A} \times \overrightarrow{B} = |A||B|\ \mbox{cos}\ \theta$

9=1013 cos θ$9 = \sqrt{10}\sqrt{13} \ \mbox{cos}\ \theta$

cos θ=9130=911.4=0.78935$\mbox{cos}\ \theta = \frac{9} {\sqrt{130}} = \frac{9}{11.4} = 0.78935$

θ=37.9$\theta = 37.9^\circ$

Example: Calculate the dot product of the two vectors shown below. Then determine the angle between the two vectors.

Solution: Use the components of the two vectors to determine the dot product. Here A=2,3$\overrightarrow{A} = \left \langle {2,3} \right \rangle$ and B=3,1$\overrightarrow{B} = \left \langle {3,-1} \right \rangle$.

A×B=AxBx+AyBy=(23)+(31)=6+(3)=3$\overrightarrow{A} \times \overrightarrow{B} = {A_x}{B_x}+{A_y}{B_y}=(2 \cdot 3)+(3 \cdot -1)=6+(-3)=3$

Now to find the angle between the vectors, first find the magnitudes of the two vectors:

|A|=Ax2+Ay2=22+32=4+9=13$|A|=\sqrt{{A_x}^2+{A_y}^2}=\sqrt{{2^2}+{3^2}}=\sqrt{{4}+{9}}=\sqrt{13}$

|B|=Bx2+By2=32+(1)2=9+1=10$|B|=\sqrt{{B_x}^2+{B_y}^2}=\sqrt{{3^2}+{(-1)^2}}=\sqrt{{9}+{1}}=\sqrt{10}$

Then use these magnitudes with the cosine version of the dot product to find θ.

A×B=|A||B| cos θ$\overrightarrow{A} \times \overrightarrow{B}=|A||B|\ \mbox{cos}\ \theta$

3=1013 cos θ$3=\sqrt{10}\sqrt{13}\ \mbox{cos}\ \theta$

cos θ=3130=311.4=0.26312$\mbox{cos}\ \theta = \frac{3} {\sqrt{130}} = \frac{3}{11.4}=0.26312$

θ=74.7$\theta = 74.7^\circ$

Notice that these two vectors have these same magnitudes as the vectors in Example 1, but their dot product is not the same because they are placed at different angles relative to one another.

## Scalar Projections

A scalar projection of a vector onto a particular direction is given by the dot product of the vector with the unit vector for that direction. For example, the component notations for the vectors shown below are AB=4,3$AB =\left \langle {4,3} \right \rangle$ and D=3,1.25$D =\left \langle {3,-1.25} \right \rangle$.

The scalar projection of vector AB onto x^$\hat{x}$ is given by

AB×x^=(41)+(30)+(00)=4$\overrightarrow{AB} \times \hat{x}=(4 \cdot 1)+(3 \cdot 0)+(0 \cdot 0)=4$

The scalar projection of vector AB onto y^$\hat{y}$ is given by

AB×y^=(40)+(31)+(00)=3$\overrightarrow{AB} \times \hat{y}=(4 \cdot 0)+(3 \cdot 1)+(0 \cdot 0)=3$

And the scalar projection of vector AB onto z^$\hat{z}$ is given by

AB×z^=(40)+(30)+(01)=0$\overrightarrow{AB} \times \hat{z}=(4 \cdot 0)+(3 \cdot 0)+(0 \cdot 1)=0$

The scalar projections of AB onto the x and y directions are non-zero numbers because the vector is located in the x-y plane. The scalar projection of AB onto the z direction is equal to zero, because the z direction is perpendicular to AB.

Example: The diagram below shows both vectors AB and D together on the same grid. Determine the scalar projection of vector AB onto the direction of vector D.

Solution: To find the scalar projection onto the direction of another vector we need to know the unit vector in the direction of vector D.

First, the components of D$\overrightarrow{D}$ are

D=3,1.25$\overrightarrow{D}=\left \langle 3,-1.25 \right \rangle$

Now the magnitude of D$\overrightarrow{D}$ is

|D|=(Dx)2+(Dy)2=32+(1.25)2=9+1.5625=10.5625$|D|=\sqrt{(D_x)^2+(D_y)^2}=\sqrt{3^2+(-1.25)^2}=\sqrt{9+1.5625}=\sqrt{10.5625}$ =3.25$=3.25$.

Finally, the direction vector of D$\overrightarrow{D}$ is

D=D|D|=3x^+(1.25)y^3.25=33.25 x^+1.253.25 y^$\overrightarrow{D}=\frac{\overrightarrow{D}}{|D|}=\frac{3\hat{x}+(-1.25)\hat{y}}{3.25}=\frac{3}{3.25}\ \hat{x}+\frac{-1.25}{3.25}\ \hat{y}$.

D=0.923,0.385$\overrightarrow{D}=\left \langle 0.923,-0.385 \right \rangle$

Now we can use the dot-product to calculate the scalar projection of AB onto the direction of vector D.

AB ×D=(30.923)+(40.385)+(00)=2.769+(1.54)=1.23$\overrightarrow{AB}\ \times \overrightarrow{D}=(3 \cdot 0.923)+(4 \cdot -0.385)+(0 \cdot 0)=2.769+(-1.54)=1.23$

## Vector Projections

The vector projection of a vector onto a given direction has a magnitude equal to the scalar projection. The direction of the vector projection is the same as the unit vector of that given direction. In a previous section, we saw that when a vector v$\overrightarrow{v}$ is multiplied by a scalar s, its components are given by

sv=svx,svy,svz$\overrightarrow{sv}=\left \langle sv_x,sv_y,sv_z \right \rangle$

To calculate the vector projection of AB onto the direction of vector D, use the scalar projection calculated in the previous example and the unit vector D$\overrightarrow{D}$.

(AB ×D)D=(1.230.923),(1.230.385)=1.135,0.474$(\overrightarrow{AB}\ \times \overrightarrow{D}) \overrightarrow{D}=\left \langle (1.23 \cdot 0.923),(1.23 \cdot -0.385)\right \rangle=\left \langle 1.135,-0.474 \right \rangle$

## Lesson Summary

One of the two ways to multiply vector quantities is the Scalar Product. The scalar product, also known as the dot product, multiplies one vector by the component of the second vector which is parallel to the first. The result of a scalar product of two vectors is always a scalar number rather than a vector. There are two ways to calculate the dot product:A ×B=|A||B| cos θ$\overrightarrow{A}\ \times \overrightarrow{B}=|A||B|\ \mbox{cos}\ \theta$ andA×B=AxBx+AyBy+AzBz+...$\overrightarrow{A} \times \overrightarrow{B}= A_x B_x + A_y B_y + A_z B_z +...$. These two versions of the dot product can be use to determine the angle between two vectors. The dot product can also be used to determine the scalar and vector projections of one vector in the direction of the other. The scalar projection of A$\overrightarrow{A}$ onto the direction of B$\overrightarrow{B}$ is given by A×B$\overrightarrow{A} \times \overrightarrow{B}$ and the vector projection of A$\overrightarrow{A}$ onto the direction of B$\overrightarrow{B}$ is given by (A×B)B$(\overrightarrow{A} \times \overrightarrow{B}) \overrightarrow{B}$ , where B$\overrightarrow{B}$ is the unit vector in the direction of B$\overrightarrow{B}$.

## Practice Problems

1. Determine the dot product of the two vectorsf=3,13,11$\overrightarrow{f}=\left \langle 3,13,11 \right \rangle$ and g=9,6,15$\overrightarrow{g}=\left \langle 9,6,15 \right \rangle$.
2. Determine the dot product of the two vectors shown in the diagram below. A=7cm$\overrightarrow{A}=7cm$ @ 0$0^\circ$ and B=4cm$\overrightarrow{B}=4cm$ @ 22$-22^\circ$.
3. Determine the vector projection of A$\overrightarrow{A}$ onto the direction of B$\overrightarrow{B}$ and the vector projection of B$\overrightarrow{B}$ onto the direction of A$\overrightarrow{A}$. A=7cm$\overrightarrow{A}=7cm$ @ 0$0^\circ$ and B=4cm$\overrightarrow{B}=4cm$ @ 22$-22^\circ$.
4. Determine the dot product of two vectors E=14,8.5,21$\overrightarrow{E}=\left \langle 14,8.5,21\right \rangle$ and G=15,12.4,3.7$\overrightarrow{G}=\left \langle 15,12.4,-3.7\right \rangle$ . Then determine the angle between the two vectors.
5. Determine the dot product of the following two vectors
6. Determine the scalar projection of the vector R=27,39,52$\overrightarrow{R}=\left \langle 27,39,52 \right \rangle$ onto the direction of T=44,26,17$\overrightarrow{T}=\left \langle 44,26,17 \right \rangle$ .
7. Determine the vector projection of vector MN$\overrightarrow{MN}$ onto the vector KL$\overrightarrow{KL}$ .
8. Determine the angle between the two vectors MN$\overrightarrow{MN}$ and KL$\overrightarrow{KL}$.
9. Determine the dot product of the two vectors w=85,89,91$\overrightarrow{w}=\left \langle 85,89,91 \right \rangle$ and h=67,70,88$\overrightarrow{h}=\left \langle 67,70,88 \right \rangle$ , then determine the angle between the two vectors.

## Date Created:

Feb 23, 2012

Jun 08, 2015
You can only attach files to None which belong to you
If you would like to associate files with this None, please make a copy first.