Skip to content

Position vectors, distance and dividing a line segment

Reviewed

A position vector locates a point relative to a fixed origin. This turns geometric questions about points, distances and line segments into vector calculations.

The central fact is simple but easy to reverse:

AB=OBOA.\boxed{\overrightarrow{AB}=\overrightarrow{OB}-\overrightarrow{OA}.}

In words, the vector from AA to BB is end minus start.

You should be able to:

  • add, subtract and multiply vectors by scalars
  • find a vector’s magnitude using Pythagoras’ theorem
  • work confidently with fractions and ratios
  • use coordinates in two and three dimensions

Review vector arithmetic or magnitude and direction if needed.

Let OO be the origin and let AA have coordinates (3,2)(3,-2). The position vector of AA is the vector from OO to AA:

OA=(32).\overrightarrow{OA}=\begin{pmatrix}3\\-2\end{pmatrix}.

Position vectors are often represented by lower case bold letters:

a=OA,b=OB.\mathbf a=\overrightarrow{OA},\qquad \mathbf b=\overrightarrow{OB}.

So if A(3,2)A(3,-2) and B(1,5)B(-1,5), then

a=(32),b=(15).\mathbf a=\begin{pmatrix}3\\-2\end{pmatrix}, \qquad \mathbf b=\begin{pmatrix}-1\\5\end{pmatrix}.

Coordinates describe a point; a position vector describes the displacement from the origin to that point. Their components have the same numbers, but the objects are conceptually different.

In three dimensions, P(2,4,7)P(2,-4,7) has position vector

OP=(247).\overrightarrow{OP}=\begin{pmatrix}2\\-4\\7\end{pmatrix}.

Travelling from OO to BB directly has the same overall effect as travelling first from OO to AA, then from AA to BB:

OB=OA+AB.\overrightarrow{OB}=\overrightarrow{OA}+\overrightarrow{AB}.

Therefore

AB=OBOA=ba.\boxed{\overrightarrow{AB}=\overrightarrow{OB}-\overrightarrow{OA}=\mathbf b-\mathbf a.}

This derivation is safer than memorising an unexplained subtraction rule.

Let A(2,4)A(-2,4) and B(5,1)B(5,1). Find AB\overrightarrow{AB} and BA\overrightarrow{BA}.

For AA to BB, subtract the position vector of the start from that of the end:

AB=(51)(24)=(73).\overrightarrow{AB} =\begin{pmatrix}5\\1\end{pmatrix} -\begin{pmatrix}-2\\4\end{pmatrix} =\begin{pmatrix}7\\-3\end{pmatrix}.

Reversing the journey reverses every component:

BA=(24)(51)=(73)=AB.\overrightarrow{BA} =\begin{pmatrix}-2\\4\end{pmatrix} -\begin{pmatrix}5\\1\end{pmatrix} =\begin{pmatrix}-7\\3\end{pmatrix} =-\overrightarrow{AB}.

Point AA has position vector (412)\begin{pmatrix}4\\-1\\2\end{pmatrix} and

AB=(354).\overrightarrow{AB}=\begin{pmatrix}-3\\5\\4\end{pmatrix}.

Find the coordinates of BB.

Since OB=OA+AB\overrightarrow{OB}=\overrightarrow{OA}+\overrightarrow{AB},

OB=(412)+(354)=(146).\overrightarrow{OB} =\begin{pmatrix}4\\-1\\2\end{pmatrix} +\begin{pmatrix}-3\\5\\4\end{pmatrix} =\begin{pmatrix}1\\4\\6\end{pmatrix}.

Hence B(1,4,6)\boxed{B(1,4,6)}.

Distance is the magnitude of the displacement vector:

AB=AB=ba.\boxed{AB=\left|\overrightarrow{AB}\right|=|\mathbf b-\mathbf a|.}

For A(x1,y1)A(x_1,y_1) and B(x2,y2)B(x_2,y_2),

AB=(x2x1)2+(y2y1)2.\boxed{AB=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}.}

For A(x1,y1,z1)A(x_1,y_1,z_1) and B(x2,y2,z2)B(x_2,y_2,z_2),

AB=(x2x1)2+(y2y1)2+(z2z1)2.\boxed{AB=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}.}

The formula is Pythagoras’ theorem applied to the perpendicular component changes. Unlike AB\overrightarrow{AB}, the distance ABAB is a non-negative scalar and has no direction.

Find the distance between P(1,2,3)P(-1,2,3) and Q(3,1,9)Q(3,-1,9).

First find the displacement:

PQ=(3(1)1293)=(436).\overrightarrow{PQ} =\begin{pmatrix}3-(-1)\\-1-2\\9-3\end{pmatrix} =\begin{pmatrix}4\\-3\\6\end{pmatrix}.

Then find its magnitude:

