Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

9.2: The Dot Product

( \newcommand{\kernel}{\mathrm{null}\,}\)

Components

We have seen that it can be useful to resolve a vector into horizontal and vertical components. We can also break a vector into components that point in other directions.

Imagine the following experiment: Delbert holds a ball at shoulder height and then drops it, so that it falls to the ground. Francine holds a ball at shoulder height on an inclined ramp, then releases it so that it rolls downhill. Which ball will reach the ground first?

Although gravity causes both balls to speed up, the free-falling ball will reach the ground first. The force of gravity pulls straight down, the same direction as the motion of the free-falling ball, but the rolling ball must move at an angle to the pull of gravity, along the surface of the ramp. Only part of the gravitational force accelerates the rolling ball, and the rest of the force is counteracted by the surface of the ramp. What fraction of the gravitational force causes the ball to roll?

Screen Shot 2023-01-27 at 6.27.03 PM.png

In figure (a), the gravitational force F is resolved into the sum of two vectors, F=u+v, where v points down the ramp, and u is perpendicular to the ramp. The magnitude of v is called the component of F in the direction of motion, and is denoted by comp vvF. This is the portion of the gravitational force that moves the ball. From figure (b), we see that compvF=Fcosθ, where θ is the angle between F and v.

Component of a Vector.

The component of a vector F in the direction of vector v is

compvF=Fcosθ

where θ is the angle between F and v.

With a little geometry, you can verify that in this example the angle θ is the complement of the angle of inclination of the ramp, α. (Think of similar triangles.) Now suppose that we increase the angle of inclination. As α increases, θ decreases, cosθ increases, and hence comp vF increases. This result agrees with our experience: as the ramp gets steeper, the ball rolls faster.

Example 9.40

Delbert uses a sheet of plywood as a ramp for his wheelbarrow. The ramp is inclined at an angle of 15 to the horizontal. The plywood can support a maximum weight of 200 pounds. What weight will the ramp support?

Answer

The component of the weight perpendicular to the ramp cannot be more than 200 pounds. If the weight of the wheelbarrow is w, and v is a vector perpendicular to the ramp, as shown below, then the angle between v and w is 15, by similar triangles. Thus, the component of w in the direction of w is

compvw=wcos15=200w(0.9659)=200w=207.06

Screen Shot 2023-01-28 at 5.10.29 PM.png

The ramp can support no more than about 207 pounds.

Checkpoint 9.41

Delbert pushes a lawn mower whose handle makes a 40 angle with the horizontal. If he applies a force of 30 pounds in the direction of the handle, what is the component of the force in the horizontal direction?

Screen Shot 2023-01-28 at 5.11.37 PM.png

Answer

23 pounds

Coordinate Form for Components

In the examples above, we computed the component of a force F in the direction of a vector v by knowing the angle between F and v. If the vectors are given in coordinate form (that is, v=ai+bj), we may not know the angle between them. Can we compute the component of a vector w in the direction of v, in terms of the coordinates of v and w?

Suppose v=ai+bj and w=ci+dj, as shown below. We will need to compute the cosine of θ in terms of a,b,c, and d.

First verify that

cosα=av and sinα=bvcosβ=cw and sinβ=dw

Screen Shot 2023-01-28 at 5.15.07 PM.png

Because θ=β=α, we use the subtraction formula for cosine.

cosθ=cosαcosβ+sinαsinβ=avcw+bvdw=1vw(ac+bd)

And finally,

compvw=wcosθ=ac+bdv

Now we have a formula for the component of a vector w in the direction of a vector v.

Component of a Vector in Coordinate Form.

If v=ai+bj and w=ci+dj, then the component of w in the direction of w is given by

compvw=ac+bdv

Caution 9.42

Recall that the "component" of a vector is a scalar. If a vector w is resolved into two component vectors, w=u+v, its components are the lengths of the vectors u and v. The vectors u and v themselves are called the vector components of w.

Example 9.43

a Compute the component of w=6i+2j in the direction of v=4i+3j.

