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

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

In this explainer, 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.

The scalar product is an operation that can be applied to two vectors to produce a scalar.

Recall that while a vector has both a magnitude and a direction, a scalar just has a magnitude.

The scalar product is used in many different areas of physics. One calculation that it can be useful for is calculating the work done by a force on an object as that object moves by a certain displacement.

Consider a person pushing a box across the floor, as shown in the diagram below.

The force applied to the box is F, and it moves by a displacement d. The force acts in the same direction as the displacement. In this scenario, the work done by the force, π‘Š, is simply equal to the magnitude of the force, 𝐹, multiplied by the magnitude of the displacement, 𝑑: π‘Š=𝐹𝑑.

But what if the force did not act in the same direction as the displacement (perhaps because the person pushing the box also pushes slightly down on it), as shown in the diagram below?

In this scenario, we cannot use π‘Š=𝐹𝑑 to calculate the work done by the force. Instead, we have to calculate the scalar product of F and d.

The scalar product is notated with a central dot between the two vectors: Fdβ‹….

Because of this, the scalar product is also called the dot product. It is also sometimes called the inner product.

There are two ways of defining the scalar product of two vectors. The first is the geometric approach.

Definition: The Scalar Product of Two Vectors

Consider two vectors, A and B. The angle between the two vectors is πœƒ. This is shown in the diagram below.

The scalar product of A and B is equal to the magnitude of A multiplied by the magnitude of B multiplied by the cosine of the angle between them, πœƒ, which we can write as ABABβ‹…=||||(πœƒ).cos

Writing two straight lines on either side of a vector symbol, for example, ||A, means taking the magnitude of the vector. We can write this definition in a simpler way if we just say that 𝐴 is the magnitude of A and 𝐡 is the magnitude of B: ABβ‹…=𝐴𝐡(πœƒ).cos

We can think of this as being a measure of both how large the two vectors are and how much they point in the same direction. If either 𝐴 or 𝐡 is larger, the scalar product will be larger, and we can see how the scalar product varies with πœƒ, the angle between the vectors, by looking at a graph of cos(πœƒ), which is shown below.

When πœƒ is 0∘, cos(πœƒ) is 1, which is the highest value the cosine function produces. So, when the two vectors point in the same direction, as shown in the diagram below, their scalar product is at its maximum value.

When πœƒ is 90∘, cos(πœƒ) is 0. So, when the two vectors are at a right angle to each other, as shown below, their scalar product is zero.

When πœƒ is 180∘, cos(πœƒ) is βˆ’1, which is the lowest value the cosine function produces. So, when the two vectors point in the opposite direction, as shown below, the scalar product has a value that is the same size as when πœƒ is 0∘, but with a negative sign.

So, the smaller the angle between the vectors, the higher the value of the scalar product, and the larger the angle between the vectors, the lower the value of the scalar product.

Notice as well that since 𝐴𝐡=𝐡𝐴, 𝐴𝐡(πœƒ)=𝐡𝐴(πœƒ)coscos, which means that ABBAβ‹…=β‹…. In other words, it does not matter which way around we do the scalar product; ABβ‹… and BAβ‹… produce the same value.

Let’s have a look at an example question.

Example 1: Calculating the Scalar Product of Two Vectors from Their Magnitudes and the Angle between Them

Consider two vectors: r with a magnitude of 12 and s with a magnitude of 26. The angle between them, πœƒ, is 68∘. What is the scalar product of r and s? Give your answer to the nearest integer.

Answer

Since we are given the magnitudes of the two vectors, as well as the angle between them, we can use the formula rsrsβ‹…=||||(πœƒ)cos to find the scalar product.

Substituting in the values, we get rsrsβ‹…=12Γ—26Γ—(68)β‹…=116.87725…,cos∘ which to the nearest integer is 117.

This geometric approach is useful if we happen to know the magnitudes of the two vectors and the angle between them, but we may instead know the horizontal and vertical components of the two vectors. In this case, we can use the second way of defining the scalar product, which is the algebraic approach.

Definition: The Scalar Product of Two Vectors

Let’s say that AijBij=𝐴+𝐴,=𝐡+𝐡,ο—ο˜ο—ο˜ where 𝐴 and 𝐴 are the horizontal and vertical components of A, and 𝐡 and 𝐡 are the horizontal and vertical components of B. The scalar product of A and B is then given by ABβ‹…=𝐴𝐡+𝐴𝐡.ο—ο—ο˜ο˜

In other words, we multiply the π‘₯-components of the vectors together and the 𝑦-components of the vectors together and then sum the two numbers.

Notice again that it does not matter which way around we do the scalar product. Since 𝐴𝐡=𝐡𝐴 and 𝐴𝐡=𝐡𝐴, 𝐴𝐡+𝐴𝐡=𝐡𝐴+𝐡𝐴.ο—ο—ο˜ο˜ο—ο—ο˜ο˜

So ABBAβ‹…=β‹….

