9.2 Dot Products and Projections
In Section 9.1, 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 and
,then
Note that the dot product takes two vectors and produces a scalar. For that reason, the quantity is often called the scalar product of
and
. The dot product enjoys the following properties.
Theorem 9.5 Properties of the Dot Product
- Commutative Property: For all vectors
and
,
- Distributive Property: For all vectors
,
and
,
- Scalar Property: For all vectors
and
and scalars
,
- Relation to Magnitude: For all vectors
,
Like most of the theorems involving vectors, the proof of Theorem 9.5 amounts to using the definition of the dot product and properties of real number arithmetic.
For example, to show the commutative property, let and
. Then
The distributive property is proved similarly and is left as an exercise.
For the scalar property, assume that and
and
is a scalar. Then
We leave the proof of as an exercise.
For the last property, we note that if , then
, where the last equality comes courtesy of Definition 9.4.
The following example puts Theorem 9.5 to good use. As in Example 9.2.1, we work out the problem in great detail and encourage the reader to supply the justification for each step.
Example 9.2.1
Example 9.2.1
Prove the identity: .
Solution:
We begin by rewriting in terms of the dot product using Theorem 9.5.
Hence, as required.
If we take a step back from the pedantry in Example 9.2.1, we see that the bulk of the work is needed to show that . If this looks familiar, it should.
As the dot product enjoys many of the same properties enjoyed by real numbers, the machinations required to expand for vectors
and
match those required to expand
for real numbers
and
, and hence we get similar looking results.
The identity verified in Example 9.2.1 plays a large role in the development of the geometric properties of the dot product, which we now explore.
Suppose and
are two nonzero vectors. If we draw
and
with the same initial point, we define the angle between
and
to be the angle
determined by the rays containing the vectors
and
, as illustrated below. We require
. (Think about why this is needed in the definition.)

The following theorem gives us some insight into the geometric role the dot product plays.
Theorem 9.6 Geometric Interpretation of Dot Product
If and
are nonzero vectors then
where is the angle between
and
.
We prove Theorem 9.6 in cases. If , then
and
have the same direction. It follows[1] that there is a real number
such that
. Hence,
Working from the other end of the equation,
where courtesy of Theorem 9.3, and
because
Hence, in the case , we have shown
and
. Putting these two equations together shows that
holds in this case.
If ,
and
have the exact opposite directions, so there is a real number
with
.
As before, we compute . Because
here, we have
. Hence, we find
Once again, both and
, so
in this case.
Next, if , the vectors
,
and
determine a triangle with side lengths
,
and
, respectively, as seen in the diagram below.

