Skip to Content
OpenStax Logo
Calculus Volume 3

2.3 The Dot Product

Calculus Volume 32.3 The Dot Product
Buy book
  1. Preface
  2. 1 Parametric Equations and Polar Coordinates
    1. Introduction
    2. 1.1 Parametric Equations
    3. 1.2 Calculus of Parametric Curves
    4. 1.3 Polar Coordinates
    5. 1.4 Area and Arc Length in Polar Coordinates
    6. 1.5 Conic Sections
    7. Key Terms
    8. Key Equations
    9. Key Concepts
    10. Chapter Review Exercises
  3. 2 Vectors in Space
    1. Introduction
    2. 2.1 Vectors in the Plane
    3. 2.2 Vectors in Three Dimensions
    4. 2.3 The Dot Product
    5. 2.4 The Cross Product
    6. 2.5 Equations of Lines and Planes in Space
    7. 2.6 Quadric Surfaces
    8. 2.7 Cylindrical and Spherical Coordinates
    9. Key Terms
    10. Key Equations
    11. Key Concepts
    12. Chapter Review Exercises
  4. 3 Vector-Valued Functions
    1. Introduction
    2. 3.1 Vector-Valued Functions and Space Curves
    3. 3.2 Calculus of Vector-Valued Functions
    4. 3.3 Arc Length and Curvature
    5. 3.4 Motion in Space
    6. Key Terms
    7. Key Equations
    8. Key Concepts
    9. Chapter Review Exercises
  5. 4 Differentiation of Functions of Several Variables
    1. Introduction
    2. 4.1 Functions of Several Variables
    3. 4.2 Limits and Continuity
    4. 4.3 Partial Derivatives
    5. 4.4 Tangent Planes and Linear Approximations
    6. 4.5 The Chain Rule
    7. 4.6 Directional Derivatives and the Gradient
    8. 4.7 Maxima/Minima Problems
    9. 4.8 Lagrange Multipliers
    10. Key Terms
    11. Key Equations
    12. Key Concepts
    13. Chapter Review Exercises
  6. 5 Multiple Integration
    1. Introduction
    2. 5.1 Double Integrals over Rectangular Regions
    3. 5.2 Double Integrals over General Regions
    4. 5.3 Double Integrals in Polar Coordinates
    5. 5.4 Triple Integrals
    6. 5.5 Triple Integrals in Cylindrical and Spherical Coordinates
    7. 5.6 Calculating Centers of Mass and Moments of Inertia
    8. 5.7 Change of Variables in Multiple Integrals
    9. Key Terms
    10. Key Equations
    11. Key Concepts
    12. Chapter Review Exercises
  7. 6 Vector Calculus
    1. Introduction
    2. 6.1 Vector Fields
    3. 6.2 Line Integrals
    4. 6.3 Conservative Vector Fields
    5. 6.4 Green’s Theorem
    6. 6.5 Divergence and Curl
    7. 6.6 Surface Integrals
    8. 6.7 Stokes’ Theorem
    9. 6.8 The Divergence Theorem
    10. Key Terms
    11. Key Equations
    12. Key Concepts
    13. Chapter Review Exercises
  8. 7 Second-Order Differential Equations
    1. Introduction
    2. 7.1 Second-Order Linear Equations
    3. 7.2 Nonhomogeneous Linear Equations
    4. 7.3 Applications
    5. 7.4 Series Solutions of Differential Equations
    6. Key Terms
    7. Key Equations
    8. Key Concepts
    9. Chapter Review Exercises
  9. A | Table of Integrals
  10. B | Table of Derivatives
  11. C | Review of Pre-Calculus
  12. Answer Key
    1. Chapter 1
    2. Chapter 2
    3. Chapter 3
    4. Chapter 4
    5. Chapter 5
    6. Chapter 6
    7. Chapter 7
  13. Index

Learning Objectives

  • 2.3.1. Calculate the dot product of two given vectors.
  • 2.3.2. Determine whether two given vectors are perpendicular.
  • 2.3.3. Find the direction cosines of a given vector.
  • 2.3.4. Explain what is meant by the vector projection of one vector onto another vector, and describe how to compute it.
  • 2.3.5. Calculate the work done by a given force.

If we apply a force to an object so that the object moves, we say that work is done by the force. In Introduction to Applications of Integration on integration applications, we looked at a constant force and we assumed the force was applied in the direction of motion of the object. Under those conditions, work can be expressed as the product of the force acting on an object and the distance the object moves. In this chapter, however, we have seen that both force and the motion of an object can be represented by vectors.

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=u1,u2,u3u=u1,u2,u3 and v=v1,v2,v3v=v1,v2,v3 is given by the sum of the products of the components

u·v=u1v1+u2v2+u3v3.u·v=u1v1+u2v2+u3v3.
2.3

Note that if u and v are two-dimensional vectors, we calculate the dot product in a similar fashion. Thus, if u=u1,u2u=u1,u2 and v=v1,v2,v=v1,v2, then

u·v=u1v1+u2v2.u·v=u1v1+u2v2.

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 2.21

Calculating Dot Products

  1. Find the dot product of u=3,5,2u=3,5,2 and v=−1,3,0.v=−1,3,0.
  2. Find the scalar product of p=10i4j+7kp=10i4j+7k and q=−2i+j+6k.q=−2i+j+6k.

