Coordinate geometry & circles · Lesson 1 of 2

Straight lines

Distance, midpoint, gradient and the equation of a line; parallel and perpendicular lines, perpendicular bisectors, the angle between two lines, and dividing a line internally or externally.

20 minYou should already know: Coordinate geometry
  1. 1
  2. 2

This lesson builds on coordinate geometry. For points A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2):

xyABx₂ − x₁y₂ − y₁
DistanceAB = √((x₂ − x₁)² + (y₂ − y₁)²)
xyABM
MidpointM = ((x₁ + x₂)/2, (y₁ + y₂)/2)
xyABrunrise
Gradientm = (y₂ − y₁) ÷ (x₂ − x₁)

The line through (x1,y1)(x_1, y_1) with gradient mm is y−y1=m(x−x1)y - y_1 = m(x - x_1). Three points are collinear (on one line) when the gradient between each pair is the same.

More: distance, gradient and equations

Parallel and perpendicular lines

Parallel lines have equal gradients. Perpendicular lines have gradients that multiply to −1-1:

xym−1/m
Perpendicular linesm₁ × m₂ = −1, so m₂ = −1/m₁

To use the gradient of a line like 3x+2y−4=03x + 2y - 4 = 0, rearrange it as y=mx+cy = mx + c first.

Worked example · WAEC 2011

WAEC 2011 · Paper 2 · Q2

Find the equation of the line which passes through the point (3,−2)(3, -2) and is perpendicular to the line 3x+2y−4=03x + 2y - 4 = 0.

  1. The given gradient

    • 2y=−3x+4{2y = -3x + 4}, so y=−32x+2{y = -\frac32x + 2}: the gradient is −32{-\frac32}.

    Think first. Make y the subject.

  2. The perpendicular gradient

    • m=−1÷(−32)=23{m = -1 \div \left(-\frac32\right) = \frac23}.
  3. The line

    • y+2=23(x−3){y + 2 = \frac23(x - 3)}.
    • Multiply by 3: 3y+6=2x−6{3y + 6 = 2x - 6}, so 2x−3y−12=0{2x - 3y - 12 = 0}.

The perpendicular bisector of ABAB passes through the midpoint of ABAB, at right angles to it. Every point on it is the same distance from AA and BB.

xyABM
The perpendicular bisectorThrough M, with gradient −1 ÷ (gradient of AB)

Worked example · WAEC 2019

WAEC 2019 · Paper 2 · Q9

The curve y=7−6xy = 7 - \dfrac6x and the line y+2x−3=0y + 2x - 3 = 0 intersect at two points. Find the:

coordinates of the two points;

equation of the perpendicular bisector of the line joining the two points.

  1. Where they meet

    • 7−6x=3−2x{7 - \frac6x = 3 - 2x}. Multiply by xx: 7x−6=3x−2x2{7x - 6 = 3x - 2x^2}.
    • So 2x2+4x−6=0{2x^2 + 4x - 6 = 0}, that is x2+2x−3=0{x^2 + 2x - 3 = 0}.
    • (x+3)(x−1)=0{(x + 3)(x - 1) = 0}: the points are (1,1){(1, 1)} and (−3,9){(-3, 9)}.

    Think first. From the line, y = 3 − 2x. Put that into the curve.

  2. Midpoint and gradient

    • Midpoint: (1−32,1+92)=(−1,5){\left(\frac{1 - 3}{2}, \frac{1 + 9}{2}\right) = (-1, 5)}.
    • Gradient of the chord: 9−1−3−1=−2{\frac{9 - 1}{-3 - 1} = -2}, so the bisector has gradient 12{\frac12}.
  3. The bisector

    • y−5=12(x+1){y - 5 = \frac12(x + 1)}, so 2y−10=x+1{2y - 10 = x + 1}.
    • That is 2y−x−11=0{2y - x - 11 = 0}.

More: perpendicular lines

The angle between two lines

If two lines have gradients m1m_1 and m2m_2, the acute angle θ\theta between them satisfies

