Distance and midpoint: calculating with coordinates
Ages 14–16GCSE (G20a)
What you will learn
Between two points there is usually a hidden right-angled triangle. With it you work out the distance between the points without measuring. You also find the midpoint of a line segment.
Think first: what is left of the triangle when A and B are at the same height? How do you find the distance then? Then check: drag B to the height of A.
From A(−2, −1) to B(2, 2): the horizontal leg has length 4 and the vertical leg has length 3. The distance is 5, and the midpoint is M(0, 0.5).
The hidden triangle
At the same height there is no triangle: the distance is how far apart the -coordinates are. One directly above the other, the -coordinates count instead.
Otherwise the horizontal path from A and the vertical path to B are the legs. Their lengths are the differences and ; if one is negative, drop the minus sign. The distance is the hypotenuse:
The horizontal leg is as long as the -coordinates are apart; the other leg is as long as the -coordinates are apart.
Self-check
Between and lies a right-angled triangle. How long is its horizontal leg?
Show the solution
. If you work out , you have lost the minus sign. And is the other leg: how far apart the -coordinates are.
Example 1
How far apart are the points and ?
- 01
Work out the difference in the -coordinates: the horizontal leg.
- 02
Work out the difference in the -coordinates: the second leg.
- 03
Substitute both into the formula for the distance and square them.
- 04
Add the squares and take the square root.
The distance is units. Check: is longer than each of the two legs and shorter than the detour along both, .
Self-check
What is the distance between the points and ?
Show the solution
and . So .
The midpoint
The midpoint of a segment lies exactly halfway between the endpoints, in the -direction and in the -direction. The number halfway between two numbers is their mean: add them and halve the sum.
On the -axis, is halfway between and ; on the -axis, is halfway between and .
Example 2
Find the midpoint of the segment from to .
- 01
Add the two -coordinates and halve the sum.
- 02
Add the two -coordinates and halve the sum.
- 03
Write the two numbers as a point.
The midpoint is . Check: from A to M it is to the right and down, and from M to B exactly the same again.
Self-check
The segment from to has the midpoint . What is the -coordinate of ?
Show the solution
. The whole midpoint is , because .
For teachers: a lesson plan (45 min)
- 5 min
Starter
First ask without the simulation: how far apart are and , and why is that easy? What changes when the second point lies higher? Then open the simulation with ‘Full screen’: someone drags B to the height of A and then away again at a slant.
- 10 min
The hidden triangle
The figure with the two curly brackets: where do the two calculations at the axes come from? How long would the horizontal leg be if A were at ? Then the first self-check.
- 10 min
Distance
Reveal Example 1 step by step together. Pupils do the second self-check on their own. Anyone who finishes early swaps A and B in their calculation: what changes, and what stays the same?
- 15 min
Midpoint
The figure with the green dot M: where would M be if B were two squares lower? Discuss the ‘Watch out’ box. Let pupils try Example 2 on their own first, then reveal it and compare. Then the third self-check.
- 5 min
Plenary
Read the ‘Remember’ box together. Ask: why do you get the same distance when you swap A and B?
What you need first
Got an exercise on paper?
Take a photo of it and Math Explainer turns it into an explainer video with every step of the solution.