b Find the vector component of w in the direction of v.

c Find the vector component of w perpendicular to v.

Answer

a We use the formula derived above.

compvw=ac+bdv=4(6)+3(2)42+32=305=6

Remember that the component of w in the direction of v is a scalar; it is the length of the projection of w onto v.

b We would like to find a vector q of length 6 in the direction of v, as shown below Because v=5, we scale the components of v by 65 to get

Screen Shot 2023-01-28 at 5.29.04 PM.png

q=65(4i+3j)=245i+185j

c Because w=p+q, where p is perpendicular to q, we have

p=wq=(6i+2j)(245i+185j)=65i85j

Checkpoint 9.44

Write the vector w=6i+2j as the sum of two components, one parallel to v=i+j and the other perpendicular to v.

Answer

w=(4i+4j)+(2i2j)

The Dot Product

The expression ac+bd, which we encountered above as part of the formula for compvw is quite useful and is given a name; it is called the dot product of the vectors v=ai+bj and w=ci+dj.

It is easy to remember the formula for the dot product if we think of adding the product of the i-components and the product of the j-components of the two vectors.

Dot Product.

The dot product of two vectors v=v1i+v2j and w=w1i+w2j is the scalar

vw=v1v2+w1w2

Note 9.45 From the formula above, you can see that the dot product is commutative. That is,

vw=wv

You can check that this is true in the following example.

Example 9.46

Compute the dot product of v=5i3j and w=4i+j.

Answer

We apply the formula above to find

vw=5(4)+(3)(1)=17

In the examples above, you can see that the dot product of two vectors is a scalar. For this reason, the dot product is also called the scalar product.

Checkpoint 9.47

Compute the dot product of v=6i+2j and w=2i+3j.

Answer

-6

We can now write the formula for comp vw using the dot product.

compvw=wcosθ=ac+bdv=vwv

We have derived an alternate formula for a component of a vector.

Component of a Vector.

The component of w in the direction of w is the scalar

compvw=vwv

Example 9.48

Compute the component of v=5i3j in the direction of w=4i+j.

Answer

Using the formula above, we have compwv=vww. We first compute vw and w.

vw=5(4)+(3)(1)=17 and w=42+12=17

Thus,

compwv=vww=1717=17

The length of the projection of v in the direction of w is 17 units, as shown below.

Screen Shot 2023-01-28 at 6.01.14 PM.png

Checkpoint 9.49

Compute the component of u=2i+3j in the direction of v=6i+5j.

Answer

2761

Geometric Meaning of the Dot Product

An even more important relationship, which gives geometric meaning to the dot product, follows from the formula for a component. We now have two ways to compute the component of w in the direction of v:

compvw=wcosθ and compvw=vwv

Equating these two expressions, we find

wcosθ=vwv

or vwcosθ=vw. This is a geometric formula for the dot product.

Geometric Form for the Dot Product.

The dot product of two vectors v and w is the scalar

vw=vwcosθ

where θ is the angle between the vectors.

The dot product is a way of multiplying two vectors that depends on the angle between them.

  • If θ=0, so that v and w point in the same direction, then cosθ=1 and vw is just the product of their lengths, vw.
  • If v and w are perpendicular, then cosθ=0, so vw=0. (Two vectors v and w are said to be orthogonal if their dot product is zero.)
  • If θ is between 0 and 90, the dot product multiplies the length of v times the component of w in the direction of v.

Screen Shot 2023-01-28 at 6.12.03 PM.png

Example 9.50

Show that the vectors v=2i+6j and w=9i+3j are orthogonal.

Answer

We compute the dot product of the vectors.

vw=2(9)+6(3)=0

Thus, vwcosθ=0, so v and w are orthogonal. Because neither v=0 or w=0, it must be the case that cosθ=0, so θ=90 or 270.

Checkpoint 9.51

a Show that the vectors v=ai+bj and w=bi+aj are orthogonal.

b Find a vector w perpendicular to v=3i5j.

Answer

a uv=ab+ab=0

