Year 2 Pure · Chapter 17

Vectors in Three Dimensions

Specification: Edexcel Pure 10.1–10.5 — Vectors  ·  AQA section J1–J5

In this chapter
  1. 1. Coordinates and vectors in 3D
  2. 2. Magnitude and distance
  3. 3. The angle with each axis
  4. 4. Vector arithmetic in 3D
  5. 5. Position vectors and geometric problems
  6. Practice

Key facts — this chapter

  • In 3D, i\mathbf{i}, j\mathbf{j} and k\mathbf{k} are unit vectors along the xx-, yy- and zz-axes: xi+yj+zk=(xyz)x\mathbf{i} + y\mathbf{j} + z\mathbf{k} = \begin{pmatrix} x \\ y \\ z \end{pmatrix}.
  • The magnitude is ∣xi+yj+zk∣=x2+y2+z2|x\mathbf{i} + y\mathbf{j} + z\mathbf{k}| = \sqrt{x^2 + y^2 + z^2}, and a unit vector in the same direction is a÷∣a∣\mathbf{a} \div |\mathbf{a}|.
  • The distance between two points is the magnitude of the vector between them: ∣AB→∣=∣b−a∣|\overrightarrow{AB}| = |\mathbf{b} - \mathbf{a}|.
  • The angle θx\theta_x that a\mathbf{a} makes with the xx-axis has cos⁡θx=x∣a∣\cos\theta_x = \dfrac{x}{|\mathbf{a}|}, and similarly for the other axes.
  • Adding, subtracting and scaling work component by component, exactly as in 2D.

Everything from the Year 1 vectors chapter works in three dimensions: a third component joins the other two, and every rule gains a third term. A 3D vector describes a position or a movement in space, such as a drone’s flight path or the corner of a room.

1. Coordinates and vectors in 3D

Three axes at right angles meet at the origin OO. They are arranged so that if the xx-axis points towards you and the yy-axis to the right, the zz-axis points up.

Key result

A point PP has coordinates (x,y,z)(x, y, z). Its position vector is

OP→=xi+yj+zk=(xyz)\overrightarrow{OP} = x\mathbf{i} + y\mathbf{j} + z\mathbf{k} = \begin{pmatrix} x \\ y \\ z \end{pmatrix}

where i\mathbf{i}, j\mathbf{j} and k\mathbf{k} are unit vectors in the directions of the xx-, yy- and zz-axes.

Three-dimensional axes x, y and z with the point P at (3, 4, 2). Dashed lines run from O along the x-axis to 3, across parallel to the y-axis to (3, 4, 0), then up to P, and the position vector from O to P is drawn as an arrow
P(3, 4, 2): go 3 along x, 4 along y and 2 up. The arrow OP is 3i + 4j + 2k.

2. Magnitude and distance

Key result

∣xi+yj+zk∣=x2+y2+z2|x\mathbf{i} + y\mathbf{j} + z\mathbf{k}| = \sqrt{x^2 + y^2 + z^2}

The distance between AA and BB is ∣AB→∣|\overrightarrow{AB}|, where AB→=b−a\overrightarrow{AB} = \mathbf{b} - \mathbf{a}.

Pythagoras twice

In the figure above, the point (3,4,0)(3, 4, 0) is 32+42=5\sqrt{3^2 + 4^2} = 5 from OO across the flat xyxy-plane. PP is then 22 straight up from it, at right angles to that line, so OP=52+22=32+42+22OP = \sqrt{5^2 + 2^2} = \sqrt{3^2 + 4^2 + 2^2}. The same two steps work for any point.

Worked example 17.1 · Magnitude and unit vector

For a=2i−3j+6k\mathbf{a} = 2\mathbf{i} - 3\mathbf{j} + 6\mathbf{k}, find ∣a∣|\mathbf{a}| and a unit vector in the direction of a\mathbf{a}.


∣a∣=4+9+36=49=7|\mathbf{a}| = \sqrt{4 + 9 + 36} = \sqrt{49} = 7

Dividing by 77 gives the unit vector 27i−37j+67k\tfrac{2}{7}\mathbf{i} - \tfrac{3}{7}\mathbf{j} + \tfrac{6}{7}\mathbf{k}.

