Length and midpoint

Maths · Coordinate geometry. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths topics

The idea

A line segment is the part of a line between two points. Two things are asked about it: how long it is and where its middle is.

For the length, think of the segment as the longest side of a right-angled triangle. The other two sides are the difference in the x-coordinates and the difference in the y-coordinates. Pythagoras' theorem then gives the length.

The midpoint is halfway along, so its coordinates are the averages of the two x-coordinates and of the two y-coordinates. If you know the midpoint and one end, go the same step again to reach the other end.

In simpler words

A line segment is a straight piece between two points. To find how long it is, draw a right-angled triangle under it. One short side is the difference in the x-numbers, the other is the difference in the y-numbers. Then use Pythagoras to find the long side. The midpoint is the middle of the segment, so add the two x-numbers and halve, then add the two y-numbers and halve.

An everyday comparison

Finding the length is like walking between two corners in a city built on a square grid. You can walk 3 blocks east and 4 blocks north, but a helicopter flies straight for 5 blocks, which is what Pythagoras gives. The midpoint is where the helicopter is halfway through its flight. The comparison stops at signs: a city has no negative blocks, so on a grid you must take care with negative coordinates.

Rules to remember

Common mistake

Subtracting for the midpoint or adding for the length. Also, a negative difference becomes positive when squared: (−15)2 = 225, not −225.

In the exam

For the length, write the formula first: √[(x2 − x1)2 + (y2 − y1)2], substitute the coordinates with negatives in brackets, show the two squares and their sum, then the square root to the accuracy asked. For the midpoint, write ((x1 + x2)/2, (y1 + y2)/2), substitute, and give the answer as coordinates in brackets. If asked for the far end from a midpoint, show the doubling step and state the coordinates.

Worked example

A is (−1, 4) and B is (7, −11). Find the midpoint and the length of AB.

  1. Midpoint: ((−1 + 7)/2, (4 + (−11))/2) = (6/2, −7/2) = (3, −3.5).
  2. Differences: 7 − (−1) = 8 and −11 − 4 = −15.
  3. Length = √(82 + (−15)2) = √(64 + 225) = √289 = 17.

Answer: Midpoint (3, −3.5), length 17 units

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← Gradient of linear graphsEquations of linear graphs →Take a Maths test