The Law of Cosines yields .
From Example 9.2.1, we also have that
Equating these two expressions for gives
Hence, , as required.
An immediate consequence of Theorem 9.6 is the following.
We obtain the formula in Theorem 9.7 by solving the equation given in Theorem 9.6 for
As and
are nonzero, so are
and
. Hence, we may divide both sides of
by
. Given
by definition, the values of
exactly match the range of the arccosine function. Hence,
Using Theorem 9.5, we can rewrite
giving us the alternative formula listed in Theorem 9.7:
We are overdue for an example.
Example 9.2.2
Example 9.2.2.1
Compute the angle between the following pairs of vectors. Graph each pair of vectors in standard position to check the reasonableness of your answer.
, and
Solution:
We use the formula from Theorem 9.7 in each case below.
Compute the angle between , and
We have
Computing the length of each vector, we find
and
Hence, we find
We check our answer geometrically by graphing this pair of vectors.
</p>
Example 9.2.2.2
Compute the angle between the following pairs of vectors. Graph each pair of vectors in standard position to check the reasonableness of your answer.
, and
Solution:
We use the formula from Theorem 9.7 in each case below.
Compute the angle between , and
.
For and
, we find
Hence, it doesn’t matter what and
are,
We check our answer geometrically by graphing this pair of vectors.
Example 9.2.2.3
Compute the angle between the following pairs of vectors. Graph each pair of vectors in standard position to check the reasonableness of your answer.
, and
Solution:
We use the formula from Theorem 9.7 in each case below.
Compute the angle between , and
.
We find
Computing lengths, we find
and
and as a result
As isn’t the cosine of one of the `common angles,’ we leave our exact answer in terms of the arccosine function. For the purposes of checking our answer, however, we approximate
.
A few remarks about Example 9.2.2 are in order. Note that for nonzero vectors and
, the lengths
and
are always positive. Theorem 9.6 tells us that
, thus we know the sign of
is the same as the sign of
Geometrically, if , then
so
is an obtuse angle, demonstrated in number 1 above.
If , then
so
as in number 2. In this case, the vectors
and
are called orthogonal. Geometrically, when orthogonal vectors are sketched with the same initial point, the lines containing the vectors are perpendicular. Hence, if
and
are orthogonal, we write
Note there is no `zero product property’ for the dot product. As with the vectors in number 2 above, it is quite possible to have but neither
nor
be
Finally, if , then
so
is an acute angle, as in the case of number 3 above.
We summarize all of our observations in the schematic below.

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 9.8 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 9.8, namely if then
in the comments following Example 9.2.2.
To show the converse, we note if , then the angle between
and
,
. From Theorem 9.6, we have that
, as required.
We can use Theorem 9.8 in the following example to provide a different proof about the relationship between the slopes of perpendicular lines.[2]
Example 9.2.3
Example 9.2.3
Let be the line
and let
be the line
. Prove that
is perpendicular to
if and only if
.
Solution:
Our strategy is to find two vectors: , which has the same direction as
, and
, which has the same direction as
and show
if and only if
To that end, we substitute and
into
to find two points which lie on
, namely
and
.
We let . Because
is determined by two points on
, it may be viewed as lying on
, so
has the same direction as
Similarly, we get the vector which has the same direction as the line
. Hence,
and
are perpendicular if and only if
. According to Theorem 9.8,
if and only if
Notice that . Hence,
if and only if
, which is true if and only if
, as required.
9.2.1 Vector Projections
While Theorem 9.8 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 and
drawn with a common initial point
below. For the moment, assume that the angle between
and
,
, is acute.

We wish to develop a formula for the vector , indicated below, which is called the orthogonal projection of
onto
The vector
is obtained geometrically as follows: drop a perpendicular from the terminal point
of
to the vector
and call the point of intersection
. The vector
is then defined as
Like any vector, is determined by its magnitude
and its direction
according to the formula
. Because we want
to have the same direction as
, we have
To determine , we apply Definition 7.2 to the right triangle
. We find
, or, equivalently,
. Using Theorems 9.6 and 9.5, we get:
Hence, , and as
, we have
Now suppose that the angle between
and
is obtuse, and consider the diagram below.

In this case, we see that and using the triangle
, we find
. Because
, it follows that
, which means
Rewriting this last equation in terms of and
as before, we get
. Putting this together with
, we get
in this case as well.
If the angle between and
is
then it is easy to show[3] that
. Because
in this case,
. It follows that
and
in this case, too. We have motivated the following.
Definition 9.8
Let and
be nonzero vectors.
The orthogonal projection of onto
denoted
is given by
Definition 9.8 gives us a good idea what the dot product does. The scalar is a measure of how much of the vector
is in the direction of the vector
and is thus called the scalar projection of
onto
While the formula given in Definition 9.8 is theoretically appealing, because of the presence of the normalized unit vector , computing the projection using the formula
can be messy. We present two other formulas that are often used in practice.
The proof of Theorem 9.9, which we leave to the reader as an exercise, amounts to using the formula and properties of the dot product. It is time for an example.
Example 9.2.4
Example 9.2.4
Let and
. Determine
. Check your answer geometrically.
Solution:
We find
and
Hence,
We plot ,
and
in standard position below on the left. We see
has the same direction as
, but we need to do more to show
in is indeed the orthogonal projection of
onto
.
Consider the vector whose initial point is the terminal point of
and whose terminal point is the terminal point of
. From the definition of vector arithmetic,
, so that
.
For and
, then
To prove , we compute the dot product:
Hence, per Theorem 9.8, we know which completes our check.[4]
In Example 9.2.4 above, writing is an example of what is called a vector decomposition of
. We generalize this result in the following theorem.
Theorem 9.10 Generalized Decomposition Theorem
Let and
be nonzero vectors. There are unique vectors
and
such that
where
for some scalar
, and
If the vectors and
in Theorem 9.10 are nonzero, then we can say
is `parallel’[5] to
and
is `orthogonal’ to
. In this case, the vector
is sometimes called the `vector component of
parallel to
‘ and
is called the `vector component of
orthogonal to
.’
To prove Theorem 9.10, we take and
. Then
is, by definition, a scalar multiple of
. Next, we compute
Hence, , as required. At this point, we have shown that the vectors
and
guaranteed by Theorem 9.10 exist. Now we need to show that they are unique – that is, there is only one such way to decompose
in the manner described in Theorem 9.10.
Suppose where the vectors
and
satisfy the same properties described in Theorem 9.10 as
and
. Then
, so
The long and short of this computation is that
Now there are scalars and
so that
and
. This means
Because ,
, which means the only way
is for
, or
. \vskip 0.5em
This means . As
, it must be that
as well.
Hence, we have shown there is only one way to write as a sum of vectors as described in Theorem 9.10, so the decomposition listed there is unique.
We close this section with an application of the dot product. In Physics, if a constant force is exerted over a distance
, the work
done by the force is given by
. 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 is applied to move an object from the point
to the point
. Here the force is being applied at an angle
as opposed to being applied directly in the direction of the motion.