Worked example 17.2 · Distance between two points

Find the distance between A(1,−2,4)A(1, -2, 4) and B(3,1,−2)B(3, 1, -2).


AB→=(3−11−(−2)−2−4)=(23−6)∣AB→∣=4+9+36=7\begin{aligned} \overrightarrow{AB} &= \begin{pmatrix} 3 - 1 \\ 1 - (-2) \\ -2 - 4 \end{pmatrix} = \begin{pmatrix} 2 \\ 3 \\ -6 \end{pmatrix} \\ |\overrightarrow{AB}| &= \sqrt{4 + 9 + 36} = 7 \end{aligned}

3. The angle with each axis

The component along an axis is the magnitude times the cosine of the angle the vector makes with that axis, just as in 2D.

Key result

If a=xi+yj+zk\mathbf{a} = x\mathbf{i} + y\mathbf{j} + z\mathbf{k} makes angles θx\theta_x, θy\theta_y and θz\theta_z with the positive xx-, yy- and zz-axes, then

cos⁡θx=x∣a∣cos⁡θy=y∣a∣cos⁡θz=z∣a∣\begin{aligned} \cos\theta_x &= \frac{x}{|\mathbf{a}|} \\ \cos\theta_y &= \frac{y}{|\mathbf{a}|} \\ \cos\theta_z &= \frac{z}{|\mathbf{a}|} \end{aligned}

Worked example 17.3 · Angles with the axes

Find the angles that a=2i−3j+6k\mathbf{a} = 2\mathbf{i} - 3\mathbf{j} + 6\mathbf{k} makes with the positive xx-, yy- and zz-axes.


From Example 17.1, ∣a∣=7|\mathbf{a}| = 7, so

θx=cos⁡−127=73.4∘θy=cos⁡−1(−37)=115.4∘θz=cos⁡−167=31.0∘\begin{aligned} \theta_x &= \cos^{-1}\tfrac{2}{7} = 73.4^\circ \\ \theta_y &= \cos^{-1}\left(-\tfrac{3}{7}\right) = 115.4^\circ \\ \theta_z &= \cos^{-1}\tfrac{6}{7} = 31.0^\circ \end{aligned}

(all to 1 d.p.). The negative yy-component gives an obtuse angle with the yy-axis: the vector points away from it.

Set the components, then drag the picture (or use the turn buttons) to look at the vector from different sides. The dashed path goes x along, y across and z up; the arrow is the position vector, and its length never changes as you turn.

4. Vector arithmetic in 3D

Key result

Add, subtract and multiply by a scalar one component at a time:

(a1a2a3)+(b1b2b3)=(a1+b1a2+b2a3+b3)\begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix} + \begin{pmatrix} b_1 \\ b_2 \\ b_3 \end{pmatrix} = \begin{pmatrix} a_1 + b_1 \\ a_2 + b_2 \\ a_3 + b_3 \end{pmatrix}λ(a1a2a3)=(λa1λa2λa3)\lambda\begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix} = \begin{pmatrix} \lambda a_1 \\ \lambda a_2 \\ \lambda a_3 \end{pmatrix}

Two vectors are parallel when one is a scalar multiple of the other.

Worked example 17.4 · Combining vectors

Given a=i+2j−k\mathbf{a} = \mathbf{i} + 2\mathbf{j} - \mathbf{k} and b=3i+2k\mathbf{b} = 3\mathbf{i} + 2\mathbf{k}, find 2a−3b2\mathbf{a} - 3\mathbf{b} and its magnitude.


Note that b\mathbf{b} has no j\mathbf{j} component: it is 0j0\mathbf{j}.

2a−3b=(2−94−0−2−6)=(−74−8)∣2a−3b∣=49+16+64=129\begin{aligned} 2\mathbf{a} - 3\mathbf{b} &= \begin{pmatrix} 2 - 9 \\ 4 - 0 \\ -2 - 6 \end{pmatrix} = \begin{pmatrix} -7 \\ 4 \\ -8 \end{pmatrix} \\ |2\mathbf{a} - 3\mathbf{b}| &= \sqrt{49 + 16 + 64} = \sqrt{129} \end{aligned}

