Geometry · SS 3

Distance between two points

Find the length of a line joining two points (it is Pythagoras on a grid).

  • d = √((x2 − x1)2 + (y2 − y1)2)

What the letters mean

(x1, y1), (x2, y2)
the two points

Worked example

Find the distance between (1, 2) and (4, 6).

  1. Step 1: Differences

    x: 4 − 1 = 3, y: 6 − 2 = 4

  2. Step 2: Pythagoras

    d = √(32 + 42) = √25 = 5

Final answer: 5 units

When to use it

Use it when a question asks for the length of a line segment between two coordinate points, the radius of a circle from its centre and a point, or whether a triangle drawn on a grid is isosceles. Do not use it when the points are not given as coordinates; then use ordinary measurement or Pythagoras directly.

Why it works

Plot the two points and draw a horizontal line from one and a vertical line from the other until they meet. You now have a right-angled triangle. The horizontal side is x2 − x1, the vertical side is y2 − y1, and the line joining the points is the hypotenuse. Pythagoras gives d2 = (x2 − x1)2 + (y2 − y1)2, so take the square root.

Try it yourself

Find the distance between A(−3, 1) and B(3, 9).

Try it first, then show the solution
  1. Change in x: 3 − (−3) = 6.
  2. Change in y: 9 − 1 = 8.
  3. d = √(62 + 82) = √(36 + 64).
  4. d = √100 = 10.

Answer: 10 units

See it

Play with this picture from the Gradient, Distance and Midpoint lesson.

-6-6-5-5-4-4-3-3-2-2-1-1112233445566xyP(0, 0)

Your task: plot the point (3, -2)

Drag P. Remember: x first (across), then y (up or down).

Common mistakes

  • Thinking a negative difference gives a negative square. (−6)2 = 36, never −36, so the order of the points does not change the answer.
  • Adding the differences and stopping, e.g. 6 + 8 = 14. The straight line is shorter than going across and then up; you must square, add and square root.

In BECE and WASSCE

WASSCE coordinate geometry often asks for the length of a line, sometimes leaving the answer as a surd like √52 or to a stated number of decimal places. It also appears as a step in finding perimeters of shapes drawn on the Cartesian plane. Read the instruction on rounding carefully.

Questions students ask

Does it matter which point I call the first point?

No. Swapping the points only changes the sign of each difference, and squaring removes the sign. From A to B or from B to A, the distance is the same.

What if the answer is not a whole number?

Many distances are not whole. For (0, 0) to (2, 3), d = √13. Leave it as √13 if the question allows a surd, or use a calculator or tables to give 3.61 to 2 d.p. if asked.