Paul's Online Math Notes
     
 
Online Notes / Calculus II / Vectors / Dot Product
Calculus II

You can navigate through this E-Book using the menu to the left. For E-Books that have a Chapter/Section organization each option in the menu to the left indicates a chapter and will open a menu showing the sections in that chapter. Alternatively, you can navigate to the next/previous section or chapter by clicking the links in the boxes at the very top and bottom of the material.

Also, depending upon the E-Book, it will be possible to download the complete E-Book, the chapter containing the current section and/or the current section. You can do this be clicking on the E-Book, Chapter, and/or the Section link provided below.

For those pages with mathematics on them you can, in most cases, enlarge the mathematics portion by clicking on the equation. Click the enlarged version to hide it.

 Dot Product

The next topic for discussion is that of the dot product.  Let’s jump right into the definition of the dot product.  Given the two vectors  and  the dot product is,

                                                                                                        (1)

 

Sometimes the dot product is called the scalar product.  The dot product is also an example of an inner product and so on occasion you may hear it called an inner product.

 

Example 1  Compute the dot product for each of the following.

(a)  

(b)  

Solution

Not much to do with these other than use the formula.

(a)  

 

(b)  

 

 

Here are some properties of the dot product.

 

Properties

 

 

The proofs of these properties are mostly “computational” proofs and so we’re only going to do a couple of them and leave the rest to you to prove.

 

Proof of  

We’ll start with the three vectors, ,  and  and yes we did mean for these to each have n components.  The theorem works for general vectors so we may as well do the proof for general vectors.

 

Now, as noted above this is pretty much just a “computational” proof.  What that means is that we’ll compute the left side and then do some basic arithmetic on the result to show that we can make the left side look like the right side.  Here is the work.

                 

Pf_Box

 

 

Proof of : If   then  

This is a pretty simple proof.  Let’s start with  and compute the dot product.

                                               

 

Now, since we know  for all i then the only way for this sum to be zero is to in fact have .  This in turn however means that we must have  and so we must have had .

Pf_Box

 

 

There is also a nice geometric interpretation to the dot product.  First suppose that θ is the angle between  and  such that  as shown in the image below.

 

DotProd_G1

 

We can then have the following theorem.

 

Theorem

                                                                                                               (2)

 

Proof

Let’s give a modified version of the sketch above.

 

DotProd_Proof_G1

 

The three vectors above form the triangle AOB and note that the length of each side is nothing more than the magnitude of the vector forming that side.

 

The Law of Cosines tells us that,

                                            

 

 

Also using the properties of dot products we can write the left side as,

                                                

Our original equation is then,

                                     

Pf_Box

 

 

The formula in from this theorem is often used not to compute a dot product but instead to find the angle between two vectors.  Note as well that while the sketch of the two vectors in the proof is for two dimensional vectors the theorem is valid for vectors of any dimension (as long as they have the same dimension of course).

 

Let’s see an example of this.

 

Example 2  Determine the angle between  and .

 

Solution

We will need the dot product as well as the magnitudes of each vector.

                             

The angle is then,

                               

 

The dot product gives us a very nice method for determining if two vectors are perpendicular and it will give another method for determining when two vectors are parallel.  Note as well that often we will use the term orthogonal in place of perpendicular.

 

Now, if two vectors are orthogonal then we know that the angle between them is 90 degrees.  From (2) this tells us that if two vectors are orthogonal then,

 

 

 

 

Likewise, if two vectors are parallel then the angle between them is either 0 degrees (pointing in the same direction) or 180 degrees (pointing in the opposite direction).  Once again using (2) this would mean that one of the following would have to be true.

 

 

 

 

 

Example 3  Determine if the following vectors are parallel, orthogonal, or neither.

(a)  

(b)  

Solution

(a) First get the dot product to see if they are orthogonal.

                                                         

The two vectors are orthogonal.

 

(b) Again, let’s get the dot product first.

                                                           

So, they aren’t orthogonal.  Let’s get the magnitudes and see if they are parallel.

                                                

 

Now, notice that,

                                               

So, the two vectors are parallel.

 

There are several nice applications of the dot product as well that we should look at.

 

Projections

The best way to understand projections is to see a couple of sketches.  So, given two vectors  and  we want to determine the projection of  onto .  The projection is denoted by .  Here are a couple of sketches illustrating the projection.

DotProd_G2    DotProd_G3

 

So, to get the projection of  onto  we drop straight down from the end of  until we hit (and form a right angle) with the line that is parallel to .  The projection is then the vector that is parallel to , starts at the same point both of the original vectors started at and ends where the dashed line hits the line parallel to .