Lesson Video: The Scalar Product of Two Vectors | Nagwa Lesson Video: The Scalar Product of Two Vectors | Nagwa

Lesson Video: The Scalar Product of Two Vectors Physics • First Year of Secondary School

In this video, we will learn how to calculate the scalar product of two vectors using both the components of the vectors and the magnitudes of the two vectors and the angle between them.

14:33

Video Transcript

In this video, we’re talking about the scalar product of two vectors. We’re going to learn a technique for combining two vectors in such a way that the outcome is a quantity that has a magnitude but no direction, that is, is a scalar.

Now, at first, we might wonder why we would ever want to do this. Why would we want to take two vectors, we could call them 𝐀 and 𝐁, that both have magnitude and direction associated with them and combine them in such a way that we lose information? That is, we lose direction information. As a matter of fact, though, there are physical situations where doing this is helpful. Consider this example of a box resting on a flat surface. Let’s say that by pushing on the box with the force vector shown here, our goal is to push the box along the surface so that it’s displaced. Now, if we’re indeed able to do this, if by applying this force 𝐅, we’re able to displace the box this displacement 𝐝. Then that means that we’ve done some work. We can represent this using a capital 𝑊 on the box.

But then just how much work have we done? Well, it turns out that this method we’re learning of taking the scalar product of two vectors can tell us. Notice that in this situation, we have two vectors: the force we’re applying to the box and the box’s displacement. And while the work we want to calculate depends on these vectors, the work itself is not a vector quantity but rather is a scalar quantity. So then we want to combine the force and displacement vectors in such a way that a scalar results. We’ll do this using the operation known as the scalar product. Symbolically, that operation is represented as we’ve done over here, using a dot between the two vectors we’re combining.

For that reason, the scalar product of two vectors is also known as the dot product. So these two terms, scalar product and dot product, mean the same thing. Now, there are a couple of different ways to calculate a scalar or dot product. One way to do it is to use what we could call a geometric approach. Thinking from this perspective, let’s imagine these two vectors 𝐀 and 𝐁 that we’ve named here. And let’s say that this is vector 𝐀 and that this over here is vector 𝐁. If we were to calculate the scalar product of 𝐀 and 𝐁, we could show this happening by moving these vectors so that the tails of each of them are overlapping. We can do that, say, by shifting vector 𝐀.

Once we’ve done that, we consider the shorter of our two vectors, in this case, that’s vector 𝐀. And then, we ask ourselves how much of vector 𝐀 lies along or overlaps vector 𝐁. We can start figuring this out by sketching a line that goes from the tip of our shorter vector and then goes down to the longer vector intercepting that longer vector at a 90-degree angle. The answer to our question of how much our shorter vector, vector 𝐀, lies along our longer vector is given by calculating this distance right here. We could say that this is the overlap between our two vectors.

So, just what is this distance that we’ve marked out? If we give the angle between vector 𝐀 and vector 𝐁 a name, say, we call it 𝜃. Then this distance we’ve marked out in orange is equal to the magnitude of 𝐀 times the cos of that angle. We could say that this is how much of vector 𝐀 lies along vector 𝐁. And once we’ve calculated this, we’re pretty close to calculating the scalar or dot product of our two vectors 𝐀 and 𝐁. 𝐀 dot 𝐁 is equal to this overlap between vectors 𝐀 and 𝐁, the magnitude of the shorter vector times the cos of the angle between them, multiplied by the magnitude of the longer vector, in this case, vector 𝐁. And we can rearrange this expression and write it this way. The magnitude of one vector times the magnitude of the other times the cos of the angle between them.

So getting back to our example of pushing this box and calculating the work we do on the box, we can say that if the angle between the force vector we exert on the box and the box’s displacement is 𝜃. Then the work we do is equal to the magnitude of 𝐅 times the magnitude of 𝐝 times the cos of that angle 𝜃. This is equal to the scalar product of 𝐅 and 𝐝. And notice that that product is indeed a scalar quantity. It has no direction, but it does have magnitude.

In this geometric explanation of the scalar product, we’ve been assuming that one of the two vectors we’re combining is shorter than the other. But really, that doesn’t need to be the case in order to calculate the scalar product of the two vectors. Even if, for example, vectors 𝐀 and vectors 𝐁 were the same magnitude, we could still calculate their overlap this way. And then in multiplying that overlap by the magnitude of the other vector, in this case, vector 𝐁, we would calculate their scalar product. So, no need to focus too much on which vector is shorter or longer. This is just a way of helping us visualize what the scalar product is.