5. Position vectors and geometric problems

The methods from Year 1 carry straight over: write each side as a vector, then use equal vectors for parallelograms, scalar multiples for parallel lines and collinear points, and magnitudes for lengths.

Worked example 17.5 · Completing a parallelogram

A(1,2,3)A(1, 2, 3), B(4,0,5)B(4, 0, 5) and C(2,1,−1)C(2, 1, -1) are three corners of the parallelogram ABCDABCD. Find the coordinates of DD.


  1. In ABCDABCD, DC→=AB→\overrightarrow{DC} = \overrightarrow{AB}, so d=c−AB→\mathbf{d} = \mathbf{c} - \overrightarrow{AB}.

  2. AB→=b−a=3i−2j+2k\overrightarrow{AB} = \mathbf{b} - \mathbf{a} = 3\mathbf{i} - 2\mathbf{j} + 2\mathbf{k}, so

    d=(2−31+2−1−2)=(−13−3)\mathbf{d} = \begin{pmatrix} 2 - 3 \\ 1 + 2 \\ -1 - 2 \end{pmatrix} = \begin{pmatrix} -1 \\ 3 \\ -3 \end{pmatrix}

    and DD is (−1,3,−3)(-1, 3, -3).

Worked example 17.6 · Collinear points

Show that P(1,2,−1)P(1, 2, -1), Q(3,5,1)Q(3, 5, 1) and R(7,11,5)R(7, 11, 5) lie on a straight line, and find the ratio PQ:QRPQ : QR.


  1. PQ→=2i+3j+2k\overrightarrow{PQ} = 2\mathbf{i} + 3\mathbf{j} + 2\mathbf{k} and QR→=4i+6j+4k=2PQ→\overrightarrow{QR} = 4\mathbf{i} + 6\mathbf{j} + 4\mathbf{k} = 2\overrightarrow{PQ}.

  2. So PQ→\overrightarrow{PQ} and QR→\overrightarrow{QR} are parallel, and they share the point QQ, so PP, QQ and RR are collinear.

  3. QRQR is twice as long as PQPQ, so PQ:QR=1:2PQ : QR = 1 : 2.

Common mistake

Parallel is not enough to prove collinear: two parallel vectors could lie on parallel lines that never meet. Always say that they share a point.

Worked example 17.7 · An unknown component

The vector 2i+tj+4k2\mathbf{i} + t\mathbf{j} + 4\mathbf{k} has magnitude 66. Find the possible values of tt.


4+t2+16=36t2=16t=±4\begin{aligned} 4 + t^2 + 16 &= 36 \\ t^2 &= 16 \\ t &= \pm 4 \end{aligned}

Practice

Twelve questions in three tiers. Try each one properly before opening the solution — the solutions show full method, not just answers.

Warm-up

1 [2 marks]

Find ∣3i+4j−12k∣|3\mathbf{i} + 4\mathbf{j} - 12\mathbf{k}|.

Show solution

9+16+144=169=13\sqrt{9 + 16 + 144} = \sqrt{169} = 13.

2 [2 marks]

Find a unit vector in the direction of i−2j+2k\mathbf{i} - 2\mathbf{j} + 2\mathbf{k}.

Show solution

The magnitude is 1+4+4=3\sqrt{1 + 4 + 4} = 3, so the unit vector is 13i−23j+23k\tfrac{1}{3}\mathbf{i} - \tfrac{2}{3}\mathbf{j} + \tfrac{2}{3}\mathbf{k}.

3 [2 marks]

Find the distance between the points (2,−1,3)(2, -1, 3) and (−1,3,3)(-1, 3, 3).

Show solution

The vector between them is −3i+4j+0k-3\mathbf{i} + 4\mathbf{j} + 0\mathbf{k}, so the distance is 9+16+0=5\sqrt{9 + 16 + 0} = 5.

4 [2 marks]

