Year 1 Pure · Chapter 4

Coordinate Geometry of Straight Lines

Specification: Edexcel Pure 3 — Coordinate geometry  ·  AQA section C

In this chapter
  1. 1. Gradient and the equation of a line
  2. 2. Midpoints and distance
  3. 3. Parallel and perpendicular lines
  4. 4. Modelling with straight lines
  5. Practice

Key facts — this chapter

  • Gradient between two points: m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1} — rise over run.
  • Equation of a line: y=mx+cy = mx + c (gradient mm, yy-intercept cc), or y−y1=m(x−x1)y - y_1 = m(x - x_1) when you know a point on it.
  • Parallel lines have equal gradients; perpendicular lines have gradients multiplying to −1-1: m2=−1m1m_2 = -\frac{1}{m_1}.
  • Midpoint of A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2): (x1+x22,y1+y22)\left(\frac{x_1+x_2}{2}, \frac{y_1+y_2}{2}\right) — average the coordinates.
  • Distance: AB=(x2−x1)2+(y2−y1)2AB = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2} — Pythagoras in disguise.

Straight lines are the workhorses of coordinate geometry. Master the handful of tools in this chapter — gradient, equation, midpoint, distance, perpendicularity — and you’ve already done most of the work for circles (Chapter 5) and tangents and normals in differentiation later on.

1. Gradient and the equation of a line

The gradient measures steepness: how much the line climbs for every unit it moves right.

Key result

Between any two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) on the line:

m=y2−y1x2−x1=riserunm = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\text{rise}}{\text{run}}

A negative gradient falls from left to right; a horizontal line has m=0m = 0; a vertical line has no gradient (its equation is x=ax = a).

A straight line through points A at one one and B at seven five, with a dashed triangle showing a run of six and a rise of four, giving gradient two thirds
Any two points on the line give the same rise ÷ run — that's what makes it straight.

Drag A and B and watch the gradient triangle do the work — rise over run, the equation, the midpoint and the exact length all come from the same two points.

Drag A and B · the dashed triangle is rise over run · the hollow dot is the midpoint

Two ways to write a line

  • y=mx+cy = mx + c — perfect when you know the gradient and the yy-intercept.
  • y−y1=m(x−x1)y - y_1 = m(x - x_1) — perfect when you know the gradient and any point (x1,y1)(x_1, y_1); no need to find cc first.

Exam answers sometimes ask for the form ax+by+c=0ax + by + c = 0 with integer coefficients — multiply through to clear fractions and gather everything on one side.

Worked example 4.1 · A line through two points

Find the equation of the line through (−1,3)(-1, 3) and (2,−3)(2, -3).


  1. Gradient first:

    m=−3−32−(−1)=−63=−2m = \frac{-3 - 3}{2 - (-1)} = \frac{-6}{3} = -2
  2. Use y−y1=m(x−x1)y - y_1 = m(x - x_1) with either point — take (−1,3)(-1, 3):

    y−3=−2(x+1)y - 3 = -2(x + 1)
  3. Tidy:

    y=−2x+1y = -2x + 1

(Check with the other point: x=2x = 2 gives y=−3y = -3. ✓)

Common mistake

Keep the subtraction order consistent: y2−y1x2−x1\frac{y_2 - y_1}{x_2 - x_1}, both differences the same way round. Swapping one but not the other flips the sign of the gradient — the single most common slip with lines.

2. Midpoints and distance

Two more tools, both straight from a picture.

Key result

For A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2):

midpoint=(x1+x22,  y1+y22)AB=(x2−x1)2+(y2−y1)2\begin{aligned} \text{midpoint} &= \left(\frac{x_1 + x_2}{2},\; \frac{y_1 + y_2}{2}\right) \\[0.4em] AB &= \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \end{aligned}

The midpoint just averages the coordinates. The distance is Pythagoras: the horizontal and vertical gaps are the two legs, and ABAB is the hypotenuse.

The line segment from A at one two to B at five five with a dashed right-angled triangle of legs four and three, giving length five
Distance is Pythagoras: legs 4 and 3, hypotenuse 5.

Worked example 4.2 · Midpoint and length of a segment