PQ=42+(3)2+62=16+9+36=61.PQ=\sqrt{4^2+(-3)^2+6^2} =\sqrt{16+9+36} =\boxed{\sqrt{61}}.

Do not simplify 61\sqrt{61} to a decimal unless the question asks for an approximation.

If MM is the midpoint of ABAB, then it lies halfway from AA to BB:

OM=OA+12AB=a+12(ba)=a+b2.\overrightarrow{OM} =\overrightarrow{OA}+\frac12\overrightarrow{AB} =\mathbf a+\frac12(\mathbf b-\mathbf a) =\boxed{\frac{\mathbf a+\mathbf b}{2}}.

Thus the midpoint is found by averaging corresponding coordinates.

Example 4: midpoint and a missing endpoint

Section titled “Example 4: midpoint and a missing endpoint”

AA has position vector a=(25)\mathbf a=\begin{pmatrix}-2\\5\end{pmatrix} and the midpoint MM of ABAB has position vector m=(41)\mathbf m=\begin{pmatrix}4\\1\end{pmatrix}. Find b\mathbf b.

Use

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

Rearranging gives b=2ma\mathbf b=2\mathbf m-\mathbf a, so

b=2(41)(25)=(103).\mathbf b =2\begin{pmatrix}4\\1\end{pmatrix} -\begin{pmatrix}-2\\5\end{pmatrix} =\begin{pmatrix}10\\-3\end{pmatrix}.

Check by averaging (2,5)(-2,5) and (10,3)(10,-3): the result is (4,1)(4,1).

Suppose PP divides ABAB internally in the ratio

AP:PB=m:n.AP:PB=m:n.

The whole segment contains m+nm+n equal parts, and PP is m/(m+n)m/(m+n) of the way from AA to BB. Therefore

p=a+mm+n(ba)=na+mbm+n.\begin{aligned} \mathbf p &=\mathbf a+\frac{m}{m+n}(\mathbf b-\mathbf a)\\ &=\boxed{\frac{n\mathbf a+m\mathbf b}{m+n}}. \end{aligned}

Notice the apparently crossed coefficients: a\mathbf a is multiplied by nn, while b\mathbf b is multiplied by mm. The journey form

p=a+mm+n(ba)\boxed{\mathbf p=\mathbf a+\frac{m}{m+n}(\mathbf b-\mathbf a)}

is often easier to reconstruct and less prone to errors.

AA and BB have position vectors

a=(12),b=(118).\mathbf a=\begin{pmatrix}1\\-2\end{pmatrix}, \qquad \mathbf b=\begin{pmatrix}11\\8\end{pmatrix}.

Point PP lies on ABAB such that AP:PB=2:3AP:PB=2:3. Find p\mathbf p.

PP is 2/(2+3)=2/52/(2+3)=2/5 of the way from AA to BB:

p=a+25(ba)=(12)+25(1010)=(52).\begin{aligned} \mathbf p &=\mathbf a+\frac25(\mathbf b-\mathbf a)\\ &=\begin{pmatrix}1\\-2\end{pmatrix} +\frac25\begin{pmatrix}10\\10\end{pmatrix}\\ &=\boxed{\begin{pmatrix}5\\2\end{pmatrix}}. \end{aligned}

Check the ratio:

AP=(44),PB=(66).\overrightarrow{AP}=\begin{pmatrix}4\\4\end{pmatrix}, \qquad \overrightarrow{PB}=\begin{pmatrix}6\\6\end{pmatrix}.

Since AP=23PB\overrightarrow{AP}=\frac23\overrightarrow{PB}, their lengths are in the ratio 2:32:3 and the directions agree.

P(4,7)P(4,7) divides ABAB in the ratio AP:PB=1:2AP:PB=1:2, and A(2,3)A(-2,3). Find BB.

Here

p=2a+b3.\mathbf p=\frac{2\mathbf a+\mathbf b}{3}.

Therefore

b=3p2a=3(47)2(23)=(1615).\mathbf b=3\mathbf p-2\mathbf a =3\begin{pmatrix}4\\7\end{pmatrix} -2\begin{pmatrix}-2\\3\end{pmatrix} =\boxed{\begin{pmatrix}16\\15\end{pmatrix}}.

Indeed, AP=(6,4)\overrightarrow{AP}=(6,4) and PB=(12,8)=2AP\overrightarrow{PB}=(12,8)=2\overrightarrow{AP}.

Points are collinear if they lie on one straight line. To prove that AA, BB and CC are collinear, show that two displacement vectors from a common point are scalar multiples:

AC=λAB\boxed{\overrightarrow{AC}=\lambda\overrightarrow{AB}}

for some real scalar λ\lambda.

This establishes parallel direction. Because both vectors begin at AA, it also establishes that BB and CC lie on the same line through AA.

Example 7: prove collinearity and determine order

Section titled “Example 7: prove collinearity and determine order”

Let

