3.12 · AHL · HL onlyPaper 1Paper 2

Vectors in 2D and 3D

In a minute

A has a size and a direction, so it can describe a movement such as “4 across and 3 up”. You write vectors with components or with i\boldsymbol{i}, j\boldsymbol{j} and k\boldsymbol{k}, then add, subtract and scale them. Their lengths give distances in 3D, and their algebra proves facts about shapes.

You'll be able to

  • Draw a as an arrow, and tell a from a .
  • Write vectors as column vectors or with the i\boldsymbol{i}, j\boldsymbol{j}, k\boldsymbol{k}.
  • Add, subtract and scale vectors, using the 0\boldsymbol{0} and −v-\boldsymbol{v}.
  • Spot and points.
  • Find a , a , AB→=b−a\overrightarrow{AB} = \boldsymbol{b} - \boldsymbol{a} and the distance ABAB.
  • Prove geometric facts with vectors.
Before you start2 quick questions on what this builds on
Check yourself
Find the distance between the points (2,−1,3)(2, -1, 3) and (−2,1,7)(-2, 1, 7).
Check yourself
Find the midpoint of the points (3,−5,2)(3, -5, 2) and (−1,1,8)(-1, 1, 8).

Revise first: 3.1 3D distance, midpoint and measurement

Vectors as arrows

A mass of 5 kg is only a size: a . “Walk 300 m” is not enough to follow. “Walk 300 m north-east” is, because it adds a direction.

You draw a as a directed line segment: an arrow. Its length is the magnitude and its arrowhead gives the direction.

The arrow from A to B is written AB→\overrightarrow{AB}. A single vector is printed in bold, such as v\boldsymbol{v}. By hand, underline it: v‾\underline{v}.

Square grid numbered 0 to 10 across and 0 to 6 up. Arrow P Q goes from (1, 2) to (5, 5). Arrow R S goes from (6, 0) to (10, 3), the same length and direction as P Q. Arrow T U goes from (9, 6) to (6, 2). 0 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 P Q R S T U
PQ→\overrightarrow{PQ} and RS→\overrightarrow{RS} are equal vectors: both go 4 across and 3 up.

Count the movement on the grid to get the components. PQ→\overrightarrow{PQ} goes 4 right and 3 up, so it is the column vector (43)\begin{pmatrix}4\\3\end{pmatrix}. Moves left or down are negative.

Worked exampleUse the grid in the figure to write TU→\overrightarrow{TU} as a column vector.

Try it first, then reveal one step at a time.

  1. The tail T is at (9,6)(9, 6) and the arrowhead U is at (6,2)(6, 2).

Now fix an origin O. The of a point A is OA→\overrightarrow{OA}, written a\boldsymbol{a}. Its components are the coordinates of A: if A is (2,−1,5)(2, -1, 5), then a=(2−15)\boldsymbol{a} = \begin{pmatrix}2\\-1\\5\end{pmatrix}.

A position vector always starts at O. A vector between two points, such as AB→\overrightarrow{AB}, is a : the move from A to B.

Check yourself
The point E has coordinates (−3,0,4)(-3, 0, 4). Write its position vector e\boldsymbol{e} as a column vector.

In 3D a vector has three components, along the xx-, yy- and zz-axes. The are one-unit steps along each axis:

Learn this
i=(100),j=(010),k=(001)\boldsymbol{i} = \begin{pmatrix}1\\0\\0\end{pmatrix}, \quad \boldsymbol{j} = \begin{pmatrix}0\\1\\0\end{pmatrix}, \quad \boldsymbol{k} = \begin{pmatrix}0\\0\\1\end{pmatrix}

Any vector is a sum of steps along the axes, so exam questions write it in either of two ways:

Learn this
v=(v1v2v3)=v1i+v2j+v3k\boldsymbol{v} = \begin{pmatrix}v_{1}\\v_{2}\\v_{3}\end{pmatrix} = v_{1}\boldsymbol{i} + v_{2}\boldsymbol{j} + v_{3}\boldsymbol{k}

The numbers v1v_{1}, v2v_{2} and v3v_{3} are the components. A missing base vector means a zero component. In 2D there is no k\boldsymbol{k}: (43)=4i+3j\begin{pmatrix}4\\3\end{pmatrix} = 4\boldsymbol{i} + 3\boldsymbol{j}.

