IB Maths AA HL
Topic 3 โ Geometry & Trigonometry
Paper 1 & 2
~6 min read
Coordinate Geometry
Coordinate geometry is the toolkit that links algebra and the plane. Three formulas do almost all the work: the midpoint of a line segment, the distance between two points, and the gradient of the line joining them. They appear constantly throughout the IB course โ in trigonometry, vectors, calculus, and modelling โ so getting the basics fast and accurate pays dividends everywhere.
๐ What you need to know
- Midpoint: the middle point of the segment joining (x1, y1) and (x2, y2) is the average of the coordinates.
- Distance: the length of [AB] comes from Pythagoras applied to the differences x2 โ x1 and y2 โ y1.
- Gradient: rise over run โ the change in y divided by the change in x.
- Notation: [AB] denotes the line segment between A and B.
- All three formulas are in the formula booklet: midpoint and distance under “prior learning”; gradient under “functions”.
- Order doesn’t matter for distance: differences are squared, so the sign cancels. Order does matter for gradient โ keep both subscripts consistent.
- Perpendicular lines: gradients multiply to โ1. Parallel lines: gradients are equal.
- Use diagrams: a quick sketch catches sign errors and tells you which formula to reach for.
Midpoint of two points
The midpoint sits exactly halfway along the segment joining two points โ equidistant from both ends. Each coordinate is just the average of the two coordinates of the same name.
Midpoint formula
M = ( x1 + x22 , y1 + y22 )
That’s it โ average the x‘s, average the y‘s. The order of the points makes no difference, since addition is commutative.
Reverse use: if you know the midpoint and one endpoint, you can solve for the other endpoint by rearranging. For midpoint M(mx, my) and known endpoint P, the other endpoint is Q = (2mx โ Px, 2my โ Py).
Distance between two points
The distance is the length of the line segment joining the points. Drop a horizontal and vertical from each point and you get a right-angled triangle whose hypotenuse is the segment โ Pythagoras finishes the job.
Distance formula
d = โ( (x1 โ x2)2 + (y1 โ y2)2 )
The differences are squared, so it doesn’t matter which point you call (x1, y1) โ negative differences become positive squares. Always take the positive square root: distance is non-negative.
If you forget the formula, redraw the triangle: horizontal leg = |ฮx|, vertical leg = |ฮy|, hypotenuse = distance. The formula is just Pythagoras.
Gradient between two points
The gradient measures the steepness โ how much the y-value rises (or falls) per unit increase in x.
Gradient formula
m = y2 โ y1x2 โ x1
Order matters here in one specific way: the first y on the numerator must come from the same point as the first x on the denominator. You can swap both rows simultaneously and get the same answer, but mixing them up flips the sign.
Parallel lines
m1 = m2
same gradient, different intercepts
Perpendicular lines
m1 ยท m2 = โ1
gradients are negative reciprocals
๐งญ Recipe โ coordinate geometry workflow
- Label the points clearly: write (x1, y1) above the first point and (x2, y2) above the second.
- Pick the right formula: midpoint for “halfway”, distance for “length” or “how far”, gradient for “slope” or “steepness”.
- Substitute carefully: keep negatives in brackets to avoid sign slips โ (x2) โ (x1), not x2 โ x1 with signs floating.
- Simplify: leave fractions in lowest terms; leave surds exact unless asked for a decimal.
- Sanity check with a sketch: does the gradient sign match the line’s direction? Does the midpoint sit visually between the two endpoints?
Worked examples
WE 1Distance between two points
Find the distance between P(1, 7) and Q(4, 11).
Step 1: Label the coordinates
(xโ, yโ) = (1, 7); (xโ, yโ) = (4, 11)
Step 2: Substitute into d = โ((xโโxโ)ยฒ + (yโโyโ)ยฒ)
d = โ((1โ4)ยฒ + (7โ11)ยฒ)
d = โ((โ3)ยฒ + (โ4)ยฒ) = โ(9 + 16)
d = โ25 = 5
d = 5 units
a 3-4-5 triangle hidden in the differences โ clean exact answer
WE 2Gradient of a line through two points
Find the gradient of the line passing through M(โ2, 8) and N(6, โ4).
Step 1: Label coordinates
(xโ, yโ) = (โ2, 8); (xโ, yโ) = (6, โ4)
Step 2: Substitute into m = (yโโyโ)/(xโโxโ)
m = (โ4 โ 8)/(6 โ (โ2))
m = โ12/8
simplify: divide top and bottom by 4
m = โ3/2
negative gradient โ line slopes downward from left to right, which matches: y went from 8 down to โ4 as x increased
WE 3Midpoint of a line segment
Find the midpoint of the line segment joining C(7, โ3) and D(โ1, 9).
Step 1: Apply midpoint formula
M = ((xโ+xโ)/2, (yโ+yโ)/2)
Step 2: Substitute
M = ((7 + (โ1))/2, (โ3 + 9)/2)
M = (6/2, 6/2)
M = (3, 3)
a quick sketch confirms (3, 3) sits visually halfway between (7, โ3) and (โ1, 9)
WE 4Distance, gradient, and midpoint together
For the points E(2, 5) and F(8, โ3), find (a) the length of [EF], (b) the gradient of the line EF, and (c) the midpoint of [EF].
(a) Distance
d = โ((2โ8)ยฒ + (5โ(โ3))ยฒ)
d = โ((โ6)ยฒ + 8ยฒ) = โ(36 + 64)
d = โ100 = 10
|EF| = 10 units
(b) Gradient
m = (โ3 โ 5)/(8 โ 2) = โ8/6
m = โ4/3
(c) Midpoint
M = ((2+8)/2, (5+(โ3))/2) = (10/2, 2/2)
M = (5, 1)
another clean Pythagorean triple โ 6, 8, 10 โ hiding behind the coordinates
WE 5Find an unknown endpoint from the midpoint
The midpoint of [PQ] is M(2, 4) and one endpoint is P(โ3, 1). Find the coordinates of the other endpoint Q.
Step 1: Set up the midpoint equations
((โ3 + Qx)/2, (1 + Qy)/2) = (2, 4)
Step 2: Solve for Qx
(โ3 + Qx)/2 = 2 โ โ3 + Qx = 4 โ Qx = 7
Step 3: Solve for Qy
(1 + Qy)/2 = 4 โ 1 + Qy = 8 โ Qy = 7
Q = (7, 7)
check: midpoint of (โ3, 1) and (7, 7) is ((โ3+7)/2, (1+7)/2) = (2, 4) โ
WE 6Equation of the perpendicular bisector
The points A(1, 2) and B(7, 6) lie on a coordinate plane. Find the equation of the perpendicular bisector of [AB], giving your answer in the form y = mx + c.
Step 1: Find the midpoint of [AB]
M = ((1+7)/2, (2+6)/2) = (4, 4)
Step 2: Find the gradient of AB
mAB = (6โ2)/(7โ1) = 4/6 = 2/3
Step 3: Find the perpendicular gradient
mperp = โ1/(2/3) = โ3/2
Step 4: Use point-gradient form through M(4, 4)
y โ 4 = โ3/2 (x โ 4)
y = โ3x/2 + 6 + 4
y = โ3x/2 + 10
the perpendicular bisector passes through the midpoint and is perpendicular to the original โ uses all three formulas
๐ก Top tips
- Label coordinates above the points before substituting. It takes two seconds and prevents almost every sign error.
- Bracket the negatives: writing 6 โ (โ2) is much safer than 6 โ โ2 and easier to read.
- For distance, leave the answer as an exact surd unless the question asks for a decimal โ โ50 is more precise than 7.07.
- Recognise Pythagorean triples: 3-4-5, 5-12-13, 8-15-17, 7-24-25 โ they show up surprisingly often in exam questions and let you spot the answer faster.
- Perpendicular gradient = negative reciprocal: flip the fraction and change the sign. m = 2/3 โ mperp = โ3/2.
- Use a sketch on every coordinate-geometry question. Sign errors are easy to catch visually but invisible in algebra.
- Check by substitution: plug the midpoint or perpendicular-bisector point back into your formulas to verify.
โ Common mistakes
- Subtracting in the wrong order for gradient. The first y in the numerator must pair with the first x in the denominator โ otherwise you flip the sign.
- Forgetting to square the differences in the distance formula. d = โ((ฮx)ยฒ + (ฮy)ยฒ), not โ(ฮx + ฮy).
- Adding instead of averaging for the midpoint. (x1 + x2)/2, not just x1 + x2.
- Sign errors with negative coordinates. (โ3) โ (โ5) = 2, not โ8 or โ2 or 8.
- Computing the reciprocal but forgetting to negate for perpendicular gradients. m = 2/3 gives 3/2 (reciprocal) โ but the perpendicular is โ3/2.
- Mistaking the gradient for the equation of the line. m = 4 means the gradient is 4 โ not that the equation is y = 4.
- Writing distance with a ยฑ sign. Distance is always non-negative โ take the positive square root.
That’s the prior-learning toolkit you need before diving deeper into Topic 3. The next note, Arcs & Sectors Using Degrees, applies similar fraction-of-the-whole reasoning to circles โ the arc is a fraction of the circumference, the sector a fraction of the area. Once you’ve got the angle measured in degrees, both formulas reduce to multiplying by ฮธ/360.
Need help with Coordinate Geometry?
Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.
Book Free Session โ