Geometry · The foundations of geometry
Midpoint and distance in coordinates
Two formulas — and one of them is Pythagoras in disguise.
Add the coordinates, or subtract them?
Both the midpoint of a segment and its length start from the same four numbers, (2, 3) and (8, 11). One calculation adds them and the other subtracts — and anyone who mixes them up can catch it at once, if they know where the answer has to land.
On a coordinate grid, both the midpoint of a segment and its length can be computed directly. The two formulas look similar and do quite different things, which is exactly why they get confused.
M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right) \qquad d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}
Two worked examples
Example 1 — the midpoint is an average
- From (2, 3) to (8, 11).
- Average the x values.
\frac{2 + 8}{2} = 5 - Average the y values.
\frac{3 + 11}{2} = 7 - So the midpoint is (5, 7).
Example 2 — the distance is a difference
- The same two points.
- Subtract the x values.
8 - 2 = 6 - Subtract the y values.
11 - 3 = 8 - Then Pythagoras.
\sqrt{36 + 64} = 10 - One formula adds and halves; the other subtracts and squares.