For A(−3,2)A(-3, 2) and B(5,8)B(5, 8), find the midpoint of ABAB and the exact length ABAB.


  1. Average the coordinates:

    midpoint=(−3+52,  2+82)=(1,5)\text{midpoint} = \left(\frac{-3 + 5}{2},\; \frac{2 + 8}{2}\right) = (1, 5)
  2. Pythagoras on the gaps (88 across, 66 up):

    AB=82+62=100=10AB = \sqrt{8^2 + 6^2} = \sqrt{100} = 10

3. Parallel and perpendicular lines

Key result

  • Parallel lines never meet because they climb at the same rate: m1=m2m_1 = m_2.

  • Perpendicular lines meet at right angles, and their gradients multiply to −1-1:

    m1m2=−1⟺m2=−1m1m_1 m_2 = -1 \qquad\Longleftrightarrow\qquad m_2 = -\frac{1}{m_1}

    — flip the fraction, flip the sign. The perpendicular to gradient 23\tfrac{2}{3} has gradient −32-\tfrac{3}{2}.

Why it works

Rotating a line a quarter turn swaps its rise and run — what used to be “along” is now “up” — and sends the line uphill if it was downhill. So a gradient ab\frac{a}{b} becomes −ba-\frac{b}{a}, and the product is ab×(−ba)=−1\frac{a}{b} \times \left(-\frac{b}{a}\right) = -1.

Two lines crossing at a right angle, one with gradient two and the other with gradient negative one half, with a small square marking the right angle
Gradients 2 and −½: flip the fraction, flip the sign, product −1.

Worked example 4.3 · A parallel line through a point

Find the equation of the line through (2,−1)(2, -1) that is parallel to the line 3x+y=73x + y = 7.


  1. Rearrange the given line to read off its gradient:

    y=−3x+7    ⟹    m=−3y = -3x + 7 \;\;\Longrightarrow\;\; m = -3
  2. Parallel means the same gradient, so build the line through (2,−1)(2, -1) with m=−3m = -3:

    y−(−1)=−3(x−2)    ⟹    y=−3x+5y - (-1) = -3(x - 2) \;\;\Longrightarrow\;\; y = -3x + 5

Worked example 4.4 · A perpendicular line through a point

Find the equation of the line through (6,1)(6, 1) that is perpendicular to y=3x+2y = 3x + 2. Give your answer in the form ax+by+c=0ax + by + c = 0, where aa, bb and cc are integers.


  1. The given gradient is 33, so the perpendicular gradient is −13-\tfrac{1}{3} — flip and negate.

  2. Line through (6,1)(6, 1):

    y−1=−13(x−6)y - 1 = -\tfrac{1}{3}(x - 6)
  3. Multiply through by 33 to clear the fraction, and gather:

    3y−3=−(x−6)    ⟹    x+3y−9=03y - 3 = -(x - 6) \;\;\Longrightarrow\;\; x + 3y - 9 = 0

Common mistake

Perpendicular needs both moves — flip the fraction and flip the sign. The perpendicular to m=3m = 3 is −13-\frac{1}{3}, not 13\frac{1}{3} (sign forgotten) and not −3-3 (flip forgotten).

4. Modelling with straight lines

A linear model is just y=mx+cy = mx + c wearing real-world clothes — and exam questions love asking what mm and cc mean in context.

Key result

In a linear model y=mx+cy = mx + c:

  • mm is the rate of change — how much yy changes for each unit of xx (cost per mile, depth per minute, …);
  • cc is the starting value — what yy is when x=0x = 0 (the fixed charge, the initial depth, …).

Worked example 4.5 · Building and reading a linear model

A taxi journey costs £6.806.80 for 22 miles and £12.2012.20 for 55 miles. Assuming cost CC (£) is linear in distance dd (miles), find the model and interpret its constants.


  1. The rate per mile is the gradient:

    m=12.20−6.805−2=5.403=1.80m = \frac{12.20 - 6.80}{5 - 2} = \frac{5.40}{3} = 1.80
  2. Use a known point to find the constant: 6.80=1.80(2)+c6.80 = 1.80(2) + c gives c=3.20c = 3.20.

    C=1.8d+3.2C = 1.8d + 3.2
  3. Interpret: each extra mile costs £1.80 (mm), and the fixed charge just for getting in the taxi is £3.20 (cc).

Practice

Twelve questions in three tiers. Try each one properly before opening the solution — the solutions show full method, not just answers.

Warm-up

1 [3 marks]

Find the equation of the line through (1,2)(1, 2) and (4,11)(4, 11), giving your answer in the form y=mx+cy = mx + c.

