O Level Maths 4024 · Area 3 · Coordinate geometry

Length and Midpoint

The length of a line segment is found by turning it into the hypotenuse of a right-angled triangle and using Pythagoras' theorem. The midpoint is found by averaging the two x-coordinates and the two y-coordinates separately. Both answers come from the same two numbers: the differences between the coordinates.

Not started

Syllabus coverage

  • Calculate the length of a line segment
  • Find the coordinates of the midpoint of a line segment
  • Use the squared differences in x and y to apply Pythagoras' theorem to two points
  • Give non-exact numerical answers correct to 3 significant figures unless a different accuracy is specified

Part of the O Level Maths syllabus 4024.

-2-1012345678-2-1012345678ABABlength = 534
The segment from A(1,2) to B(4,6) with a dashed run of 3 and rise of 4 meeting at a right angle, giving a length of 5 by Pythagoras' theorem.

Every segment hides a right-angled triangle

Two points on a coordinate grid can always be joined by a straight segment, and that segment is the hypotenuse of a right-angled triangle whose other two sides run parallel to the axes. The horizontal side is the difference between the x-coordinates and the vertical side is the difference between the y-coordinates.

For A(1,2) and B(4,6), the horizontal side runs from x=1 to x=4, a length of 3, and the vertical side runs from y=2 to y=6, a length of 4. The right angle sits at (4,2), the corner where those two sides meet. The segment AB is the hypotenuse, so Pythagoras gives AB2=32+42=25 and AB=5.

Sketching the triangle is not a waste of time. It shows you which corner is the right angle, it makes the two differences visible, and it stops you adding the coordinates instead of subtracting them.

  • Horizontal side =x2−x1
  • Vertical side =y2−y1
  • Hypotenuse =AB, the length you want
  • Right angle at the corner (x2,y1)

The length formula, and why the signs disappear

Squaring the two differences gives the length without any need to worry about which point comes first, because AB=(x2−x1)2+(y2−y1)2. The squares make every contribution positive, so (−3)2 and 32 both give 9. That is why the formula can be used with the points in either order, and why a length is never negative.

The formula is just Pythagoras written in coordinates; there is nothing extra to memorise. If you forget it, sketch the triangle, write the two differences, and square and add them. The examiner awards the method mark for the squared differences, so the working looks the same either way.

A common slip is to square the coordinates rather than the differences. For A(1,2) and B(4,6), 12+22 and 42+62 have nothing to do with the length. Work out the two differences first and only then square them.

Length =(change in x)2+(change in y)2. Subtract first, then square. Squaring the coordinates instead of the differences is the error the formula is designed to prevent.

Working through negative coordinates

Negative coordinates are handled by the same subtraction, provided you keep the brackets. From (−3,5) to (5,−1): the change in x is 5−(−3)=8 and the change in y is −1−5=−6. Then AB2=82+(−6)2=64+36=100, so AB=10.

Notice that the two differences form a 6, 8, 10 triangle, which is a 3, 4, 5 triangle doubled. Recognising a Pythagorean triple saves time and gives you a check: if the differences are 6 and 8, the length must be exactly 10, with no square root left over.

When one point is on an axis, one of the differences is simply the coordinate of the other point. From (0,0) to (2,3), the differences are 2 and 3, so the length is 13. Nothing special is needed; the zero just drops out.

Exact answers and rounded answers

If the sum of the squares is a perfect square, the length is exact and should be written as a whole number, for example 100=10. If it is not, you have a choice: an exact surd such as 13, or a decimal rounded to 3 significant figures, which is 3.61.

A question that says give your answer correct to 1 decimal place, or that works with measured lengths, wants the decimal. A question that says give an exact answer, or that asks for the answer in surd form, wants 13 left alone, simplified if possible: 50=52.

Never write 13=3.61 as though the two were equal. Keep the exact value through any later part of the question and round only at the end, because rounding early is how a final answer drifts out of the accepted range.

DifferencesSum of squaresLengthExact or rounded
3 and 4255exact
8 and 610010exact
2 and 31313≈3.61surd or 3 s.f.
5 and 55052≈7.07surd or 3 s.f.

