Precalculus with Integrated CalculusXYZ Homework Edition

⇩ Download ▾

13.4 The Dot Product

In Section 13.3, we learned how add and subtract vectors and how to multiply vectors by scalars. In this section, we define a product of vectors. We begin with the following definition.

For example, if v = 3 , 4 and w = 1 , 2 ,then v w = 3 , 4 1 , 2 = ( 3 ) ( 1 ) + ( 4 ) ( 2 ) = 5 .

Note that the dot product takes two vectors and produces a scalar. For that reason, the quantity v w is often called the scalar product of v and w . The dot product enjoys the following properties.

Like most of the theorems involving vectors, the proof of Theorem 13.10 amounts to using the definition of the dot product and properties of real number arithmetic.

For example, to show the commutative property, let v = v 1 , v 2 and w = w 1 , w 2 . Then

v w = v 1 , v 2 w 1 , w 2 = v 1 w 1 + v 2 w 2 Definition of Dot Product = w 1 v 1 + w 2 v 2 Commutativity of Real Number Multiplication = w 1 , w 2 v 1 , v 2 Definition of Dot Product = w v

The distributive property is proved similarly and is left as an exercise.

For the scalar property, assume that v = v 1 , v 2 and w = w 1 , w 2 and k is a scalar. Then

( k v ) w = ( k v 1 , v 2 ) w 1 , w 2 = k v 1 , k v 2 w 1 , w 2 Definition of Scalar Multiplication = ( k v 1 ) ( w 1 ) + ( k v 2 ) ( w 2 ) Definition of Dot Product = k ( v 1 w 1 ) + k ( v 2 w 2 ) Associativity of Real Number Multiplication = k ( v 1 w 1 + v 2 w 2 ) Distributive Law of Real Numbers = k v 1 , v 2 w 1 , w 2 Definition of Dot Product = k ( v w )

We leave the proof of k ( v w ) = v ( k w ) as an exercise.

For the last property, we note that if v = v 1 , v 2 , then v v = v 1 , v 2 v 1 , v 2 = v 1 2 + v 2 2 = v 2 , where the last equality comes courtesy of Definition 13.4.

The following example puts Theorem 13.10 to good use. As in Example 13.3.3, we work out the problem in great detail and encourage the reader to supply the justification for each step.

If we take a step back from the pedantry in Example 13.4.1, we see that the bulk of the work is needed to show that ( v w ) ( v w ) = v v 2 ( v w ) + w w . If this looks familiar, it should.

Since the dot product enjoys many of the same properties enjoyed by real numbers, the machinations required to expand ( v w ) ( v w ) for vectors v and w match those required to expand ( v w ) ( v w ) for real numbers v and w , and hence we get similar looking results.

The identity verified in Example 13.4.1 plays a large role in the development of the geometric properties of the dot product, which we now explore.

Suppose v and w are two nonzero vectors. If we draw v and w with the same initial point, we define the angle between v and w to be the angle θ determined by the rays containing the vectors v and w , as illustrated below. We require 0 θ π . (Think about why this is needed in the definition.)

Coordinate-plane figure.
Figure 13.48
Coordinate-plane figure.
Figure 13.49
Coordinate-plane figure.
Figure 13.50

θ = 0

0 < θ < π

θ = π

The following theorem gives us some insight into the geometric role the dot product plays.

We prove Theorem 13.11 in cases. If θ = 0 , then v and w have the same direction. It follows1 that there is a real number k > 0 so that w = k v . Hence, v w = v ( k v ) = k ( v v ) = k v 2 .

Working from the other end of the equation, v w cos ( θ ) = v k v cos ( 0 ) = v ( | k | v ) ( 1 ) = k v 2 , where k v = | k | v courtesy of Theorem 13.8, and | k | = k since k > 0 .

Hence, in the case θ = 0 , we have shown v w = k v 2 and v w cos ( θ ) = k v 2 . Putting these two equations together shows that v w = v w cos ( θ ) holds in this case.

If θ = π , v and w have the exact opposite directions, so there is a real number k < 0 with w = k v .

As before, we compute v w = v ( k v ) = k ( v v ) = k v 2 . Since k < 0 here, we have | k | = k . Hence, we find v w cos ( θ ) = v k v cos ( π ) = v ( | k | v ) ( 1 ) = v ( k ) v ( 1 ) = k v 2 .

Once again, both v w = k v 2 and v w cos ( θ ) = k v 2 , so v w = v w cos ( θ ) in this case.

