MathematicsFoundation20 min read

Coordinate Geometry

Distance, midpoint, gradient — all three from one right-angled triangle

This topic appears in:

01

Geometry with an address system

Before Descartes, a geometrical fact had to be proved with a diagram and a chain of reasoning. After him, every point has an address (x, y) and geometrical questions become arithmetic. This chapter is the smallest useful piece of that idea.

The plane is divided by the two axes into four quadrants, numbered anticlockwise from the top right. The signs of the coordinates tell you which one you are in, and questions often ask for exactly that.

QuadrantxyExample
I (top right)++(3, 2)
II (top left)+(−3, 2)
III (bottom left)(−3, −2)
IV (bottom right)+(3, −2)
02

One triangle, three formulae

Take two points A(x₁, y₁) and B(x₂, y₂). Drop a horizontal line from A and a vertical line from B; they meet at a right angle. Every formula in this chapter is that one triangle read a different way.

The horizontal side has length x₂ − x₁. The vertical side has length y₂ − y₁. The hypotenuse is AB.

|AB| = √[(x₂ − x₁)² + (y₂ − y₁)²]M = ( (x₁+x₂)/2 , (y₁+y₂)/2 )m = (y₂ − y₁) / (x₂ − x₁)distance is Pythagoras on the triangle; midpoint is the two averages; gradient is rise over run
|AB|
the length of the segmentalways positive
M
the midpoint of ABaverage each coordinate separately
m
the gradient of ABundefined when x₂ = x₁

Move B so that it sits directly above A. The run becomes zero, so the gradient formula divides by zero — the line is vertical and has no gradient, which is not the same as a gradient of zero.

03

What the gradient tells you

The gradient is the single most useful number in the chapter, because it answers questions about parallel lines, perpendicular lines and collinear points without any drawing.

  • Positive gradient — the line rises from left to right.
  • Negative gradient — it falls from left to right.
  • Zero gradient — horizontal. Undefined gradient — vertical. These two are opposites and are constantly confused.
  • Parallel lines have equal gradients: m₁ = m₂.
  • Perpendicular lines have gradients multiplying to −1: m₁ m₂ = −1, so each is the negative reciprocal of the other.

Proving three points are collinear

Three points lie on one straight line if the gradient from the first to the second equals the gradient from the second to the third. Do not use the distance formula for this — checking that AB + BC = AC involves surds and is far more work for the same conclusion.

04

Worked example: a complete "show that" question

These questions look long but are entirely mechanical once you decide which formula answers which part. Write the coordinates down as (x₁, y₁) and (x₂, y₂) before substituting, and the sign errors disappear.

Worked example

A(1, 2), B(5, 4) and C(3, 8) are three points. Show that triangle ABC is right-angled, and find the length of its hypotenuse.

  1. Gradient of AB: (4 − 2)/(5 − 1) = 2/4 = 1/2.Take the points in a fixed order and keep it. Reversing both differences gives the same gradient, so consistency is all that matters.
  2. Gradient of BC: (8 − 4)/(3 − 5) = 4/(−2) = −2.
  3. (1/2) × (−2) = −1, so AB is perpendicular to BC and the right angle is at B.The product being −1 is the test. Saying which vertex holds the right angle is usually worth a mark.
  4. The hypotenuse is the side opposite the right angle, namely AC.The right angle is at B, so the hypotenuse must be the side not touching B.
  5. |AC| = √[(3 − 1)² + (8 − 2)²] = √(4 + 36) = √40 = 2√10.Simplify the surd — √40 alone will usually cost the last mark.

Right-angled at B; hypotenuse AC = 2√10 ≈ 6.32 units

05

The equation of a straight line

Once you have a gradient and a point, you have the line. The two forms below are the ones the paper expects, and converting between them is a matter of expanding a bracket.

The slope-intercept form y = mx + c is the one to use when you are told the y-intercept. The point-slope form y − y₁ = m(x − x₁) is the one to use when you are told a point, which is far more common.

y = m x + c(gradient m, y-intercept c)y − y₁ = m(x − x₁)(gradient m, through the point (x₁, y₁))ax + by + c = 0(general form, gradient = −a/b)the same line in three costumes

Before you leave this chapter

  1. Distance is Pythagoras; midpoint is two averages; gradient is rise over run. All three come from the same triangle.
  2. Horizontal → gradient 0. Vertical → gradient undefined. Never write "gradient = ∞" in an answer.
  3. Parallel ⟺ equal gradients. Perpendicular ⟺ product of gradients is −1.
  4. Collinear points are proved with gradients, not distances.
  5. Given a point and a gradient, use y − y₁ = m(x − x₁) and expand.
06

Naming a shape from its coordinates

A standard long question gives you four points and asks what kind of quadrilateral they form. There is a fixed order of checks, and following it stops you from claiming more than you have proved.

Work out the four gradients first, then any lengths you need. Each property you establish narrows the answer, and the final name is whichever description you can fully justify — never guess from the look of your sketch.