Given p=2i−j+4k\mathbf{p} = 2\mathbf{i} - \mathbf{j} + 4\mathbf{k} and q=−i+3j\mathbf{q} = -\mathbf{i} + 3\mathbf{j}, find 3p−2q3\mathbf{p} - 2\mathbf{q}.

Show solution
3p−2q=(6+2−3−612−0)=(8−912)3\mathbf{p} - 2\mathbf{q} = \begin{pmatrix} 6 + 2 \\ -3 - 6 \\ 12 - 0 \end{pmatrix} = \begin{pmatrix} 8 \\ -9 \\ 12 \end{pmatrix}

Standard

5 [4 marks]

Find the angles that 4i−2j+4k4\mathbf{i} - 2\mathbf{j} + 4\mathbf{k} makes with each of the positive coordinate axes.

Show solution

The magnitude is 16+4+16=6\sqrt{16 + 4 + 16} = 6, so

θx=cos⁡−146=48.2∘θy=cos⁡−1(−26)=109.5∘θz=cos⁡−146=48.2∘\begin{aligned} \theta_x &= \cos^{-1}\tfrac{4}{6} = 48.2^\circ \\ \theta_y &= \cos^{-1}\left(-\tfrac{2}{6}\right) = 109.5^\circ \\ \theta_z &= \cos^{-1}\tfrac{4}{6} = 48.2^\circ \end{aligned}

(all to 1 d.p.).

6 [3 marks]

AA is (2,0,−1)(2, 0, -1) and BB is (5,4,11)(5, 4, 11). Find AB→\overrightarrow{AB}, the distance ABAB and the midpoint of ABAB.

Show solution

AB→=3i+4j+12k\overrightarrow{AB} = 3\mathbf{i} + 4\mathbf{j} + 12\mathbf{k}, so AB=9+16+144=13AB = \sqrt{9 + 16 + 144} = 13. The midpoint is (2+52,0+42,−1+112)=(3.5,2,5)\left(\tfrac{2 + 5}{2}, \tfrac{0 + 4}{2}, \tfrac{-1 + 11}{2}\right) = (3.5, 2, 5).

7 [3 marks]

The vector ti+2tj+2kt\mathbf{i} + 2t\mathbf{j} + 2\mathbf{k} has magnitude 77. Find the possible values of tt.

Show solution
t2+4t2+4=495t2=45\begin{aligned} t^2 + 4t^2 + 4 &= 49 \\ 5t^2 &= 45 \end{aligned}

So t2=9t^2 = 9 and t=±3t = \pm 3.

8 [5 marks]

AA is (1,1,1)(1, 1, 1), BB is (3,2,3)(3, 2, 3) and CC is (2,3,−1)(2, 3, -1). Show that triangle ABCABC is right-angled and isosceles.

Show solution
AB→=2i+j+2k,AB=9=3AC→=i+2j−2k,AC=9=3BC→=−i+j−4k,BC=18\begin{aligned} \overrightarrow{AB} &= 2\mathbf{i} + \mathbf{j} + 2\mathbf{k}, & AB &= \sqrt{9} = 3 \\ \overrightarrow{AC} &= \mathbf{i} + 2\mathbf{j} - 2\mathbf{k}, & AC &= \sqrt{9} = 3 \\ \overrightarrow{BC} &= -\mathbf{i} + \mathbf{j} - 4\mathbf{k}, & BC &= \sqrt{18} \end{aligned}

AB=ACAB = AC, so the triangle is isosceles. AB2+AC2=9+9=18=BC2AB^2 + AC^2 = 9 + 9 = 18 = BC^2, so by the converse of Pythagoras the angle at AA is a right angle.

9 [4 marks]

Show that A(2,−1,3)A(2, -1, 3), B(4,3,1)B(4, 3, 1) and C(7,9,−2)C(7, 9, -2) are collinear, and find the ratio AB:BCAB : BC.

Show solution

AB→=2i+4j−2k\overrightarrow{AB} = 2\mathbf{i} + 4\mathbf{j} - 2\mathbf{k} and BC→=3i+6j−3k=32AB→\overrightarrow{BC} = 3\mathbf{i} + 6\mathbf{j} - 3\mathbf{k} = \tfrac{3}{2}\overrightarrow{AB}. They are parallel and share the point BB, so AA, BB and CC are collinear, and AB:BC=2:3AB : BC = 2 : 3.