Solution

  1. Substitute the vector components into the formula for the dot product:
    u·v=u1v1+u2v2+u3v3=3(−1)+5(3)+2(0)=−3+15+0=12.u·v=u1v1+u2v2+u3v3=3(−1)+5(3)+2(0)=−3+15+0=12.
  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:
    p·q=u1v1+u2v2+u3v3=10(−2)+(−4)(1)+(7)(6)=−204+42=18.p·q=u1v1+u2v2+u3v3=10(−2)+(−4)(1)+(7)(6)=−204+42=18.
Checkpoint 2.21

Find u·v,u·v, where u=2,9,−1u=2,9,−1 and v=−3,1,−4.v=−3,1,−4.

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,u, v,v, and ww be vectors, and let c be a scalar.

i.u·v=v·uCommutative propertyii.u·(v+w)=u·v+u·wDistributive propertyiii.c(u·v)=(cu)·v=u·(cv)Associative propertyiv.v·v=v2Property of magnitudei.u·v=v·uCommutative propertyii.u·(v+w)=u·v+u·wDistributive propertyiii.c(u·v)=(cu)·v=u·(cv)Associative propertyiv.v·v=v2Property of magnitude

Proof

Let u=u1,u2,u3u=u1,u2,u3 and v=v1,v2,v3.v=v1,v2,v3. Then

u·v=u1,u2,u3·v1,v2,v3=u1v1+u2v2+u3v3=v1u1+v2u2+v3u3=v1,v2,v3·u1,u2,u3=v·u.u·v=u1,u2,u3·v1,v2,v3=u1v1+u2v2+u3v3=v1u1+v2u2+v3u3=v1,v2,v3·u1,u2,u3=v·u.

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

c(u·v)=c(u1v1+u2v2+u3v3)=c(u1v1)+c(u2v2)+c(u3v3)=(cu1)v1+(cu2)v2+(cu3)v3=cu1,cu2,cu3·v1,v2,v3=cu1,u2,u3·v1,v2,v3=(cu)·v.c(u·v)=c(u1v1+u2v2+u3v3)=c(u1v1)+c(u2v2)+c(u3v3)=(cu1)v1+(cu2)v2+(cu3)v3=cu1,cu2,cu3·v1,v2,v3=cu1,u2,u3·v1,v2,v3=(cu)·v.

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

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

v·v=v1,v2,v3·v1,v2,v3=(v1)2+(v2)2+(v3)2=[(v1)2+(v2)2+(v3)2]2=v2.v·v=v1,v2,v3·v1,v2,v3=(v1)2+(v2)2+(v3)2=[(v1)2+(v2)2+(v3)2]2=v2.

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

Example 2.22

Using Properties of the Dot Product

Let a=1,2,−3,a=1,2,−3, b=0,2,4,b=0,2,4, and c=5,−1,3.c=5,−1,3. Find each of the following products.

  1. (a·b)c(a·b)c
  2. a·(2c)a·(2c)
  3. b2b2

Solution

  1. Note that this expression asks for the scalar multiple of c by a·b:a·b:
    (a·b)c=(1,2,−3·0,2,4)5,−1,3=(1(0)+2(2)+(−3)(4))5,−1,3=−85,−1,3=−40,8,−24.(a·b)c=(1,2,−3·0,2,4)5,−1,3=(1(0)+2(2)+(−3)(4))5,−1,3=−85,−1,3=−40,8,−24.
  2. This expression is a dot product of vector a and scalar multiple 2c:
    a·(2c)=2(a·c)=2(1,2,−3·5,−1,3)=2(1(5)+2(−1)+(−3)(3))=2(−6)=−12.a·(2c)=2(a·c)=2(1,2,−3·5,−1,3)=2(1(5)+2(−1)+(−3)(3))=2(−6)=−12.
  3. Simplifying this expression is a straightforward application of the dot product:
    b2=b·b=0,2,4·0,2,4=02+22+42=0+4+16=20.b2=b·b=0,2,4·0,2,4=02+22+42=0+4+16=20.

Checkpoint 2.22

Find the following products for p=7,0,2,p=7,0,2, q=−2,2,−2,q=−2,2,−2, and r=0,2,−3.r=0,2,−3.

  1. (r·p)q(r·p)q
  2. p2p2

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 2.44). 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.

This figure is two vectors with the same initial point. The first vector is labeled “u,” and the second vector is labeled “v.” The angle between the two vectors is labeled “theta.”
Figure 2.44 Let θ be the angle between two nonzero vectors u and v such that 0θπ.0θπ.
Theorem 2.4

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=uvcosθ.u·v=uvcosθ.
2.4

Proof

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

This figure is two vectors with the same initial point. The first vector is labeled “u,” and the second vector is labeled “v.” The angle between the two vectors is labeled “theta.” There is also a third vector from the terminal point of vector u to the terminal point of vector v. It is labeled “v – u.”
Figure 2.45 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

vu2=u2+v22uvcosθ.vu2=u2+v22uvcosθ.

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

vu2=(vu)·(vu)=(vu)·v(vu)·u=v·vu·vv·u+u·u=v·vu·vu·v+u·u=v22u·v+u2.vu2=(vu)·(vu)=(vu)·v(vu)·u=v·vu·vv·u+u·u=v·vu·vu·v+u·u=v22u·v+u2.

Substituting into the law of cosines yields