Worked exampleThe point D has position vector d=6i−k\boldsymbol{d} = 6\boldsymbol{i} - \boldsymbol{k}. Write d\boldsymbol{d} as a column vector, and write down the coordinates of D.

Try it first, then reveal one step at a time.

  1. The i\boldsymbol{i} term is 6i6\boldsymbol{i}, so the first component is 6.
Check yourself
Write 3j−2k3\boldsymbol{j} - 2\boldsymbol{k} as a column vector.

Adding and subtracting vectors

Walk along u\boldsymbol{u}, then along v\boldsymbol{v}. The single arrow from your start to your finish is the sum u+v\boldsymbol{u} + \boldsymbol{v}. So put the tail of v\boldsymbol{v} on the head of u\boldsymbol{u}, then join start to finish.

Arrow u, then arrow v drawn from the head of u. The arrow from the start of u to the head of v is u plus v. Dashed copies of v then u, taken in the other order, complete a parallelogram and end at the same point. u v u + v v u
Taking v\boldsymbol{v} first, then u\boldsymbol{u}, reaches the same point, so u+v=v+u\boldsymbol{u} + \boldsymbol{v} = \boldsymbol{v} + \boldsymbol{u}.

With components, add matching components: moves along the same axis add up.

Learn this
u+v=(u1+v1u2+v2u3+v3)\boldsymbol{u} + \boldsymbol{v} = \begin{pmatrix}u_{1} + v_{1}\\u_{2} + v_{2}\\u_{3} + v_{3}\end{pmatrix}

The 0\boldsymbol{0} has every component 0. It is the move that goes nowhere, so v+0=v\boldsymbol{v} + \boldsymbol{0} = \boldsymbol{v}.

The −v-\boldsymbol{v} has the same length as v\boldsymbol{v} but points the opposite way. So v+(−v)=0\boldsymbol{v} + (-\boldsymbol{v}) = \boldsymbol{0}, and BA→=−AB→\overrightarrow{BA} = -\overrightarrow{AB} for any two points.

Subtracting means adding the negative: u−v=u+(−v)\boldsymbol{u} - \boldsymbol{v} = \boldsymbol{u} + (-\boldsymbol{v}). With components, subtract matching components.

Worked exampleGiven u=(3−14)\boldsymbol{u} = \begin{pmatrix}3\\-1\\4\end{pmatrix}, v=(−251)\boldsymbol{v} = \begin{pmatrix}-2\\5\\1\end{pmatrix} and w=2j−6k\boldsymbol{w} = 2\boldsymbol{j} - 6\boldsymbol{k}, find u−v+w\boldsymbol{u} - \boldsymbol{v} + \boldsymbol{w}.

Try it first, then reveal one step at a time.

  1. Write w\boldsymbol{w} as a column vector. It has no i\boldsymbol{i} term, so w=(02−6)\boldsymbol{w} = \begin{pmatrix}0\\2\\-6\end{pmatrix}.

To get from A to B, you can go back from A to O, then out from O to B:

Origin O with arrows to points A and B, labelled a and b. A third arrow goes from A to B and is labelled b minus a. O A B a b b − a

Read it as “end minus start”.

Worked exampleThe points A and B have coordinates (4,−1,2)(4, -1, 2) and (1,3,−5)(1, 3, -5). Find AB→\overrightarrow{AB}.

Try it first, then reveal one step at a time.

  1. Write the : a=(4−12)\boldsymbol{a} = \begin{pmatrix}4\\-1\\2\end{pmatrix} and b=(13−5)\boldsymbol{b} = \begin{pmatrix}1\\3\\-5\end{pmatrix}.
Check yourself
AB→=(2−61)\overrightarrow{AB} = \begin{pmatrix}2\\-6\\1\end{pmatrix} and A is the point (−1,4,3)(-1, 4, 3). Find the coordinates of B.

Without numbers, write the arrow you need as a route made of arrows you know.

Check yourself
PQRS is a parallelogram with PQ→=u\overrightarrow{PQ} = \boldsymbol{u} and PS→=w\overrightarrow{PS} = \boldsymbol{w}. Find QS→\overrightarrow{QS} in terms of u\boldsymbol{u} and w\boldsymbol{w}.

Scalar multiples and parallel vectors

v+v\boldsymbol{v} + \boldsymbol{v} is two copies of v\boldsymbol{v} end to end. It points the same way and is twice as long, so you write it 2v2\boldsymbol{v}.

