Section 2.3 - The dot product

Section Objectives

  1. Compute the dot product of two vectors.
  2. Find and use the projection of one vector onto another.
  3. Find the direction cosines of a vector.
  4. Use the dot product in applications involving orthogonality, work, angles between vectors, projections, etc.



The dot product

There are several possible ways that we could define the product of two vectors. In fact, we will study two such ways in great detail. The first is the dot product. The dot product of two vectors is the scalar product denoted by a centered dot and defined as follows:


If you have ever multiplied matrices, you might recognize the dot product as the product of a 1-by-3 matrix and a 3-by-1 matrix. This may seem like an unusual way to combine vectors, but we will soon see otherwise.



Examples







Properties of the dot product

The following properties hold for any vectors , , and and scalar .


These properties of the dot product are pretty easy to prove. The fourth property will be one we use quite often.



The dot product and the angle between vectors

The dot product has an alternative formula that relates it to the angle between the vectors:

where is the angle between and . (Typically we restrict so that ).


This formula follows from the Law of Cosines, which you studied in your trigonometry class. A few important ideas should be clear from this formula:

For nonzero vectors and ,

  1. is a right angle if and only if .
  2. is obtuse if and only if .
  3. is acute if and only if .


Examples










Projections

In applications of vectors, we are sometimes only interested in certain "parts" of vectors. For example, if you are applying a force to move a box along the floor, you might only be interested in the part of the force that is in the direction of the box's displacement. That "part" is a projection.

Illustration of the vector projection


The vector projection of onto is given by

Unless we say otherwise, we will use the single word projection to refer to the vector projection. Notice that the projection has the direction of the vector that is being projected onto. In our notation, that's the vector we use as the subscript.


The scalar projection of onto is the signed length of the vector projection: . This is also called the component of in the direction of .



Examples













Direction cosines

Recall that a vector in 2-space can be written in terms of its magnitude and the angle it makes with the positive -axis. At first glance, this idea does not generalize to vectors in 3-space, but it does if we think about it in the right way.


Notice that (by simply computing the dot products)

and that each component satisfies (by the alternative form of the dot product)

where , , and are the angles between and the coordinate axes. It follows that

The angles , , and are called the direction angles for , and their cosines are called the direction cosines. An important consequence of this idea that the components of any unit vector are necessarily its direction cosines.