b 5i3j

Using the dot product, we can find the angle between two vectors.

Angle Between Two Vectors.

The angle θ between two vectors v and w is given by

cosθ=vwvw

Example 9.52

Find the angle between the vectors u=3i+2j and v=5i+3j.

Answer

We first compute uv and the magnitude of each vector.

uv=3(5)+2(3)=9u=(3)2+22=13v=52+32=34

Screen Shot 2023-01-28 at 6.20.51 PM.png

Then we apply the formula for cosθ.

cosθ=vwvw=91334=0.4281θ=cos1(0.4281)=115.35

The angle between the vectors is 115.35.

Checkpoint 9.53

Find the angle between the vectors u=4i6j and v=2i+8j.

Answer

132.27

Review the following skills you will need for this section.

Skills Refresher 9.3

1

Screen Shot 2023-01-28 at 6.23.57 PM.png

a Find the height h of the triangle.

b How far is the foot of the altitude from the vertex of the 18 angle?

2

Screen Shot 2023-01-28 at 6.24.10 PM.png

a Find the height h of the triangle.

b Find the length of the third side of the triangle.

3

Screen Shot 2023-01-28 at 6.24.26 PM.png

a How far north is the tower from the airport? How far east?

b What is the distance from A to P?

4

Screen Shot 2023-01-28 at 6.24.49 PM.png

a Find the distance from A to C.
b How far north is point C from point B?

Skills Refresher Answers

1 a 1.55 b 4.76

2 a 19.57 b 81.83

3 a 36.92 mi, 15.63 mi b 16.08 mi

4 a 21.87 b 5.95

Section 9.3 Summary

Vocabulary

• Dot product

• Scalar product

• Orthogonal

Concepts

Dot Product (Coordinate Formula).

1 The dot product of two vectors v=v1i+v2j and w=w1i+w2j is the scalar

vw=v1v2+w1w2

2 The dot product is a way of multiplying two vectors that depends on the angle between them.

Dot Product (Geometric Formula).

3 The dot product of two vectors v and w is the scalar

vw=vwcosθ

where θ is the angle between the vectors.

4 The component of a vector w in the direction of vector v is the length of the vector projection of w onto w.

Component of a Vector.

5 The component of w in the direction of w is the scalar

compvw=vwv

Angle Between Two Vectors.

6 The angle θ between two vectors v and w is given by

cosθ=vwvw

7 Two vectors v and w are orthogonal if vw=0

Study Questions

1 If u and v have the same direction, what is compuv?

2 If u is perpendicular to v, what is compuv?

3 What is the angle between u and v that makes their dot product as large as possible?

4 What does the dot product of two unit vectors tell you?

Skills

1 Find the component of w in the direction of v #1–6, 37–40

2 Compute the dot product #11–22, 27–36

3 Find the angle between two vectors #23–26

4 Resolve a vector into components in given directions #7–10, 41–42

Homework 9-3

For Problems 1-6, find the component of w in the direction of v.

1. w=5i+9j,v=3i+2j

2. w=7i+4j,v=2i+3j

3. w=6i+5j,v=i+j

4. w=10i14j,v=i+j

5. w=4i3j,v=i+2j

6. w=2i3j,v=i2j

For Problems 7–10,

a Resolve w into two components, one parallel to v and the other orthogonal to v.

b Sketch both vectors and the vector components.

7. w=8i+4j,v=2i+3j

Screen Shot 2023-01-28 at 6.40.47 PM.png

8. w=3i+7j,v=4i+2j

Screen Shot 2023-01-28 at 6.40.54 PM.png

9. w=6i2j,v=ij

Screen Shot 2023-01-28 at 6.41.05 PM.png

10. w=5i+3j,v=i3j

Screen Shot 2023-01-28 at 6.41.11 PM.png

For Problems 11-18, compute the dot product uv.

11. u=3i+7j,v=2i+4j

12. u=1.3i+5.6j,v=3i5j

13. u=3i4j,v=20i+15j

14. u=2i+j,v=6i+3j