The midpoint is an average

The midpoint of a segment is the point exactly halfway between the two ends. Halfway in the x-direction means the average of the two x-coordinates; halfway in the y-direction means the average of the two y-coordinates, so M=(x1+x22,y1+y22). For A(1,2) and B(4,6), the midpoint is (1+42,2+62)=(2.5,4). Adding is correct here, unlike in the length formula, because an average adds and then halves.

The two coordinates are averaged separately and never mixed. A frequent wrong answer is (4,2.5) for the pair above, with the coordinates swapped; check that the midpoint lies between the two points in both directions, which catches the swap immediately.

The midpoint formula also works with negative coordinates and with fractions. For (−3,5) and (5,−1) the midpoint is (−3+52,5+(−1)2)=(1,2), which sits halfway along the 6, 8, 10 segment found earlier.

Length subtracts; midpoint averages. Mixing the two routines is the single most common confusion in this topic.

Going backwards: finding a missing endpoint

Questions often give the midpoint and one end and ask for the other. Do not guess: the midpoint is the average, so the sum of the two endpoints is twice the midpoint. If M(3,5) is the midpoint of A(1,2) and B, then 1+xB2=3 gives xB=5, and 2+yB2=5 gives yB=8. So B is (5,8).

The same idea in one line: B=2M−A. Doubling the midpoint and subtracting the known end works for both coordinates at once and is quick to check, because B must be the same distance from M as A is, but on the opposite side.

A sketch helps. Plot the midpoint and the known end, note how far across and up you travelled to reach the midpoint, then continue the same distance again in the same direction to reach the other end.

  • M(3,5), A(1,2) gives B(5,8)
  • M(0,1), A(−4,3) gives B(4,−1)
  • M(2,−1), A(2,5) gives B(2,−7)

Using length to prove a shape property

Length calculations are how you show that a triangle is isosceles or that a quadrilateral has equal sides. Work out the lengths you need, leave them in surd form so that equal lengths are visibly equal, and then say what the equality proves.

For A(1,2), B(5,5) and C(9,2): AB2=42+32=25, so AB=5, and BC2=42+(−3)2=25, so BC=5. Two sides are equal, so the triangle is isosceles. The third side, AC=8, is different, so it is not equilateral.

Comparing squared lengths is enough and avoids square roots altogether. If AB2=BC2 then AB=BC, because lengths are positive. Writing that comparison is faster and less error-prone than writing three surds.

When two lengths have to be compared, compare their squares. It is exact, quick, and avoids rounding two surds that are actually equal.

Where these two skills lead

The midpoint and the length are the two ingredients of the perpendicular bisector of a segment: the bisector passes through the midpoint and is at right angles to the segment. Questions build page by page: find the midpoint, find the gradient of the segment, turn it into the perpendicular gradient, then write the equation of the bisector.

Length also feeds the circle work later, where the distance from a centre to a point is a radius, and the distance between two points is a chord. The calculation never changes; only the name of the segment changes.

In an exam, write the differences, then either square and add them for a length or average them for a midpoint. Two lines of working, one for each coordinate, is enough to earn the method marks even if the final arithmetic slips.

What you are asked forDo thisWatch for
LengthSquare the differences, add, square-rootsigns vanish when squared
MidpointAverage each coordinate separatelydo not swap x and y
Missing endpointB=2M−Adouble before subtracting
Equal sidesCompare squared lengthssay what the equality proves

Key terms you must be able to define

