Mathematics/Lessons/Vectors/Solving Geometric Problems with Vectors
Pure · Vectors · Year 2

Solving Geometric Problems with Vectors

Position vectors locate every point in space at once — subtract two of them, and the line joining them falls out for free.

13 min read 6 worked examples

Arithmetic and parallel vectors in 3D

Addition, subtraction, and scalar multiplication of 3D vectors all work exactly as in 2D, applied component-by-component across all three entries. Two non-zero vectors $\mathbf{a}$ and $\mathbf{b}$ are parallel precisely when one is a scalar multiple of the other, $\mathbf{b}=\lambda\mathbf{a}$ for some scalar $\lambda$ — which in 3D means each corresponding pair of components must share the same scale factor.

Checking parallelism componentwise

For $\mathbf{a}=\begin{pmatrix}a_1\\a_2\\a_3\end{pmatrix}$ and $\mathbf{b}=\begin{pmatrix}b_1\\b_2\\b_3\end{pmatrix}$ to be parallel, $\dfrac{b_1}{a_1}=\dfrac{b_2}{a_2}=\dfrac{b_3}{a_3}$ must all give the same value of $\lambda$. If even one ratio disagrees, the vectors are not parallel — this is a stricter check than in 2D, since there's a third component that must also agree.

Position vectors and displacement in 3D

A position vector locates a point relative to a fixed origin $O$; the point $A=(a_1,a_2,a_3)$ has position vector $\overrightarrow{OA}=\mathbf{a}=a_1\mathbf{i}+a_2\mathbf{j}+a_3\mathbf{k}$. Exactly as in 2D, the displacement vector from one point to another is found by subtracting position vectors:

$\overrightarrow{AB} = \mathbf{b}-\mathbf{a}$

This single relationship is the engine behind almost every 3D geometric problem: once two points' position vectors are known, the vector connecting them — and hence the direction, and (via the magnitude formula) the distance between them — follows immediately.

Distance between two points in 3D

The distance between points $A(x_1,y_1,z_1)$ and $B(x_2,y_2,z_2)$ is the magnitude of $\overrightarrow{AB}$, giving the 3D distance formula:

$d = |\overrightarrow{AB}| = \sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}$

This is simply the 3D magnitude formula from the previous lesson, applied to the displacement vector $\mathbf{b}-\mathbf{a}$ rather than to a position vector directly.

Worked example 1

Distance between two points in 3D
Points $A$ and $B$ have position vectors $\mathbf{a}=2\mathbf{i}-\mathbf{j}+5\mathbf{k}$ and $\mathbf{b}=6\mathbf{i}+3\mathbf{j}-\mathbf{k}$. Find the exact distance $AB$.
Two points A and B plotted in 3D space, joined by a straight line segment, with dashed guide lines dropping to the base plane to show their positions relative to the x, y and z axes.
The distance AB is the length of the straight segment joining the two points — the magnitude of the displacement vector b − a.
MethodFind the displacement vector, then take its magnitude
1
$\overrightarrow{AB} = \mathbf{b}-\mathbf{a} = (6-2)\mathbf{i}+(3-(-1))\mathbf{j}+(-1-5)\mathbf{k} = 4\mathbf{i}+4\mathbf{j}-6\mathbf{k}$.
Subtract position vectors componentwise: b − a.
2
$AB = |\overrightarrow{AB}| = \sqrt{4^2+4^2+(-6)^2} = \sqrt{16+16+36} = \sqrt{68}$.
Apply the 3D magnitude formula to the displacement vector.
3
$=2\sqrt{17}$.
Simplify the surd: 68 = 4 × 17.
▪ solved

Worked example 2

