Lesson 3 of 8 · 15 min

The scalar product in three dimensions

Calculate a · b in Cartesian form, use it to find the angle between vectors and between lines, and decide whether two vectors are parallel or perpendicular.

What you will be able to do

  • Calculate a⋅b=a1b1+a2b2+a3b3\mathbf{a} \cdot \mathbf{b} = a_1b_1 + a_2b_2 + a_3b_3 and use a⋅b=∣a∣∣b∣cos⁡(θ)\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos(\theta).
  • Find the angle between two vectors and the acute angle between two lines.
  • Determine whether two vectors are parallel, perpendicular or neither, and find unknown components that make them so.

In two dimensions the scalar product turned an angle question into arithmetic: multiply matching components and add. In space you simply have one more pair to multiply. That is what makes it so useful: you can find the angle between two edges of a roof, or test whether two struts are at right angles, without drawing anything.

Key idea

The scalar (dot) product

a⋅b=∣a∣∣b∣cos⁡(θ)=a1b1+a2b2+a3b3\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos(\theta) = a_1b_1 + a_2b_2 + a_3b_3

where θ\theta, with 0∘≤θ≤180∘0^\circ \le \theta \le 180^\circ, is the angle between a\mathbf{a} and b\mathbf{b} placed tail to tail. The result is a number, not a vector.

Properties you can use freely
PropertyWhy it helps
a⋅b=b⋅a\mathbf{a} \cdot \mathbf{b} = \mathbf{b} \cdot \mathbf{a}Order does not matter.
a⋅(b+w)=a⋅b+a⋅w\mathbf{a} \cdot (\mathbf{b} + \mathbf{w}) = \mathbf{a} \cdot \mathbf{b} + \mathbf{a} \cdot \mathbf{w}Expand brackets as in algebra.
a⋅a=∣a∣2\mathbf{a} \cdot \mathbf{a} = |\mathbf{a}|^2Turns lengths into dot products, the key to many proofs.
i^⋅i^=j^⋅j^=k^⋅k^=1\hat{\mathbf{i}} \cdot \hat{\mathbf{i}} = \hat{\mathbf{j}} \cdot \hat{\mathbf{j}} = \hat{\mathbf{k}} \cdot \hat{\mathbf{k}} = 1Each is a unit vector.
i^⋅j^=j^⋅k^=k^⋅i^=0\hat{\mathbf{i}} \cdot \hat{\mathbf{j}} = \hat{\mathbf{j}} \cdot \hat{\mathbf{k}} = \hat{\mathbf{k}} \cdot \hat{\mathbf{i}} = 0They are perpendicular, which is why the component formula works.

Find (3i^−j^+2k^)⋅(i^+4j^−2k^)(3\hat{\mathbf{i}} - \hat{\mathbf{j}} + 2\hat{\mathbf{k}}) \cdot (\hat{\mathbf{i}} + 4\hat{\mathbf{j}} - 2\hat{\mathbf{k}}).

Interactive

Angle and dot product

Edit the components. When is a⋅b\mathbf{a} \cdot \mathbf{b} negative? Find a b\mathbf{b} that makes the dot product exactly 0 and look at the angle.

Key idea

Angle between two vectors

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

A positive dot product means an acute angle, zero means a right angle, and negative means an obtuse angle.

Worked example

The angle between two vectors, and between two lines

  • 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.

4 steps

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

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).

Find the angle between i^+j^\hat{\mathbf{i}} + \hat{\mathbf{j}} and j^+k^\hat{\mathbf{j}} + \hat{\mathbf{k}}, in degrees.

in circ

Definition

Parallel and perpendicular

For non-zero vectors a\mathbf{a} and b\mathbf{b}:

  • a\mathbf{a} and b\mathbf{b} are perpendicular if and only if a⋅b=0\mathbf{a} \cdot \mathbf{b} = 0.
  • a\mathbf{a} and b\mathbf{b} are parallel if and only if b=ka\mathbf{b} = k\mathbf{a} for some scalar k≠0k \neq 0. All three components must share the same multiplier.

Which vector is parallel to 2i^−j^+3k^2\hat{\mathbf{i}} - \hat{\mathbf{j}} + 3\hat{\mathbf{k}}?

Choose one answer

Worked example

When are two vectors perpendicular, or parallel?

  • Complex familiar
  • Technology free

Let u=mi^+2j^−k^\mathbf{u} = m\hat{\mathbf{i}} + 2\hat{\mathbf{j}} - \hat{\mathbf{k}} and v=mi^+mj^+3k^\mathbf{v} = m\hat{\mathbf{i}} + m\hat{\mathbf{j}} + 3\hat{\mathbf{k}}, where mm is a real constant.

(a) Find the values of mm for which u\mathbf{u} and v\mathbf{v} are perpendicular.

(b) Show that u\mathbf{u} and v\mathbf{v} are never parallel.

5 steps

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

Method

  1. Perpendicular: set u⋅v=0\mathbf{u} \cdot \mathbf{v} = 0 and solve.

  2. Parallel: write v=ku\mathbf{v} = k\mathbf{u} as three equations and test whether one kk fits all three.

Watch out for

  • Dividing by mm in the first parallel equation without checking m=0m = 0 (here m=0m = 0 fails the second and third equations anyway).

Key idea

The angle between two lines

Two lines meet at two angles that add to 180∘180^\circ; the angle between the lines is the acute one. Use their direction vectors with an absolute value:

cos⁡(θ)=∣d1⋅d2∣∣d1∣∣d2∣.\cos(\theta) = \frac{|\mathbf{d}_1 \cdot \mathbf{d}_2|}{|\mathbf{d}_1||\mathbf{d}_2|}.

The same formula works for lines that never meet: it gives the angle between their directions.

Common mistake

Squaring a magnitude by accident

a⋅a=∣a∣2\mathbf{a} \cdot \mathbf{a} = |\mathbf{a}|^2, not ∣a∣|\mathbf{a}|. If a question gives ∣a∣=3|\mathbf{a}| = 3, then a⋅a=9\mathbf{a} \cdot \mathbf{a} = 9.

Summary

  • a⋅b=a1b1+a2b2+a3b3=∣a∣∣b∣cos⁡(θ)\mathbf{a} \cdot \mathbf{b} = a_1b_1 + a_2b_2 + a_3b_3 = |\mathbf{a}||\mathbf{b}|\cos(\theta), a number.

  • cos⁡(θ)=a⋅b∣a∣∣b∣\cos(\theta) = \dfrac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}||\mathbf{b}|}; the sign of the dot product tells you acute, right or obtuse.

  • Perpendicular: a⋅b=0\mathbf{a} \cdot \mathbf{b} = 0. Parallel: b=ka\mathbf{b} = k\mathbf{a}, with one kk for every component.

  • The angle between lines is acute: use ∣d1⋅d2∣|\mathbf{d}_1 \cdot \mathbf{d}_2|.

  • a⋅a=∣a∣2\mathbf{a} \cdot \mathbf{a} = |\mathbf{a}|^2.

Finished the lesson?

Try the 3 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