Lesson 3 of 8 · 16 min

The scalar (dot) product

Define the scalar product from magnitudes and the angle between, calculate it from components, and use its algebraic properties.

What you will be able to do

  • Calculate a∼⋅b∼=∣a∼∣∣b∼∣cos⁡(θ)\tvec{a} \cdot \tvec{b} = |\tvec{a}||\tvec{b}|\cos(\theta) from magnitudes and the angle between.
  • Calculate a∼⋅b∼=a1b1+a2b2\tvec{a} \cdot \tvec{b} = a_1 b_1 + a_2 b_2 from components.
  • Interpret the sign of a dot product, and use a∼⋅a∼=∣a∼∣2\tvec{a} \cdot \tvec{a} = |\tvec{a}|^2 and the other properties to simplify expressions.

Push a trolley with a force at an angle and only part of your effort moves it forward; the rest pushes down into the floor. Physics measures the useful part with work: force times distance, but only the part of the force that points along the motion.

That idea, "how much do two vectors point the same way, multiplied by their sizes", is the scalar product.

Definition

The scalar (dot) product

For vectors a∼\tvec{a} and b∼\tvec{b} with angle θ\theta between them, where 0∘≤θ≤180∘0^\circ \le \theta \le 180^\circ,

a∼⋅b∼=∣a∼∣∣b∼∣cos⁡(θ).\tvec{a} \cdot \tvec{b} = |\tvec{a}||\tvec{b}|\cos(\theta).

The angle is measured with the vectors drawn tail to tail. The result is a number (a scalar), which is why it is called the scalar product.

Interactive

The dot product and the angle between

Swing b∼\tvec{b} around. When is a∼⋅b∼\tvec{a} \cdot \tvec{b} largest? When is it zero? When is it negative?

The sign of cos⁡(θ)\cos(\theta) decides the sign of the dot product (for non-zero vectors).
Angle betweencos⁡(θ)\cos(\theta)a∼⋅b∼\tvec{a} \cdot \tvec{b}
θ=0∘\theta = 0^\circ (same direction)11∣a∼∣∣b∼∣|\tvec{a}||\tvec{b}|, the largest possible
0∘<θ<90∘0^\circ < \theta < 90^\circ (acute)positivepositive
θ=90∘\theta = 90^\circ (perpendicular)0000
90∘<θ<180∘90^\circ < \theta < 180^\circ (obtuse)negativenegative
θ=180∘\theta = 180^\circ (opposite directions)−1-1−∣a∼∣∣b∼∣-|\tvec{a}||\tvec{b}|

Worked example

Dot product from magnitudes and an angle

  • Foundation
  • Technology free

Vectors a∼\tvec{a} and b∼\tvec{b} have ∣a∼∣=4|\tvec{a}| = 4 and ∣b∼∣=6|\tvec{b}| = 6, and the angle between them is 120∘120^\circ. Find a∼⋅b∼\tvec{a} \cdot \tvec{b}.

2 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Use a∼⋅b∼=∣a∼∣∣b∼∣cos⁡(θ)\tvec{a} \cdot \tvec{b} = |\tvec{a}||\tvec{b}|\cos(\theta) with the exact value of cos⁡(θ)\cos(\theta).

Watch out for

  • Using cos⁡(60∘)\cos(60^\circ) and getting +12+12: an obtuse angle always gives a negative dot product.

Non-zero vectors u∼\tvec{u} and v∼\tvec{v} satisfy u∼⋅v∼<0\tvec{u} \cdot \tvec{v} < 0. What can you say about the angle θ\theta between them?

Choose one answer

You rarely know the angle in advance. In Cartesian form there is a much faster way.

Key idea

The dot product from components

(a1a2)⋅(b1b2)=a1b1+a2b2\begin{pmatrix} a_1 \\ a_2 \end{pmatrix} \cdot \begin{pmatrix} b_1 \\ b_2 \end{pmatrix} = a_1 b_1 + a_2 b_2

Multiply matching components and add. For example, (3−2)⋅(45)=12−10=2\begin{pmatrix} 3 \\ -2 \end{pmatrix} \cdot \begin{pmatrix} 4 \\ 5 \end{pmatrix} = 12 - 10 = 2.

Why the two formulas agree

Draw a∼\tvec{a} and b∼\tvec{b} tail to tail. The third side of the triangle is a∼−b∼\tvec{a} - \tvec{b}, so by the cosine rule

∣a∼−b∼∣2=∣a∼∣2+∣b∼∣2−2∣a∼∣∣b∼∣cos⁡(θ).|\tvec{a} - \tvec{b}|^2 = |\tvec{a}|^2 + |\tvec{b}|^2 - 2|\tvec{a}||\tvec{b}|\cos(\theta).

In components the left side is (a1−b1)2+(a2−b2)2=a12+a22+b12+b22−2(a1b1+a2b2)(a_1 - b_1)^2 + (a_2 - b_2)^2 = a_1^2 + a_2^2 + b_1^2 + b_2^2 - 2(a_1 b_1 + a_2 b_2), and ∣a∼∣2+∣b∼∣2=a12+a22+b12+b22|\tvec{a}|^2 + |\tvec{b}|^2 = a_1^2 + a_2^2 + b_1^2 + b_2^2. Cancelling these terms leaves

