HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Vector Geometry
  1. 1Position vectors and directed line segments
  2. 2Expressing vectors in terms of two vectors
  3. 3Reasoning with vectors: parallel lines, collinear points and ratios
  1. Mathematics
  2. /Vector Geometry
  3. /Position vectors and directed line segments

Course 20.3·Lesson 1 of 3

Position vectors and directed line segments

A position vector says where a point is, as a move from the origin. The vector between two points is the end minus the start. The midpoint is the mean of two position vectors. A point that divides a line in a ratio is found with a fraction of the vector along the line.

about 25 min1 simulation1 practice question
Lesson 1 of 3Show all lessonsHide
Vector Geometry
  1. 1Position vectors and directed line segments
  2. 2Expressing vectors in terms of two vectors
  3. 3Reasoning with vectors: parallel lines, collinear points and ratios

Try the code and the simulations beside the lesson.

This lesson and the next two are Extended content.

Where is a point?

A point is a place. You can reach it from the origin OOO by one move. That move is the position vector of the point. If AAA is the point (3,4)(3, 4)(3,4), then

OA→=(34).\displaystyle \overrightarrow{OA} = \dbinom{ 3 }{ 4 }.OA=(43​).

The components of a position vector are the coordinates of the point. We often name a position vector with the small letter of the point: OA→=a\overrightarrow{OA} = \mathbf{a}OA=a and OB→=b\overrightarrow{OB} = \mathbf{b}OB=b.

The vector from A to B

A grid with x from minus 1 to 9 and y from minus 1 to 10. The origin O, the point A(6, 1) and the point B(0, 7) are marked. A blue arrow a runs from O to A and a red arrow b runs from O to B. A green arrow runs from A to B. The midpoint M(3, 4) and the point P(2, 5), two thirds of the way from A to B, are marked on the green arrow.

How do we find AB→\overrightarrow{AB}AB when we know a\mathbf{a}a and b\mathbf{b}b? Travel from AAA to BBB by way of the origin. First go from AAA back to OOO, which is −a-\mathbf{a}−a. Then go from OOO to BBB, which is b\mathbf{b}b.

AB→=AO→+OB→=−a+b=b−a.\displaystyle \overrightarrow{AB} = \overrightarrow{AO} + \overrightarrow{OB} = -\mathbf{a} + \mathbf{b} = \mathbf{b} - \mathbf{a}.AB=AO+OB=−a+b=b−a.

So the vector from AAA to BBB is the position vector of the end minus the position vector of the start. This is the same rule as "end minus start" for coordinates. The picture shows A(6,1)A(6, 1)A(6,1) and B(0,7)B(0, 7)B(0,7): AB→=(0−67−1)=(−66)\overrightarrow{AB} = \dbinom{ 0 - 6 }{ 7 - 1 } = \dbinom{ -6 }{ 6 }AB=(7−10−6​)=(6−6​).

The midpoint

Let MMM be the midpoint of ABABAB. Then AM→=12AB→\overrightarrow{AM} = \tfrac{1}{2}\overrightarrow{AB}AM=21​AB, and

OM→=OA→+12AB→=a+12(b−a)=12(a+b).\displaystyle \overrightarrow{OM} = \overrightarrow{OA} + \tfrac{1}{2}\overrightarrow{AB} = \mathbf{a} + \tfrac{1}{2}(\mathbf{b} - \mathbf{a}) = \tfrac{1}{2}(\mathbf{a} + \mathbf{b}).OM=OA+21​AB=a+21​(b−a)=21​(a+b).

The position vector of the midpoint is the mean of the two position vectors. For A(6,1)A(6, 1)A(6,1) and B(0,7)B(0, 7)B(0,7) it is 12(68)=(34)\tfrac{1}{2}\dbinom{ 6 }{ 8 } = \dbinom{ 3 }{ 4 }21​(86​)=(43​).

A point that divides a line in a ratio

Suppose PPP lies on the line ABABAB and AP:PB=2:1AP : PB = 2 : 1AP:PB=2:1. Then APAPAP is 222 parts out of 333 along the line. So AP→=23AB→\overrightarrow{AP} = \tfrac{2}{3}\overrightarrow{AB}AP=32​AB, and

OP→=a+23(b−a)=13a+23b.\displaystyle \overrightarrow{OP} = \mathbf{a} + \tfrac{2}{3}(\mathbf{b} - \mathbf{a}) = \tfrac{1}{3}\mathbf{a} + \tfrac{2}{3}\mathbf{b}.OP=a+32​(b−a)=31​a+32​b.

For A(6,1)A(6, 1)A(6,1) and B(0,7)B(0, 7)B(0,7) this gives P=13(6,1)+23(0,7)=(2,5)P = \tfrac{1}{3}(6, 1) + \tfrac{2}{3}(0, 7) = (2, 5)P=31​(6,1)+32​(0,7)=(2,5).

In general, if AP:PB=m:nAP : PB = m : nAP:PB=m:n, then AP→=mm+nAB→\overrightarrow{AP} = \dfrac{m}{m + n}\overrightarrow{AB}AP=m+nm​AB. You may have met the section formula with coordinates in the coordinate geometry chapter. This is the same idea, written with vectors.

