Coordinate geometry · Lesson 1 of 3

Points, distance and midpoint

The distance between two points by Pythagoras, the midpoint as the average of the coordinates, finding a missing end point from the midpoint, and an unknown coordinate from a distance.

14 minYou should already know: Linear & simultaneous equations
  1. 1
  2. 2
  3. 3

A point in the plane is written (x,y)(x, y): xx is how far across from the origin and yy is how far up. Two formulas answer a lot of questions about two points A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2).

The distance ABAB is the hypotenuse of a right-angled triangle whose other sides are the difference in xx and the difference in yy. So by Pythagoras:

AB=(x2−x1)2+(y2−y1)2AB = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

The midpoint MM of ABAB is halfway along. Its coordinates are the averages of the coordinates of AA and BB:

M=(x1+x22, y1+y22)M = \left(\frac{x_1 + x_2}{2},\ \frac{y_1 + y_2}{2}\right)
xyABx₂ − x₁y₂ − y₁
DistanceAB² = (x₂ − x₁)² + (y₂ − y₁)²
xyABM
MidpointM = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)

Try it

Two pointsDrag the gold points
−6−5−4−3−2−1123456−5−4−3−2−112345xy64A(−3, −2)B(3, 2)
6across, x₂ − x₁4up, y₂ − y₁√52 = 2√13 ≈ 7.21AB = √(across² + up²)
The distance is the hypotenuse of a right-angled triangle: 6 across and 4 up. By Pythagoras, AB = √(6² + 4²) = √52. Squaring makes the signs not matter.

Drag AA and BB. In “Distance” the triangle under ABAB shows the two differences; however you place the points, AB2AB^2 is the sum of their squares. In “Midpoint”, MM always sits at the average of the two xx‘s and the two yy‘s.

Working backwards

Often the midpoint is given and one end is missing. Write the midpoint formula for each coordinate and solve. A quick way: the missing end is as far beyond MM as the given end is before it, so x2=2xM−x1x_2 = 2x_M - x_1.

When a distance is given and a coordinate is unknown, put the unknown into the distance formula and solve. Squaring gives two answers, and often both are allowed.

Worked example · WAEC 2021

WAEC 2021 · Paper 2 · Q12 (b)

The coordinates of two points PP and QQ in a plane are (7,3)(7, 3) and (5,x)(5, x) respectively, where xx is a real number. If ∣PQ∣=29|PQ| = \sqrt{29} units, find the values of xx.

  1. Write the distance formula

    ∣PQ∣2=(7−5)2+(3−x)2=29|PQ|^2 = (7 - 5)^2 + (3 - x)^2 = 29.

    Think first. Put P(7, 3) and Q(5, x) into the formula, squared.

  2. Simplify

    4+(3−x)2=294 + (3 - x)^2 = 29, so (3−x)2=25(3 - x)^2 = 25.

    Think first. What is (7 − 5)²? Move it across.

  3. Take the square root

    3−x=53 - x = 5 or 3−x=−53 - x = -5, so x=−2x = -2 or x=8x = 8. Both points are 29\sqrt{29} from PP.

    Think first. How many numbers square to 25?

Your turn

WAEC 2021 · Paper 1 · Q41

Let XY‾\overline{XY} be a line segment with X(−8,−12)X(-8, -12) and Y(p,q)Y(p, q). If the midpoint of XY‾\overline{XY} is (−4,−2)(-4, -2), find the coordinates of YY.

Worked solution (try it first)
  1. The midpoint is the average of the ends, so each coordinate of YY is twice the midpoint's minus XX's.
  2. p=2(−4)−(−8)=−8+8=0p = 2(-4) - (-8) = -8 + 8 = 0.
  3. q=2(−2)−(−12)=−4+12=8q = 2(-2) - (-12) = -4 + 12 = 8.
  4. So Y=(0,8)Y = (0, 8), option B.

Report a problem with this question

More past questions like this