Syllabus coverage
- Calculate the length of a line segment
- Find the coordinates of the midpoint of a line segment
- Use the squared differences in and 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.
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 -coordinates and the vertical side is the difference between the -coordinates.
For and , the horizontal side runs from to , a length of 3, and the vertical side runs from to , a length of 4. The right angle sits at , the corner where those two sides meet. The segment is the hypotenuse, so Pythagoras gives and .
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
- Vertical side
- Hypotenuse , the length you want
- Right angle at the corner
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 . The squares make every contribution positive, so and 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 and , and have nothing to do with the length. Work out the two differences first and only then square them.
Working through negative coordinates
Negative coordinates are handled by the same subtraction, provided you keep the brackets. From to : the change in is and the change in is . Then , so .
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 to , the differences are 2 and 3, so the length is . 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 . If it is not, you have a choice: an exact surd such as , 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 left alone, simplified if possible: .
Never write 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.
| Differences | Sum of squares | Length | Exact or rounded |
|---|---|---|---|
| 3 and 4 | 25 | exact | |
| 8 and 6 | 100 | exact | |
| 2 and 3 | 13 | surd or 3 s.f. | |
| 5 and 5 | 50 | surd 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 -direction means the average of the two -coordinates; halfway in the -direction means the average of the two -coordinates, so . For and , the midpoint is . 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 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 and the midpoint is , which sits halfway along the 6, 8, 10 segment found earlier.
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 is the midpoint of and , then gives , and gives . So is .
The same idea in one line: . Doubling the midpoint and subtracting the known end works for both coordinates at once and is quick to check, because must be the same distance from as 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.
- , gives
- , gives
- , gives
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 , and : , so , and , so . Two sides are equal, so the triangle is isosceles. The third side, , is different, so it is not equilateral.
Comparing squared lengths is enough and avoids square roots altogether. If then , because lengths are positive. Writing that comparison is faster and less error-prone than writing three surds.
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 for | Do this | Watch for |
|---|---|---|
| Length | Square the differences, add, square-root | signs vanish when squared |
| Midpoint | Average each coordinate separately | do not swap and |
| Missing endpoint | double before subtracting | |
| Equal sides | Compare squared lengths | say 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 .
- Length formula
- , which is Pythagoras' theorem applied to the two coordinate differences.
- Midpoint
- The point exactly halfway along a segment, at .
- Midpoint formula
- Average the -coordinates and average the -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
- for a right-angled triangle with legs and and hypotenuse .
- Surd
- A square root left in exact form, such as or , 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 or , 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.
and . Differences: 3 across and 4 up. Length . Midpoint . The midpoint is exactly halfway along a 3, 4, 5 triangle, which is a good check.
and . The change in is and the change in is . Length . Midpoint .
and . The differences are 2 and 3, so the length is . 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.
is the midpoint of and . Using : the -coordinate is and the -coordinate is , so . Check: the midpoint of and is .
, , . and , so . , so the third side is different. Two equal sides make the triangle isosceles, and the base is horizontal.
Flashcards
Click a card to flip it. Mark honestly — the tracker uses this.
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.
Mark scheme — tick each point you actually made
- M1
- M1
- A1not checked yet
Mark scheme — tick each point you actually made
- B1averages each coordinate: not checked yet
Mark scheme — tick each point you actually made
- M1
- M1
- A1not checked yet
Mark scheme — tick each point you actually made
- M1
- M1
- A1not checked yet
Mark scheme — tick each point you actually made
- M1
- M1
- A1
Mark scheme — tick each point you actually made
- M1
- M1
- M1
- A1 or not checked yet
Mark scheme — tick each point you actually made
- M1
- M1
- A1not checked yet
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 to 3.61 and then squaring it again introduces an error the examiner can see.
- Write the midpoint as a coordinate pair with brackets, , 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
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.