Show solution
  1. Gradient:

    m=11−24−1=93=3m = \frac{11 - 2}{4 - 1} = \frac{9}{3} = 3
  2. Line through (1,2)(1, 2) with gradient 33:

    y−2=3(x−1)    ⟹    y=3x−1y - 2 = 3(x - 1) \;\;\Longrightarrow\;\; y = 3x - 1

(Check: x=4x = 4 gives y=11y = 11. ✓)

2 [3 marks]

For the points A(−2,3)A(-2, 3) and B(4,11)B(4, 11), find:

  1. the midpoint of ABAB,
  2. the length ABAB.
Show solution

(a) Average the coordinates:

(−2+42,  3+112)=(1,7)\left(\frac{-2 + 4}{2},\; \frac{3 + 11}{2}\right) = (1, 7)

(b) Pythagoras on the gaps (66 across, 88 up):

AB=62+82=100=10AB = \sqrt{6^2 + 8^2} = \sqrt{100} = 10
3 [2 marks]

Write down the gradient and yy-intercept of the line 3x+4y−8=03x + 4y - 8 = 0.

Show solution

Rearrange for yy:

4y=−3x+8    ⟹    y=−34x+24y = -3x + 8 \;\;\Longrightarrow\;\; y = -\tfrac{3}{4}x + 2

Gradient −34-\tfrac{3}{4}, yy-intercept (0,2)(0, 2).

4 [2 marks]
  1. Show that the lines y=2x−1y = 2x - 1 and 2y−4x+5=02y - 4x + 5 = 0 are parallel.
  2. Write down the gradient of any line perpendicular to them.
Show solution

(a) Rearranging the second: 2y=4x−52y = 4x - 5, so y=2x−52y = 2x - \tfrac{5}{2}. Both have gradient 22 — parallel. (Different intercepts, so they’re distinct lines, not the same one.)

(b) Flip and negate: −12-\tfrac{1}{2}.

Standard

5 [3 marks]

Find the equation of the line through (3,−1)(3, -1) that is parallel to the line 2x+3y=62x + 3y = 6.

Show solution
  1. The given line rearranges to y=−23x+2y = -\tfrac{2}{3}x + 2, so m=−23m = -\tfrac{2}{3}.

  2. Same gradient through (3,−1)(3, -1):

    y+1=−23(x−3)    ⟹    y=−23x+1y + 1 = -\tfrac{2}{3}(x - 3) \;\;\Longrightarrow\;\; y = -\tfrac{2}{3}x + 1
6 [3 marks]

Find the equation of the line through (4,5)(4, 5) that is perpendicular to y=2x−3y = 2x - 3.

Show solution
  1. Perpendicular gradient: flip and negate 22 to get −12-\tfrac{1}{2}.

  2. Through (4,5)(4, 5):

    y−5=−12(x−4)    ⟹    y=−12x+7y - 5 = -\tfrac{1}{2}(x - 4) \;\;\Longrightarrow\;\; y = -\tfrac{1}{2}x + 7
7 [4 marks]

The points A(2,3)A(2, 3), B(6,5)B(6, 5) and C(4,9)C(4, 9) form a triangle. Show that the triangle is right-angled and isosceles.

Show solution
  1. Gradients of the sides:

    mAB=5−36−2=12mBC=9−54−6=−2m_{AB} = \frac{5-3}{6-2} = \frac{1}{2} \qquad m_{BC} = \frac{9-5}{4-6} = -2
  2. mAB×mBC=12×(−2)=−1m_{AB} \times m_{BC} = \tfrac{1}{2} \times (-2) = -1, so AB⊥BCAB \perp BC — the triangle is right-angled at BB. ✓

  3. Lengths of those two sides:

    AB=42+22=20BC=22+42=20AB = \sqrt{4^2 + 2^2} = \sqrt{20} \qquad BC = \sqrt{2^2 + 4^2} = \sqrt{20}

Two equal sides, so the triangle is also isosceles. ✓

8 [4 marks]

Find the equation of the perpendicular bisector of the points A(1,4)A(1, 4) and B(7,2)B(7, 2).