Exam style

10 [6 marks]

A(1,2,0)A(1, 2, 0), B(4,3,2)B(4, 3, 2) and C(6,1,5)C(6, 1, 5) are three corners of the parallelogram ABCDABCD.

  1. Find the coordinates of DD. [3]
  2. Find the exact perimeter of the parallelogram. [3]
Show solution

(a) AB→=3i+j+2k\overrightarrow{AB} = 3\mathbf{i} + \mathbf{j} + 2\mathbf{k}, and DC→=AB→\overrightarrow{DC} = \overrightarrow{AB}, so d=c−AB→=3i+0j+3k\mathbf{d} = \mathbf{c} - \overrightarrow{AB} = 3\mathbf{i} + 0\mathbf{j} + 3\mathbf{k}. DD is (3,0,3)(3, 0, 3).

(b) AB=9+1+4=14AB = \sqrt{9 + 1 + 4} = \sqrt{14} and BC→=2i−2j+3k\overrightarrow{BC} = 2\mathbf{i} - 2\mathbf{j} + 3\mathbf{k}, so BC=4+4+9=17BC = \sqrt{4 + 4 + 9} = \sqrt{17}. Opposite sides are equal, so the perimeter is 214+2172\sqrt{14} + 2\sqrt{17}.

11 [6 marks]

AA is (3,−1,2)(3, -1, 2) and BB is (7,7,−6)(7, 7, -6). The point PP lies on ABAB with AP:PB=1:3AP : PB = 1 : 3.

  1. Find the length of ABAB. [2]
  2. Find the coordinates of PP. [3]
  3. Find the distance of PP from the origin. [1]
Show solution

(a) AB→=4i+8j−8k\overrightarrow{AB} = 4\mathbf{i} + 8\mathbf{j} - 8\mathbf{k}, so AB=16+64+64=12AB = \sqrt{16 + 64 + 64} = 12.

(b) PP is a quarter of the way from AA to BB:

p=a+14AB→=(3+1−1+22−2)=(410)\mathbf{p} = \mathbf{a} + \tfrac{1}{4}\overrightarrow{AB} = \begin{pmatrix} 3 + 1 \\ -1 + 2 \\ 2 - 2 \end{pmatrix} = \begin{pmatrix} 4 \\ 1 \\ 0 \end{pmatrix}

so PP is (4,1,0)(4, 1, 0).

(c) OP=16+1+0=17OP = \sqrt{16 + 1 + 0} = \sqrt{17}.

12 [7 marks]

A drone takes off from a point OO on flat ground and flies in a straight line to the point AA, with OA→=200i+150j+60k\overrightarrow{OA} = 200\mathbf{i} + 150\mathbf{j} + 60\mathbf{k} metres. Here k\mathbf{k} points vertically up.

  1. Find the distance OAOA, to the nearest metre. [2]
  2. Find the angle between OA→\overrightarrow{OA} and the vertical, and hence the angle at which the drone climbs above the horizontal. [3]
  3. The drone then flies at a constant height to BB, where OB→=50i+350j+60k\overrightarrow{OB} = 50\mathbf{i} + 350\mathbf{j} + 60\mathbf{k}. Find the distance ABAB. [2]
Show solution

(a) OA=2002+1502+602=66 100=257OA = \sqrt{200^2 + 150^2 + 60^2} = \sqrt{66\,100} = 257 m.

(b) cos⁡θz=60257.09…\cos\theta_z = \dfrac{60}{257.09\ldots}, so θz=76.5∘\theta_z = 76.5^\circ (1 d.p.) from the vertical, and the drone climbs at 90∘−76.5∘=13.5∘90^\circ - 76.5^\circ = 13.5^\circ above the horizontal.

(c) AB→=−150i+200j+0k\overrightarrow{AB} = -150\mathbf{i} + 200\mathbf{j} + 0\mathbf{k}, so AB=22 500+40 000=250AB = \sqrt{22\,500 + 40\,000} = 250 m.