The gradient of a line measures how steep it is: how far it goes up for every 1 across. Between two points and on it:
A positive gradient goes up from left to right; a negative one goes down; a horizontal line has gradient 0; a vertical line has no gradient. A line at an angle to the positive -axis has gradient .
Every non-vertical straight line has an equation , where is the gradient and is the -intercept, where the line crosses the -axis. A point lies on the line exactly when its coordinates fit the equation.
Try it
In “Gradient”, move below and watch the sign change, then line them up vertically. In “Equation”, the equation updates as you drag, and the green point shows .
To read the gradient from an equation like , make the subject first.
Finding the equation of a line
With the gradient and one point on the line:
With two points, find the gradient first, then use either point. Tidy the answer into the form the question asks for, such as or .
Worked example · WAEC 2019
Find the equation of the line which passes through the points and .
The gradient
.
Think first. Rise over run from A to B. Watch the signs.
Use a point
.
Think first. Which formula gives the line through A with this gradient?
Clear the fraction
, so . Check with : ✓.
Think first. Multiply every term by 2.
Parallel and perpendicular lines
- Parallel lines have equal gradients.
- Perpendicular lines have gradients that multiply to : . So the perpendicular gradient is : flip the fraction and change the sign.
Switch the board to “Parallel & perpendicular” and drag : both lines through it keep their gradients wherever goes.
Worked example · WAEC 2023
Given the points and on the Cartesian plane such that is the midpoint of , find the equation of the line that passes through and is perpendicular to .
The midpoint R
.
Think first. Average the coordinates of P and Q.
The gradient of PQ
.
Think first. Rise over run.
The perpendicular gradient
, since .
Think first. Flip and change the sign.
The line through R
, so .
Think first. Use y − y₁ = m(x − x₁).
The angle between two lines
A line at an angle to the positive -axis rises for every 1 across, so its gradient is
To find the angle, find the gradient and use (see the tangent ratio). For example, for the line :
- The gradient is .
- So .
- So .
For two lines with gradients and , the acute angle between them satisfies
The bars (take the value without its sign) make the answer the acute angle. Two special cases fit the rules above:
- Parallel lines have : the top is 0, so .
- Perpendicular lines have : the bottom is 0, so there is no and .
Worked example · NECO 2022
Find the acute angle between the lines and .
The first gradient
- Take from both sides: .
- Divide by 4: , so .
Think first. Make y the subject of x + 4y = 12.
The second gradient
- Add to both sides: .
- Divide by 2: , so .
Think first. Make y the subject of 2y − x = −6.
The top and the bottom
- Top: .
- Bottom: .
Think first. Work out m₁ − m₂ and 1 + m₁m₂ separately.
The angle
- Divide: .
- Use : , option B.
Think first. Divide, drop the sign, then use tan⁻¹.
More: the angle between two lines
Your turn
WAEC 2020 · Paper 2 · Q11 (b)
- (b)
Find the equation of the line which has the same gradient as and passes through the point .
Worked solution (try it first)
(b)
- gives , so the gradient is .
- Through : , so .
More past questions like this
- WAEC 2022 · Paper 2 · Q3Three points , and are in a plane. The line through the points and has the same gradient …
- WAEC 2014 · Paper 2 · Q13If and , find, correct …
- WAEC 2016 · Paper 2 · Q13Find the equation of a straight line which passes through the point and is parallel to the line .
- WAEC 2016 · Paper 2 · Q13Using a scale of 2 cm to 2 units on each axis, draw on a sheet of graph paper two perpendicular axes and for …
- WAEC 2018 · Paper 2 · Q7Find the equation of the line passing through the points and .
- WAEC 2019 · Paper 2 · Q10A twenty-kilogram bag of rice is consumed by boys in 10 days. When four more boys joined them, the same quantity of rice …
- WAEC 2019 · Paper 2 · Q6Given that and , find the value of .
- WAEC 2020 · Paper 2 · Q4The diagram shows a trapezium in which , , , …
- WAEC 2022 · Paper 2 · Q13Find the sum of the first 87 multiples of 5.
- WAEC 2023 · Paper 2 · Q13In the diagram, the radius of the sector of the circle centre is and ; . …
- WAEC 2023 · Paper 2 · Q4The gradient of the line joining the points and is . Find the value of .
- WAEC 2023 · Paper 2 · Q9A cylindrical tank of diameter is full of water. Three tankers, each of capacity litres, draw water …
- NECO 2024 · Paper 2 · Q3The vertices of are , and . Find the equation of the line (give in …
- WAEC 2019 · Paper 1 · Q34Find the equation of a straight line passing through the point and having gradient .
- WAEC 2020 · Paper 1 · Q20Find the equation of the line parallel to which passes through the point .
- WAEC 2020 · Paper 1 · Q42| | 6.20 | 6.85 | 7.50 |
- WAEC 2021 · Paper 1 · Q48The equation of a line is . Find its gradient.
- WAEC 2022 · Paper 1 · Q46The straight line passes through the point . Calculate the gradient of the line.
- WAEC 2023 · Paper 1 · Q22A line passing through the point is parallel to the line which passes through and . Find …
- WAEC 2023 · Paper 1 · Q49Find the gradient of the line passing through the points and .
- WAEC 2024 · Paper 1 · Q34The gradient of the line joining the points and is . Find the value of .
- WAEC 2024 · Paper 1 · Q47Which of the following points lies on the line ?
- NECO 2024 · Paper 1 · Q26Calculate the gradient of the line joining and , correct to 1 decimal place.
- NECO 2024 · Paper 1 · Q29Find the equation of a line whose gradient is 6 and -intercept is .
- NECO 2024 · Paper 1 · Q47Find the equation of a line with gradient passing through the point .
- NECO 2022 · Paper 1 · Q35Given the line , determine its gradient.
- NECO 2022 · Paper 1 · Q39Find the equation of a straight line passing through the point and parallel to the line .
- NECO 2022 · Paper 1 · Q47Find the gradient of a straight line joining the points and .
- NECO 2022 · Paper 2 · Q8If and are the surface area and volume of a sphere respectively and , find the values of …
- JAMB 1984 · UME · Q11A variable point traces a graph in a two-dimensional plane. is one position of . If increases …
- JAMB 1991 · UME · Q26Find the gradient of the line passing through the points and .
- JAMB 1992 · UME · Q32What is the perpendicular distance of the point from the line ?
- JAMB 1992 · UME · Q33Find the equation of the line through parallel to the line .
- JAMB 1994 · UME · Q36The equation of the line in the graph shown is
- JAMB 1995 · UME · Q30Two perpendicular lines and intersect at . If the equation of is , find the equation …
- JAMB 1997 · UME · Q33The angle between the positive horizontal axis and a given line is . Find the equation of the line if it passes …
- JAMB 1998 · UME · Q33The midpoint of the segment of the line which lies between the -axis and the -axis is
- JAMB 1999 · UME · Q29Find the tangent of the acute angle between the lines and .
- JAMB 2000 · UME · Q28 and are equations of two straight lines. If the two lines are perpendicular to each other, find …
- JAMB 2001 · UME · Q28A straight line makes an angle of with the positive -axis and cuts the -axis at . Find the equation …
- JAMB 2001 · UME · Q30Find the value of if the line joining and is perpendicular to the line joining and .
- JAMB 2002 · UME · Q8Find the value of if the line is perpendicular to the line .
- JAMB 2002 · UME · Q11Find the coordinates of the midpoint of the - and -intercepts of the line .
- JAMB 2010 · UTME · Q36Find the gradient of the line passing through the points and .
- JAMB 2010 · UTME · Q37Find the equation of a line parallel to passing through .
- JAMB 2011 · UTME · Q33Find the equation of a line perpendicular to the line which passes through .
- JAMB 2012 · UTME · Q32The gradient of the straight line joining the points and is
- JAMB 2012 · UTME · Q34Find the equation of the line through the points and .
- JAMB 2014 · UTME · Q33The gradient of a line joining and is . Find the value of .
- JAMB 2014 · UTME · Q34What is the equation of the line that passes through the -axis at and the -axis at ?
- JAMB 2014 · UTME · Q35Calculate the midpoint of the segment of the line which lies between the -axis and the -axis.
- JAMB 2014 · UTME · Q36Find the equation of the straight line through and perpendicular to .
- JAMB 2016 · UTME · Q39Find the value of if the line joining and is perpendicular to the line joining and .
- JAMB 2017 · UTME · Q3Find the value of if the line is perpendicular to the line .
- JAMB 2017 · UTME · Q32A straight line makes an angle of with the positive -axis and cuts the -axis at . Find the equation …
- JAMB 2018 · UTME · Q9What is the equation of the line that cuts the -axis at and the -axis at ?
- JAMB 2018 · UTME · Q35If the lines and are parallel to each other, the value of is
- JAMB 2013 · UTME · Q32Find the equation of the perpendicular bisector of the line joining to .
- JAMB 2017 · UTME (set 2) · Q31Find the gradient of the line joining the points and .