−2(a1b1+a2b2)=−2∣a∼∣∣b∼∣cos⁡(θ),-2(a_1 b_1 + a_2 b_2) = -2|\tvec{a}||\tvec{b}|\cos(\theta),

so a1b1+a2b2=∣a∼∣∣b∼∣cos⁡(θ)a_1 b_1 + a_2 b_2 = |\tvec{a}||\tvec{b}|\cos(\theta).

Calculate (5i^−3j^)⋅(−2i^−4j^)(5\hat{\mathbf{i}} - 3\hat{\mathbf{j}}) \cdot (-2\hat{\mathbf{i}} - 4\hat{\mathbf{j}}).

Properties of the scalar product. Each can be checked from the component formula.
PropertyRule
Commutativea∼⋅b∼=b∼⋅a∼\tvec{a} \cdot \tvec{b} = \tvec{b} \cdot \tvec{a}
Distributivea∼⋅(b∼+c∼)=a∼⋅b∼+a∼⋅c∼\tvec{a} \cdot (\tvec{b} + \tvec{c}) = \tvec{a} \cdot \tvec{b} + \tvec{a} \cdot \tvec{c}
Scalars come out(ka∼)⋅b∼=k(a∼⋅b∼)=a∼⋅(kb∼)(k\tvec{a}) \cdot \tvec{b} = k(\tvec{a} \cdot \tvec{b}) = \tvec{a} \cdot (k\tvec{b})
A vector with itselfa∼⋅a∼=∣a∼∣2\tvec{a} \cdot \tvec{a} = |\tvec{a}|^2
The unit vectorsi^⋅i^=j^⋅j^=1\hat{\mathbf{i}} \cdot \hat{\mathbf{i}} = \hat{\mathbf{j}} \cdot \hat{\mathbf{j}} = 1 and i^⋅j^=0\hat{\mathbf{i}} \cdot \hat{\mathbf{j}} = 0

These properties let you expand brackets of dot products like ordinary algebra, which is how you find magnitudes of combinations without knowing the components.

Worked example

Find ∣a∼+b∼∣|\tvec{a} + \tvec{b}| by expanding a dot product

  • Complex familiar
  • Technology free

Vectors a∼\tvec{a} and b∼\tvec{b} satisfy ∣a∼∣=3|\tvec{a}| = 3, ∣b∼∣=2|\tvec{b}| = 2 and a∼⋅b∼=4\tvec{a} \cdot \tvec{b} = 4. Find the exact values of ∣a∼+b∼∣|\tvec{a} + \tvec{b}| and ∣a∼−b∼∣|\tvec{a} - \tvec{b}|.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Write ∣v∼∣2=v∼⋅v∼|\tvec{v}|^2 = \tvec{v} \cdot \tvec{v}.

  2. Expand using the distributive and commutative properties.

  3. Substitute the known magnitudes and dot product, then take the square root.

Watch out for

  • ∣a∼+b∼∣≠∣a∼∣+∣b∼∣=5|\tvec{a} + \tvec{b}| \ne |\tvec{a}| + |\tvec{b}| = 5 unless the vectors point the same way.

  • Forgetting the factor of 2 on the middle term.

Common mistake

The dot product is a number

(23)⋅(41)=8+3=11\begin{pmatrix} 2 \\ 3 \end{pmatrix} \cdot \begin{pmatrix} 4 \\ 1 \end{pmatrix} = 8 + 3 = 11. Writing (83)\begin{pmatrix} 8 \\ 3 \end{pmatrix} loses the mark. And a∼⋅b∼⋅c∼\tvec{a} \cdot \tvec{b} \cdot \tvec{c} means nothing: a∼⋅b∼\tvec{a} \cdot \tvec{b} is a number, and you cannot dot a number with a vector.

Exam tip

Using a calculator

A CAS or graphics calculator has a dot product command in its vector menu (often dotP). It is handy for checking, but in a technology-free paper show the products a1b1a_1 b_1 and a2b2a_2 b_2 before adding.

Summary

  • a∼⋅b∼=∣a∼∣∣b∼∣cos⁡(θ)\tvec{a} \cdot \tvec{b} = |\tvec{a}||\tvec{b}|\cos(\theta), with θ\theta the angle between the vectors drawn tail to tail.

  • In components, a∼⋅b∼=a1b1+a2b2\tvec{a} \cdot \tvec{b} = a_1 b_1 + a_2 b_2.

  • For non-zero vectors, the result is a scalar: positive for 0∘≤θ<90∘0^\circ \le \theta < 90^\circ, zero for perpendicular, negative for 90∘<θ≤180∘90^\circ < \theta \le 180^\circ.

  • a∼⋅a∼=∣a∼∣2\tvec{a} \cdot \tvec{a} = |\tvec{a}|^2, and dot products expand like ordinary brackets.

Finished the lesson?

Try the 2 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 3 of 80% read

Save your progress with a free account