Now, we mentioned earlier that the geometric approach isn’t the only one for calculating a scalar product. There’s also what we could call it an algebraic way of doing this. To see how this works, let’s imagine that we have these two vectors 𝐀 and 𝐁 not drawn out graphically. But instead they’re written out by their component parts like this. So, vector 𝐀 is defined by its 𝑥- and 𝑦-components. And likewise vector 𝐁 has some magnitude in the 𝐢-direction and some magnitude in the 𝐣. When 𝐀 and 𝐁 are defined this way, we can calculate their scalar product like this. We multiply the 𝑥-components of each vector, and we add that product to the product of their 𝑦-components.

Now, regardless of which of these two approaches we use, we’ll still get the same answer. We’ll still be calculating 𝐀 dot 𝐁. And notice, by the way, that when we calculate a scalar product, the order in which the two vectors appear, 𝐀 dot 𝐁 or 𝐁 dot 𝐀, doesn’t make a difference to our answer. For example, in our top equation, if we calculated 𝐁 dot 𝐀, then all that would change is the order in which the magnitude of these two vectors appear in this product. And we know that regardless of that order, the product would be the same. Likewise, in our lower equation, 𝐁 dot 𝐀 would just involve switching the order in which these components are multiplied. But that switch wouldn’t change the final answer that we calculate. It’s the same either way. So, we can say in both cases that 𝐀 dot 𝐁 is equal to 𝐁 dot 𝐀.

When we go to calculate a scalar or a dot product, sometimes we encounter special cases of the ways that the two vectors we’re combining are directed. One of these cases is when the two vectors we’re considering, we can call them 𝐀 and 𝐁, point in the same direction. When that’s the case, the angle between them, we’ve called that angle 𝜃, is zero degrees. This indicates that the two vectors are parallel with one another. And we can recall that the cos of zero degrees is equal to one. It’s the maximum value that the cosine function achieves. So, we can say that when our two vectors are parallel and the angle between them is zero degrees, then their scalar product is a maximum positive value. And that comes back to the fact that the cos of zero degrees is the maximum positive value of the cosine function.

Another special case is when our two vectors 𝐀 and 𝐁 are at 90 degrees to one another. This means that 𝜃 is 90 degrees. And we can recall that the cos of 90 degrees is zero. This tells us that for two vectors perpendicular to one another, their scalar product is zero. And this is consistent with our geometric understanding of the scalar product. When two vectors are perpendicular, they don’t overlap one another at all. This is consistent with a scalar or dot product of zero.

And then there’s one last special case to consider. Here, vectors 𝐀 and 𝐁 point in opposite directions. It’s not that they’re parallel, but rather they’re antiparallel. In this case, the angle between them is 180 degrees, and the cos of that angle is negative one. This is the largest negative value the cosine function can achieve. So, we can say that when two vectors are antiparallel, when the angle between them is 180 degrees. Then their scalar product is a maximum negative value.

Now, it may come as a surprise that a scalar product can be negative. After all, we’re not calculating a vector, so shouldn’t our scalar product always be nonnegative? Shouldn’t it always be positive or zero? But in fact, it is possible to have a negative scalar quantity. And if we change our box pushing arrangement a bit, we can see an example of this. Let’s say that instead of pushing forward on the box as we are now, instead we’re pulling on it. So the force vector points toward us and away from the displacement vector. Now, if there’re some larger force acting on the box and pushing it to the right that we haven’t drawn in here. Then it’s entirely possible that even though we’re pulling to the left on the box, the box is being displaced to the right.

And we can see that this is an example of one of our special cases of the angles between our two vectors. Here, 𝜃 is equal to 180 degrees, which means that the cos of that angle is negative one. And so, when we multiply that negative number by the positive magnitude of 𝐅 and the positive magnitude of 𝐝, we’ll get an overall negative result for the work we’re doing on the box. So, scalar quantities can be negative, and we see that happening here. Now that we know these relationships for calculating the scalar or dot product of two vectors, let’s get some practice using them through an example.

Consider the two vectors 𝐩 equals two 𝐢 plus three 𝐣 and 𝐪 equals six 𝐢 plus four 𝐣. Calculate 𝐩 dot 𝐪.

This representation here of these two vectors tells us that we’re to calculate their scalar or dot product. And we see we’re given the two vectors 𝐩 and 𝐪 in their component form. So, we can start off by recalling that the scalar product of two vectors by their components is equal to the 𝑥-component of the first vector times the 𝑥-component of the second vector. Added to the 𝑦-component of the first vector times the 𝑦-component of the second. In this equation, we’ve called our vectors 𝐀 and 𝐁, but those are just general names for any vectors that lie in the 𝑥𝑦-plane.

