A-level Mathematics

10.4 Position vectors and the distance between two points — Learn

Prerequisites: plotting coordinates in two and three dimensions; subtracting directed numbers; finding the magnitude of a vector (Section 10.2); adding vectors (Section 10.3).

By the end of this section you can: write the position vector of a point; find the displacement between two points from their position vectors; find the distance between two points in two and three dimensions; find the midpoint of two points.

1. Position vectors

Choose an origin OO. The position vector of a point AA is the vector from OO to AA. It is written OA⃗\vec{OA} or a\mathbf{a}.

The position vector of A(x,y)A(x, y) is

OA⃗=xi+yj=(xy).\vec{OA} = x\mathbf{i} + y\mathbf{j} = \begin{pmatrix} x \\ y \end{pmatrix}.

In three dimensions, the position vector of A(x,y,z)A(x, y, z) has a third component. The position vector tells you where the point is, so it depends on the origin. A free vector does not.

Example 1. Write the position vectors of A(1,2)A(1, 2) and B(5,7)B(5, 7).

a=OA⃗=i+2j,b=OB⃗=5i+7j.\mathbf{a} = \vec{OA} = \mathbf{i} + 2\mathbf{j}, \qquad \mathbf{b} = \vec{OB} = 5\mathbf{i} + 7\mathbf{j}.

2. The displacement between two points

To travel from AA to BB, first go from AA back to the origin, then from the origin out to BB. In vectors,

AB⃗=AO⃗+OB⃗=−a+b=b−a.\vec{AB} = \vec{AO} + \vec{OB} = -\mathbf{a} + \mathbf{b} = \mathbf{b} - \mathbf{a}.

So the displacement from AA to BB is the position vector of BB minus the position vector of AA.

Example 2. Find AB⃗\vec{AB} for A(1,2)A(1, 2) and B(5,7)B(5, 7).

AB⃗=b−a=(5−1)i+(7−2)j=4i+5j.\vec{AB} = \mathbf{b} - \mathbf{a} = (5 - 1)\mathbf{i} + (7 - 2)\mathbf{j} = 4\mathbf{i} + 5\mathbf{j}.

Example 3. For A(1,2,−1)A(1, 2, -1) and B(4,−2,3)B(4, -2, 3), find AB⃗\vec{AB}.

AB⃗=b−a=(4−1)i+(−2−2)j+(3−(−1))k=3i−4j+4k.\vec{AB} = \mathbf{b} - \mathbf{a} = (4 - 1)\mathbf{i} + (-2 - 2)\mathbf{j} + (3 - (-1))\mathbf{k} = 3\mathbf{i} - 4\mathbf{j} + 4\mathbf{k}.

3. The distance between two points

The distance between AA and BB is the magnitude of AB⃗\vec{AB}:

AB=∣AB⃗∣=(x2−x1)2+(y2−y1)2AB = |\vec{AB}| = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

in two dimensions, with a third square for the zz-coordinates in three dimensions. This is the same formula as the distance between two points from coordinate geometry, now written with vectors.

Example 4. Find the distance between A(1,2)A(1, 2) and B(5,7)B(5, 7).

From Example 2, AB⃗=4i+5j\vec{AB} = 4\mathbf{i} + 5\mathbf{j}, so

AB=42+52=16+25=41≈6.40.AB = \sqrt{4^2 + 5^2} = \sqrt{16 + 25} = \sqrt{41} \approx 6.40.

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

From Example 3, AB⃗=3i−4j+4k\vec{AB} = 3\mathbf{i} - 4\mathbf{j} + 4\mathbf{k}, so

AB=32+(−4)2+42=9+16+16=41≈6.40.AB = \sqrt{3^2 + (-4)^2 + 4^2} = \sqrt{9 + 16 + 16} = \sqrt{41} \approx 6.40.

The two distances are equal here, which is a coincidence of these coordinates.

Example 6. Find the distance of P(3,4,12)P(3, 4, 12) from the origin.

The position vector of PP is 3i+4j+12k3\mathbf{i} + 4\mathbf{j} + 12\mathbf{k}, so

OP=32+42+122=9+16+144=169=13.OP = \sqrt{3^2 + 4^2 + 12^2} = \sqrt{9 + 16 + 144} = \sqrt{169} = 13.

4. The midpoint of two points

The midpoint MM of AA and BB has position vector

m=a+b2.\mathbf{m} = \frac{\mathbf{a} + \mathbf{b}}{2}.

This is the average of the two position vectors, taken component by component.

Example 7. Find the midpoint of A(1,2)A(1, 2) and B(5,7)B(5, 7).

m=12((1+5)i+(2+7)j)=12(6i+9j)=3i+92j.\mathbf{m} = \frac{1}{2}\left((1 + 5)\mathbf{i} + (2 + 7)\mathbf{j}\right) = \frac{1}{2}\left(6\mathbf{i} + 9\mathbf{j}\right) = 3\mathbf{i} + \frac{9}{2}\mathbf{j}.

The midpoint is (3,92)\left(3, \frac{9}{2}\right).

Watch out. Three slips are common on this page.

The subtraction in the wrong order. AB⃗=b−a\vec{AB} = \mathbf{b} - \mathbf{a}, not a−b\mathbf{a} - \mathbf{b}. The wrong order gives BA⃗\vec{BA}, which points the opposite way. The distance is unaffected, because squaring removes the signs, but the displacement vector is wrong.

A vector answer to a distance question. The distance is a single number, not a column. Read the question: "find AB⃗\vec{AB}" wants a vector, and "find the distance" wants a magnitude.

The origin left out. A position vector is measured from a stated origin. If the origin changes, the position vectors change, even though the distance between the two points does not. Re-check: for a distance, subtract the coordinates first, then square. Do not add the two position vectors by mistake.

Progress check

Return to the chapter problem. The drone finishes at 10i+3j10\mathbf{i} + 3\mathbf{j} and the walker is at w=13i+7j\mathbf{w} = 13\mathbf{i} + 7\mathbf{j}.

  1. Find the displacement from the drone to the walker.
  2. Find the distance between the drone and the walker.
  3. Find the midpoint of the drone and the walker.

You should now be able to

Settings

Colour scheme

Applies to every book you read here.

Reading theme

Applies to every book you read here.