xyθm₁m₂
The angle between two linestan θ = |(m₁ − m₂) ÷ (1 + m₁m₂)|
tan⁡θ=∣m1−m21+m1m2∣\tan\theta = \left|\frac{m_1 - m_2}{1 + m_1m_2}\right|
Gradients and the angleSet the two gradients
−5−3−1135−4−224xym₁m₂
77.47°acute angle θ−1/2m₁ × m₂
tan θ = |(2 − (−1/4)) ÷ (1 + 2 × (−1/4))| = |9/4 ÷ 1/2| = 4.5, so θ = 77.47°.

Worked example · WAEC 2020

WAEC 2020 · Paper 2 · Q9

Two lines L1L_1 and L2L_2 pass through the point of intersection of 2y=x−132y = x - 13 and 3y+x+12=03y + x + 12 = 0. L1L_1 passes through P(−4,−7)P(-4, -7) and L2L_2 is perpendicular to 2x−5y=42x - 5y = 4. Find the acute angle between L1L_1 and L2L_2 (2 d.p.).

  1. The common point

    • 3y+(2y+13)+12=0{3y + (2y + 13) + 12 = 0}, so y=−5{y = -5} and x=3{x = 3}: the point (3,−5){(3, -5)}.

    Think first. From the first line, x = 2y + 13.

  2. The two gradients

    • L1L_1 through (3,−5)(3, -5) and (−4,−7)(-4, -7): m1=−7+5−4−3=27{m_1 = \frac{-7 + 5}{-4 - 3} = \frac27}.
    • 2x−5y=4{2x - 5y = 4} has gradient 25{\frac25}, so L2L_2 has m2=−52{m_2 = -\frac52}.
  3. The angle

    • tan⁡θ=∣27+521−57∣=39/142/7=394{\tan\theta = \left|\frac{\frac27 + \frac52}{1 - \frac57}\right| = \frac{39/14}{2/7} = \frac{39}{4}}.
    • θ=tan⁡−19.75≈84.14∘{\theta = \tan^{-1} 9.75 \approx 84.14^\circ}.

More: the angle between two lines

Dividing a line in a ratio

The point dividing ABAB internally in the ratio m:nm : n is (nx1+mx2m+n,ny1+my2m+n)\left(\dfrac{nx_1 + mx_2}{m + n}, \dfrac{ny_1 + my_2}{m + n}\right), as with position vectors (see the ratio figure in vectors). Externally, the point lies beyond BB (or beyond AA), and the signs change:

xyABPAP : PB = 2 : 1
External division((mx₂ − nx₁)/(m − n), (my₂ − ny₁)/(m − n))

Worked example · WAEC 2019

WAEC 2019 · Paper 2 · Q2 (a)

Find the coordinates of the point which divides the line joining (7,−5)(7, -5) and (−2,7)(-2, 7) externally in the ratio 3:23 : 2.

  1. The formula

    • x=3(−2)−2(7)3−2=−6−14=−20{x = \frac{3(-2) - 2(7)}{3 - 2} = -6 - 14 = -20}.
    • y=3(7)−2(−5)3−2=21+10=31{y = \frac{3(7) - 2(-5)}{3 - 2} = 21 + 10 = 31}.

    Think first. m : n = 3 : 2, with (x₁, y₁) = (7, −5) and (x₂, y₂) = (−2, 7).

  2. The point

    • (−20,31){(-20, 31)}: beyond BB, since the ratio is more than 1.

More: dividing lines and parallelograms

Your turn

WAEC 2017 · Paper 2 · Q3

  1. (a)

    A line is parallel to 2x+3y=52x + 3y = 5. If the line is the perpendicular bisector of the line joining the points (3,y)(3, y) and (5,2)(5, 2), find its equation.

    Show the answer

    6y+4x−19=06y + 4x - 19 = 0

Worked solution (try it first)
  1. 2x+3y=52x + 3y = 5 has gradient −23-\frac23, so the bisector has gradient −23-\frac23 too (parallel).
  2. The segment is perpendicular to it, with gradient 32\frac32: 2−y5−3=32\dfrac{2 - y}{5 - 3} = \dfrac32, so y=−1y = -1.
  3. The midpoint of (3,−1)(3, -1) and (5,2)(5, 2) is (4,12)\left(4, \frac12\right).
  4. y−12=−23(x−4)y - \frac12 = -\frac23(x - 4).
  5. Multiply by 6: 6y−3=−4x+166y - 3 = -4x + 16.
  6. So 6y+4x−19=06y + 4x - 19 = 0.

Report a problem with this question