Worked example 1: gradient and y-intercept
A is the point (−3, −3) and B is the point (−1, −5). Work out the gradient of the line AB.
- Change in y: −5 − (−3) = −2.
- Change in x: −1 − (−3) = 2.
- Gradient = change in y ÷ change in x = −22 = −1.
Answer −1
AlgebraFoundation and Higher (some Higher only)
8 straight-line graphs questions to try, each with the answer and the full working one tap away. Every question here was made and worked out by the Show Working maths engine, not typed in by hand.
Straight-line graph questions use y = mx + c, where m is the gradient and c is where the line crosses the y-axis. You find gradients, intercepts, equations of lines and midpoints, and on Higher you also work with parallel and perpendicular lines.
A is the point (−3, −3) and B is the point (−1, −5). Work out the gradient of the line AB.
Answer −1
01 / Quiz yourselfTry it, then tap to check
Work each one out on paper first. Then open the answer and compare your working with ours, step by step.
01 / Gradient and y-interceptBoth tiers
Answer −1
02 / Gradient and y-interceptBoth tiers
Answer 5
03 / Midpoint of a line segmentBoth tiers
Answer (−7.5, 0.5)
04 / Midpoint of a line segmentBoth tiers
Answer (4, 1)
05 / Equation of a straight lineBoth tiers
Answer y = x − 2
06 / Equation of a straight lineBoth tiers
Answer y = −23x − 4
07 / Parallel and perpendicular linesHigher only
Answer y = 3x − 8
08 / Parallel and perpendicular linesHigher only
Answer y = −2x − 13
02 / What's covered4 kinds of question
Line L is parallel to the line 2y + 6x = −8 and passes through the point (−4, −1).
Find the equation of line L. Give your answer in the form y = mx + c.
Answer y = −3x − 13
Reading the gradient before y is on its own. For 2y = 6x + 4, divide everything by 2 first to get y = 3x + 2, so the gradient is 3, not 6.
03 / Practise itiPhone and iPad
In the app, Straight-line graphs makes fresh questions every time, so they never run out. Tap Show me one to see a new worked example straight away, or practise ten and open the working whenever you are stuck. Forgotten a method? Type it into Look up and the answer is there.

Show WorkingComing soon to the App Store