Let’s have a look at some example questions where we have to use this approach.

Example 2: Calculating the Scalar Product of Two Vectors Given in Component Form

Consider two vectors pij=2+3 and qij=6+4. Calculate pqβ‹….

Answer

Since we are given the two vectors in component form, we can use pqβ‹…=π‘π‘ž+π‘π‘žο—ο—ο˜ο˜ to find the scalar product. Let’s substitute in the values: pqpqβ‹…=2Γ—6+3Γ—4β‹…=24.

The scalar product of p and q is 24.

Example 3: Calculating the Scalar Product of Two Vectors Given in Component Form

A constant force of Fij=(1+4)N acts on an object, causing it to move. After an amount of time, the displacement of the object from its initial position is dij=(5+2)m. Calculate Fdβ‹….

Answer

Since we are given the two vectors in component form, we can use Fdβ‹…=𝐹𝑑+πΉπ‘‘ο—ο—ο˜ο˜ to find the scalar product. Let’s substitute in the values: FdFdFdβ‹…=1Γ—5+4Γ—2β‹…=5β‹…+8β‹…β‹…=13β‹….NmNmNmNmNm

The scalar product of F and d is 13 Nβ‹…m. This is actually equal to the work done by the force on the object, and the units of newton-meters are equivalent to joules, so the answer is also 13 J.

Example 4: Calculating the scalScalar Product of Two Vectors Shown on a Grid

The diagram shows two vectors, A and B. Each of the grid squares in the diagram has a side length of 1. Calculate ABβ‹….

Answer

Since the two vectors have been drawn on a grid, we can work out what their components are. Vector A has a horizontal length of 3 grid squares and a vertical length of 3 grid squares, so we can write it as Aij=3+3. Vector B has a horizontal length of 6 grid squares, and a vertical length of 1 grid square, so we can write it as Bij=6+1.

We can now use ABβ‹…=𝐴𝐡+π΄π΅ο—ο—ο˜ο˜ to find the scalar product. Let’s substitute in the values: ABABβ‹…=3Γ—6+3Γ—1β‹…=21.

The scalar product of A and B is 21.

Example 5: Calculating the Scalar Product of Two Vectors Shown on a Grid

The diagram shows two vectors, A and B. Each of the grid squares in the diagram has a side length of 1. Calculate ABβ‹….

Answer

There are two ways of reaching the answer to this question. The first is to calculate the scalar product from the components of the vectors.

Since the two vectors have been drawn on a grid, we can work out what their components are. Vector A has a horizontal length of 5 grid squares and a vertical length of 0 grid squares, so we can write it as Aij=5+0. Vector B has a horizontal length of 0 grid squares and a vertical length of 4 grid squares, so we can write it as Bij=0+4.

We can now use ABβ‹…=𝐴𝐡+π΄π΅ο—ο—ο˜ο˜ to find the scalar product. Let’s substitute in the values: ABABβ‹…=5Γ—0+0Γ—4β‹…=0.

The scalar product of A and B is 0.

But a faster way of reaching the answer would be to recall that, for two vectors that are perpendicular, their scalar product is always zero. We can see from the diagram that these two vectors are perpendicularβ€”vector A points along the π‘₯-axis and vector B points along the 𝑦-axisβ€”so their scalar product is zero.

At first glance, it does not look like these two different methods of calculating the scalar product would produce the same result, but they actually do. Let’s apply both methods to the same example to show that they produce the same result.

The diagram below shows two vectors.

In component form, we can write A as 15+8ij and B as 5+12ij. We can now use the algebraic method to work out the scalar product: ABABABβ‹…=𝐴𝐡+𝐴𝐡⋅=15Γ—5+8Γ—12β‹…=171.ο—ο—ο˜ο˜

We can use Pythagoras’s theorem to work out the lengths of the two vectors. Doing this, we find that the length of A is exactly 17 and the length of B is exactly 13. The angle between the vectors is 39.30764β€¦βˆ˜. Let’s round this to 39.3∘ for now. We can now use the geometric method to work out the scalar product: ABABABβ‹…=𝐴𝐡(πœƒ)β‹…=17Γ—13Γ—(39.3)β‹…=171.01868….coscos∘

Notice how this is not exactly 171β€”that is because we chose to round the value we had for πœƒ. Doing so makes the number easier to use on a calculator but reduces the accuracy of the result. If we use the exact value for the angle in our calculation, the answer does come out as exactly 171. Alternatively, we could simply round the answer we get using πœƒ=39.3∘, which rounds to 171.

Key Points

  • The scalar product is an operation that can be applied to two vectors to produce a scalar.
  • The scalar product is also called the dot product or the inner product.
  • If we know the length of each vector and the angle between them, we can use ABABβ‹…=||||(πœƒ)cos to find the scalar product.
  • If we know the components of each vector, we can use ABβ‹…=𝐴𝐡+π΄π΅ο—ο—ο˜ο˜ to find the scalar product.

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