Next, if 0 < θ < π , the vectors v , w and v w determine a triangle with side lengths v , w and v w , respectively, as seen in the diagram below.

Coordinate-plane figure.
Figure 13.51
Coordinate-plane figure.
Figure 13.52

The Law of Cosines yields v w 2 = v 2 + w 2 2 v w cos ( θ ) . From Example 13.4.1, we also have that v w 2 = v 2 2 ( v w ) + w 2 .

Equating these two expressions for v w 2 gives v 2 + w 2 2 v w cos ( θ ) = v 2 2 ( v w ) + w 2 which reduces to 2 v w cos ( θ ) = 2 ( v w ) . Hence, v w = v w cos ( θ ) , as required.

An immediate consequence of Theorem 13.11 is the following.

We obtain the formula in Theorem 13.12 by solving the equation given in Theorem 13.11 for θ .

Since v and w are nonzero, so are v and w . Hence, we may divide both sides of v w = v w cos ( θ ) by v w . Since 0 θ π by definition, the values of θ exactly match the range of the arccosine function. Hence,

cos ( θ ) = v w v w θ = arccos ( v w v w ) .

Using Theorem 13.10, we can rewrite

v · w v w = ( 1 v v ) · ( 1 w w ) = v ^ · w ^ ,

giving us the alternative formula listed in Theorem 13.12: θ = arccos ( v ^ · w ^ ) . We are overdue for an example.

A few remarks about Example 13.4.2 are in order. Note that for nonzero vectors v and w , the lengths v and w are always positive. Since Theorem 13.11 tells us that v w = v w cos ( θ ) , we know the sign of v w is the same as the sign of cos ( θ ) .

Geometrically, if v w < 0 , then cos ( θ ) < 0 so θ is an obtuse angle, demonstrated number above.

If v w = 0 , then cos ( θ ) = 0 so θ = π 2 as in number. In this case, the vectors v and w are called orthogonal. Geometrically, when orthogonal vectors are sketched with the same initial point, the lines containing the vectors are perpendicular. Hence, if v and w are orthogonal, we write v w .

Note there is no `zero product property' for the dot product. As with the vectors in number above, it is quite possible to have v w = 0 but neither v nor w be 0 .

Finally, if v w > 0 , then cos ( θ ) > 0 so θ is an acute angle, as in the case of number above.

We summarize all of our observations in the schematic below.

Coordinate-plane figure.
Figure 13.56
Coordinate-plane figure.
Figure 13.57
Coordinate-plane figure.
Figure 13.58

v w < 0

v w = 0

v w > 0

θ is obtuse

θ = π 2 = 90

θ is acute

Of the three cases diagrammed above, the one which has the most mathematical significance moving forward is the orthogonal case. Hence, we state the corresponding theorem below.

Basically, Theorem 13.13 tells us that `the dot product detects orthogonality.' This is a helpful interpretation to keep in mind as you continue your study of vectors in later courses.

We have already argued one direction of Theorem 13.13, namely if v w = 0 then v w in the comments following Example 13.4.2.

To show the converse, we note if v w , then the angle between v and w , θ = π 2 . From Theorem 13.11, we have that v w = v w cos ( π 2 ) = v w ( 0 ) = 0 , as required.

We can use Theorem 13.13 in the following example to provide a different proof about the relationship between the slopes of perpendicular lines.2

Vector Projections

While Theorem 13.13 certainly gives us some insight into what the dot product means geometrically, there is more to the story of the dot product. Consider the two nonzero vectors v and w drawn with a common initial point O below. For the moment, assume that the angle between v and w , θ , is acute.

Coordinate-plane figure.
Figure 13.59
Coordinate-plane figure.
Figure 13.60
Coordinate-plane figure.
Figure 13.61

We wish to develop a formula for the vector p , indicated below, which is called the orthogonal projection of v onto w . The vector p is obtained geometrically as follows: drop a perpendicular from the terminal point T of v to the vector w and call the point of intersection R . The vector p is then defined as p = O R .

Like any vector, p is determined by its magnitude p and its direction p ^ according to the formula p = p p ^ . Since we want p ^ to have the same direction as w , we have p ^ = w ^ .

To determine p , we apply Definition B.1 to the right triangle O R T . We find cos ( θ ) = p v , or, equivalently, p = v cos ( θ ) . Using Theorems 13.11 and 13.10, we get:

p = v cos ( θ ) = v w cos ( θ ) w = v · w w = v · ( 1 w w ) = v · w ^ .