Show solution
  1. The bisector passes through the midpoint:

    (1+72,4+22)=(4,3)\left(\frac{1+7}{2}, \frac{4+2}{2}\right) = (4, 3)
  2. Gradient of ABAB: 2−47−1=−13\dfrac{2-4}{7-1} = -\dfrac{1}{3}, so the perpendicular gradient is 33.

  3. Through (4,3)(4, 3) with gradient 33:

    y−3=3(x−4)    ⟹    y=3x−9y - 3 = 3(x - 4) \;\;\Longrightarrow\;\; y = 3x - 9

(This is the Chapter 5 workhorse: a circle’s centre always sits on the perpendicular bisector of any chord.)

9 [3 marks]

The line through P(2,5)P(2, 5) and Q(6,k)Q(6, k) is perpendicular to the line y=−2x+1y = -2x + 1. Find the value of kk.

Show solution
  1. Perpendicular to gradient −2-2 means gradient 12\tfrac{1}{2}.

  2. Set the gradient of PQPQ equal to it:

    k−56−2=12\frac{k - 5}{6 - 2} = \frac{1}{2}
  3. Solve: k−5=2k - 5 = 2, so k=7k = 7.

Exam style

10 [6 marks]

The line l1l_1 has equation y=2x−3y = 2x - 3. The line l2l_2 is perpendicular to l1l_1 and passes through the point (8,3)(8, 3).

  1. Find the equation of l2l_2. [3]
  2. Find the coordinates of the point where l1l_1 and l2l_2 intersect. [3]
Show solution

(a)

  1. Perpendicular gradient to 22: −12-\tfrac{1}{2}.

  2. Through (8,3)(8, 3):

    y−3=−12(x−8)    ⟹    y=−12x+7y - 3 = -\tfrac{1}{2}(x - 8) \;\;\Longrightarrow\;\; y = -\tfrac{1}{2}x + 7

(b)

  1. Set the two equations equal:

    2x−3=−12x+72x - 3 = -\tfrac{1}{2}x + 7
  2. Multiply by 2 and solve: 4x−6=−x+144x - 6 = -x + 14, so 5x=205x = 20 and x=4x = 4.

  3. Substitute back: y=2(4)−3=5y = 2(4) - 3 = 5. The lines meet at (4,5)(4, 5).

11 [5 marks]

The points A(1,2)A(1, 2), B(5,4)B(5, 4), C(7,8)C(7, 8) and D(3,6)D(3, 6) are the vertices of a quadrilateral. Show that ABCDABCD is a rhombus but not a square.

Show solution
  1. Opposite sides parallel (gradients):

    mAB=4−25−1=12=mDCmBC=8−47−5=2=mADm_{AB} = \frac{4-2}{5-1} = \frac{1}{2} = m_{DC} \qquad m_{BC} = \frac{8-4}{7-5} = 2 = m_{AD}

    so ABCDABCD is a parallelogram.

  2. Adjacent sides equal:

    AB=42+22=20BC=22+42=20AB = \sqrt{4^2 + 2^2} = \sqrt{20} \qquad BC = \sqrt{2^2 + 4^2} = \sqrt{20}

    A parallelogram with equal adjacent sides has all four sides equal — a rhombus. ✓

  3. Not a square: adjacent sides would have to be perpendicular, but

    mAB×mBC=12×2=1≠−1m_{AB} \times m_{BC} = \tfrac{1}{2} \times 2 = 1 \neq -1

    so the corners aren’t right angles. ✓

12 [5 marks]

A water tank is being drained. After 22 minutes the depth of water is 4646 cm; after 77 minutes it is 3131 cm. Assume the depth dd cm after tt minutes follows a linear model.

  1. Find the model in the form d=mt+cd = mt + c. [3]
  2. Interpret the values of mm and cc in context. [1]
  3. Find how long it takes for the tank to empty completely. [1]
Show solution

(a)

  1. Gradient:

    m=31−467−2=−155=−3m = \frac{31 - 46}{7 - 2} = \frac{-15}{5} = -3
  2. Use (2,46)(2, 46): 46=−3(2)+c46 = -3(2) + c, so c=52c = 52.

    d=−3t+52d = -3t + 52

(b) The depth falls by 33 cm every minute (m=−3m = -3); the tank started at 5252 cm deep (c=52c = 52, the depth at t=0t = 0).

(c) Empty means d=0d = 0:

0=−3t+52    ⟹    t=523≈17.3 minutes0 = -3t + 52 \;\;\Longrightarrow\;\; t = \frac{52}{3} \approx 17.3 \text{ minutes}