Distance between two points is Pythagoras
The gap between two coordinates is always a right triangle in disguise.
The last lesson gave every point an address. This one asks how far apart two addresses are.
Two points, A and B, on the coordinate plane, joined by a segment. Dashed lines mark the horizontal and vertical gap between them. A live reading gives both gaps, and the distance AB by Pythagoras.
A labelled x and y axis with two draggable points, A and B, joined by a segment. Dashed lines mark the horizontal and vertical legs between them. A live reading gives both points' coordinates, the horizontal and vertical gap, and the distance AB by Pythagoras. This needs JavaScript switched on.
Drag A or B until the two dashed legs are wildly different lengths from each other — the diagonal distance still comes out of the same Pythagorean sum every time.
The straight-line gap between two points, computed this way, is their distance — and the whole method is worth its own name, the distance formula.
Where the right triangle is hiding
The horizontal gap between A and B is just their x-coordinates subtracted; the vertical gap is their y-coordinates subtracted. Those two gaps are exactly the two legs of a right triangle — the same right triangle the dashed lines draw — with AB itself as the hypotenuse. G6.6 already proved a hypotenuse’s square equals the sum of the legs’ squares, so:
Nothing new is being proved here. This is Pythagoras, applied to a triangle whose legs happen to be readable straight off two points’ coordinates, without ever drawing the triangle by hand.
Notice the sign never survives: and are the same number. Distance does not care which point is “first” — AB and BA are always equal.
This is also the one fact every later coordinate lesson leans on for comparing two mapped locations — whether two shapes really are the same size, whether a point sits on a given circle — because a circle is itself defined as every point the same distance from a centre. Coordinates only pay off once distance is something you can calculate from them directly, rather than something you still have to measure by hand.
Trying it on numbers
Find the distance between and .
.
Find the distance between and .
.
Find the distance between and .
.
This lesson counts as done once you get its exercise right. Nothing to tick off by hand.