For any kk, multiply every component by kk. If k>0k > 0, kvk\boldsymbol{v} points the same way as v\boldsymbol{v}; if k<0k < 0, the opposite way.

Learn this
k(v1v2v3)=(kv1kv2kv3)k\begin{pmatrix}v_{1}\\v_{2}\\v_{3}\end{pmatrix} = \begin{pmatrix}kv_{1}\\kv_{2}\\kv_{3}\end{pmatrix}
Worked exampleGiven a=2i−3j+k\boldsymbol{a} = 2\boldsymbol{i} - 3\boldsymbol{j} + \boldsymbol{k} and b=−i+4j\boldsymbol{b} = -\boldsymbol{i} + 4\boldsymbol{j}, find 3a−2b3\boldsymbol{a} - 2\boldsymbol{b}.

Try it first, then reveal one step at a time.

  1. Write both as column : a=(2−31)\boldsymbol{a} = \begin{pmatrix}2\\-3\\1\end{pmatrix} and b=(−140)\boldsymbol{b} = \begin{pmatrix}-1\\4\\0\end{pmatrix}. There is no k\boldsymbol{k} in b\boldsymbol{b}.

To test whether two vectors are , divide matching components. If every ratio is the same number kk, they are parallel. A zero component must match a zero component.

Worked exampleThe vectors (6s−9)\begin{pmatrix}6\\s\\-9\end{pmatrix} and (−42t)\begin{pmatrix}-4\\2\\t\end{pmatrix} are parallel. Find the value of ss and the value of tt.

Try it first, then reveal one step at a time.

  1. Parallel means (6s−9)=k(−42t)\begin{pmatrix}6\\s\\-9\end{pmatrix} = k\begin{pmatrix}-4\\2\\t\end{pmatrix}, so 6=−4k6 = -4k, s=2ks = 2k and −9=kt-9 = kt.
Check yourself
Which vector is parallel to (3−62)\begin{pmatrix}3\\-6\\2\end{pmatrix}?

Three points are when one straight line passes through all of them. Parallel arrows can lie on different lines, so use two arrows that share a point.

Worked exampleThe points A(2,−1,3)A(2, -1, 3), B(5,1,2)B(5, 1, 2) and C(11,t,0)C(11, t, 0) are collinear. Find the value of tt.

Try it first, then reveal one step at a time.

  1. Find AB→=b−a=(32−1)\overrightarrow{AB} = \boldsymbol{b} - \boldsymbol{a} = \begin{pmatrix}3\\2\\-1\end{pmatrix}.
Check yourself
The points P(1,4)P(1, 4), Q(3,1)Q(3, 1) and R(k,−8)R(k, -8) are collinear. Find kk.

Magnitude, unit vectors and distance

The ∣v∣\lvert\boldsymbol{v}\rvert of a is the length of its arrow. In 2D the components are the short sides of a right-angled triangle, so ∣(43)∣=42+32=5\left\lvert\begin{pmatrix}4\\3\end{pmatrix}\right\rvert = \sqrt{4^{2} + 3^{2}} = 5.

In 3D, use Pythagoras twice, as for a cuboid's space diagonal in 3.1. The formula is in the booklet:

In the formula booklet
∣v∣=v12+v22+v32, where v=(v1v2v3)\lvert\boldsymbol{v}\rvert = \sqrt{v_{1}^{2} + v_{2}^{2} + v_{3}^{2}}, \text{ where } \boldsymbol{v} = \begin{pmatrix}v_{1}\\v_{2}\\v_{3}\end{pmatrix}

In 2D, leave out v3v_{3}. A magnitude is a and is never negative. Also ∣−v∣=∣v∣\lvert -\boldsymbol{v}\rvert = \lvert\boldsymbol{v}\rvert, and ∣kv∣=∣k∣ ∣v∣\lvert k\boldsymbol{v}\rvert = \lvert k\rvert\,\lvert\boldsymbol{v}\rvert.

So divide every component by ∣v∣\lvert\boldsymbol{v}\rvert. The i\boldsymbol{i}, j\boldsymbol{j} and k\boldsymbol{k} are . For length LL in the direction of v\boldsymbol{v}, use Lv∣v∣L\frac{\boldsymbol{v}}{\lvert\boldsymbol{v}\rvert}; for the opposite direction, use −L-L.

