Length, gradient and midpoint
Coordinate geometry turns pictures into algebra: a point becomes a pair of numbers, and questions about lengths, slopes and positions become calculations. Three formulas, for the length of a line segment, its midpoint and its gradient, sit underneath every coordinate geometry question on Paper 1, from equations of lines to circles and tangents. This note builds each one from a picture, then shows how examiners combine them with unknown coordinates to make longer problems.
Coordinates and line segments
A point in the plane is written : is the distance across from the -axis and the distance up from the -axis. Either can be negative.
A line segment is the straight piece of line between the points and . Its length is written or . A line carries on for ever in both directions, so a line has a gradient but not a length.
Throughout this note, is the point and is the point . The two numbers that drive every formula are
Write these two differences down first in every question. Almost every error in this topic is a sign slip inside one of them.
The length of a line segment
Draw a horizontal line from and a vertical line from . They meet at a right angle, making a right-angled triangle with as the hypotenuse. The horizontal side has length and the vertical side (up to sign), so Pythagoras gives the length.
In the figure, and : the horizontal side is , the vertical side is , and .
Because the differences are squared, it does not matter which point you call : . It also does not matter if a difference is negative, since its square is positive.
Leave lengths as exact surds unless a decimal is asked for, and simplify them: . Later parts of a question often need , which is a whole number, so keep that too.
The midpoint of a line segment
The midpoint is halfway across and halfway up, so each coordinate is the mean of the two end coordinates.
The same idea run backwards finds a missing endpoint. If is the midpoint of , then going from to is the same step as going from to . So
You do not need to memorise this: just add the step from to on to again.
Dividing a segment in a given ratio
Sometimes a point lies on with , say. Then is one third of the way from to . Take the step from to , multiply it by the fraction, and add it to :
For , the fraction is . This is not a formula on the syllabus, but it comes up inside longer questions, and the "fraction of the step" idea is all you need.
Gradient
The gradient of a line measures how steep it is: how far it rises for each unit it moves to the right.
The gradient of the line through and , with , is
The order must match top and bottom: if you start the numerator from , start the denominator from too. Swapping both gives the same answer; swapping only one changes the sign.
| Gradient | What the line does |
|---|---|
| rises from left to right | |
| falls from left to right | |
| horizontal, equation | |
| undefined | vertical, equation (the change in is zero) |
If a line makes an angle with the positive -axis, measured anticlockwise, then . A line at has gradient ; a line at has gradient .
Collinear points
Three points , , are collinear if they lie on one straight line. Since they share the point , it is enough to show that the gradients of and are equal. Equal gradients alone would only make the segments parallel; the shared point is what puts them on the same line, so mention it.
Parallel and perpendicular lines
Parallel lines have the same steepness, so they have equal gradients.
For perpendicular lines, rotate a line through . A step of along the line becomes a step of , which has gradient . So the gradients multiply to .
For two lines with gradients and (neither vertical):
- parallel
- perpendicular , that is,
To get a perpendicular gradient, flip the fraction and change its sign: becomes ; becomes .
The two lines with gradient are parallel; the line with gradient is perpendicular to both.
The rule fails for horizontal and vertical lines, because a vertical line has no gradient. Spot these by eye: a horizontal line () is perpendicular to any vertical line.
- Write the unknown point with a letter, such as or if it lies on a known line.
- Translate the condition into an equation: a length, a midpoint, equal gradients, or a gradient product of .
- Simplify. Distance conditions are easier squared: use , not .
- Solve, and keep every solution unless the question rules one out (for example "").
Worked examples
The points and have coordinates and . Find the length of and the coordinates of its midpoint.
Solution
Change in : . Change in : .
The midpoint of is . The point is . Find the coordinates of .
Solution
The step from to is in and in . The same step from reaches :
Check: the midpoint of and is . Correct.
The distance between the points and is . Find the possible values of .
Solution
Square the distance to avoid the square root:
So or . Both are valid: the points and are both units from , one on each side.
(a) Show that , and are collinear.
(b) The point lies on the same line. Find .
Solution
(a)
and have the same gradient and share the point , so , and are collinear.
(b) must also have gradient :
The points , and are such that angle is a right angle. Find the possible values of .
Solution
The right angle is at , so .
Perpendicular means the product is :
So or . The points and both lie on the circle with diameter , which is why there are two answers (the angle in a semicircle is a right angle).
The points and are joined. The point lies on with . Find the coordinates of .
Solution
is of the way from to . The step from to is , and of it is :
Check: and , in the ratio .
The points and have coordinates and . The point lies on the -axis and is equidistant from and .
(a) Find the coordinates of .
(b) Find the area of triangle .
Solution
(a) is on the -axis, so write . Equidistant means :
So .
(b) The triangle is isosceles with , so the line from to the midpoint of is perpendicular to and is the height.
. Then
Check the right angle: and , product .
Mixing the order in the gradient. gives the wrong sign. Keep the same point first on top and bottom.
Subtracting a negative. , not . Write the brackets in.
Perpendicular gradient with only one change. The perpendicular to is . Writing (flip only) or (sign only) is a common lost mark.
Square-rooting too early. In "" problems, square both distances first; the terms then cancel and the equation is linear.
Using with a vertical or horizontal line. A line with gradient is perpendicular to a vertical line, which has no gradient at all. Recognise these from the coordinates.
- Exact values. "Find the length" with no accuracy stated: give an exact surd in simplest form, or a decimal to 3 significant figures. A simplified surd is always safe.
- Show your differences. Write before simplifying. If you slip, the method mark is still earned.
- State the reason. For perpendicular lines, write ", so perpendicular". For collinear points, mention the shared point.
- Multiple answers. Squaring creates two solutions. Give both unless the question restricts them, and say which one you reject and why.
- Sketch. A rough sketch with the points plotted catches impossible answers, such as a midpoint that is not between the two points.
- Length: . Keep it exact and simplified.
- Midpoint: average the coordinates. To find a missing endpoint, repeat the step from the known end to the midpoint.
- A point a fraction of the way from to is , coordinate by coordinate.
- Gradient: ; horizontal lines have , vertical lines have no gradient.
- Parallel: equal gradients. Perpendicular: .
- Collinear: equal gradients and a shared point.
- Conditions with unknown coordinates become equations; square distance conditions before solving.
Once you can find gradients and points, the next step is writing the equation of a line through them: see Equations of straight lines. Using these facts to identify shapes is covered in Proving properties of shapes.
Practice questions
- Find the length of the line segment joining and , and the coordinates of its midpoint.
- The point is the midpoint of , where is . Find .
- Find the gradient of the line through and , and the gradient of a line perpendicular to it.
- The distance between the points and is . Find the possible values of .
- The points , and are collinear. Find .
- is and is . The point lies on with . Find the coordinates of .
- The points , and are such that angle . Find .
- Find the point on the -axis that is equidistant from and .
- The points , and form a triangle that is right-angled at . Find , show that the triangle is isosceles, and find its area.
- The point is equidistant from and . (a) Find . (b) is the midpoint of . Show that is perpendicular to , and find the exact length of .
Answers
-
Differences and , so the length is . Midpoint .
-
The step from to is . Repeating it from : .
-
. Perpendicular gradient .
-
, so , giving , . So or .
-
The gradient of the first two points is . Then , so and .
-
is of the way from to . The step is ; a third of it is . So .
-
, so : , so and .
-
Let the point be . , so , giving and . The point is . Check: both distances squared are .
-
, so : , so and . Then and , so and the triangle is isosceles. Area .
-
(a) . Expanding: , so and . . (b) . and . The product is , so . .