To find the work done in this scenario, we need to find how much of the force
is in the direction of the motion
. This is precisely what the dot product
represents.
The distance the object travels is , so we get
. As
, we can simplify this formula as follows:
Using Theorem 9.6, we can rewrite , where
is the angle between the applied force
and the trajectory of the motion
. We have proved the following.
Theorem 9.11 Work as a Dot Product
Suppose a constant force is applied along the vector
. The work
done by
is given by
where is the angle between
and
We test out our formula for work in the following example.
Example 9.2.5
Example 9.2.5
Taylor exerts a force of pounds to pull her wagon a distance of
feet over level ground. If the handle of the wagon makes a
angle with the horizontal, how much work did Taylor do pulling the wagon? Assume the force of
pounds is exerted at a
angle for the duration of the
feet.

Solution:
There are (at least) two ways to attack this problem. One way is to find the vectors and
mentioned in Theorem 9.11 and compute
.
To do this, we assume the origin is at the point where the handle of the wagon meets the wagon and the positive -axis lies along the dashed line in the figure above.
To find the force vector , we note the force in this situation is a constant 10 pounds, so
. Moreover, the force is being applied at a constant angle of
with respect to the positive
-axis. Definition 9.4 gives us
The wagon is being pulled along 50 feet in the positive -direction, so we find the displacement vector is
Per Theorem 9.11, .
Force is measured in pounds and distance is measured in feet, giving us foot-pounds.
Alternatively, we can use the formula . With
pounds,
feet and
, we get
foot-pounds of work.
9.2.2 Section Exercises
In Exercises 1 – 20, use the pair of vectors and
to find the following quantities.
- The angle
(in degrees) between
and
(Show that
.)
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
- A force of
pounds is required to tow a trailer. Find the work done towing the trailer along a flat stretch of road
feet. Assume the force is applied in the direction of the motion.
- Find the work done lifting a
pound book
feet straight up into the air. Assume the force of gravity is acting straight downwards.
- 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
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.
- In Exercise 61 in Section 9.1, 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
angle with the direction of motion. (In this case, the keg was being pulled due east and the student’s heading was N
E.) Find the work done by this student if the keg is dragged 42 feet.
- Find the work done pushing a 200 pound barrel 10 feet up a
incline. Ignore all forces acting on the barrel except gravity, which acts downwards. Round your answer to two decimal places.
HINT: Because 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 theof the incline!
- Prove the distributive property of the dot product in Theorem 9.5.
- Finish the proof of the scalar property of the dot product in Theorem 9.5.
- Show Theorem 9.10 reduces to Theorem 9.4 in the case
- Use the identity in Example 9.2.1 to prove the Parallelogram Law
- We know that
for all real numbers
and
by the Triangle Inequality established in Exercise 55 in Section 1.4. We can now establish a Triangle Inequality for vectors. In this exercise, we prove that
for all pairs of vectors
and
- (Step 1) Show that
.
- (Step 2) Show that
. This is the celebrated Cauchy-Schwarz Inequality.[6]
HINT: Start withand use the fact that
for all
.
- (Step 3) Show:
- (Step 4) Use Step 3 to show that
for all pairs of vectors
and
.
- (Step 1) Show that
Section 9.2 Exercise Answers can be found in the Appendix … Coming soon
The product of two vectors