15. u has magnitude 3 and direction 27, and u has magnitude 8 and direction 33.

16. u has magnitude 7 and direction 112, and u has magnitude 14 and direction 157.

17. Screen Shot 2023-01-28 at 6.46.40 PM.png

18. Screen Shot 2023-01-28 at 6.46.49 PM.png

For Problems 19-22, decide whether the pair of vectors is orthogonal.

19. 2i+3j and 3i2j

20. 5i+7j and 7i+5j

21. 4i+6j and 15i+10j

22. 3i4j and 3i+4j

For Problems 23-26, find the angle between the vectors.

23. 3i+5j and 2i+4j

24. i2j and 2i3j

25. 4i8j and 6i+4j

26. 6i+8j and 18i24j

For Problems 27-30, find a value of k so that v is orthogonal to w.

27. w=8i3j,v=3i+kj

28. w=2i+7j,v=ki+4j

29. w=2i5j,v=ki+4j

30. w=5i+3j,v=2i+kj

For Problems 31-36, evaluate the expression for the vectors

u=2i+5j,v=3i+4j,w=3i2j

31. w(u+v)

32. wu+wv

33. (uv)w

34. (uv)(uw)

35. (u+v)(uv)

36. wvwww

37. Gary pulls a loaded wagon along a flat road. The handle of the wagon makes an angle of 50 to the horizontal. If Gary pulls with a force of 60 pounds, find the component of the force in the direction of motion.

38. Wassily is trying to topple a statue by pulling on a rope tied to the statue's upraised arm. The rope is making a 35 angle from horizontal. If Wassily is pulling on the rope with a force of 250 pounds, find the component of the force in the horizontal direction.

39. An SUV weighing 6200 pounds is parked on a hill with slope 12. Find the force needed to keep the SUV from rolling down the hill.

40. Steve's boat is headed due north, and the sail points at an angle of 15 east of north. The wind is blowing in the direction 60 west of south with a force of 400 pounds.

a Find the component of the wind perpendicular to the sail.

b Find the component of the force in part (a) in the direction of the boat’s motion.

41.

a Find unit vectors u and v in the directions of i+j and ij.

b Show that u and v are orthogonal.

c Find the components of w=3i+8j in the directions of u and v.

d Sketch the vectors u,v and w, and show the components of w.

42.

a Find unit vectors u and v in the directions of 30 and 120.

b Show that u and v are orthogonal.

c Find the components of w=4i+4j in the directions of u and v.

d Sketch the vectors u,v and w, and show the components of w.

For Problems 43-48, let u=ai+bj and v=ci+dj.

43. Show that vv=v2.

44. If u=1, show that compuv=uv.

45. Show that kuv=k(uv)=ukv.

46. Prove the distributive law: u(v+w)=uv+uw.

47. Show that (uv)(u+v)=u2v2.

48. If u=v, show that u+v is perpendicular to uv.

49. Show that the component of v=ai+bj in the direction of i is a, and the component of v in the direction of j is b.

50. Show that the dot product uv gives the length of v times the component of u in the direction of v.

51.

a Start from the geometric definition vw=vwcosθ and show that ii=1,jj=1 and ij=0.

b Use part (a) and Problems 45 and 46 to derive the coordinate definition of vw.

52.

a Show that (v+w)(v+w)=v2+w2+2(vw)

b Use part (a) to prove the triangle inequality:

v+wv+w

53.

a Use the dot product to show that uv2=u2+v2 2uvcosθ.

b Use the figure below to explain why part (a) proves the law of cosines.

Screen Shot 2023-01-28 at 7.09.12 PM.png

54.

a If u is a unit vector, and the angle between u and i is α, show that u=cosαi+sinαj.

b Suppose u and v are unit vectors, as shown in the figure below. Use the dot product uv to prove that

cos(βα)=cosβcosα+sinβsinα

Screen Shot 2023-01-28 at 7.09.25 PM.png


This page titled 9.2: The Dot Product is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Katherine Yoshiwara via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?