Mathematics
Distance between two points
Two pairs of numbers are enough: a hidden triangle gives you the straight-line distance and the midpoint as well.
Two friends live in the same city: one at the corner , the other at . How far apart are the two flats as the crow flies? On a city map you could measure the line with a ruler, but there is a more precise way: the two pairs of numbers alone are enough to work out the distance exactly. All you need are two differences and Pythagoras' theorem.
The hidden triangle
Join the two points with a straight segment. Then draw a horizontal line to the right starting at and a vertical line downwards starting at . The two meet at , and together with your segment they form a right triangle. The two sides at the right angle are called the legs, the side opposite it is the , and that hypotenuse is exactly your segment. The horizontal leg is as long as the difference of the x-values: . The vertical leg is the difference of the y-values: . That reduces the task to something you already know: , so the segment is squares long.
Signs do not matter
What if the second point lies to the left of or below the first one? Then one difference turns negative, but that does no harm: a leg length is never negative, only the size of the difference counts, and squaring removes the minus sign anyway. For and we get and , so the legs are 5 and 4 squares long. Squared that gives , so the distance is , roughly 6.4 squares. As you can see, not every distance is a tidy number, often a root remains and you round it.
The midpoint of a segment
Often you want to know not just how far apart two points are, but also where exactly the middle between them lies: a fair meeting spot for two friends, the centre of a bridge, the middle of a playing field. That is even easier than the distance, because no root is needed here. You take the average of each coordinate separately, that is the sum of the two values divided by 2. For and the x-coordinate of the middle is and the y-coordinate is . So the midpoint is .
Exercises
0 of 6 solvedTime to try it yourself. You can't break anything, every attempt counts.
You want to work out the distance between two points. What are the two legs of the helper triangle?
How far is the point from the origin ? Give the distance in squares.
How far apart are the points and ? Give the distance in squares.
Each coordinate of the midpoint of a segment is the … of the two matching end coordinates.
Which expression gives the distance between the points and ?
Put the steps in the correct order to calculate the distance between two points.
- 1Form the difference of the x-values and of the y-values
- 2Take the square root of the sum
- 3Add the two squares
- 4Square both differences