vu2=u2+v22uvcosθv22u·v+u2=u2+v22uvcosθ2u·v=−2uvcosθu·v=uvcosθ.vu2=u2+v22uvcosθv22u·v+u2=u2+v22uvcosθ2u·v=−2uvcosθu·v=uvcosθ.

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

cosθ=u·vuv.cosθ=u·vuv.
2.5

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°0°θ180° (or 0θπ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 2.23

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. 2,5,62,5,6 and −2,−4,4−2,−4,4

Solution

  1. To find the cosine of the angle formed by the two vectors, substitute the components of the vectors into Equation 2.5:
    cosθ=(i+j+k)·(2ij3k)i+j+k·2ij3k=1(2)+(1)(−1)+(1)(−3)12+12+1222+(−1)2+(−3)2=−2314=−242.cosθ=(i+j+k)·(2ij3k)i+j+k·2ij3k=1(2)+(1)(−1)+(1)(−3)12+12+1222+(−1)2+(−3)2=−2314=−242.

    Therefore, θ=arccos−242θ=arccos−242 rad.
  2. Start by finding the value of the cosine of the angle between the vectors:
    cosθ=2,5,6·−2,−4,42,5,6·−2,−4,4=2(−2)+(5)(−4)+(6)(4)22+52+62(−2)2+(−4)2+42=06536=0.cosθ=2,5,6·−2,−4,42,5,6·−2,−4,4=2(−2)+(5)(−4)+(6)(4)22+52+62(−2)2+(−4)2+42=06536=0.

    Now, cosθ=0cosθ=0 and 0θπ,0θπ, so θ=π/2.θ=π/2.

Checkpoint 2.23

Find the measure of the angle, in radians, formed by vectors a=1,2,0a=1,2,0 and b=2,4,1.b=2,4,1. Round to the nearest hundredth.

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

This figure has 5 images. The first image has two vectors u and v. The angle between these two vectors is theta. Theta is an acute angle. The second image is has two vectors u and v. The angle between these vectors is theta. Theta is an obtuse angle. The third image is vectors u and v in opposite directions. The angle between u and v is a straight angle. The fourth image is u and v in the same direction. The fifth image is u and v with angle theta between them as a right angle.
Figure 2.46 (a) An acute angle has 0<cosθ<1.0<cosθ<1. (b) An obtuse angle has −1<cosθ<0.−1<cosθ<0. (c) A straight line has cosθ=−1.cosθ=−1. (d) If the vectors have the same direction, cosθ=1.cosθ=1. (e) If the vectors are orthogonal (perpendicular), cosθ=0.cosθ=0.

Theorem 2.5

Orthogonal Vectors

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

Proof

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

uvcosθ=0.uvcosθ=0.

However, u0u0 and v0,v0, so we must have cosθ=0.cosθ=0. Hence, θ=90°,θ=90°, and the vectors are orthogonal.

Now assume u and v are orthogonal. Then θ=90°θ=90° and we have

u·v=uvcosθ=uvcos90°=uv(0)=0.u·v=uvcosθ=uvcos90°=uv(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 2.24

Identifying Orthogonal Vectors

Determine whether p=1,0,5p=1,0,5 and q=10,3,−2q=10,3,−2 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+010=0.p·q=1(10)+(0)(3)+(5)(−2)=10+010=0.

Because p·q=0,p·q=0, the vectors are orthogonal (Figure 2.47).

This figure is the 3-dimensional coordinate system. There are two vectors in standard position. The vectors are labeled “p” and “q.” The angle between the vectors is a right angle.
Figure 2.47 Vectors p and q form a right angle when their initial points are aligned.

Checkpoint 2.24

For which value of x is p=2,8,−1p=2,8,−1 orthogonal to q=x,−1,2?q=x,−1,2?

Example 2.25

Measuring the Angle Formed by Two Vectors

Let v=2,3,3.v=2,3,3. Find the measures of the angles formed by the following vectors.

  1. v and i
  2. v and j
  3. v and k

Solution

  1. Let α be the angle formed by v and i:
    cosα=v·iv·i=2,3,3·1,0,022+32+321=222.cosα=v·iv·i=2,3,3·1,0,022+32+321=222.

    α=arccos2221.130rad.α=arccos2221.130rad.
  2. Let β represent the angle formed by v and j:
    cosβ=v·jv·j=2,3,3·0,1,022+32+321=322.cosβ=v·jv·j=2,3,3·0,1,022+32+321=322.

    β=arccos3220.877rad.β=arccos3220.877rad.
  3. Let γ represent the angle formed by v and k:
    cosγ=v·kv·k=2,3,3·0,0,122+32+321=322.cosγ=v·kv·k=2,3,3·0,0,122+32+321=322.

    γ=arccos3220.877rad.γ=arccos3220.877rad.

Checkpoint 2.25

Let v=3,−5,1.v=3,−5,1. Find the measure of the angles formed by each pair of vectors.

  1. v and i
  2. v and j
  3. v and k

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 2.48). The cosines for these angles are called the direction cosines.

This figure is the first octant of the 3-dimensional coordinate system. It has the standard unit vectors drawn on axes x, y, and z. There is also a vector drawn in the first octant labeled “v.” The angle between the x-axis and v is labeled “alpha.” The angle between the y-axis and vector v is labeled “beta.” The angle between the z-axis and vector v is labeled “gamma.”
Figure 2.48 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.

In Example 2.25, the direction cosines of v=2,3,3v=2,3,3 are cosα=222,cosα=222, cosβ=322,cosβ=322, and cosγ=322.cosγ=322. The direction angles of v are α=1.130rad,α=1.130rad, β=0.877rad,β=0.877rad, and γ=0.877rad.γ=0.877rad.

So far, we have focused mainly on vectors related to force, movement, and position in three-dimensional physical space. However, vectors are often used in more abstract ways. For example, suppose a fruit vendor sells apples, bananas, and oranges. On a given day, he sells 30 apples, 12 bananas, and 18 oranges. He might use a quantity vector, q=30,12,18,q=30,12,18, to represent the quantity of fruit he sold that day. Similarly, he might want to use a price vector, p=0.50,0.25,1,p=0.50,0.25,1, to indicate that he sells his apples for 50¢ each, bananas for 25¢ each, and oranges for $1 apiece. In this example, although we could still graph these vectors, we do not interpret them as literal representations of position in the physical world. We are simply using vectors to keep track of particular pieces of information about apples, bananas, and oranges.

This idea might seem a little strange, but if we simply regard vectors as a way to order and store data, we find they can be quite a powerful tool. Going back to the fruit vendor, let’s think about the dot product, q·p.q·p. We compute it by multiplying the number of apples sold (30) by the price per apple (50¢), the number of bananas sold by the price per banana, and the number of oranges sold by the price per orange. We then add all these values together. So, in this example, the dot product tells us how much money the fruit vendor had in sales on that particular day.

When we use vectors in this more general way, there is no reason to limit the number of components to three. What if the fruit vendor decides to start selling grapefruit? In that case, he would want to use four-dimensional quantity and price vectors to represent the number of apples, bananas, oranges, and grapefruit sold, and their unit prices. As you might expect, to calculate the dot product of four-dimensional vectors, we simply add the products of the components as before, but the sum has four terms instead of three.

Example 2.26

Using Vectors in an Economic Context

AAA Party Supply Store sells invitations, party favors, decorations, and food service items such as paper plates and napkins. When AAA buys its inventory, it pays 25¢ per package for invitations and party favors. Decorations cost AAA 50¢ each, and food service items cost 20¢ per package. AAA sells invitations for $2.50 per package and party favors for $1.50 per package. Decorations sell for $4.50 each and food service items for $1.25 per package.

During the month of May, AAA Party Supply Store sells 1258 invitations, 342 party favors, 2426 decorations, and 1354 food service items. Use vectors and dot products to calculate how much money AAA made in sales during the month of May. How much did the store make in profit?

Solution

The cost, price, and quantity vectors are

c=0.25,0.25,0.50,0.20p=2.50,1.50,4.50,1.25q=1258,342,2426,1354.c=0.25,0.25,0.50,0.20p=2.50,1.50,4.50,1.25q=1258,342,2426,1354.

AAA sales for the month of May can be calculated using the dot product p·q.p·q. We have

p·q=2.50,1.50,4.50,1.25·1258,342,2426,1354=3145+513+10917+1692.5=16267.5.p·q=2.50,1.50,4.50,1.25·1258,342,2426,1354=3145+513+10917+1692.5=16267.5.

So, AAA took in $16,267.50 during the month of May.

To calculate the profit, we must first calculate how much AAA paid for the items sold. We use the dot product c·qc·q to get

c·q=0.25,0.25,0.50,0.20·1258,342,2426,1354=314.5+85.5+1213+270.8=1883.8.c·q=0.25,0.25,0.50,0.20·1258,342,2426,1354=314.5+85.5+1213+270.8=1883.8.

So, AAA paid $1,883.80 for the items they sold. Their profit, then, is given by

p·qc·q=16267.51883.8=14383.7.p·qc·q=16267.51883.8=14383.7.

Therefore, AAA Party Supply Store made $14,383.70 in May.

Checkpoint 2.26

On June 1, AAA Party Supply Store decided to increase the price they charge for party favors to $2 per package. They also changed suppliers for their invitations, and are now able to purchase invitations for only 10¢ per package. All their other costs and prices remain the same. If AAA sells 1408 invitations, 147 party favors, 2112 decorations, and 1894 food service items in the month of June, use vectors and dot products to calculate their total sales and profit for June.

Projections

As we have seen, addition combines two vectors to create a resultant vector. But what if we are given a vector and we need to find its component parts? We use vector projections to perform the opposite process; they can break down a vector into its components. The magnitude of a vector projection is a scalar projection. For example, if a child is pulling the handle of a wagon at a 55° angle, we can use projections to determine how much of the force on the handle is actually moving the wagon forward (Figure 2.49). We return to this example and learn how to solve it after we see how to calculate projections.

This figure is the image of a wagon with a handle. The handle is represented by the vector “F.” The angle between F and the horizontal direction of the wagon is 55 degrees.
Figure 2.49 When a child pulls a wagon, only the horizontal component of the force propels the wagon forward.

Definition

The vector projection of v onto u is the vector labeled projuv in Figure 2.50. It has the same initial point as u and v and the same direction as u, and represents the component of v that acts in the direction of u. If θθ represents the angle between u and v, then, by properties of triangles, we know the length of projuvprojuv is projuv=vcosθ.projuv=vcosθ. When expressing cosθcosθ in terms of the dot product, this becomes

projuv=vcosθ=v(|u·v|uv)=|u·v|u.projuv=vcosθ=v(|u·v|uv)=|u·v|u.

We now multiply by a unit vector in the direction of u to get projuv:projuv:

projuv=u·vu(1uu)=u·vu2u.projuv=u·vu(1uu)=u·vu2u.
2.6

The length of this vector is also known as the scalar projection of v onto u and is denoted by

projuv=compuv=|u·v|u.projuv=compuv=|u·v|u.
2.7
This image has a vector labeled “v.” There is also a vector with the same initial point labeled “proj sub u v.” The third vector is from the terminal point of proj sub u v in the same direction labeled “u.” A broken line segment from the initial point of u to the terminal point of v is drawn and is perpendicular to u.
Figure 2.50 The projection of v onto u shows the component of vector v in the direction of u.

Example 2.27

Finding Projections

Find the projection of v onto u.

  1. v=3,5,1v=3,5,1 and u=−1,4,3u=−1,4,3
  2. v=3i2jv=3i2j and u=i+6ju=i+6j

Solution

  1. Substitute the components of v and u into the formula for the projection:
    projuv=u·vu2u=−1,4,3·3,5,1−1,4,32−1,4,3=−3+20+3(−1)2+42+32−1,4,3=2026−1,4,3=1013,4013,3013.projuv=u·vu2u=−1,4,3·3,5,1−1,4,32−1,4,3=−3+20+3(−1)2+42+32−1,4,3=2026−1,4,3=1013,4013,3013.
  2. To find the two-dimensional projection, simply adapt the formula to the two-dimensional case:
    projuv=u·vu2u=(i+6j)·(3i2j)i+6j2(i+6j)=1(3)+6(−2)12+62(i+6j)=937(i+6j)=937i5437j.projuv=u·vu2u=(i+6j)·(3i2j)i+6j2(i+6j)=1(3)+6(−2)12+62(i+6j)=937(i+6j)=937i5437j.

Sometimes it is useful to decompose vectors—that is, to break a vector apart into a sum. This process is called the resolution of a vector into components. Projections allow us to identify two orthogonal vectors having a desired sum. For example, let v=6,−4v=6,−4 and let u=3,1.u=3,1. We want to decompose the vector v into orthogonal components such that one of the component vectors has the same direction as u.

We first find the component that has the same direction as u by projecting v onto u. Let p=projuv.p=projuv. Then, we have

p=u·vu2u=1849+1u=75u=753,1=215,75.p=u·vu2u=1849+1u=75u=753,1=215,75.

Now consider the vector q=vp.q=vp. We have

q=vp=6,−4215,75=95,275.q=vp=6,−4215,75=95,275.

Clearly, by the way we defined q, we have v=q+p,v=q+p, and

q·p=95,275·215,75=9(21)25+−27(7)25=1892518925=0.q·p=95,275·215,75=9(21)25+−27(7)25=1892518925=0.

Therefore, q and p are orthogonal.

Example 2.28

Resolving Vectors into Components

Express v=8,−3,−3v=8,−3,−3 as a sum of orthogonal vectors such that one of the vectors has the same direction as u=2,3,2.u=2,3,2.

Solution

Let p represent the projection of v onto u:

p=projuv=u·vu2u=2,3,2·8,−3,−32,3,222,3,2=169622+32+222,3,2=1172,3,2=217,317,217.p=projuv=u·vu2u=2,3,2·8,−3,−32,3,222,3,2=169622+32+222,3,2=1172,3,2=217,317,217.

Then,

q=vp=8,−3,−3217,317,217=13417,5417,5317.q=vp=8,−3,−3217,317,217=13417,5417,5317.

To check our work, we can use the dot product to verify that p and q are orthogonal vectors:

p·q=217,317,217·13417,5417,5317=268171621710617=0.p·q=217,317,217·13417,5417,5317=268171621710617=0.

Then,

v=p+q=217,317,217+13417,5417,5317.v=p+q=217,317,217+13417,5417,5317.
Checkpoint 2.27

Express v=5ijv=5ij as a sum of orthogonal vectors such that one of the vectors has the same direction as u=4i+2j.u=4i+2j.

Example 2.29

Scalar Projection of Velocity

A container ship leaves port traveling 15°15° north of east. Its engine generates a speed of 20 knots along that path (see the following figure). In addition, the ocean current moves the ship northeast at a speed of 2 knots. Considering both the engine and the current, how fast is the ship moving in the direction 15°15° north of east? Round the answer to two decimal places.

This figure is an image of a ship. The ship is at the origin of two perpendicular axes. The horizontal axis is labeled “east.” The second axis is vertical and labeled “north.” From the ship there are two vectors. The first is labeled “v” and has an angle of 15 degrees between the East axis and the vector v. The second vector is labeled “w” and has an angle of 45 degrees between the East axis and the vector w.

Solution

Let v be the velocity vector generated by the engine, and let w be the velocity vector of the current. We already know v=20v=20 along the desired route. We just need to add in the scalar projection of w onto v. We get

compvw=v·wv=vwcos(30°)v=wcos(30°)=232=31.73knots.compvw=v·wv=vwcos(30°)v=wcos(30°)=232=31.73knots.

The ship is moving at 21.73 knots in the direction 15°15° north of east.

Checkpoint 2.28

Repeat the previous example, but assume the ocean current is moving southeast instead of northeast, as shown in the following figure.

This figure is an image of a ship. The ship is at the origin of two perpendicular axes. The horizontal axis is labeled “east.” The second axis is vertical and labeled “north.” From the ship there are two vectors. The first is labeled “v” and has an angle of 15 degrees between the East axis and the vector v. The second vector is labeled “w” and has an angle of 45 degrees between the East axis and the vector w. Vector w is below the East axis in the fourth quadrant.

Work

Now that we understand dot products, we can see how to apply them to real-life situations. The most common application of the dot product of two vectors is in the calculation of work.

From physics, we know that work is done when an object is moved by a force. When the force is constant and applied in the same direction the object moves, then we define the work done as the product of the force and the distance the object travels: W=Fd.W=Fd. We saw several examples of this type in earlier chapters. Now imagine the direction of the force is different from the direction of motion, as with the example of a child pulling a wagon. To find the work done, we need to multiply the component of the force that acts in the direction of the motion by the magnitude of the displacement. The dot product allows us to do just that. If we represent an applied force by a vector F and the displacement of an object by a vector s, then the work done by the force is the dot product of F and s.

Definition

When a constant force is applied to an object so the object moves in a straight line from point P to point Q, the work W done by the force F, acting at an angle θ from the line of motion, is given by

W=F·PQ=FPQcosθ.W=F·PQ=FPQcosθ.
2.8

Let’s revisit the problem of the child’s wagon introduced earlier. Suppose a child is pulling a wagon with a force having a magnitude of 8 lb on the handle at an angle of 55°. If the child pulls the wagon 50 ft, find the work done by the force (Figure 2.51).

This figure is an image of a wagon with a handle. The handle is represented with a vector labeled “8 lb.” There is another vector in the horizontal direction from the wagon labeled “50 ft.” The angle between these vectors is 55 degrees.
Figure 2.51 The horizontal component of the force is the projection of F onto the positive x-axis.

We have

W=FPQcosθ=8(50)(cos(55°))229ft·lb.W=FPQcosθ=8(50)(cos(55°))229ft·lb.

In U.S. standard units, we measure the magnitude of force FF in pounds. The magnitude of the displacement vector PQPQ tells us how far the object moved, and it is measured in feet. The customary unit of measure for work, then, is the foot-pound. One foot-pound is the amount of work required to move an object weighing 1 lb a distance of 1 ft straight up. In the metric system, the unit of measure for force is the newton (N), and the unit of measure of magnitude for work is a newton-meter (N·m), or a joule (J).

Example 2.30

Calculating Work

A conveyor belt generates a force F=5i3j+kF=5i3j+k that moves a suitcase from point (1,1,1)(1,1,1) to point (9,4,7)(9,4,7) along a straight line. Find the work done by the conveyor belt. The distance is measured in meters and the force is measured in newtons.

Solution

The displacement vector PQPQ has initial point (1,1,1)(1,1,1) and terminal point (9,4,7):(9,4,7):

PQ=91,41,71=8,3,6=8i+3j+6k.PQ=91,41,71=8,3,6=8i+3j+6k.

Work is the dot product of force and displacement:

W=F·PQ=(5i3j+k)·(8i+3j+6k)=5(8)+(−3)(3)+1(6)=37N·m=37J.W=F·PQ=(5i3j+k)·(8i+3j+6k)=5(8)+(−3)(3)+1(6)=37N·m=37J.
Checkpoint 2.29

A constant force of 30 lb is applied at an angle of 60° to pull a handcart 10 ft across the ground (Figure 2.52). What is the work done by this force?

This figure is an image of a hand cart with a crate. The vertical handle of the hand cart has two vectors. The first is horizontal to the handle and labeled “s.” The second is from the handle and labeled “F.” The angle between the two vectors is 60 degrees.
Figure 2.52

Section 2.3 Exercises

For the following exercises, the vectors u and v are given. Calculate the dot product u·v.u·v.

123.

u=3,0,u=3,0, v=2,2v=2,2

124.

u=3,−4,u=3,−4, v=4,3v=4,3

125.

u=2,2,−1,u=2,2,−1, v=−1,2,2v=−1,2,2

126.

u=4,5,−6,u=4,5,−6, v=0,−2,−3v=0,−2,−3

For the following exercises, the vectors a, b, and c are given. Determine the vectors (a·b)c(a·b)c and (a·c)b.(a·c)b. Express the vectors in component form.

127.

a=2,0,−3,a=2,0,−3, b=−4,−7,1,b=−4,−7,1, c=1,1,−1c=1,1,−1

128.

a=0,1,2,a=0,1,2, b=−1,0,1,b=−1,0,1, c=1,0,−1c=1,0,−1

129.

a=i+j,a=i+j, b=ik,b=ik, c=i2kc=i2k

130.

a=ij+k,a=ij+k, b=j+3k,b=j+3k, c=i+2j4kc=i+2j4k

For the following exercises, the two-dimensional vectors a and b are given.

  1. Find the measure of the angle θθ between a and b. Express the answer in radians rounded to two decimal places, if it is not possible to express it exactly.
  2. Is θθ an acute angle?
131.

[T] a=3,−1,a=3,−1, b=−4,0b=−4,0

132.

[T] a=2,1,a=2,1, b=−1,3b=−1,3

133.

u=3i,u=3i, v=4i+4jv=4i+4j

134.

u=5i,u=5i, v=−6i+6jv=−6i+6j

For the following exercises, find the measure of the angle between the three-dimensional vectors a and b. Express the answer in radians rounded to two decimal places, if it is not possible to express it exactly.

135.

a=3,−1,2,a=3,−1,2, b=1,−1,−2b=1,−1,−2

136.

a=0,−1,−3,a=0,−1,−3, b=2,3,−1b=2,3,−1

137.

a=i+j,a=i+j, b=jkb=jk

138.

a=i2j+k,a=i2j+k, b=i+j2kb=i+j2k

139.

[T] a=3ij2k,a=3ij2k, b=v+w,b=v+w, where v=−2i3j+2kv=−2i3j+2k and w=i+2kw=i+2k

140.

[T] a=3ij+2k,a=3ij+2k, b=vw,b=vw, where v=2i+j+4kv=2i+j+4k and w=6i+j+2kw=6i+j+2k

For the following exercises determine whether the given vectors are orthogonal.

141.

a=x,y,a=x,y, b=y,x,b=y,x, where x and y are nonzero real numbers

142.

a=x,x,a=x,x, b=y,y,b=y,y, where x and y are nonzero real numbers

143.

a=3ij2k,a=3ij2k, b=−2i3j+kb=−2i3j+k

144.

a=ij,a=ij, b=7i+2jkb=7i+2jk

145.

Find all two-dimensional vectors a orthogonal to vector b=3,4.b=3,4. Express the answer in component form.

146.

Find all two-dimensional vectors a orthogonal to vector b=5,−6.b=5,−6. Express the answer by using standard unit vectors.

147.

Determine all three-dimensional vectors u orthogonal to vector v=1,1,0.v=1,1,0. Express the answer by using standard unit vectors.

148.

Determine all three-dimensional vectors u orthogonal to vector v=ijk.v=ijk. Express the answer in component form.

149.

Determine the real number αα such that vectors a=2i+3ja=2i+3j and b=9i+αjb=9i+αj are orthogonal.

150.

Determine the real number αα such that vectors a=−3i+2ja=−3i+2j and b=2i+αjb=2i+αj are orthogonal.

151.

[T] Consider the points P(4,5)P(4,5) and Q(5,−7).Q(5,−7).

  1. Determine vectors OPOP and OQ.OQ. Express the answer by using standard unit vectors.
  2. Determine the measure of angle O in triangle OPQ. Express the answer in degrees rounded to two decimal places.
152.

[T] Consider points A(1,1),A(1,1), B(2,−7),B(2,−7), and C(6,3).C(6,3).

  1. Determine vectors BABA and BC.BC. Express the answer in component form.
  2. Determine the measure of angle B in triangle ABC. Express the answer in degrees rounded to two decimal places.
153.

Determine the measure of angle A in triangle ABC, where A(1,1,8),A(1,1,8), B(4,−3,−4),B(4,−3,−4), and C(−3,1,5).C(−3,1,5). Express your answer in degrees rounded to two decimal places.

154.

Consider points P(3,7,−2)P(3,7,−2) and Q(1,1,−3).Q(1,1,−3). Determine the angle between vectors OPOP and OQ.OQ. Express the answer in degrees rounded to two decimal places.

For the following exercises, determine which (if any) pairs of the following vectors are orthogonal.

155.

u=3,7,−2,u=3,7,−2, v=5,−3,−3,v=5,−3,−3, w=0,1,−1w=0,1,−1

156.

u=ik,u=ik, v=5j5k,v=5j5k, w=10jw=10j

157.

Use vectors to show that a parallelogram with equal diagonals is a square.

158.

Use vectors to show that the diagonals of a rhombus are perpendicular.

159.

Show that u·(v+w)=u·v+u·wu·(v+w)=u·v+u·w is true for any vectors u, v, and w.

160.

Verify the identity u·(v+w)=u·v+u·wu·(v+w)=u·v+u·w for vectors u=1,0,4,u=1,0,4, v=−2,3,5,v=−2,3,5, and w=4,−2,6.w=4,−2,6.

For the following problems, the vector u is given.

  1. Find the direction cosines for the vector u.
  2. Find the direction angles for the vector u expressed in degrees. (Round the answer to the nearest integer.)
161.

u=2,2,1u=2,2,1

162.

u=i2j+2ku=i2j+2k

163.

u=−1,5,2u=−1,5,2

164.

u=2,3,4u=2,3,4

165.

Consider u=a,b,cu=a,b,c a nonzero three-dimensional vector. Let cosα,cosα, cosβ,cosβ, and cosγcosγ be the directions of the cosines of u. Show that cos2α+cos2β+cos2γ=1.cos2α+cos2β+cos2γ=1.

166.

Determine the direction cosines of vector u=i+2j+2ku=i+2j+2k and show they satisfy cos2α+cos2β+cos2γ=1.cos2α+cos2β+cos2γ=1.

For the following exercises, the vectors u and v are given.

  1. Find the vector projection w=projuvw=projuv of vector v onto vector u. Express your answer in component form.
  2. Find the scalar projection compuvcompuv of vector v onto vector u.
167.

u=5i+2j,u=5i+2j, v=2i+3jv=2i+3j

168.

u=−4,7,u=−4,7, v=3,5v=3,5

169.

u=3i+2k,u=3i+2k, v=2j+4kv=2j+4k

170.

u=4,4,0,u=4,4,0, v=0,4,1v=0,4,1

171.

Consider the vectors u=4i3ju=4i3j and v=3i+2j.v=3i+2j.

  1. Find the component form of vector w=projuvw=projuv that represents the projection of v onto u.
  2. Write the decomposition v=w+qv=w+q of vector v into the orthogonal components w and q, where w is the projection of v onto u and q is a vector orthogonal to the direction of u.
172.

Consider vectors u=2i+4ju=2i+4j and v=4j+2k.v=4j+2k.

  1. Find the component form of vector w=projuvw=projuv that represents the projection of v onto u.
  2. Write the decomposition v=w+qv=w+q of vector v into the orthogonal components w and q, where w is the projection of v onto u and q is a vector orthogonal to the direction of u.
173.

A methane molecule has a carbon atom situated at the origin and four hydrogen atoms located at points P(1,1,−1),Q(1,−1,1),R(−1,1,1),andS(−1,−1,−1)P(1,1,−1),Q(1,−1,1),R(−1,1,1),andS(−1,−1,−1) (see figure).

  1. Find the distance between the hydrogen atoms located at P and R.
  2. Find the angle between vectors OSOS and OROR that connect the carbon atom with the hydrogen atoms located at S and R, which is also called the bond angle. Express the answer in degrees rounded to two decimal places.
This figure is the 3-dimensional coordinate system. There are four points plotted. The first point is labeled “P(1, 1, -1),” the second point is labeled “Q(1, -1, 1),” the third point is labeled “R(-1, 1, 1),” and the fourth point is labeled “S(-1, -1, -1).” There are line segments from Q to P, P to R and R to P. There are also two vectors in standard position. The first has terminal point of R and the second has terminal point of S. The angle between them is represented with an arc.
174.

[T] Find the vectors that join the center of a clock to the hours 1:00, 2:00, and 3:00. Assume the clock is circular with a radius of 1 unit.

175.

Find the work done by force F=5,6,−2F=5,6,−2 (measured in Newtons) that moves a particle from point P(3,−1,0)P(3,−1,0) to point Q(2,3,1)Q(2,3,1) along a straight line (the distance is measured in meters).

176.

[T] A sled is pulled by exerting a force of 100 N on a rope that makes an angle of 25°25° with the horizontal. Find the work done in pulling the sled 40 m. (Round the answer to one decimal place.)

177.

[T] A father is pulling his son on a sled at an angle of 20°20° with the horizontal with a force of 25 lb (see the following image). He pulls the sled in a straight path of 50 ft. How much work was done by the man pulling the sled? (Round the answer to the nearest integer.)

This figure is an image of a person pulling a child on a sled. The rope for pulling the sled is represented by a vector and labeled “25 lb.” There is an angle between the rope vector and the horizontal ground of 20 degrees.
178.

[T] A car is towed using a force of 1600 N. The rope used to pull the car makes an angle of 25° with the horizontal. Find the work done in towing the car 2 km. Express the answer in joules (1J=1N·m)(1J=1N·m) rounded to the nearest integer.

179.

[T] A boat sails north aided by a wind blowing in a direction of N30°EN30°E with a magnitude of 500 lb. How much work is performed by the wind as the boat moves 100 ft? (Round the answer to two decimal places.)

180.

Vector p=150,225,375p=150,225,375 represents the price of certain models of bicycles sold by a bicycle shop. Vector n=10,7,9n=10,7,9 represents the number of bicycles sold of each model, respectively. Compute the dot product p·np·n and state its meaning.

181.

[T] Two forces F1F1 and F2F2 are represented by vectors with initial points that are at the origin. The first force has a magnitude of 20 lb and the terminal point of the vector is point P(1,1,0).P(1,1,0). The second force has a magnitude of 40 lb and the terminal point of its vector is point Q(0,1,1).Q(0,1,1). Let F be the resultant force of forces F1F1 and F2.F2.

  1. Find the magnitude of F. (Round the answer to one decimal place.)
  2. Find the direction angles of F. (Express the answer in degrees rounded to one decimal place.)
182.

[T] Consider r(t)=cost,sint,2tr(t)=cost,sint,2t the position vector of a particle at time t[0,30],t[0,30], where the components of r are expressed in centimeters and time in seconds. Let OPOP be the position vector of the particle after 1 sec.

  1. Show that all vectors PQ,PQ, where Q(x,y,z)Q(x,y,z) is an arbitrary point, orthogonal to the instantaneous velocity vector v(1)v(1) of the particle after 1 sec, can be expressed as PQ=xcos1,ysin1,z2,PQ=xcos1,ysin1,z2, where xsin1ycos12z+4=0.xsin1ycos12z+4=0. The set of point Q describes a plane called the normal plane to the path of the particle at point P.
  2. Use a CAS to visualize the instantaneous velocity vector and the normal plane at point P along with the path of the particle.
Citation/Attribution

Want to cite, share, or modify this book? This book is Creative Commons Attribution-NonCommercial-ShareAlike License 4.0 and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:
    Access for free at https://openstax.org/books/calculus-volume-3/pages/1-introduction
  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:
    Access for free at https://openstax.org/books/calculus-volume-3/pages/1-introduction
Citation information

© Mar 30, 2016 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License 4.0 license. The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.