To prove it is a…You must showTool
Trapeziumexactly one pair of opposite sides parallelgradients
Parallelogramboth pairs of opposite sides parallelgradients
Rhombusa parallelogram with all four sides equalgradients, then distance
Rectanglea parallelogram with one right anglegradients, then m₁m₂ = −1
Squareall four sides equal and one right angledistance and m₁m₂ = −1

Do not claim a rectangle without checking the angle

Equal-and-parallel opposite sides prove a parallelogram and nothing more. A rhombus also has equal sides but no right angle, and a rectangle has a right angle but not necessarily equal sides. Each extra word in the name costs one extra check, and the mark scheme allots a mark to each.

Practice questions

6 questions · 20 marks · full working on every one

Try each one on paper first, then open the working. The marks are shown where they are actually awarded, because that is where they are actually lost.

Short questions

3 · 6 marks

Two marks each, in the style of the short-question section of the paper. Answer in two or three lines.

SQ1[2 marks]
Find the distance between A(−2, 3) and B(4, −5).
Model answer

|AB| = √[(4 −(−2))² + (−5 − 3)²] = √(36 + 64) = √100 = 10 units.

Examiner tip. Subtracting a negative is where marks go. Write 4 − (−2) in full before simplifying to 6.

SQ2[2 marks]
The gradient of a line is 3/4. State the gradient of any line perpendicular to it.
Model answer

The negative reciprocal: m = −4/3, since (3/4) × (−4/3) = −1.

Examiner tip. Flip the fraction and change the sign — both, not one. Showing the product equals −1 secures the second mark.

SQ3[2 marks]
Explain the difference between a line of gradient 0 and a line whose gradient is undefined.
Model answer

A gradient of 0 means the rise is zero, so the line is horizontal. An undefined gradient means the run is zero, so the formula divides by zero and the line is vertical.

Examiner tip. Both marks are for tying each case to the part of the fraction that is zero. "One is flat and one is upright" alone is not enough.

Solved numericals

2 · 8 marks

Full working, one step per line, with the marks shown where they are awarded.

N1[4 marks]
The midpoint of the segment joining A(3, k) and B(−1, 8) is M(1, 5). Find k, and hence the length of AB.
Full working
  1. The y-coordinate of M gives (k + 8)/2 = 5the x-coordinates already check out: (3 + (−1))/2 = 1 ✓[1]
  2. k + 8 = 10, so k = 2[1]
  3. Uses the distance formula with A(3, 2) and B(−1, 8)[1]
  4. |AB| = √[(−1 − 3)² + (8 − 2)²] = √(16 + 36) = √52 = 2√13simplified surd required[1]

k = 2; |AB| = 2√13 ≈ 7.21 units

Examiner tip. Checking the x-coordinate as well costs nothing and confirms you have the right pairing of points before you commit to the algebra.

N2[4 marks]
Show that the points P(1, 1), Q(3, 5) and R(6, 11) are collinear.
Full working
  1. Gradient of PQ = (5 − 1)/(3 − 1) = 4/2 = 2[1]
  2. Gradient of QR = (11 − 5)/(6 − 3) = 6/3 = 2[1]
  3. The two gradients are equal[1]
  4. PQ and QR share the point Q, so the three points lie on one straight line and are collinearthe shared point must be mentioned — equal gradients alone only prove the segments are parallel[1]

Gradient PQ = gradient QR = 2, and they share Q, so P, Q and R are collinear.

Examiner tip. The last mark is for the sentence about the common point. Two parallel segments that do not touch are not collinear, and the examiner wants to see that you know the difference.

Long questions

1 · 6 marks

Theory and numerical together, as they appear in the long-question section.

LQ1[6 marks]
A(0, 0), B(6, 0), C(8, 4) and D(2, 4) are the vertices of a quadrilateral.
  1. Find the gradients of AB, BC, CD and DA.
  2. What kind of quadrilateral is ABCD? Justify your answer.
  3. Find the length of the diagonal AC.
Mark scheme
  1. AB: (0 − 0)/(6 − 0) = 0; CD: (4 − 4)/(2 − 8) = 0both horizontal[1]
  2. BC: (4 − 0)/(8 − 6) = 2; DA: (0 − 4)/(0 − 2) = 2[1]
  3. AB is parallel to CD and BC is parallel to DA, since each pair has equal gradients[1]
  4. Both pairs of opposite sides are parallel, so ABCD is a parallelogramadjacent gradients 0 and 2 do not multiply to −1, so it is not a rectangle[1]
  5. Uses the distance formula on A(0,0) and C(8,4)[1]
  6. |AC| = √(64 + 16) = √80 = 4√5[1]

(a) 0, 2, 0, 2 (b) a parallelogram — both pairs of opposite sides are parallel (c) 4√5 ≈ 8.94 units

Examiner tip. Before naming the shape, check whether adjacent sides are perpendicular. Here 0 × 2 = 0, not −1, so calling it a rectangle would throw away the mark.