The scalar, or dot product
We have seen now how to add together vectors and how to multiply them by scalars, but we haven’t seen how to multiply two vectors together. In fact it’s not all that obvious what it means to multiply two vectors together. A vector has a magnitude and a direction, how do you multiply directions? The answer is that there are two different ways to multiply together vectors. The first way which we will explore now is the scalar, or dot product. This will take two vectors and the product of them using this rule will give us a scalar. We definitely want something that is linear in both of the magnitudes of the vectors. That is to say that we want some way of multiplying together vectors so that when we double the magnitude of one of the vectors, we double the product. We will express the scalar or dot product of two vectors as: . For the above property to hold, we must have that:
but we don’t know what the constant of proportionality must be like. Clearly this already gives us a scalar and when we double one of the magnitudes, the product doubles, as we would hope for a product, but it doesn’t contain any more information than that. What we want is something that has some information also about the relative direction of the vectors. We can define a scalar product which tells us how similar the two of them are by including the angle in between the two. If the angle in between the two vectors is then we can define a product like:
Such that when the two vectors are parallel to one another the dot product is just the product of their magnitudes, and when they are orthogonal to one another, the dot product is zero. Now this contains information both about their magnitudes and about their relative directions. This product is greatest when two vectors are pointing in the same direction and reduces to zero when they are at right angles to one another. But it seems like finding the angle between two vectors isn’t going to be very easy. Is there an easier way to calculate this? We are going to use a triangle identity to find out how to calculate a dot product in component form. Given the vectors in the figure below
We will use the identity relating the length of the sides of a triangle and one of the angles. The sides of the triangle are of length , and , thus we can write that:
If and then . We know how to calculate the magnitude of a vector in component form, it’s just the pythagorean length. We can also see that the term on the right of the equation is precisely the expression we wrote above for the dot product, so let’s replace it with the dot product and see what we get:
Rearranging gives:
Now plugging in the component forms for the right hand side we get:
Which can be expanded out and simplifies to:
This seems to be suggesting that to calculate the dot product as we defined it above, all we have to do is to multiply together the vectors component by component. Indeed you can show that this is true in any number of dimensions. If we have two n-dimensional vectors, then the dot product of them is:
For instance: , then . Now we also have a very easy way to find the angle in between two vectors. We know that the dot product of these two vectors is 1 and we also know that the dot product is defined as the product of the magnitudes times the cosine of the angle in between them. This means that:
which in this case gives: .
We can calculate the dot product just as easily using the angle bracket notation as well as the component notation. For instance:
We do this knowing that the standard basis vectors are orthogonal to one another and have magnitude one so their dot products with themselves are 1 and with the other basis vectors are 0.
The dot product is a very good way to tell whether two vectors are orthogonal to one another. For instance the fact that:
Tells us that these two vectors are perpendicular to one another. Sometimes we are asked to find a unit vector perpendicular to another vector. For instance, if we want to find a unit vector perpendicular to the vector , then we want to find a such that and that . This is two equations and two constraints and there are two solutions to this: and . Note that these are two unit vectors pointing in opposite directions. These two vectors and the original vector are shown in the figure below:
When finding unit vectors for , I think you swapped the x and y components and wrote instead of .
RHMMUH005.
Sorry, don’t know what happened there. Instead of , you wrote .
[…] MAM1000 lecture notes part 40 – The scalar, or dot product […]