A(1,1,2),B(3,2,0),C(7,8,4).A(1,-1,2),\qquad B(3,2,0),\qquad C(7,8,-4).

Then

AB=(232)\overrightarrow{AB} =\begin{pmatrix}2\\3\\-2\end{pmatrix}

and

AC=(696)=3(232)=3AB.\overrightarrow{AC} =\begin{pmatrix}6\\9\\-6\end{pmatrix} =3\begin{pmatrix}2\\3\\-2\end{pmatrix} =3\overrightarrow{AB}.

Therefore AA, BB and CC are collinear. Since the multiplier 33 is greater than 11, BB lies between AA and CC. Also AB:BC=1:2AB:BC=1:2 because

BC=ACAB=2AB.\overrightarrow{BC}=\overrightarrow{AC}-\overrightarrow{AB}=2\overrightarrow{AB}.

A negative multiplier would place the two endpoints on opposite sides of the common point. Merely obtaining equal vector magnitudes is not enough: equal lengths do not prove equal or parallel directions.

Example 8: determine an unknown coordinate

Section titled “Example 8: determine an unknown coordinate”

Points A(2,1)A(2,-1), B(6,5)B(6,5) and C(k,11)C(k,11) are collinear. Find kk.

Calculate vectors from AA:

AB=(46),AC=(k212).\overrightarrow{AB}=\begin{pmatrix}4\\6\end{pmatrix}, \qquad \overrightarrow{AC}=\begin{pmatrix}k-2\\12\end{pmatrix}.

For collinearity, AC=λAB\overrightarrow{AC}=\lambda\overrightarrow{AB}. The second components give

12=6λλ=2.12=6\lambda\quad\Rightarrow\quad\lambda=2.

The first components then give

k2=2(4)=8,k-2=2(4)=8,

so k=10\boxed{k=10}.

  • Reversing the subtraction: AB=ba\overrightarrow{AB}=\mathbf b-\mathbf a, not ab\mathbf a-\mathbf b.
  • Confusing a point with a vector: write A(2,3)A(2,3) but OA=(23)\overrightarrow{OA}=\begin{pmatrix}2\\3\end{pmatrix}.
  • Confusing distance with displacement: ABAB is a scalar; AB\overrightarrow{AB} is a vector.
  • Using the wrong fraction in a ratio: if AP:PB=2:3AP:PB=2:3, then PP is 2/52/5 of the way from AA to BB, not 2/32/3.
  • Claiming collinearity from proportional lengths: the vectors themselves must be scalar multiples, with all corresponding components in the same ratio.
  • Rounding too early: keep exact roots and fractions until the final line unless an approximation is required.
  1. A(3,2)A(-3,2) and B(4,6)B(4,-6). Find AB\overrightarrow{AB} and ABAB.
  2. P(1,2,4)P(1,-2,4) and Q(5,1,2)Q(5,1,-2). Find the midpoint of PQPQ.
  3. RR divides ABAB internally in the ratio AR:RB=3:1AR:RB=3:1, where a=(24)\mathbf a=\begin{pmatrix}-2\\4\end{pmatrix} and b=(68)\mathbf b=\begin{pmatrix}6\\-8\end{pmatrix}. Find r\mathbf r.
  4. Show that A(1,2)A(-1,2), B(2,8)B(2,8) and C(4,12)C(4,12) are collinear. Which point lies between the other two?
  5. Point M(3,5)M(3,5) is the midpoint of A(4,1)A(-4,1) and BB. Find BB.
Answers
  1. AB=(78)\overrightarrow{AB}=\begin{pmatrix}7\\-8\end{pmatrix} and AB=72+(8)2=113AB=\sqrt{7^2+(-8)^2}=\sqrt{113}.
  2. The midpoint is (1+52,2+12,4+(2)2)=(3,12,1)\left(\frac{1+5}{2},\frac{-2+1}{2},\frac{4+(-2)}{2}\right)=\left(3,-\frac12,1\right).
  3. r=a+34(ba)=(45)\mathbf r=\mathbf a+\frac34(\mathbf b-\mathbf a)=\begin{pmatrix}4\\-5\end{pmatrix}.
  4. AB=(36)\overrightarrow{AB}=\begin{pmatrix}3\\6\end{pmatrix} and AC=(510)=53AB\overrightarrow{AC}=\begin{pmatrix}5\\10\end{pmatrix}=\frac53\overrightarrow{AB}, so the points are collinear. Since 1<5/31<5/3, BB lies between AA and CC.
  5. b=2ma=(109)\mathbf b=2\mathbf m-\mathbf a=\begin{pmatrix}10\\9\end{pmatrix}, so B(10,9)B(10,9).

You can now translate between points, position vectors and displacements, calculate distances, divide segments in a given ratio, and prove collinearity.

Next, study vectors in modelling to use these ideas in geometric and physical contexts. For equations and intersections of coordinate lines, revisit straight lines in coordinate geometry.