Line segment
The part of a straight line between two named points, such as AB.
Length formula
AB=(x2−x1)2+(y2−y1)2, which is Pythagoras' theorem applied to the two coordinate differences.
Midpoint
The point exactly halfway along a segment, at (x1+x22,y1+y22).
Midpoint formula
Average the x-coordinates and average the y-coordinates, keeping the two averages separate.
Hypotenuse
The longest side of a right-angled triangle, opposite the right angle; here it is the segment whose length you want.
Pythagoras' theorem
a2+b2=c2 for a right-angled triangle with legs a and b and hypotenuse c.
Surd
A square root left in exact form, such as 13 or 52, rather than rounded to a decimal.
Pythagorean triple
Three whole numbers that satisfy Pythagoras' theorem, such as 3, 4, 5 or 6, 8, 10.
Perpendicular bisector
The line through the midpoint of a segment at right angles to it; every point on it is the same distance from both ends.
Isosceles triangle
A triangle with two sides of equal length, which can be proved by calculating both lengths from coordinates.
Exact value
A value written without rounding, such as 50 or 52, rather than 7.07.
Significant figures
The number of meaningful digits in a rounded answer; 3 significant figures is the default for non-exact answers on the calculator paper.

In context

Cambridge sets 4024 in real situations - a recipe, a bank statement, a map, a garden, a graph of a car's journey. These show how the mathematics appears in a question, then you write your own working for the numbers you are given.

Length and midpoint of a simple segment

A(1,2) and B(4,6). Differences: 3 across and 4 up. Length =32+42=25=5. Midpoint =(1+42,2+62)=(2.5,4). The midpoint is exactly halfway along a 3, 4, 5 triangle, which is a good check.

A segment through negative coordinates

(−3,5) and (5,−1). The change in x is 5−(−3)=8 and the change in y is −1−5=−6. Length =64+36=100=10. Midpoint =(−3+52,5−12)=(1,2).

An exact surd answer

(0,0) and (2,3). The differences are 2 and 3, so the length is 4+9=13. That is 3.61 to 3 significant figures. Write the surd if an exact answer is asked for, and the decimal only if the question asks for a rounded one.

Finding the other end from the midpoint

M(3,5) is the midpoint of A(1,2) and B. Using B=2M−A: the x-coordinate is 6−1=5 and the y-coordinate is 10−2=8, so B(5,8). Check: the midpoint of (1,2) and (5,8) is (3,5).

Showing a triangle is isosceles

A(1,2), B(5,5), C(9,2). AB2=42+32=25 and BC2=42+(−3)2=25, so AB=BC=5. AC2=82=64, so the third side is different. Two equal sides make the triangle isosceles, and the base AC is horizontal.

Flashcards

Click a card to flip it. Mark honestly — the tracker uses this.

Q1How do you find the length of a line segment from its endpoints?
(x2−x1)2+(y2−y1)2, which is Pythagoras on the two coordinate differences.
Q2Length of the segment from (1,2) to (4,6)?
32+42=5.
Q3Length of the segment from (−3,5) to (5,−1)?
82+62=10.
Q4Why does the order of the two points not matter in the length formula?
The differences are squared, so a sign change disappears: (−6)2=62.
Q5How do you find the midpoint of a segment?
Average the x-coordinates and average the y-coordinates, separately.
Q6Midpoint of (1,2) and (4,6)?
(2.5,4).
Q7Midpoint of (−3,5) and (5,−1)?
(1,2).
Q8How do you find the other endpoint when you know the midpoint?
B=2M−A: double the midpoint and subtract the known endpoint.
Q9Length from (0,0) to (2,3), exactly?
13, which is about 3.61 to 3 significant figures.
Q10How do you show a triangle is isosceles from coordinates?
Calculate the three squared lengths, show two are equal, and state that the two corresponding sides are equal.
Q11Which routine adds, and which subtracts?
Midpoint adds and halves; length subtracts, squares, adds and square-roots.
Q12What does the midpoint of a segment have to do with its perpendicular bisector?
The perpendicular bisector passes through the midpoint at right angles to the segment.
0 of 12 marked as known

Exam-style questions

7 questions, 20 marks. Write your answer and press Mark my answer — it is marked against the scheme and tells you which points you made and what would gain the next mark. You can still reveal the scheme and mark it yourself instead.

