You are about to erase your work on this activity. Are you sure you want to do this?
Updated Version Available
There is an updated version of this activity. If you update to the most recent version of this activity, then your current progress on this activity will be erased. Regardless, your record of completion will remain. How would you like to proceed?
Mathematical Expression Editor
The dot product measures how aligned two vectors are with each other.
1 The definition of the dot product
We have already seen how to add vectors and how to multiply vectors by
scalars.
We have not yet defined how to multiply a vector by a vector. You might think it is
reasonable to define
but this operation is not especially useful, and will never be
utilized in this course.
In this section we will define a way to “multiply” two vectors called the dot
product. The dot product measures how “aligned” two vectors are with each
other.
The dot product of two vectors is given by the following.
Compute the magnitude of the vector \(\vec {v} = \vector {1,2,3,4}\).
\[ |\vec {v}| = \answer {\sqrt {30}} \]
2 The geometry of the dot product
Let’s see if we can figure out what the dot product tells us geometrically. As an
appetizer, we give the next theorem: the Law of Cosines.
Law of Cosines Given a triangle with sides of length \(a\), \(b\), and \(c\), and with \(0\le \theta \le \pi \)
being the measure of the angle between the sides of length \(a\) and \(b\),
we have
\[ c^2 = a^2+b^2-2ab\cos (\theta ). \]
When \(\theta = \pi /2\) what does the law
of cosines say?
It is the Pythagorean theorem. It is the law of sines. It is
undefined.
We can rephrase the Law of Cosines in the language of vectors. The vectors \(\vec {v}\), \(\vec {w}\), and \(\vec {v} - \vec {w}\)
form a triangle
so if \(\theta \) is the angle
between \(\vec {v}\) and \(\vec {w}\) we must have
The theorem above tells us some interesting things about the angle between two
(nonzero) vectors.
If \(\vec {v}\) and \(\vec {w}\) are two nonzero vectors, and \(\theta \) is the angle between them,
\[ \vec {v}\dotp \vec {w} = 0 \text { if and only if } \theta = \frac {\pi }{2}. \]
We have a special buzz-word for when the dot product is zero.
Two vectors are called orthogonal if the the dot product of these vectors is
zero.
Note: Geometrically, this means that the angle between two nonzero vectors
is \(\pi /2\) or \(90^\circ \). This also means that the zero vector is orthogonal to all vectors.
From this we see that the dot product of two vectors is zero if those vectors are
orthogonal. Moreover, if the dot product is not zero, using the formula
One of the major uses of the dot product is to let us project one vector in the
direction of another. Conceptually, we are looking at the “shadow” of one vector
projected onto another, sort of like in the case of a sundial.
In essence we
imagine the “sun” directly over a vector, casting a shadow onto another vector.
While this is good starting point for understanding orthogonal projections, now we
need the definition.
The orthogonal projection of vector \(\vec {v}\) in the direction of vector \(\vec {w}\) is a new vector denoted \(\proj _\vec {w}(\vec {v})\)
that lies on the line containing \(\vec {w}\), with the vector \(\proj _\vec {w}(\vec {v}) - \vec {v}\) perpendicular to \(\vec {w}\). Below we see
vectors \(\vec {v}\) and \(\vec {w}\) along with \(\proj _{\vec {w}}(\vec {v})\). Move the tips of vectors \(\vec {v}\) and \(\vec {w}\) to help you understand
\(\proj _{\vec {w}}(\vec {v})\).
Consider the vector \(\vec {v}=\vector {3,2,1}\) and the vector \(\veci = \vector {1,0,0}\). Compute \(\proj _\veci (\vec {v})\).
Scalar components compute “how much” of a vector is pointing in a particular
direction.
Let \(\vec {v}\) and \(\vec {w}\) be vectors and let \(0\le \theta \le \pi \) be the angle between them. The scalar
component in the direction of \(\vec {w}\) of vector \(\vec {v}\) is denoted
Given any vector \(\vec {v}\) in \(\R ^2\), we can always write it as
\[ \vec {v} = a\veci + b\vecj \]
for some real numbers \(a\) and \(b\). Here
we’ve broken \(\vec {v}\) into the sum of two orthogonal vectors — in particular, vectors
parallel to \(\veci \) and \(\vecj \). In fact, given a vector \(\vec {v}\) and another vector \(\vec {w}\) you can always
break \(\vec {v}\) into a sum of two vectors, one of which is parallel to \(\vec {w}\) and another
that is perpendicular to \(\vec {w}\). Such a sum is called an orthogonal decomposition.
Move the point around to see various orthogonal decompositions of vector
\(\vec {v}\).
Let \(\vec v\) and \(\vec w\) be vectors. The orthogonal decomposition of \(\vec v\) in terms of \(\vec {w}\) is the sum
where \(\vec {x} \parallel \vec {y}\) means that “\(\vec {x}\) is parallel to \(\vec {y}\)” and \(\vec {x} \perp \vec {y}\) means that “\(\vec {x}\) is perpendicular to \(\vec {y}\)”.
Let \(\vec u = \vector {-2,1}\) and \(\vec v = \vector {3,1}\). What is the orthogonal decomposition of \(\vec {u}\) in terms of \(\vec {v}\)?
Now we give an example where this decomposition is useful.
Consider a box weighing \(50\unit {lb}\) resting on a ramp that rises \(5\unit {ft}\) over a span of \(20\unit {ft}\).
We know that the force of gravity is
pointing straight down, but from experience, we know this exerts some sort of
diagonal force on the box, too (things slide down ramps). This diagonal force will be
described by the orthogonal decomposition of \(\vec {g} = \vector {0,-50}\) in terms of \(\vec {r}\). Find this orthogonal
decomposition.
To find the force of gravity in the direction of the ramp, we compute \(\proj _\vec {r}(\vec g)\).
If \(\vec {v}\) is orthogonal to \(\vec {w}\) then \(\vec {v} \dotp \vec {w} = 0\).
Instead of defining the dot product by a formula, we could have defined it by
the properties above! While this is common practice in mathematics, the
process is a bit abstract and is perhaps beyond the scope of this course.
Nevertheless, we know that you are an intrepid young mathematician, and
we will not hold back. We will now show that there is only one formula
which gives us all of these properties, and it will be our formula for the dot
product.
The dot product is given by the following formula.
Finally, since \(\uvec {e}_i \dotp \uvec {e}_j = 1\) if \(i=j\) (because they are parallel in this case) and \(0\)
otherwise (because then they are orthogonal). So, our expression becomes