Worked Example · Straight-Line Graphs · Paper 1 · 4 marks
Using the Distance Formula to Find an Unknown
Written by Rig, our founder
8 years teaching IGCSE & SPM maths · Updated 16 August 2026
When a question fixes the length between two points and hides a coordinate, square the distance formula to get a quadratic in the unknown. Squaring is what introduces the two answers students so often miss.
The points and are such that the length . Find the possible values of . [4]
The working
Step 1, write using the distance formula (square both sides to avoid surds):
Step 2, simplify the known part:
Step 3, solve for :
Where the marks are won and lost
- Squaring the distance () avoids carrying a square root through the algebra, cleaner and less error-prone.
- gives , hence two values. Taking only the positive root loses .
- : mind the double negative in the -difference.
Common mistakes
- Writing (sign error), giving the wrong constant.
- Forgetting the and reporting only .
- Leaving the answer as without solving.
Full method: Gradient, Midpoint & Length notes. Topic home: Straight-Line Graphs pillar.