Hence, p = v · w ^ , and since p ^ = w ^ , we have p = p p ^ = ( v · w ^ ) w ^ .

Now suppose that the angle θ between v and w is obtuse, and consider the diagram below.

Coordinate-plane figure.
Figure 13.62

In this case, we see that p ^ = w ^ and using the triangle O R T , we find p = v cos ( θ ) . Since θ + θ = π , it follows that cos ( θ ) = cos ( θ ) , which means p = v cos ( θ ) = v cos ( θ ) .

Rewriting this last equation in terms of v and w as before, we get p = ( v · w ^ ) . Putting this together with p ^ = w ^ , we get p = p p ^ = ( v · w ^ ) ( w ^ ) = ( v · w ^ ) w ^ in this case as well.

If the angle between v and w is π 2 then it is easy to show3 that p = 0 . Since v w in this case, v w = 0 . It follows that v · w ^ = 0 and p = 0 = 0 w ^ = ( v · w ^ ) w ^ in this case, too. We have motivated the following.

Definition 13.8 gives us a good idea what the dot product does. The scalar v · w ^ is a measure of how much of the vector v is in the direction of the vector w and is thus called the scalar projection of v onto w .

While the formula given in Definition 13.8 is theoretically appealing, because of the presence of the normalized unit vector w ^ , computing the projection using the formula proj w ( v ) = ( v · w ^ ) w ^ can be messy. We present two other formulas that are often used in practice.

The proof of Theorem 13.14, which we leave to the reader as an exercise, amounts to using the formula w ^ = ( 1 w ) w and properties of the dot product. It is time for an example.

In Example 13.4.4 above, writing v = p + q is an example of what is called a vector decomposition of v . We generalize this result in the following theorem.