Finding the fourth vertex of a parallelogram
$ABCD$ is a parallelogram with $A(1,2,-1)$, $B(4,0,3)$, and $C(6,5,2)$. Find the coordinates of $D$.
A parallelogram ABCD tilted in 3D space, with a single tick mark on sides AB and DC to show they are equal and parallel, and a double tick mark on sides BC and AD to show those are equal and parallel too.
In parallelogram ABCD, opposite sides are equal and parallel as vectors: AB = DC and BC = AD.
MethodUse the fact that opposite sides of a parallelogram are equal vectors
1
In parallelogram $ABCD$, side $AB$ is parallel and equal in length to side $DC$, and both are traversed in the same rotational sense, so $\overrightarrow{AB} = \overrightarrow{DC}$.
This is the defining property of a parallelogram, expressed vectorially.
2
$\overrightarrow{AB} = \mathbf{b}-\mathbf{a} = (4-1)\mathbf{i}+(0-2)\mathbf{j}+(3-(-1))\mathbf{k} = 3\mathbf{i}-2\mathbf{j}+4\mathbf{k}$.
Compute the known side AB first.
3
Since $\overrightarrow{DC}=\mathbf{c}-\mathbf{d}$, and this must equal $\overrightarrow{AB}$: $\mathbf{c}-\mathbf{d} = 3\mathbf{i}-2\mathbf{j}+4\mathbf{k} \Rightarrow \mathbf{d} = \mathbf{c}-(3\mathbf{i}-2\mathbf{j}+4\mathbf{k})$.
Rearrange to make d (the unknown position vector) the subject.
4
$\mathbf{d} = (6\mathbf{i}+5\mathbf{j}+2\mathbf{k}) - (3\mathbf{i}-2\mathbf{j}+4\mathbf{k}) = 3\mathbf{i}+7\mathbf{j}-2\mathbf{k}$.
Substitute c and subtract componentwise.
5
$D = (3,7,-2)$.
Read the coordinates from the position vector.
▪ solved
Why not DA = BC?

Either pair of opposite sides can be used ($\overrightarrow{AB}=\overrightarrow{DC}$ or $\overrightarrow{BC}=\overrightarrow{AD}$) — both express the same parallelogram property and give the same point $D$. Choosing the pair that isolates $\mathbf{d}$ most directly just keeps the algebra tidier.

Worked example 3

Finding a missing vertex of a square
$JKLS$ is a square, with $J(1,2,1)$, $K(4,2,5)$ and $L(4,7,5)$. Find the coordinates of $S$, and verify that $JKLS$ is indeed a square by checking that $\overrightarrow{JK}$ and $\overrightarrow{KL}$ are perpendicular and equal in length.
A square JKLS tilted in 3D space, with a single tick mark on sides JK and SL to show they are equal and parallel, and a double tick mark on sides KL and JS to show those are equal and parallel too.
Square JKLS in 3D space — the same "opposite sides are equal vectors" idea as the parallelogram, with the added conditions of a right angle and equal side lengths.
MethodUse JS = KL to locate S, then check perpendicularity and length with the two known sides
1
$\overrightarrow{JK} = \mathbf{k}-\mathbf{j} = (4-1)\mathbf{i}+(2-2)\mathbf{j}+(5-1)\mathbf{k} = 3\mathbf{i}+0\mathbf{j}+4\mathbf{k}$.
Find one known side of the square as a displacement vector.
2
$\overrightarrow{KL} = \mathbf{l}-\mathbf{k} = (4-4)\mathbf{i}+(7-2)\mathbf{j}+(5-5)\mathbf{k} = 0\mathbf{i}+5\mathbf{j}+0\mathbf{k}$.
Find the other known side.
3
In square $JKLS$ (vertices in order), side $\overrightarrow{JS}$ is equal and parallel to side $\overrightarrow{KL}$, so $\mathbf{s} = \mathbf{j}+\overrightarrow{KL} = (\mathbf{i}+2\mathbf{j}+\mathbf{k})+(5\mathbf{j}) = \mathbf{i}+7\mathbf{j}+\mathbf{k}$.
Exactly the same "opposite sides are equal vectors" idea used to find D in the parallelogram above.
4
$S = (1,7,1)$.
Read the coordinates from the position vector.
5
Check perpendicular: $\overrightarrow{JK}\cdot\overrightarrow{KL} = (3)(0)+(0)(5)+(4)(0) = 0$. ✓
A zero dot product confirms the two sides meet at a right angle.
6
Check equal length: $|\overrightarrow{JK}| = \sqrt{9+0+16}=\sqrt{25}=5$; $|\overrightarrow{KL}| = \sqrt{0+25+0}=\sqrt{25}=5$. ✓
Equal adjacent side lengths, together with the right angle, confirm JKLS really is a square (not just a rectangle or rhombus).
▪ solved
Proving a shape, not just locating it

