Paul's Online Math Notes
     
 
Online Notes / Linear Algebra / Euclidean n-Space / Dot Product & Cross Product
Linear Algebra

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 & Cross Product

In this section we’re going to be taking a look at two special products of vectors, the dot product and the cross product.  However, before we look at either on of them we need to get a quick definition out of the way.

 

Suppose that u and v are two vectors in 2-space or 3-space that are placed so that their initial points are the same.  Then the angle between u and v is angle  that is formed by u and v such that .  Below are some examples of angles between vectors.

DotCross_G1

Notice that there are always two angles that are formed by the two vectors and the one that we will always chose is the one that satisfies .  We’ll be using this angle with both products.

 

So, let’s get started by taking a look at the dot product.  Of the two products we’ll be looking at in this section this is the one we’re going to run across most often in later sections.  We’ll start with the definition.

 

Definition 1  If u and v are two vectors in 2-space or 3-space and  is the angle between them  then the dot product, denoted by  is defined as,

                                                           

 

Note that the dot product is sometimes called the scalar product or the Euclidean inner product.  Let’s see a quick example or two of the dot product.

 

Example 1  Compute the dot product for the following pairs of vectors.

(a)  and  which makes the angle between them .

(b)  and  which makes the angle between them .

Solution

For reference purposes here is a sketch of the two sets of vectors.

DotCross_Ex1_G3

 

(a) There really isn’t too much to do here with this problem.

                           

(b) Nor is there a lot of work to do here.

                                 

 

Now, there should be a question in everyone’s mind at this point.  Just how did we arrive at those angles above?  They are the correct angles, but just how did we get them?  That is the problem with this definition of the dot product.  If you don’t have the angles between two vectors you can’t easily compute the dot product and sometimes finding the correct angles is not the easiest thing to do.

 

Fortunately, there is another formula that we can use to compute the formula that relies only on the components of the vectors and not the angle between them.

 

Theorem 1  Suppose that  and  are two vectors in 3-space then,

                                                        

 

Likewise, if  and  are two vectors in 2-space then,

                                                             

 

Proof : We’ll just prove the 3-space version of this theorem.  The 2-space version has a similar proof.  Let’s start out with the following figure.

DotCross_G5

So, these three vectors form a triangle and the lengths of each side is , , and .  Now, from the Law of Cosines we know that,

 

 

 

Now, plug in the definition of the dot product and solve for .

 

 

 

(1)

 

Next, we know that  and so we can compute .  Note as well that because of the square on the norm we won’t have a square root.  We’ll also do all of the multiplications.

 

 

 

The first three terms of this are nothing more than the formula for  and the next three terms are the formula for .  So, let’s plug this into (1).

 

 

 

And we’re done with the proof.

Pf_Box

 

Before we work an example using this new (easier to use) formula let’s notice that if we rewrite the definition of the dot product as follows,

 

 

we now have a very easy way to determine the angle between any two vectors.  In fact this is how we got the angles between the vectors in the first example!

 

Example 2  Determine the angle between the following pairs of vectors.

(a)    

(b)     

Solution

(a) Here are all the important quantities for this problem.

                           

The angle is then,

                               

(b) The important quantities for this part are,

                    

The angle is then,

                           

Note that we did need to use a calculator to get this result.