This lesson builds on coordinate geometry↺ . For points A ( x 1 , y 1 ) A(x_1, y_1) A ( x 1 , y 1 ) and B ( x 2 , y 2 ) B(x_2, y_2) B ( x 2 , y 2 ) :
x y A B x₂ − x₁ y₂ − y₁ Distance AB = √((x₂ − x₁)² + (y₂ − y₁)²) x y A B M Midpoint M = ((x₁ + x₂)/2, (y₁ + y₂)/2) x y A B run rise Gradient m = (y₂ − y₁) ÷ (x₂ − x₁)
The line through ( x 1 , y 1 ) (x_1, y_1) ( x 1 , y 1 ) with gradient m m m is y − y 1 = m ( x − x 1 ) y - y_1 = m(x - x_1) y − y 1 = m ( x − x 1 ) . Three points are collinear (on one line) when the gradient between each pair is the same.
Check yourself
Find the distance between ( − 2 , 5 ) (-2, 5) ( − 2 , 5 ) and ( 4 , − 3 ) (4, -3) ( 4 , − 3 ) .
More: distance, gradient and equations
NECO 2023 · Paper 1 · Q26 Find the distance between the points ( 2 , 3 ) (2, 3) and ( − 1 , 7 ) (-1, 7) . NECO 2023 · Paper 1 · Q27 Find the equation of the straight line which passes through ( 2 , 2 ) (2, 2) and ( 3 , 6 ) (3, 6) . WAEC 2016 · Paper 2 · Q2 Given that ( 5 , 2 ) (5, 2) , ( − 4 , k ) (-4, k) and ( 2 , 1 ) (2, 1) lie on a straight line, find the value of k k . WAEC 2022 · Paper 1 · Q40 The length of the line joining points ( x , 4 ) (x, 4) and ( − x , 3 ) (-x, 3) is 7 units. Find the value of x x . WAEC 2023 · Paper 1 · Q12 Given that M M is the midpoint of T ( 2 , 4 ) T(2, 4) and Q ( − 8 , 6 ) Q(-8, 6) , find the length M Q MQ . WAEC 2020 · Paper 1 · Q25 Calculate, correct to two decimal places, the area enclosed by the line 3 x − 5 y + 4 = 0 3x - 5y + 4 = 0 and the axes.
Parallel and perpendicular lines
Parallel lines have equal gradients. Perpendicular lines have gradients that multiply to − 1 -1 − 1 :
x y m −1/m Perpendicular lines m₁ × m₂ = −1, so m₂ = −1/m₁
To use the gradient of a line like 3 x + 2 y − 4 = 0 3x + 2y - 4 = 0 3 x + 2 y − 4 = 0 , rearrange it as y = m x + c y = mx + c y = m x + 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) ( 3 , − 2 ) and is perpendicular to the line 3 x + 2 y − 4 = 0 3x + 2y - 4 = 0 3 x + 2 y − 4 = 0 .
The given gradient
2 y = − 3 x + 4 {2y = -3x + 4} 2 y = − 3 x + 4 , so y = − 3 2 x + 2 {y = -\frac32x + 2} y = − 2 3 x + 2 : the gradient is − 3 2 {-\frac32} − 2 3 .
Think first. Make y the subject.
The perpendicular gradient
m = − 1 ÷ ( − 3 2 ) = 2 3 {m = -1 \div \left(-\frac32\right) = \frac23} m = − 1 ÷ ( − 2 3 ) = 3 2 .
The line
y + 2 = 2 3 ( x − 3 ) {y + 2 = \frac23(x - 3)} y + 2 = 3 2 ( x − 3 ) .
Multiply by 3: 3 y + 6 = 2 x − 6 {3y + 6 = 2x - 6} 3 y + 6 = 2 x − 6 , so 2 x − 3 y − 12 = 0 {2x - 3y - 12 = 0} 2 x − 3 y − 12 = 0 .
← Back Next step → Show all steps Start again
Check yourself
Find the equation of the line through ( 1 , 4 ) (1, 4) ( 1 , 4 ) perpendicular to y = 2 x − 3 y = 2x - 3 y = 2 x − 3 . Give y y y in terms of x x x .
The perpendicular bisector of A B AB A B passes through the midpoint of A B AB A B , at right angles to it. Every point on it is the same distance from A A A and B B B .
x y A B M The perpendicular bisector Through M, with gradient −1 ÷ (gradient of AB)
Worked example · WAEC 2019
WAEC 2019 · Paper 2 · Q9
The curve y = 7 − 6 x y = 7 - \dfrac6x y = 7 − x 6 and the line y + 2 x − 3 = 0 y + 2x - 3 = 0 y + 2 x − 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.
Where they meet
7 − 6 x = 3 − 2 x {7 - \frac6x = 3 - 2x} 7 − x 6 = 3 − 2 x . Multiply by x x x : 7 x − 6 = 3 x − 2 x 2 {7x - 6 = 3x - 2x^2} 7 x − 6 = 3 x − 2 x 2 .
So 2 x 2 + 4 x − 6 = 0 {2x^2 + 4x - 6 = 0} 2 x 2 + 4 x − 6 = 0 , that is x 2 + 2 x − 3 = 0 {x^2 + 2x - 3 = 0} x 2 + 2 x − 3 = 0 .
( x + 3 ) ( x − 1 ) = 0 {(x + 3)(x - 1) = 0} ( x + 3 ) ( x − 1 ) = 0 : the points are ( 1 , 1 ) {(1, 1)} ( 1 , 1 ) and ( − 3 , 9 ) {(-3, 9)} ( − 3 , 9 ) .
Think first. From the line, y = 3 − 2x. Put that into the curve.
Midpoint and gradient
Midpoint: ( 1 − 3 2 , 1 + 9 2 ) = ( − 1 , 5 ) {\left(\frac{1 - 3}{2}, \frac{1 + 9}{2}\right) = (-1, 5)} ( 2 1 − 3 , 2 1 + 9 ) = ( − 1 , 5 ) .
Gradient of the chord: 9 − 1 − 3 − 1 = − 2 {\frac{9 - 1}{-3 - 1} = -2} − 3 − 1 9 − 1 = − 2 , so the bisector has gradient 1 2 {\frac12} 2 1 .
The bisector
y − 5 = 1 2 ( x + 1 ) {y - 5 = \frac12(x + 1)} y − 5 = 2 1 ( x + 1 ) , so 2 y − 10 = x + 1 {2y - 10 = x + 1} 2 y − 10 = x + 1 .
That is 2 y − x − 11 = 0 {2y - x - 11 = 0} 2 y − x − 11 = 0 .
← Back Next step → Show all steps Start again
More: perpendicular lines
WAEC 2018 · Paper 2 · Q10 Find the equation of the normal to the curve x 2 + x y + 2 y 2 = 8 x^2 + xy + 2y^2 = 8 at the point ( − 3 , 1 ) (-3, 1) . WAEC 2018 · Paper 2 · Q9 Points L ( − 1 , 0 ) L(-1, 0) , M ( 3 , 7 ) M(3, 7) and N ( 5 , − 2 ) N(5, -2) are the midpoints of the sides B C BC , C A CA and A B AB respectively of triangle A B C ABC . … NECO 2023 · Paper 2 · Q12 The vectors O X → \overrightarrow{OX} , O Y → \overrightarrow{OY} and O Z → \overrightarrow{OZ} are p = ( 10 1 ) \mathbf{p} = \begin{pmatrix} 10 \\ 1 \end{pmatrix} , … WAEC 2008 · Paper 2 · Q4 A straight line passes through the point P ( − 1 , 3 ) P(-1, 3) . Another line which passes through Q ( − 4 , 4 ) Q(-4, 4) intersects the first line … WAEC 2009 · Paper 2 · Q7 The coordinates of the vertices of triangle A B C ABC are A ( − 2 , 1 ) A(-2, 1) , B ( 4 , − 2 ) B(4, -2) and C ( 1 , 8 ) C(1, 8) . If D ( x , y ) D(x, y) is the foot of the … WAEC 2020 · Paper 1 · Q36 P ( 3 , 4 ) P(3, 4) and Q ( − 3 , − 4 ) Q(-3, -4) are two points in a plane. Find the gradient of the line that is normal to the line P Q PQ .
The angle between two lines
If two lines have gradients m 1 m_1 m 1 and m 2 m_2 m 2 , the acute angle θ \theta θ between them satisfies
x y θ m₁ m₂ The angle between two lines tan θ = |(m₁ − m₂) ÷ (1 + m₁m₂)|
tan θ = ∣ m 1 − m 2 1 + m 1 m 2 ∣ \tan\theta = \left|\frac{m_1 - m_2}{1 + m_1m_2}\right| tan θ = 1 + m 1 m 2 m 1 − m 2
Gradients and the angle Set the two gradients
−5 −3 −1 1 3 5 −4 −2 2 4 x y m₁ m₂ 77.47° acute angle θ −1/2 m₁ × m₂
m₁ = 2 m₂ = −1/4
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 L 1 L_1 L 1 and L 2 L_2 L 2 pass through the point of intersection of 2 y = x − 13 2y = x - 13 2 y = x − 13 and 3 y + x + 12 = 0 3y + x + 12 = 0 3 y + x + 12 = 0 . L 1 L_1 L 1 passes through P ( − 4 , − 7 ) P(-4, -7) P ( − 4 , − 7 ) and L 2 L_2 L 2 is perpendicular to 2 x − 5 y = 4 2x - 5y = 4 2 x − 5 y = 4 . Find the acute angle between L 1 L_1 L 1 and L 2 L_2 L 2 (2 d.p.).
The common point
3 y + ( 2 y + 13 ) + 12 = 0 {3y + (2y + 13) + 12 = 0} 3 y + ( 2 y + 13 ) + 12 = 0 , so y = − 5 {y = -5} y = − 5 and x = 3 {x = 3} x = 3 : the point ( 3 , − 5 ) {(3, -5)} ( 3 , − 5 ) .
Think first. From the first line, x = 2y + 13.
The two gradients
L 1 L_1 L 1 through ( 3 , − 5 ) (3, -5) ( 3 , − 5 ) and ( − 4 , − 7 ) (-4, -7) ( − 4 , − 7 ) : m 1 = − 7 + 5 − 4 − 3 = 2 7 {m_1 = \frac{-7 + 5}{-4 - 3} = \frac27} m 1 = − 4 − 3 − 7 + 5 = 7 2 .
2 x − 5 y = 4 {2x - 5y = 4} 2 x − 5 y = 4 has gradient 2 5 {\frac25} 5 2 , so L 2 L_2 L 2 has m 2 = − 5 2 {m_2 = -\frac52} m 2 = − 2 5 .
The angle
tan θ = ∣ 2 7 + 5 2 1 − 5 7 ∣ = 39 / 14 2 / 7 = 39 4 {\tan\theta = \left|\frac{\frac27 + \frac52}{1 - \frac57}\right| = \frac{39/14}{2/7} = \frac{39}{4}} tan θ = 1 − 7 5 7 2 + 2 5 = 2/7 39/14 = 4 39 .
θ = tan − 1 9.75 ≈ 84.14 ∘ {\theta = \tan^{-1} 9.75 \approx 84.14^\circ} θ = tan − 1 9.75 ≈ 84.1 4 ∘ .
← Back Next step → Show all steps Start again
More: the angle between two lines
Dividing a line in a ratio
The point dividing A B AB A B internally in the ratio m : n m : n m : n is ( n x 1 + m x 2 m + n , n y 1 + m y 2 m + n ) \left(\dfrac{nx_1 + mx_2}{m + n}, \dfrac{ny_1 + my_2}{m + n}\right) ( m + n n x 1 + m x 2 , m + n n y 1 + m y 2 ) , as with position vectors (see the ratio figure in vectors↺ ). Externally , the point lies beyond B B B (or beyond A A A ), and the signs change:
x y A B P AP : 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) ( 7 , − 5 ) and ( − 2 , 7 ) (-2, 7) ( − 2 , 7 ) externally in the ratio 3 : 2 3 : 2 3 : 2 .
The formula
x = 3 ( − 2 ) − 2 ( 7 ) 3 − 2 = − 6 − 14 = − 20 {x = \frac{3(-2) - 2(7)}{3 - 2} = -6 - 14 = -20} x = 3 − 2 3 ( − 2 ) − 2 ( 7 ) = − 6 − 14 = − 20 .
y = 3 ( 7 ) − 2 ( − 5 ) 3 − 2 = 21 + 10 = 31 {y = \frac{3(7) - 2(-5)}{3 - 2} = 21 + 10 = 31} y = 3 − 2 3 ( 7 ) − 2 ( − 5 ) = 21 + 10 = 31 .
Think first. m : n = 3 : 2, with (x₁, y₁) = (7, −5) and (x₂, y₂) = (−2, 7).
The point
( − 20 , 31 ) {(-20, 31)} ( − 20 , 31 ) : beyond B B B , since the ratio is more than 1.
← Back Next step → Show all steps Start again
Check yourself
Find the point that divides the line from A ( 1 , 2 ) A(1, 2) A ( 1 , 2 ) to B ( 4 , 8 ) B(4, 8) B ( 4 , 8 ) externally in the ratio 2 : 1 2 : 1 2 : 1 . Give its coordinates, separated by a comma.
More: dividing lines and parallelograms
WAEC 2017 · Paper 2 · Q1 If f ( x ) = 4 − 5 x 2 f(x) = \dfrac{4 - 5x}{2} and g ( x ) = x + 6 g(x) = x + 6 , x ∈ R x \in \mathbb R , find f ∘ g − 1 f \circ g^{-1} . WAEC 2018 · Paper 2 · Q7 Two points X X and Y Y have position vectors x = 2 i − 3 j \mathbf x = 2\mathbf i - 3\mathbf j and y = − i + 2 j \mathbf y = -\mathbf i + 2\mathbf j . … WAEC 2017 · Paper 2 · Q7 A parallelogram M N Q R MNQR has vertices M ( 4 , − 6 ) M(4, -6) , N ( 10 , 2 ) N(10, 2) , Q ( 8 , 16 ) Q(8, 16) and R ( x , y ) R(x, y) . Find the coordinates of R R .
Your turn
(a) A line is parallel to 2 x + 3 y = 5 2x + 3y = 5 2 x + 3 y = 5 . If the line is the perpendicular bisector of the line joining the points ( 3 , y ) (3, y) ( 3 , y ) and ( 5 , 2 ) (5, 2) ( 5 , 2 ) , find its equation.
Show the answer 6 y + 4 x − 19 = 0 6y + 4x - 19 = 0 6 y + 4 x − 19 = 0
Worked solution (try it first) 2 x + 3 y = 5 2x + 3y = 5 2 x + 3 y = 5 has gradient
− 2 3 -\frac23 − 3 2 , so the bisector has gradient
− 2 3 -\frac23 − 3 2 too (parallel).
The segment is perpendicular to it, with gradient
3 2 \frac32 2 3 :
2 − y 5 − 3 = 3 2 \dfrac{2 - y}{5 - 3} = \dfrac32 5 − 3 2 − y = 2 3 , so
y = − 1 y = -1 y = − 1 .
The midpoint of
( 3 , − 1 ) (3, -1) ( 3 , − 1 ) and
( 5 , 2 ) (5, 2) ( 5 , 2 ) is
( 4 , 1 2 ) \left(4, \frac12\right) ( 4 , 2 1 ) .
y − 1 2 = − 2 3 ( x − 4 ) y - \frac12 = -\frac23(x - 4) y − 2 1 = − 3 2 ( x − 4 ) .
Multiply by 6:
6 y − 3 = − 4 x + 16 6y - 3 = -4x + 16 6 y − 3 = − 4 x + 16 .
So
6 y + 4 x − 19 = 0 6y + 4x - 19 = 0 6 y + 4 x − 19 = 0 .
Watch out
Find the unknown y y y first, using the segment's gradient 3 2 \frac32 2 3 . The bisector passes through the midpoint of the segment. Report a problem with this question