CalculateAO13 marks
Calculate the length of the line segment joining (2,1) and (8,9).
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A110not checked yet
Examiner tip: Subtract the coordinates first, then square. A 6, 8, 10 triangle is a 3, 4, 5 triangle doubled.
StateAO11 mark
State the coordinates of the midpoint of the line segment joining (−4,7) and (6,−3).
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • B1averages each coordinate: (1,2)not checked yet
Examiner tip: Average each coordinate separately. The midpoint must lie between the two points in both directions, which rules out a swap.
CalculateAO13 marks
Calculate the length of the line segment joining (−2,5) and (3,−7).
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A113not checked yet
Examiner tip: The vertical difference is 12 even though the coordinates are small. Subtracting a positive from a negative increases the size of the difference.
DetermineAO23 marks
The midpoint of the line segment joining A(−2,3) and B is M(4,−1). Determine the coordinates of B.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1B(10,−5)not checked yet
Examiner tip: Double the midpoint first, then subtract. Subtracting a negative coordinate adds it.
Show (that)AO23 marks
The points A(1,2), B(5,5) and C(9,2) form a triangle. Show that triangle ABC is isosceles.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1
Examiner tip: Compare squared lengths so the equality is exact. Finish with the sentence that names the two equal sides.
DetermineAO24 marks
The length of the line segment joining (1,2) and (4,k) is 5. Determine the possible values of k.
Give every part of the answer, separated by commas or the word 'or'.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • M1
  • A1k=6 or k=−2not checked yet
Examiner tip: A square root of 16 has two signs, so there are two answers. Give both, in any order.
CalculateAO23 marks
A triangle has vertices at (0,0), (4,0) and (0,3). Calculate the perimeter of the triangle.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A112not checked yet
Examiner tip: Two sides lie on the axes, so their lengths are just the coordinates. Only the hypotenuse needs the formula.

Exam technique for this topic

  • Sketch the two points and the right-angled triangle before calculating. It shows which differences to use and catches a swapped pair of coordinates.
  • Length subtracts and then squares; midpoint adds and then halves. Keep the two routines apart, because using one when the question asks for the other is the commonest error here.
  • Keep an exact surd until the end of a multi-part question. Rounding 13 to 3.61 and then squaring it again introduces an error the examiner can see.
  • Write the midpoint as a coordinate pair with brackets, (2.5,4), not as two separate numbers. The answer box expects a point, and the order of the two coordinates is checked.
  • When a question asks you to show a triangle is isosceles, compare squared lengths and finish with a sentence naming the two equal sides. The lengths alone do not state the conclusion.

Why students lose marks here

A student wroteLength of AB for A(1,2), B(4,6) is 12+22+42+62
Why it loses marksThe coordinates were squared instead of the differences between them. The triangle's sides are 3 and 4, not 1, 2, 4 and 6.
The answer that scores(4−1)2+(6−2)2=9+16=5.
A student wroteMidpoint of A(1,2) and B(4,6) is (5,8)
Why it loses marksThe coordinates were added but not halved. (5,8) is the sum, which is twice the midpoint.
The answer that scores(1+42,2+62)=(2.5,4).
A student wroteMidpoint of A(1,2) and B(4,6) is (4,2.5)
Why it loses marksThe two averages were written in the wrong places. The x-coordinate of the midpoint is the average of the x-coordinates.
The answer that scoresx: 1+42=2.5, y: 2+62=4, so the midpoint is (2.5,4).
A student wrote13=3.61
Why it loses marksThe surd is exact and the decimal is rounded, so they are not equal. Writing them as equal loses accuracy and can cost a mark when the value is used again.
The answer that scores13≈3.61 to 3 significant figures; keep 13 if an exact answer is required.
A student wroteFor A(−3,5) and B(5,−1), the change in x is 5−3=2
Why it loses marksSubtracting −3 adds 3, so the change in x is 8. Losing the minus sign turns a 6, 8, 10 triangle into a much shorter segment.
The answer that scoresChange in x=5−(−3)=8, change in y=−1−5=−6, length =10.

Where this fits in O Level Maths 4024

This page is one topic of Cambridge O Level Maths 4024. O Level Maths 4024 is the course home: every area and every topic in Cambridge's own order, the papers you sit and what each one tests, and the exam-practice tools. The full topic list, with each topic linked to its revision page, is on the O Level Maths 4024 syllabus page.