chalk

Distance and midpoint in the coordinate plane

You will be able to find the straight-line distance between two points on a map, and the point halfway between them, from their coordinates. You will also find a missing end from the halfway point, and the distance all the way round a triangle.

Core idea

Distance

is the hypotenuse of a right triangle whose legs are the changes and , and is halfway along it.

Look at the figure. To get from to you can go across, then up. Those two legs meet at a right angle. The straight line is the longest side of that right triangle, so Pythagoras gives its length.

The legs are the changes in and in :

Take two pins at and . The legs are and .

So .

The order of the pins does not matter, and neither does a negative leg. Squaring each leg removes the sign.

Midpoint

Back to the pins at and . The halfway point sits halfway across and halfway up. So each of its coordinates is the average of the two ends, which means you add them and halve the sum:

Halving the difference of the coordinates is a common slip. It gives half a leg, which is a length and not a position.

An end from the midpoint

Now say you know the pin at and the halfway point . Read the midpoint rule backwards to find the other pin.

Double the midpoint's coordinate, because . Here that gives .

Then take away the end you know: . That is , the other pin.

Perimeter from the corners

Join the two pins and the corner under them into a triangle. The distance all the way round it is its perimeter.

Two sides run along the grid, so you just count them: across and up. The slanted side needs Pythagoras, and it is .

Add all three sides, and the perimeter is .

Most people add the legs of the pins and get . That is the walk across and then up, and the straight line is only .

Worked example

In the figure, and are two points on the grid. Find the distance , marked .

The dashed legs make a right triangle, and is its longest side. Apply Pythagoras.

the legs are the change in x and the change in y
the legs are 6 across and 8 up; squaring drops the signs
square each leg
add
take the square root

Check: , and are the sides of a right triangle, since . The root comes out whole here because these legs fit together neatly. Most roots do not, and a root left as it is still counts as an exact answer.

Problems

1Basics

Find the -coordinate of the midpoint of the segment joining and .

Hint

Add the two -coordinates, then halve the sum.

Sign in to see the solution
2Easy

Find the distance between and . Give the answer to one decimal place.

Hint

Square each leg and add them, then take the square root with a calculator.

Sign in to see the solution
3Easy

The midpoint of is , and one end is . Find the -coordinate of .

Hint

Double the -coordinate of first.

Sign in to see the solution
4Medium

Triangle has corners , and . Find its perimeter.

Hint

Count the two sides that run along the grid first.

Sign in to see the solution

What's next