IB Maths AI HLGeometry ToolkitPaper 1 & 2Midpoint, distance, gradient~8 min read
Coordinate Geometry
Three formulas do almost all the work in 2D coordinate problems: midpoint (average the coordinates), distance (Pythagoras on the gaps), gradient (rise over run). All three are in the formula booklet, so memorising them isn’t the issue — choosing the right one and applying it carefully is.
📘 What you need to know
Midpoint of (x1, y1) and (x2, y2): M = ((x1+x2)/2, (y1+y2)/2) — just average each coordinate.
Distance between the same two points: d = √((x1−x2)2 + (y1−y2)2) — Pythagoras on the horizontal and vertical gaps.
Gradient of the line through them: m = (y2−y1)/(x2−x1) — change in y over change in x.
Order matters for gradient: if you swap which point is “first”, you must swap consistently on top and bottom. Distance and midpoint don’t care.
Line segment notation: [AB] is the segment from A to B; its length is AB or |AB|.
Picture two points A and B on a coordinate grid. Draw the line segment between them, and complete a right-angled triangle by going horizontally then vertically. The horizontal side has length |x2 − x1| (the “run”), the vertical side |y2 − y1| (the “rise”), and the hypotenuse is the distance AB. Pythagoras turns the two side lengths into the distance formula. The gradient is just rise ÷ run with signs preserved. The midpoint sits exactly halfway along the hypotenuse, with coordinates that are the averages of the endpoints’.
A right-angled triangle with run 6 and rise 8 gives hypotenuse 10 by Pythagoras — the (6, 8, 10) Pythagorean triple. The midpoint sits halfway along the hypotenuse.
The three formulas
midpoint: ((x1+x2)/2, (y1+y2)/2) · distance: √((x1−x2)2+(y1−y2)2)
gradient: (y2−y1)/(x2−x1) — rise over run
Reverse problems and collinearity
Many problems flip a formula. Given the midpoint and one endpoint, find the other: set up the midpoint equation in each coordinate and solve. Given the distance and one endpoint plus a constraint (like “on the x-axis”), find the unknown coordinates: square the distance formula to remove the root, then solve. To prove three points are collinear (on a single straight line), compute pairs of gradients and check they’re equal: if the gradients from one point to each of the others match, the points lie on the same line.
Squaring trick for distance: equations involving d are often easier after squaring both sides, since d2 is a polynomial expression with no surds. Just remember d itself is the non-negative root at the end.
🧭 Recipe — coordinate geometry
Identify the formula from the question: midpoint (average), distance (Pythagoras), gradient (rise/run).
Label coordinates: write (x1, y1) and (x2, y2) above the points to avoid sign errors.
Substitute carefully, paying attention to negatives.
Simplify: factor or recognise a Pythagorean triple for a clean answer.
For reverse problems, set up an equation in the unknown and solve.
Worked examples
WE 1
All three formulas on one pair of points
Points C(2, 5) and D(8, −3). Find: (a) the midpoint of [CD]; (b) the distance CD; (c) the gradient of the line through C and D.
The midpoint of [AB] is M(3, −2). Point A has coordinates (−1, 5). Find the coordinates of B.
midpoint equations(−1 + Bx)/2 = 3 ⇒ Bx = 7(5 + By)/2 = −2 ⇒ By = −9B = (7, −9)general rule: B = 2M − A coordinate-wise.
WE 4
Reverse: find a point with given distance
Point R lies on the x-axis. The distance from R to S(2, 3) is 5. Find the possible coordinates of R.
let R = (x, 0); distance equation√((x − 2)² + (0 − 3)²) = 5square both sides(x − 2)² + 9 = 25(x − 2)² = 16x − 2 = ±4 ⇒ x = 6 or x = −2R = (6, 0) or R = (−2, 0)two solutions — both equidistant from S.
WE 5
Collinearity via gradients
Show that the points A(1, 2), B(4, 8), and C(−2, −4) are collinear.
compute each pairwise gradientm(AB) = (8 − 2)/(4 − 1) = 6/3 = 2m(BC) = (−4 − 8)/(−2 − 4) = −12/−6 = 2m(AC) = (−4 − 2)/(−2 − 1) = −6/−3 = 2all gradients equalA, B, C are collinear (common gradient 2)two equal gradients sharing a point is enough — three confirms it.
WE 6
Applied: surveying a field
A surveyor maps a tree T at coordinates (4, 7) and a well W at (16, 2), measured in metres from a corner of the field. Find: (a) the location for a marker post at the midpoint of [TW]; (b) the distance TW; (c) the gradient of the line TW.