Lesson 3: The scalar product in three dimensions

The angle between two vectors, and between two lines

SkillThe scalar product and angles

Worked example

  • Simple familiar
  • Technology active

Let a=i^+2j^−2k^\mathbf{a} = \hat{\mathbf{i}} + 2\hat{\mathbf{j}} - 2\hat{\mathbf{k}} and b=3i^+4k^\mathbf{b} = 3\hat{\mathbf{i}} + 4\hat{\mathbf{k}}.

(a) Find the angle between a\mathbf{a} and b\mathbf{b}, to one decimal place.

(b) Two lines have direction vectors a\mathbf{a} and b\mathbf{b}. Find the angle between the lines.

1 of 4 steps
  1. Step 1: Find the dot product

    a⋅b=(1)(3)+(2)(0)+(−2)(4)=3+0−8=−5\mathbf{a} \cdot \mathbf{b} = (1)(3) + (2)(0) + (-2)(4) = 3 + 0 - 8 = -5.

Try a similar one

A fresh question of the same kind, checked as you answer, with hints and a full solution.

Method

  1. Find a⋅b\mathbf{a} \cdot \mathbf{b} and both magnitudes.

  2. cos⁡(θ)=a⋅b∣a∣∣b∣\cos(\theta) = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}||\mathbf{b}|}.

  3. For lines, use ∣a⋅b∣|\mathbf{a} \cdot \mathbf{b}| to get the acute angle.

Watch out for

  • Giving 109.5∘109.5^\circ as the angle between the lines.

  • Treating 3i^+4k^3\hat{\mathbf{i}} + 4\hat{\mathbf{k}} as (3,4,0)(3, 4, 0).

Save your progress with a free account