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

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

04:38

### Video Transcript

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

This question gives us two vectors, π and π, in the form of arrows drawn on a diagram. We are asked to find π dot π, the scalar product of these two vectors. So letβs begin by recalling the definition of the scalar product of two vectors. Weβll consider two general vectors, which weβll label π and π. If we suppose that both of these vectors lie in the π₯π¦-plane, then we can write them in component form as an π₯-component labeled with a subscript π₯ multiplied by π’ hat plus a π¦-component labeled with a subscript π¦ multiplied by π£ hat. Remember that π’ hat is the unit vector in the π₯-direction and π£ hat is the unit vector in the π¦-direction.

Then, the scalar product π dot π is equal to the π₯-component of π multiplied by the π₯-component of π plus the π¦-component of π multiplied by the π¦-component of π. So in general, the scalar product of two vectors is given by the product of their π₯-components plus the product of their π¦-components. This general expression for the scalar product of two vectors tells us that if we want to work out the scalar product π dot π, then weβre going to need to find the π₯- and π¦-components of our vectors π and π.

Our vectors π and π are given as arrows drawn on a diagram. And the question tells us that each of the grid squares in this diagram has a side length of one. If we add a set of axes to our diagram with the origin positioned at the tail of the two vectors, then we can easily read off the number of squares that each vector extends in the π₯-direction and in the π¦-direction. Since we know that each of these squares has a side length of one, then the number of squares directly gives us the π₯- and π¦-components of our vectors.

Letβs begin by counting the squares for vector π. We see that π extends four squares in the negative π₯-direction and two squares in the negative π¦-direction. So the π₯-component of π is negative four, and the π¦-component is negative two. This means we can write the vector π in component form as negative four π’ hat minus two π£ hat. Now, weβll do the same thing for vector π. We see that π extends three squares in the negative π₯-direction and three squares in the negative π¦-direction. So the π₯-component of π is negative three and the π¦-component of π is also negative three.

Then in component form, we can write the vector π as negative three π’ hat minus three π£ hat. We now have both our vectors π and π written in component form, which means that we are ready to calculate the scalar product π dot π. From our general expression for the scalar product of two vectors, we see that the first term is given by the product of the π₯-components of the two vectors. So for the scalar product π dot π, thatβs the π₯-component of π, which is negative four, multiplied by the π₯-component of π, which is negative three.

Then we add a second term to this given by the product of the π¦-components of the vectors. So for us, thatβs the π¦-component of π, which is negative two, multiplied by the π¦-component of π, which is negative three. The final step is then to evaluate this expression here. The first term is negative four multiplied by negative three, which gives positive 12. The second term is negative two multiplied by negative three, which gives positive six. Then 12 plus six gives us a result of 18. And so our answer to the question is that the scalar product π dot π is equal to 18.