Finding a missing vertex only uses the "opposite sides equal" property, which alone just proves a parallelogram. Confirming a right angle (via a zero dot product) and equal adjacent side lengths (via the magnitude formula) are what upgrade that parallelogram to a genuine square — the same two checks distinguish a rectangle (right angles, unequal sides) or a rhombus (equal sides, no right angle) from a square.

Worked example 4

Showing three points are collinear
Points $P$, $Q$, $R$ have position vectors $\mathbf{p}=\mathbf{i}+3\mathbf{j}-2\mathbf{k}$, $\mathbf{q}=4\mathbf{i}+5\mathbf{j}-3\mathbf{k}$, $\mathbf{r}=10\mathbf{i}+9\mathbf{j}-5\mathbf{k}$. Show that $P$, $Q$, $R$ are collinear.
MethodShow two displacement vectors are parallel and share a point
1
$\overrightarrow{PQ} = \mathbf{q}-\mathbf{p} = 3\mathbf{i}+2\mathbf{j}-\mathbf{k}$.
Find the first displacement vector.
2
$\overrightarrow{PR} = \mathbf{r}-\mathbf{p} = 9\mathbf{i}+6\mathbf{j}-3\mathbf{k}$.
Find the second displacement vector, from the same starting point P.
3
$\overrightarrow{PR} = 3(3\mathbf{i}+2\mathbf{j}-\mathbf{k}) = 3\overrightarrow{PQ}$.
Check whether PR is a scalar multiple of PQ, componentwise: 9/3 = 6/2 = (−3)/(−1) = 3.
4
Since $\overrightarrow{PR}$ is a scalar multiple of $\overrightarrow{PQ}$, the two vectors are parallel; and since they share the common point $P$, the points $P$, $Q$, $R$ all lie on the same straight line.
Parallel vectors from a shared point force collinearity.
▪ solved
The key insight

Parallel alone is not enough to prove collinearity — two parallel vectors could describe separate parallel lines. It's the shared point $P$ that forces $Q$ and $R$ onto the same line as $P$; always state both conditions explicitly in a collinearity proof.

Worked example 5

Dividing a line segment in a given ratio
The point $R$ divides the line segment $AB$ in the ratio $AR:RB = 2:3$, where $A(1,-2,4)$ and $B(11,8,-6)$. Find the coordinates of $R$.
MethodTravel the appropriate fraction of the way along AB, starting from A
1
$\overrightarrow{AB} = \mathbf{b}-\mathbf{a} = (11-1)\mathbf{i}+(8-(-2))\mathbf{j}+(-6-4)\mathbf{k} = 10\mathbf{i}+10\mathbf{j}-10\mathbf{k}$.
Find the full displacement from A to B.
2
Since $AR:RB=2:3$, the segment $AB$ splits into $2+3=5$ equal parts, and $R$ sits $\dfrac{2}{5}$ of the way from $A$ to $B$.
R is closer to A, since it takes only 2 of the 5 parts to reach it.
3
$\overrightarrow{AR} = \dfrac{2}{5}\overrightarrow{AB} = \dfrac{2}{5}(10\mathbf{i}+10\mathbf{j}-10\mathbf{k}) = 4\mathbf{i}+4\mathbf{j}-4\mathbf{k}$.
Scale the full displacement by the fraction 2/5.
4
$\mathbf{r} = \mathbf{a}+\overrightarrow{AR} = (\mathbf{i}-2\mathbf{j}+4\mathbf{k})+(4\mathbf{i}+4\mathbf{j}-4\mathbf{k}) = 5\mathbf{i}+2\mathbf{j}+0\mathbf{k}$.
R's position vector is A's position vector plus the displacement AR.
5
$R = (5,2,0)$.
Read off the coordinates.
▪ solved
The section formula, in general

For $R$ dividing $AB$ in the ratio $m:n$, $\mathbf{r} = \mathbf{a}+\dfrac{m}{m+n}(\mathbf{b}-\mathbf{a})$ — equivalently, $\mathbf{r}=\dfrac{n\mathbf{a}+m\mathbf{b}}{m+n}$. Setting $m=n=1$ recovers the familiar midpoint formula, $\mathbf{r}=\tfrac12(\mathbf{a}+\mathbf{b})$.