Worked exampleFind the unit vector in the direction of v=4i−4j+7k\boldsymbol{v} = 4\boldsymbol{i} - 4\boldsymbol{j} + 7\boldsymbol{k}.

Try it first, then reveal one step at a time.

  1. Find the magnitude: ∣v∣=42+(−4)2+72=16+16+49=81=9\lvert\boldsymbol{v}\rvert = \sqrt{4^{2} + (-4)^{2} + 7^{2}} = \sqrt{16 + 16 + 49} = \sqrt{81} = 9.
Check yourself
Find the vector of magnitude 12 in the opposite direction to (2−12)\begin{pmatrix}2\\-1\\2\end{pmatrix}.

The distance between two points is the length of the arrow that joins them:

Learn this
AB=∣AB→∣=∣b−a∣AB = \lvert\overrightarrow{AB}\rvert = \lvert\boldsymbol{b} - \boldsymbol{a}\rvert

It is the distance formula from 3.1, written with vectors.

Worked exampleThe points A and B have a=i−2j\boldsymbol{a} = \boldsymbol{i} - 2\boldsymbol{j} and b=4i+2j−5k\boldsymbol{b} = 4\boldsymbol{i} + 2\boldsymbol{j} - 5\boldsymbol{k}. Find the exact distance ABAB.

Try it first, then reveal one step at a time.

  1. Write a\boldsymbol{a} as a 3D column vector. There is no k\boldsymbol{k}, so a=(1−20)\boldsymbol{a} = \begin{pmatrix}1\\-2\\0\end{pmatrix}.
Worked exampleThe point P is (2,−1,3)(2, -1, 3) and the point Q is (t,2t,1−t)(t, 2t, 1 - t), where tt is a real number. Use your calculator to find the values of tt for which PQ=7PQ = 7. Give your answers to 3 s.f.

Try it first, then reveal one step at a time.

  1. End minus start: PQ→=(t−22t−(−1)(1−t)−3)=(t−22t+1−2−t)\overrightarrow{PQ} = \begin{pmatrix}t - 2\\2t - (-1)\\(1 - t) - 3\end{pmatrix} = \begin{pmatrix}t - 2\\2t + 1\\-2 - t\end{pmatrix}.
Check yourself
Given u=(1−24)\boldsymbol{u} = \begin{pmatrix}1\\-2\\4\end{pmatrix} and v=(−112)\boldsymbol{v} = \begin{pmatrix}-1\\1\\2\end{pmatrix}, find ∣2u−v∣\lvert 2\boldsymbol{u} - \boldsymbol{v}\rvert. Give your answer to 3 s.f.

Proving geometric facts with vectors

turn a geometry problem into algebra. Write every arrow in terms of a few vectors you know, then read the geometry off the algebra.

1. Choose two vectors to build from that are not , such as the a\boldsymbol{a} and b\boldsymbol{b}.

2. Write each vector you need as a route, such as AB→=b−a\overrightarrow{AB} = \boldsymbol{b} - \boldsymbol{a}.

3. Read off the geometry. A multiple kk means parallel, with lengths in the ratio ∣k∣\lvert k\rvert. Equal position vectors mean the same point.

This is the midpoint formula from 3.1, written with vectors.

Triangle O A B with arrow a from O to A and arrow b from O to B. M is the midpoint of O A and N is the midpoint of O B. A dashed arrow joins M to N, parallel to A B. O A B M N a b
Worked exampleIn triangle OAB, OA→=a\overrightarrow{OA} = \boldsymbol{a} and OB→=b\overrightarrow{OB} = \boldsymbol{b}. M is the midpoint of [OA] and N is the midpoint of [OB]. Find MN→\overrightarrow{MN} in terms of a\boldsymbol{a} and b\boldsymbol{b}. Hence show that [MN] is parallel to [AB] and half its length.

Try it first, then reveal one step at a time.

  1. M is halfway along [OA], so OM→=12a\overrightarrow{OM} = \frac{1}{2}\boldsymbol{a}. Likewise ON→=12b\overrightarrow{ON} = \frac{1}{2}\boldsymbol{b}.
Worked exampleABCD is a parallelogram with AB→=u\overrightarrow{AB} = \boldsymbol{u} and AD→=w\overrightarrow{AD} = \boldsymbol{w}. X is the midpoint of the diagonal [BD]. Find AX→\overrightarrow{AX} in terms of u\boldsymbol{u} and w\boldsymbol{w}. Hence prove that the diagonals of a parallelogram bisect each other.

