"

3. The Dot Product

In this section, we develop an operation called the dot product, which allows us to calculate work in the case when the force vector and the motion vector have different directions. The dot product essentially tells us how much of the force vector is applied in the direction of the motion vector. The dot product can also help us measure the angle formed by a pair of vectors and the position of a vector relative to the coordinate axes. It even provides a simple test to determine whether two vectors meet at a right angle.

The Dot Product and Its Properties

We have already learned how to add and subtract vectors. In this chapter, we investigate two types of vector multiplication. The first type of vector multiplication is called the dot product, based on the notation we use for it, and it is defined as follows:

Definition

The dot product of vectors u=\langle u_1,u_2,u_3 \rangle and v=\langle v_1,v_2,v_3\rangle is given by the sum of the products of the components

u⋅v = u_1 v1+u_2 v_2+u_3 v_3.

Note that if u and v are two-dimensional vectors, we calculate the dot product in a similar fashion. Thus, if  u=\langle u_1,u_2 \rangle and v=\langle v_1,v_2\rangle, then:

 

u⋅v = u_1 v1+u_2 v_2

When two vectors are combined under addition or subtraction, the result is a vector. When two vectors are combined using the dot product, the result is a scalar. For this reason, the dot product is often called the scalar product. It may also be called the inner product.

Example: Calculating Dot Products

  1. Find the dot product of  u=\langle 3, 5, 2 \rangle and v=\langle -1, 3, 0\rangle.
  2. Find the scalar product of p=10i−4j+7k and q=−2i+j+6k.

Solution

(1) Substitute the vector components into the formula for the dot product:

image

(2) The calculation is the same if the vectors are written using standard unit vectors. We still have three components for each vector to substitute into the formula for the dot product:

image

Like vector addition and subtraction, the dot product has several algebraic properties. We prove three of these properties and leave the rest as exercises.

Theorem 2.3

Properties of the Dot Product

Let u, v, and w be vectors, and let c be a scalar.

image

Proof

Let  u=\langle u_1,u_2,u_3 \rangle and v=\langle v_1,v_2,v_3\rangle. Then

image

The associative property looks like the associative property for real-number multiplication, but pay close attention to the difference between scalar and vector objects:

image

The proof that c (u⋅v) = u ⋅ (c v) is similar.

The fourth property shows the relationship between the magnitude of a vector and its dot product with itself:

image

Note that the definition of the dot product yields 0⋅v=0. By property iv., if v⋅v=0, then v=0.

Using the Dot Product to Find the Angle between Two Vectors

When two nonzero vectors are placed in standard position, whether in two dimensions or three dimensions, they form an angle between them (Figure 3.3.1). The dot product provides a way to find the measure of this angle. This property is a result of the fact that we can express the dot product in terms of the cosine of the angle formed by two vectors.

image
Figure 3.3.1 Let θ be the angle between two nonzero vectors u and v such that 0≤θ≤π.

Theorem

Evaluating a Dot Product

The dot product of two vectors is the product of the magnitude of each vector and the cosine of the angle between them:

u⋅v=||u|| ||v|| cos θ.

Proof

Place vectors u and v in standard position and consider the vector vu (Figure 3.3.2). These three vectors form a triangle with side lengths ||u||, ||v||, and ||vu||.

image
Figure 3.3.2 The lengths of the sides of the triangle are given by the magnitudes of the vectors that form the triangle.

Recall from trigonometry that the law of cosines describes the relationship among the side lengths of the triangle and the angle θ. Applying the law of cosines here gives

 

||v−u||2=||u||2+||v||2-2||u|| ||v|| cos θ.

The dot product provides a way to rewrite the left side of this equation:

image

Substituting into the law of cosines yields

image

We can use this form of the dot product to find the measure of the angle between two nonzero vectors. The following equation rearranges the equation above to solve for the cosine of the angle:

cos θ=\frac{u \cdot v}{\|u\| \|v\|}.

Using this equation, we can find the cosine of the angle between two nonzero vectors. Since we are considering the smallest angle between the vectors, we assume 0°≤θ≤180° (or 0≤θ≤π if we are working in radians). The inverse cosine is unique over this range, so we are then able to determine the measure of the angle θ.

Example: Finding the Angle between Two Vectors

Find the measure of the angle between each pair of vectors.

  1. i + j + k and 2ij – 3k
  2. \langle 2, 5, 6 \rangle and \langle2, -4, 4 \rangle

Solution

(1) To find the cosine of the angle formed by the two vectors, substitute the components of the vectors into the equation for cosθ:

imageTherefore, θ=arccos( -2/ \sqrt{42}) rad.

(2) Start by finding the value of the cosine of the angle between the vectors:

imageNow, cos θ=0 and 0≤θ≤π, so θ=π/2.

The angle between two vectors can be acute (0<cos θ<1), obtuse (−1<cos θ<0), or straight (cos θ=−1.) If cos θ=1, then both vectors have the same direction. If cos θ=0, then the vectors, when placed in standard position, form a right angle (Figure 3.3.3). We can formalize this result into a theorem regarding orthogonal (perpendicular) vectors.

image
Figure 3.3.3 (a) An acute angle has 0<cos θ<1. (b) An obtuse angle has −1<cos θ<0. (c) A straight line has cos θ=−1. (d) If the vectors have the same direction, cos θ=1. (e) If the vectors are orthogonal (perpendicular), cos θ=0.

Theorem

Orthogonal Vectors

The nonzero vectors u and v are orthogonal vectors if and only if u⋅v=0.

Proof

Let u and v be nonzero vectors, and let θ denote the angle between them. First, assume u⋅v=0. Then

||u|| ||v|| cos θ=0.

However, ||u||≠0 and ||v||≠0, so we must have cos θ=0. Hence, θ=90°, and the vectors are orthogonal. Now assume u and v are orthogonal. Then θ=90° and we have

 

u⋅v=||u|| ||v|| cos θ=||u|| ||v|| cos 90°||u|| ||v|| (0)=0.

The terms orthogonal, perpendicular, and normal each indicate that mathematical objects are intersecting at right angles. The use of each term is determined mainly by its context. We say that vectors are orthogonal and lines are perpendicular. The term normal is used most often when measuring the angle made with a plane or other surface.

Example: Identifying Orthogonal Vectors

Determine whether p=\langle 1,0,5 \rangle and q= \langle 10,3,−2 \rangle are orthogonal vectors.

Solution

Using the definition, we need only check the dot product of the vectors:

p⋅q=1(10)+(0)(3)+(5)(−2)=10+0−10=0.

Because p⋅q=0, the vectors are orthogonal.

image
Vectors p and q form a right angle when their initial points are aligned.

The angle a vector makes with each of the coordinate axes, called a direction angle, is very important in practical computations, especially in a field such as engineering. For example, in astronautical engineering, the angle at which a rocket is launched must be determined very precisely. A very small error in the angle can lead to the rocket going hundreds of miles off course. Direction angles are often calculated by using the dot product and the cosines of the angles, called the direction cosines. Therefore, we define both these angles and their cosines.

Definition

The angles formed by a nonzero vector and the coordinate axes are called the direction angles for the vector (Figure 3.3.4). The cosines for these angles are called the direction cosines.

image
Figure 3.3.4 Angle α is formed by vector v and unit vector i. Angle β is formed by vector v and unit vector j. Angle γ is formed by vector v and unit vector k.