Coordinate geometry in the (x, y) plane
P1 Topic 2, spec point by spec point (Coordinate geometry in the (x, y) plane). Each spec point has the method, worked examples written the way the mark scheme wants them, how the marks go and the mistakes that cost the most marks.
Spec2.1Equations of straight lines
Find and use the equation of a straight line in the forms \(y = mx + c\), \(y - y_1 = m(x - x_1)\) and \(ax + by + c = 0\).
The idea
A straight line has the same steepness everywhere. The gradient is "up per one along":
\[m = \frac{y_2 - y_1}{x_2 - x_1}\]
Once you know the gradient and one point on the line, the line is fixed. That is why \(y - y_1 = m(x - x_1)\) is the most useful form: it says "the gradient from \((x_1, y_1)\) to any point \((x, y)\) on the line is \(m\)".
| Form | Best for |
|---|---|
| \(y = mx + c\) | reading the gradient \(m\) and \(y\)-intercept \(c\) |
| \(y - y_1 = m(x - x_1)\) | writing a line from a gradient and a point |
| \(ax + by + c = 0\) | the form questions often ask for, with integers \(a\), \(b\), \(c\) |
To read the gradient from \(ax + by + c = 0\), make \(y\) the subject: \(y = -\frac{a}{b}x - \frac{c}{b}\).
Two more tools you use with lines
- Midpoint of \((x_1, y_1)\) and \((x_2, y_2)\): \(\left(\dfrac{x_1 + x_2}{2}, \dfrac{y_1 + y_2}{2}\right)\).
- Distance: \(\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}\) (Pythagoras).
- Intersection of two lines: solve their equations simultaneously.
- Where a line crosses the axes: put \(x = 0\) for the \(y\)-intercept, \(y = 0\) for the \(x\)-intercept.
line through two points
\(P(-2, 13)\) and \(Q(4, -5)\) lie on the line \(l\). Find \(l\) in the form \(y = mx + c\).
\(m = \dfrac{-5 - 13}{4 - (-2)} = \dfrac{-18}{6} = -3\).
Through \(P\): \(y - 13 = -3(x + 2) \Rightarrow y = -3x + 7\).
an exact distance
The line \(5y = 2x + 10\) meets the \(y\)-axis at \(A\). Point \(B\) on the line has \(x = 10\). Find \(AB\) as a simplified surd.
\(x = 0\): \(y = 2\), so \(A(0, 2)\). \(x = 10\): \(5y = 30\), so \(B(10, 6)\).
\(AB = \sqrt{10^2 + 4^2} = \sqrt{116} = 2\sqrt{29}\).
- B1 for the gradient, M1 for a line through a correct point using their gradient, A1 for the required form (WMA11 Jan 2021 Q4a). Using the perpendicular gradient here is M0.
- "Integers \(a\), \(b\), \(c\)" means no fractions: multiply through.
Often asked as: find coordinates where a line meets the axes (WMA11A Jan 2026 Q4a); an exact length as a surd (WMA11 May 2024 Q7a); area of a triangle formed with the axes.
Subtracting the coordinates in different orders on top and bottom of the gradient.
Not giving the form asked for (\(ax + by + c = 0\) needs everything on one side, equal to 0).
Mixing up which coordinate is \(x\) and which is \(y\) when a point is read from an equation.
Spec2.2Parallel and perpendicular lines
Use the conditions for two lines to be parallel (\(m_1 = m_2\)) or perpendicular (\(m_1 m_2 = -1\)).
The idea
- Parallel lines have the same steepness: equal gradients.
- Perpendicular lines: turn a line through 90°. A step "3 along, 2 up" becomes "2 back, 3 up" (or "2 along, 3 down"). The along and up swap and one sign changes, so a gradient of \(\frac23\) becomes \(-\frac32\).
\[m_2 = -\frac{1}{m_1} \qquad \text{equivalently} \qquad m_1 m_2 = -1\]
Flip the fraction and change the sign: the negative reciprocal.
Shortest distance from a point to a line
The shortest route from a point to a line meets the line at right angles. So: find the perpendicular line through the point, find where it meets the original line (the "foot"), then use the distance formula.
perpendicular line in integer form
\(l_1\) has equation \(2y = 3x + 8\) and \(Q(6, 13)\) lies on it. \(l_2\) is perpendicular to \(l_1\) through \(Q\). Find \(l_2\) in the form \(ax + by + c = 0\).
\(l_1\): \(y = \frac32 x + 4\), so \(m_1 = \frac32\) and \(m_2 = -\frac23\).
\(y - 13 = -\frac23(x - 6)\). Multiply by 3: \(3y - 39 = -2x + 12\).
\(2x + 3y - 51 = 0\).
shortest distance to the origin
Find the shortest distance from the origin to the line \(x + 2y - 25 = 0\).
The line has gradient \(-\frac12\), so the perpendicular through \(O\) is \(y = 2x\).
Meet: \(x + 2(2x) = 25 \Rightarrow x = 5\), \(y = 10\).
Distance \(= \sqrt{5^2 + 10^2} = \sqrt{125} = 5\sqrt5\).
Shapes from lines
- A right angle at \(B\) in triangle \(ABC\): gradient \(AB\) × gradient \(BC = -1\).
- Rectangle or parallelogram \(PQRS\): the fourth vertex is \(S = P + (R - Q)\), i.e. move from \(P\) by the same step that takes \(Q\) to \(R\).
- Perpendicular bisector of \(AB\): through the midpoint of \(AB\), perpendicular to \(AB\).
- B1 for the gradient of the given line, M1 for the negative reciprocal, M1 for a line through the correct point, A1 for the integer form or any integer multiple (WMA11A Jan 2026 Q4b).
- Shortest distance: M1 for Pythagoras between the point and the foot of the perpendicular, A1 for the simplified surd, which must come from correct earlier coordinates (WMA11 Jun 2025 Q5).
Often asked as: equation of a perpendicular line; the fourth vertex of a rectangle (WMA11 Jan 2023 Q2b); area of a triangle bounded by two perpendicular lines and an axis.
Using \(-m\) or \(\frac1m\) instead of \(-\frac1m\).
Taking the gradient of \(2y = 3x + 8\) as 3 (you must divide by 2 first).