Do not confuse the two numbers. In AP:PB=2:1AP : PB = 2 : 1AP:PB=2:1 the point PPP is nearer to BBB, because APAPAP is the longer part.

Directed line segments in a diagram

In a diagram, an arrow along a line shows which way a vector goes. A line segment with an arrowhead is a directed line segment. Two arrows are the same vector if they are parallel, equally long and point the same way. If the arrows point opposite ways, one vector is the negative of the other.

When you read a diagram, write down every vector you can see before you start. Mark the ratio on a side, such as "AP:PB=2:1AP : PB = 2 : 1AP:PB=2:1", and turn it into a fraction of the whole side: AP→=23AB→\overrightarrow{AP} = \tfrac{2}{3}\overrightarrow{AB}AP=32​AB.

Practise with new numbers

Try it in Python

The program uses exact fractions. It finds AB→\overrightarrow{AB}AB, the midpoint of ABABAB and the point PPP with AP:PB=2:1AP : PB = 2 : 1AP:PB=2:1. Then it checks that AP→\overrightarrow{AP}AP is twice PB→\overrightarrow{PB}PB.

Read it first. Then run it. How many times longer is AP than PB?

1. Change m, n = 2, 1 to m, n = 1, 3. Predict the point P, then run it.

2. Move B to (9, 2). What is the midpoint now?

Common mistakes

  • Using start minus end. AB→\overrightarrow{AB}AB is b−a\mathbf{b} - \mathbf{a}b−a, not a−b\mathbf{a} - \mathbf{b}a−b.
  • Turning the ratio the wrong way. If AP:PB=2:1AP : PB = 2 : 1AP:PB=2:1, then APAPAP is 23\tfrac{2}{3}32​ of ABABAB, not 13\tfrac{1}{3}31​.
  • Dividing by the wrong total. Parts in the ratio 2:32 : 32:3 make 555 parts. The fraction is 25\tfrac{2}{5}52​.
  • Forgetting to add OA→\overrightarrow{OA}OA. The vector AP→\overrightarrow{AP}AP goes from AAA. To get OP→\overrightarrow{OP}OP, add a\mathbf{a}a.

Remember these

  • OA→=a\overrightarrow{OA} = \mathbf{a}OA=a is the position vector of AAA. Its components are the coordinates of AAA.
  • AB→=b−a\overrightarrow{AB} = \mathbf{b} - \mathbf{a}AB=b−a.
  • The midpoint MMM of ABABAB has OM→=12(a+b)\overrightarrow{OM} = \tfrac{1}{2}(\mathbf{a} + \mathbf{b})OM=21​(a+b).
  • If AP:PB=m:nAP : PB = m : nAP:PB=m:n, then AP→=mm+nAB→\overrightarrow{AP} = \dfrac{m}{m + n}\overrightarrow{AB}AP=m+nm​AB.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. OA→=(25)\overrightarrow{OA} = \dbinom{ 2 }{ 5 }OA=(52​) and OB→=(6−1)\overrightarrow{OB} = \dbinom{ 6 }{ -1 }OB=(−16​). Find AB→\overrightarrow{AB}AB.
  1. Find the position vector of the midpoint of A(−2,3)A(-2, 3)A(−2,3) and B(6,7)B(6, 7)B(6,7).
  1. PPP lies on ABABAB with AP:PB=1:3AP : PB = 1 : 3AP:PB=1:3. Write AP→\overrightarrow{AP}AP as a fraction of AB→\overrightarrow{AB}AB.
  1. Extended. AAA is (0,1)(0, 1)(0,1) and BBB is (12,7)(12, 7)(12,7). PPP lies on ABABAB with AP:PB=1:2AP : PB = 1 : 2AP:PB=1:2. Find PPP.
  1. Extended. The point MMM is the midpoint of ABABAB. OM→=(34)\overrightarrow{OM} = \dbinom{ 3 }{ 4 }OM=(43​) and OA→=(17)\overrightarrow{OA} = \dbinom{ 1 }{ 7 }OA=(71​). Find OB→\overrightarrow{OB}OB.

References

  • Cambridge International, IGCSE Mathematics 0580 syllabus (2025, 2026 and 2027), Extended section 7.4 Vector geometry, parts 1 and 2 (directed line segments and position vectors).

Enroll free in Vector Geometry

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

A kite A and a kite B are flying at positions given from a point O on the ground…Easy · High School (9–10) · by StemPy Lab
A straight fence runs from a post A(-2, 4) to a post B(10, -4) on a plan…Medium · High School (9–10) · by StemPy Lab
Extended. The points A(-1, 7) and B(8, -2) are joined by a straight line…Hard · High School (9–10) · by StemPy Lab
Next: lesson 2Expressing vectors in terms of two vectors
← Vector Geometry
← PreviousExpressing vectors in terms of two vectors →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

Points that divide a linePython Lab · by StemPy Lab