If the vectors p and q in Theorem 13.15 are nonzero, then we can say p is `parallel'5 to w and q is `orthogonal' to w . In this case, the vector p is sometimes called the `vector component of v parallel to w ' and q is called the `vector component of v orthogonal to w .'

To prove Theorem 13.15, we take p = proj w ( v ) and q = v p . Then p is, by definition, a scalar multiple of w . Next, we compute q w .

q w = ( v p ) w Definition of  q . = v w p w Properties of Dot Product = v w ( v w w w w ) w Since  p = proj w ( v ) . = v w ( v w w w ) ( w w ) Properties of Dot Product. = v w v w = 0 .

Hence, q w = 0 , as required. At this point, we have shown that the vectors p and q guaranteed by Theorem 13.15 exist. Now we need to show that they are unique - that is, there is only one such way to decompose v in the manner described in Theorem 13.15.

Suppose v = p + q = p + q where the vectors p and q satisfy the same properties described in Theorem 13.15 as p and q . Then p p = q q , so w ( p p ) = w ( q q ) = w q w q = 0 0 = 0 . The long and short of this computation is that w ( p p ) = 0 .

Now there are scalars k and k so that p = k w and p = k w . This means w ( p p ) = w ( k w k w ) = w ( [ k k ] w ) = ( k k ) ( w w ) = ( k k ) w 2 .

Since w 0 , w 2 0 , which means the only way w ( p p ) = ( k k ) w 2 = 0 is for k k = 0 , or k = k . This means p = k w = k w = p . Since q q = p p = p p = 0 , it must be that q = q as well.

Hence, we have shown there is only one way to write v as a sum of vectors as described in Theorem 13.15, so the decomposition listed there is unique.

We close this section with an application of the dot product. In Physics, if a constant force F is exerted over a distance d , the work W done by the force is given by W = F d . Here, the assumption is that the force is being applied in the direction of the motion. If the force applied is not in the direction of the motion, we can use the dot product to find the work done.

Consider the scenario sketched below in which the constant force F is applied to move an object from the point P to the point Q . Here the force is being applied at an angle θ as opposed to being applied directly in the direction of the motion.

Coordinate-plane figure.
Figure 13.65

To find the work W done in this scenario, we need to find how much of the force F is in the direction of the motion P Q . This is precisely what the dot product F P Q ^ represents.

Since the distance the object travels is P Q , we get W = ( F P Q ^ ) P Q . Since P Q = P Q P Q ^ , we can simplify this formula as follows: W = ( F P Q ^ ) P Q = F ( P Q P Q ^ ) = F P Q .

Using Theorem 13.11, we can rewrite W = F P Q = F P Q cos ( θ ) , where θ is the angle between the applied force F and the trajectory of the motion P Q . We have proved the following.

We test out our formula for work in the following example.

Exercises

In Exercises -, use the pair of vectors v and w to find the following quantities.

  • v w
  • The angle θ (in degrees) between v and w
  • proj w ( v )
  • q = v proj w ( v ) (Show that q w = 0 .)
  1. v = 2 , 7 and w = 5 , 9
  2. v = 6 , 5 and w = 10 , 12
  3. v = 1 , 3 and w = 1 , 3
  4. v = 3 , 4 and w = 6 , 8
  5. v = 2 , 1 and w = 3 , 6
  6. v = 3 3 , 3 and w = 3 , 1
  7. v = 1 , 17 and w = 1 , 0
  8. v = 3 , 4 and w = 5 , 12
  9. v = 4 , 2 and w = 1 , 5
  10. v = 5 , 6 and w = 4 , 7
  11. v = 8 , 3 and w = 2 , 6
  12. v = 34 , 91 and w = 0 , 1
  13. v = 3 i ^ j ^ and w = 4 j ^
  14. v = 24 i ^ + 7 j ^ and w = 2 i ^
  15. v = 3 2 i ^ + 3 2 j ^ and w = i ^ j ^
  16. v = 5 i ^ + 12 j ^ and w = 3 i ^ + 4 j ^
  17. v = 1 2 , 3 2 and w = 2 2 , 2 2
  18. v = 2 2 , 2 2 and w = 1 2 , 3 2
  19. v = 3 2 , 1 2 and w = 2 2 , 2 2
  20. v = 1 2 , 3 2 and w = 2 2 , 2 2
  21. A force of 1500 pounds is required to tow a trailer. Find the work done towing the trailer along a flat stretch of road 300 feet. Assume the force is applied in the direction of the motion.
  22. Find the work done lifting a 10 pound book 3 feet straight up into the air. Assume the force of gravity is acting straight downwards.
  23. Suppose Taylor fills her wagon with rocks and must exert a force of 13 pounds to pull her wagon across the yard. If she maintains a 15 angle between the handle of the wagon and the horizontal, compute how much work Taylor does pulling her wagon 25 feet. Round your answer to two decimal places.
  24. In Exercise in Section 13.3, two drunken college students have filled an empty beer keg with rocks which they drag down the street by pulling on two attached ropes. The stronger of the two students pulls with a force of 100 pounds on a rope which makes a 13 angle with the direction of motion. (In this case, the keg was being pulled due east and the student's heading was N 77 E.) Find the work done by this student if the keg is dragged 42 feet.
  25. Find the work done pushing a 200 pound barrel 10 feet up a 12.5 incline. Ignore all forces acting on the barrel except gravity, which acts downwards. Round your answer to two decimal places.

    HINT: Since you are working to overcome gravity only, the force being applied acts directly upwards. This means that the angle between the applied force in this case and the motion of the object is not the 12.5 of the incline!

  26. Prove the distributive property of the dot product in Theorem 13.10.
  27. Finish the proof of the scalar property of the dot product in Theorem 13.10.
  28. Show Theorem 13.15 reduces to Theorem 13.9 in the case w = i ^ .
  29. Use the identity in Example 13.4.1 to prove the Parallelogram Law

    v 2 + w 2 = 1 2 [ v + w 2 + v w 2 ]

  30. We know that | x + y | | x | + | y | for all real numbers x and y by the Triangle Inequality established in Exercise in Section 1.3. We can now establish a Triangle Inequality for vectors. In this exercise, we prove that u + v u + v for all pairs of vectors u and v .

    1. (Step 1) Show that u + v 2 = u 2 + 2 u v + v 2 .
    2. (Step 2) Show that | u v | u v . This is the celebrated Cauchy-Schwarz Inequality.6

      HINT: Start with | u v | = | u v cos ( θ ) | and use the fact that | cos ( θ ) | 1 for all θ .

    3. (Step 3) Show:

      u + v 2 = u 2 + 2 u v + v 2 u 2 + 2 | u v | + v 2 u 2 + 2 u v + v 2 = ( u + v ) 2 .

    4. (Step 4) Use Step 3 to show that u + v u + v for all pairs of vectors u and v .

Answers

  1. v = 2 , 7 and w = 5 , 9

    v w = 53

    θ = 45

    proj w ( v ) = 5 2 , 9 2

    q = 9 2 , 5 2

  2. v = 6 , 5 and w = 10 , 12

    v w = 0

    θ = 90

    proj w ( v ) = 0 , 0

    q = 6 , 5

  3. v = 1 , 3 and w = 1 , 3

    v w = 2

    θ = 120

    proj w ( v ) = 1 2 , 3 2

    q = 3 2 , 3 2

  4. v = 3 , 4 and w = 6 , 8

    v w = 50

    θ = 180

    proj w ( v ) = 3 , 4

    q = 0 , 0

  5. v = 2 , 1 and w = 3 , 6

    v w = 0

    θ = 90

    proj w ( v ) = 0 , 0

    q = 2 , 1

  6. v = 3 3 , 3 and w = 3 , 1

    v w = 6

    θ = 60

    proj w ( v ) = 3 3 2 , 3 2

    q = 3 3 2 , 9 2

  7. v = 1 , 17 and w = 1 , 0

    v w = 1

    θ 93.37

    proj w ( v ) = 1 , 0

    q = 0 , 17

  8. v = 3 , 4 and w = 5 , 12

    v w = 63

    θ 14.25

    proj w ( v ) = 315 169 , 756 169

    q = 192 169 , 80 169

  9. v = 4 , 2 and w = 1 , 5

    v w = 6

    θ 74.74

    proj w ( v ) = 3 13 , 15 13

    q = 55 13 , 11 13

  10. v = 5 , 6 and w = 4 , 7

    v w = 62

    θ 169.94

    proj w ( v ) = 248 65 , 434 65

    q = 77 65 , 44 65

  11. v = 8 , 3 and w = 2 , 6

    v w = 2

    θ 87.88

    proj w ( v ) = 1 10 , 3 10

    q = 81 10 , 27 10

  12. v = 34 , 91 and w = 0 , 1

    v w = 91

    θ 159.51

    proj w ( v ) = 0 , 91

    q = 34 , 0

  13. v = 3 i ^ j ^ and w = 4 j ^

    v w = 4

    θ 108.43

    proj w ( v ) = 0 , 1

    q = 3 , 0

  14. v = 24 i ^ + 7 j ^ and w = 2 i ^

    v w = 48

    θ 163.74

    proj w ( v ) = 24 , 0

    q = 0 , 7

  15. v = 3 2 i ^ + 3 2 j ^ and w = i ^ j ^

    v w = 0

    θ = 90

    proj w ( v ) = 0 , 0

    q = 3 2 , 3 2

  16. v = 5 i ^ + 12 j ^ and w = 3 i ^ + 4 j ^

    v w = 33

    θ 59.49

    proj w ( v ) = 99 25 , 132 25

    q = 224 25 , 168 25

  17. v = 1 2 , 3 2 and w = 2 2 , 2 2

    v w = 6 2 4

    θ = 75

    proj w ( v ) = 1 3 4 , 3 1 4

    q = 1 + 3 4 , 1 + 3 4

  18. v = 2 2 , 2 2 and w = 1 2 , 3 2

    v w = 2 6 4

    θ = 105

    proj w ( v ) = 2 6 8 , 3 2 6 8

    q = 3 2 + 6 8 , 2 + 6 8

  19. v = 3 2 , 1 2 and w = 2 2 , 2 2

    v w = 6 + 2 4

    θ = 165

    proj w ( v ) = 3 + 1 4 , 3 + 1 4

    q = 3 1 4 , 1 3 4

  20. v = 1 2 , 3 2 and w = 2 2 , 2 2

    v w = 6 + 2 4

    θ = 15

    proj w ( v ) = 3 + 1 4 , 3 + 1 4

    q = 1 3 4 , 1 3 4

  21. ( 1500 pounds ) ( 300 feet ) cos ( 0 ) = 450 , 000 foot-pounds
  22. ( 10 pounds ) ( 3 feet ) cos ( 0 ) = 30 foot-pounds
  23. ( 13 pounds ) ( 25 feet ) cos ( 15 ) 313.92 foot-pounds
  24. ( 100 pounds ) ( 42 feet ) cos ( 13 ) 4092.35 foot-pounds
  25. ( 200 pounds ) ( 10 feet ) cos ( 77.5 ) 432.88 foot-pounds

Adapted from Precalculus, Preliminary 4th Edition (integrated calculus), by Carl Stitz and Jeff Zeager (stitz-zeager.com), licensed under CC BY-NC-SA 3.0. Changes were made: reformatted as an accessible XYZ web edition. License: CC-BY-NC-SA-3.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.