# Question Video: Calculating the Scalar Product of Two Vectors Shown on a Grid Physics

The diagram shows two vectors, π and π. Each of the grid squares in the diagram has a side length of 1. Calculate π β π.

04:42

### Video Transcript

The diagram shows two vectors, π and π. Each of the grid squares in the diagram has a side length of one. Calculate π dot π.

Weβre asked to calculate the dot product, also called the scalar product, of two vectors π and π. These two vectors are represented on the diagram. And because each of the squares has a side length of one, we can see immediately that vector π has a length of five units and a direction that is directly to the right. We can also see that vector π has a length of four units and a direction that is directly upward.

Now that we know a little bit about our vectors, letβs recall how to calculate a scalar product. One way to calculate the dot product of two vectors is to multiply their corresponding vector components and then add those products. So π dot π will be the π₯-component of π times the π₯-component of π plus the π¦-component of π times the π¦-component of π. We can also calculate the scalar product as the magnitude of π times the magnitude of π times the cosine of the angle between the two vectors represented by the Greek letter π.

In our diagram, the angle between π and π is this angle here. And as we can see, because π and π are parallel to the two sides of one of the grid squares, this angle must be exactly 90 degrees. Note that although itβs not immediately obvious, these two ways of calculating the scalar product actually give exactly the same answers. And in some more complicated geometric situations, we actually use the second definition as a way to define the angle between two vectors. Anyway, the fact that the angle between these two vectors is 90 degrees means that they are perpendicular, which means we can actually bypass calculation entirely by recalling that the scalar product of two perpendicular vectors is always zero.

Note that this is the number zero, not the zero vector, because a scalar product always gives a scalar. Thatβs why itβs called the scalar product. Anyway, we know the answer should be zero. But letβs verify this by calculating the scalar product of π and π in these two ways. To use the sum of the product of corresponding components, we will need to define π₯- and π¦-axes. Given our diagram, we may as well use the standard set of Cartesian axes, with π₯ being the horizontal axis and increasing towards the right and π¦ being the vertical axis and increasing upward.

Where we place the origin for these axes doesnβt matter. All that matters is that we have defined the π₯- and π¦-direction so that we can define an π₯- and π¦-component of each of our vectors. To find the π₯-component of each vector, we look at the number of grid squares between the tail and head of each vector along the π₯-direction. For vector π, the tail and the head are five units apart along the π₯-axis, so π π₯ is five. For π, the tail and head are at the exact same π₯-value, so they are zero π₯ units apart. And so π π₯ is zero. Doing the same for the π¦-components, from the tail to the head of π, we move four units in the positive π¦-direction. So π π¦ is four, while from the tail to the head of π, we donβt move any units in the π¦-direction at all. So π π¦ is zero.

Forming the scalar product from these two sets of components, we have that π dot π is five times zero plus zero times four. But zero times anything is zero, so five times zero is zero and zero times four is zero. And we have zero plus zero, which is zero. Now, to calculate the scalar product using magnitudes and angles, we actually already have all the information we need. The magnitude of π is five, the magnitude of π is four, and the angle between them is 90 degrees. So we have that π dot π is five times four times the cos of 90 degrees. But the cos of 90 degrees is zero. So we have five times four times zero, which, just like before, is exactly zero.

This is actually the mathematical basis for the fact that we stated earlier. Two vectors that are perpendicular meet at a right angle, and the cosine of a right angle is zero. So, no matter what the magnitudes of these vectors are, their dot product will always be zero. So, whether we calculate the scalar product of π and π using their vector components or by using their magnitudes and the angle between them or by simply knowing a factor of perpendicular vectors, we find that the scalar product of π and π is exactly zero. And this is the answer that we are looking for.