Try it first, then reveal one step at a time.

  1. Opposite sides are equal vectors, so BC→=w\overrightarrow{BC} = \boldsymbol{w} and the diagonal AC→=u+w\overrightarrow{AC} = \boldsymbol{u} + \boldsymbol{w}.
Check yourself
In triangle OAB, OA→=a\overrightarrow{OA} = \boldsymbol{a} and OB→=b\overrightarrow{OB} = \boldsymbol{b}. M is the midpoint of [AB], and G is the point on [OM] with OG→=23OM→\overrightarrow{OG} = \frac{2}{3}\overrightarrow{OM}. Find OG→\overrightarrow{OG}.
Check yourself
OA→=a\overrightarrow{OA} = \boldsymbol{a}, OB→=b\overrightarrow{OB} = \boldsymbol{b} and OC→=3b−2a\overrightarrow{OC} = 3\boldsymbol{b} - 2\boldsymbol{a}, where a\boldsymbol{a} and b\boldsymbol{b} are not parallel. Which statement is true?

The scalar product in 3.13 adds a test for right angles.

Common mistakes

  • Losing a sign when subtracting a negative component: 3−(−2)=53 - (-2) = 5, not 11. Bracket negative components first.
  • Writing −42-4^{2} for a component of −4-4 in a magnitude. That is −16-16; you need (−4)2=16(-4)^{2} = 16.
  • Dividing only some components to make a unit vector. Divide every component by ∣v∣\lvert\boldsymbol{v}\rvert.
  • Calling points collinear because two arrows are parallel, with no shared point. Use arrows that both start at the same point.
  • Giving a point when the question asks for a vector, or a vector when it asks for a distance. Re-read the question first.

Exam tips

  • In a **show that** or **prove** question, write each route you use. End with a sentence that gives the reason, such as “a scalar multiple, so parallel”. A bare conclusion loses the reasoning mark.
  • On Paper 1, give magnitudes exact, as a surd such as 525\sqrt{2} (simplified is neater), not the decimal 7.077.07.
  • On Paper 2, write down the equation you put into your calculator, then give each answer to 3 s.f.

Key takeaways

In booklet∣v∣=v12+v22+v32, where v=(v1v2v3)\lvert\boldsymbol{v}\rvert = \sqrt{v_{1}^{2} + v_{2}^{2} + v_{3}^{2}}, \text{ where } \boldsymbol{v} = \begin{pmatrix}v_{1}\\v_{2}\\v_{3}\end{pmatrix}
Learn thisv=(v1v2v3)=v1i+v2j+v3k\boldsymbol{v} = \begin{pmatrix}v_{1}\\v_{2}\\v_{3}\end{pmatrix} = v_{1}\boldsymbol{i} + v_{2}\boldsymbol{j} + v_{3}\boldsymbol{k}. A missing base vector means a zero component.
Learn thisAB→=b−a\overrightarrow{AB} = \boldsymbol{b} - \boldsymbol{a} (end minus start), and the distance AB=∣b−a∣AB = \lvert\boldsymbol{b} - \boldsymbol{a}\rvert.
Learn thisNon-zero v\boldsymbol{v} and w\boldsymbol{w} are parallel when w=kv\boldsymbol{w} = k\boldsymbol{v}. A, B and C are collinear when AC→=kAB→\overrightarrow{AC} = k\overrightarrow{AB}.
Learn thisUnit vector in the direction of v\boldsymbol{v}: v∣v∣\frac{\boldsymbol{v}}{\lvert\boldsymbol{v}\rvert}. Length LL in that direction: Lv∣v∣L\frac{\boldsymbol{v}}{\lvert\boldsymbol{v}\rvert}.
Learn thisThe midpoint of [AB] has position vector 12(a+b)\frac{1}{2}(\boldsymbol{a} + \boldsymbol{b}).
Learn thisVector proof: write every arrow in terms of two non-parallel vectors such as a\boldsymbol{a} and b\boldsymbol{b}. A scalar multiple means parallel; equal position vectors mean the same point.

Practise this

5 past-paper questions on 3.12 in the AA HL bank, each with a mark scheme and a worked explanation.

Practise 3.12 →