Worked example 6

Midpoint and an isosceles triangle condition · Challenge
Triangle $ABC$ has $A(2,-1,4)$, $B(0,3,2)$, $C(6,1,-2)$. Let $M$ be the midpoint of $BC$. Find the coordinates of $M$, and determine whether triangle $ABM$ is isosceles.
Triangle ABC in 3D space shown in grey, with M marked as the midpoint of BC using matching tick marks, and triangle ABM highlighted in orange.
Triangle $ABC$ with $M$ the midpoint of $BC$ (tick marks show $BM=MC$). The highlighted triangle $ABM$ is the one being tested for isosceles sides.
MethodFind M using the midpoint formula, then compare side lengths using the distance formula
1
$\mathbf{m} = \dfrac{\mathbf{b}+\mathbf{c}}{2} = \dfrac{(0+6)\mathbf{i}+(3+1)\mathbf{j}+(2+(-2))\mathbf{k}}{2} = 3\mathbf{i}+2\mathbf{j}+0\mathbf{k}$.
The midpoint's position vector is the average of the two endpoints' position vectors — this extends unchanged to 3D.
2
$M = (3,2,0)$.
Read off coordinates.
3
$AM = |\mathbf{m}-\mathbf{a}| = |(3-2)\mathbf{i}+(2-(-1))\mathbf{j}+(0-4)\mathbf{k}| = |\mathbf{i}+3\mathbf{j}-4\mathbf{k}| = \sqrt{1+9+16}=\sqrt{26}$.
Distance from A to M using the 3D distance formula.
4
$AB = |\mathbf{b}-\mathbf{a}| = |(-2)\mathbf{i}+4\mathbf{j}-2\mathbf{k}| = \sqrt{4+16+4}=\sqrt{24}$.
Distance from A to B.
5
$BM = |\mathbf{m}-\mathbf{b}| = |3\mathbf{i}-\mathbf{j}-2\mathbf{k}| = \sqrt{9+1+4}=\sqrt{14}$.
Distance from B to M, to complete all three sides of triangle ABM.
6
The three side lengths $\sqrt{26}$, $\sqrt{24}$, $\sqrt{14}$ are all different, so triangle $ABM$ is not isosceles.
An isosceles triangle needs at least two equal side lengths — none match here.
▪ solved
Look deeper — the midpoint formula in 3D

Just as with magnitude, the midpoint formula extends from 2D to 3D by simply averaging the extra component — no new theory is required, only the willingness to carry an established 2D idea one dimension further. This pattern (extend componentwise, apply Pythagoras twice for lengths) covers the vast majority of 3D vector geometry problems.

Common mistake

Assuming two vectors are parallel after checking only one or two of the three component ratios. In 3D, all three ratios $\dfrac{b_1}{a_1},\dfrac{b_2}{a_2},\dfrac{b_3}{a_3}$ must agree — a pair of vectors that "looks" parallel from two coordinates can easily diverge in the third, so every component must be checked before concluding parallelism (or collinearity, which relies on it).

Check yourself

$A(1,0,2)$, $B(3,4,-2)$, $C(5,8,-6)$ are three points. Show that $A$, $B$, $C$ are collinear, and find the ratio $AB:BC$.
(Hint: find AB and BC as vectors, and check whether one is a scalar multiple of the other.)

Method
1
$\overrightarrow{AB} = 2\mathbf{i}+4\mathbf{j}-4\mathbf{k}$; $\overrightarrow{BC} = 2\mathbf{i}+4\mathbf{j}-4\mathbf{k}$.
Compute both displacement vectors.
2
$\overrightarrow{BC} = 1 \times \overrightarrow{AB}$, so the vectors are parallel (equal, in fact), and since they share point $B$, $A$, $B$, $C$ are collinear.
Parallel vectors sharing a common point force collinearity.
3
Since $\overrightarrow{AB}=\overrightarrow{BC}$, the ratio $AB:BC = 1:1$.
Equal vectors mean equal lengths, so B is the midpoint of AC.
▪ solved