In this example, what we want to calculate is 𝐩 dot 𝐪. And to do it, we can follow this prescription for combining the components of these vectors. First, we take the 𝑥-component of our first vector, that’s 𝐩, and the 𝑥-component of that vector is two. And we multiply this by the 𝑥-component of our second vector. That second vector is 𝐪 and that 𝑥-component is six. So, we have two times six. And to that, we add the 𝑦-component of our first vector. That first vector is 𝐩 and that 𝑦-component is three multiplied by the 𝑦-component of our second vector. That second vector is 𝐪 and that 𝑦-component is four.

So what we have then is 𝐩 dot 𝐪 is equal to two times six plus three times four. Two times six is 12 and so is three times four. So, our final answer is 24. And notice that, indeed, this answer is a scalar quantity. It has a magnitude but no direction.

Let’s look now at a second example exercise.

The diagram shows two vectors, 𝐀 and 𝐁. Each of the grid squares in the diagram has a side length of one. Calculate 𝐀 dot 𝐁.

We see over in our diagram our two vectors, 𝐀 and 𝐁, and that they’re laid out on a grid spacing. We’re told that each one of these grid squares has a side length of one. We’re not told the units of these lengths, but simply that the side lengths can be represented by one single unit, whatever our unit is. Knowing this, we want to calculate the scalar product of 𝐀 and 𝐁.

Now, we can recall that a scalar product involves combining two vectors. So, we’re off to a good start there because 𝐀 and 𝐁 are vectors. And we can recall further that, mathematically, the scalar product of two general vectors, 𝐀 and 𝐁, is equal to the product of their 𝑥-components plus the product of their 𝑦-components. Now, for our two specific vectors, also called 𝐀 and 𝐁, we don’t yet know their 𝑥- and 𝑦-components, but we can use this grid to find out.

We can start by laying down coordinate axes on this grid. Let’s say that for our origin, we pick the location where the tails of vectors 𝐀 and 𝐁 overlap. So, we’ll say that this is our 𝑥-axis, and this is our 𝑦. Relative to these axes, we can define the 𝑥- and 𝑦-components of our two vectors. Just as a side note, we could pick any orientation for our 𝑥- and 𝑦-axes so long as they’re perpendicular to one another and quantified vectors 𝐀 and 𝐁 that way. And our answer would come out the same.

Using these specific 𝑥- and 𝑦-axes though, let’s write out the components of vector 𝐀. We can see that along the 𝑥-axis, vector 𝐀 extends one, two, three units. So, that means vector 𝐀 is equal to three 𝐢, three units in the 𝑥-direction, plus some amount in the 𝑦-direction. Starting again at the origin, we count up one, two, three units and see that this is the vertical extent of vector 𝐀. Therefore, we can write vector 𝐀 as three 𝐢 plus three 𝐣. And now, we’ll do the same thing for vector 𝐁. The 𝑥-component of vector 𝐁 is equal to one, two, three, four, five, six units and its 𝑦-component is equal to one unit. And we can write that as one 𝐣 or simply 𝐣 so that vector 𝐁 overall is equal to six 𝐢 plus 𝐣.

Now that we know the components of our two vectors, we can use this relationship to solve for their scalar product. 𝐀 dot 𝐁 is equal to the 𝑥-component of vector 𝐀, we see that 𝑥-component is three, multiplied by the 𝑥-component of vector 𝐁. And we see that 𝑥-component is six. So, we have three times six. And to that, we add the 𝑦-component of vector 𝐀. That 𝑦-component is three multiplied by the 𝑦-component of vector 𝐁. And that 𝑦-component as we saw is one. So, 𝐀 dot 𝐁 is equal to three times six plus three times one, and that is equal to 18 plus three or 21. This is 𝐀 dot 𝐁, also called the scalar or dot product of 𝐀 and 𝐁.

Let’s take a moment now to summarize what we’ve learned about the scalar product of two vectors. In this lesson, we saw that the scalar, also called the dot, product of two vectors results in a scalar quantity. We saw that one way to calculate a scalar product, represented symbolically like this, is to multiply together the magnitudes of the two vectors involved times the cosine of the angle between the vectors. And a second, what we called algebraic way to calculate a scalar product is to combine vectors by their component parts. The product of the 𝑥-components plus the product of the 𝑦-components.

And lastly, we looked at what we called some special cases of the orientation between the two vectors involved. When 𝐀 is parallel to 𝐁, then the angle between them is zero degrees and their scalar product is a maximum positive value. When 𝐀 is perpendicular to 𝐁 though, the angle between them is 90 degrees, there’s no overlap between the two vectors, and their scalar product is zero. And, lastly, when 𝐀 is antiparallel to 𝐁, that is, the angle between them is 180 degrees, then the scalar or dot product of these two vectors has a maximum negative value. This is a summary of the scalar product of two vectors.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy