30 exam-style questions plus unlimited generated ones on this topic, at up to four difficulty levels, with full mark schemes. Notes, past-paper booklets and workbooks are open to everyone. Practice needs a free account.
Or take a quick quiz: 11 questions on this subtopic in GCSE Maths Higher (Edexcel), marked as you tap.
Plotting and interpreting straight-line graphs: gradient, y-intercept, \(y = mx + c\), finding the equation of a line from two points or a point and a gradient, and parallel lines (both tiers). Higher also covers perpendicular lines.
Key facts
\(y = mx + c\): m is the gradient, c is the y-intercept
Gradient \(= \dfrac{y_2 - y_1}{x_2 - x_1}\)
Parallel lines: same gradient
Grade 7+ only Perpendicular lines: \(m_1 \times m_2 = -1\), so \(m_2 = -\dfrac{1}{m_1}\)
\(x = a\) is vertical; \(y = b\) is horizontal
Midpoint of \((x_1, y_1)\) and \((x_2, y_2)\): \(\left(\dfrac{x_1 + x_2}{2}, \dfrac{y_1 + y_2}{2}\right)\)
Notes
Gradient and intercept
diagram
The gradient m measures steepness: how far up the line goes for every 1 unit across.
Gradient \(= \dfrac{\text{change in } y}{\text{change in } x} = \dfrac{y_2 - y_1}{x_2 - x_1}\)
Gradient = change in y ÷ change in x. The line crosses the y-axis at \(c = 1\)
Lines going uphill from left to right have positive gradients; downhill lines have negative gradients; horizontal lines have gradient 0.
The y-intercept c is where the line crosses the y-axis, at \((0, c)\)
\(x = a\) is a vertical line and \(y = b\) is a horizontal line.
Make y the subject before reading off m and c: \(3x + 2y = 8\) gives \(y = -\dfrac{3}{2}x + 4\)
From a point and a gradient: gradient 4 through (2, 5) gives \(5 = 4 \times 2 + c\), so \(c = -3\) and \(y = 4x - 3\)
From two points: through (1, 6) and (3, 2), \(m = \dfrac{2 - 6}{3 - 1} = -2\). Then \(6 = -2 + c\), so \(c = 8\) and \(y = -2x + 8\)
Parallel lines have the same gradient.
Perpendicular lines Grade 7+ only
diagram
Perpendicular lines meet at right angles, and their gradients multiply to give −1.
If one gradient is m, the perpendicular gradient is \(-\dfrac{1}{m}\) (the negative reciprocal): for 3 it is \(-\dfrac{1}{3}\); for \(-\dfrac{2}{5}\) it is \(\dfrac{5}{2}\)
Perpendicular to \(y = 2x - 1\) through (4, 1): gradient \(-\dfrac{1}{2}\), so \(1 = -2 + c\), \(c = 3\) and \(y = -\dfrac{1}{2}x + 3\)
Gradients 2 and \(-\dfrac{1}{2}\) multiply to −1, so the lines meet at 90°.
Straight lines in context
The gradient is a rate of change, e.g. pounds per hour or litres per minute.
The y-intercept is the starting value, e.g. a fixed charge before any hours are worked.
How to answer each type of question
M = method mark, A = answer mark, B = a mark on its own, C = a communication mark.
Find the equation of a line through two points
3 marksGrade 5
Work out the gradient from the two points.
Substitute one point into \(y = mx + c\) to find c.
Write the equation and check it with the other point.
Example. Find the equation of the line that passes through (−1, 7) and (3, −5).
Show the model answerHide the model answer
\(m = \dfrac{-5 - 7}{3 - (-1)} = -3\)
M1
\(7 = -3 \times (-1) + c\), so \(c = 4\)
M1
\(y = -3x + 4\)
A1
Find a parallel line through a point
2 marksGrade 5
Use the same gradient as the given line.
Substitute the point to find c.
Example. Line L has equation \(y = 4x - 7\). Find the equation of the line that is parallel to L and passes through (2, 3).
Show the model answerHide the model answer
Gradient 4, so \(3 = 4 \times 2 + c\)
M1
\(y = 4x - 5\)
A1
Show that two lines are parallel
2 marksGrade 5
Rearrange each equation into the form \(y = mx + c\)
Compare the gradients and write a conclusion.
Example. Show that the lines \(2y = 6x + 5\) and \(y - 3x = 1\) are parallel.
Show the model answerHide the model answer
\(y = 3x + 2.5\) and \(y = 3x + 1\)
M1
Both have gradient 3, so the lines are parallel
C1
Interpret the gradient and intercept
2 marksGrade 5
The gradient is the rate: the change in y for each 1 unit of x.
The intercept is the value of y when x is 0.
Use the context and its units in your answer.
Example. The cost, £C, of hiring a van for d days is \(C = 45d + 30\). (a) What does the 45 represent? (b) What does the 30 represent?
Show the model answerHide the model answer
(a) The cost per day: each extra day costs £45
B1
(b) A fixed charge of £30, paid whatever the number of days
B1
Find a perpendicular line
3 marksGrade 7
Find the gradient of the given line.
Take the negative reciprocal.
Substitute the point to find c.
Example. A is the point (1, 2) and B is the point (5, 10). Find the equation of the line that is perpendicular to AB and passes through B.
Dividing the change in x by the change in y (the fraction upside down).
Reading c from \(2y = 6x + 5\) as 5: make y the subject first.
Sign errors with negative coordinates: \(3 - (-1) = 4\)
Higher: using \(\dfrac{1}{m}\) or \(-m\) instead of \(-\dfrac{1}{m}\) for a perpendicular gradient.
More tips
Memory tricks
Sketch the two points first: if the line goes downhill, your gradient must be negative.
Check your equation by substituting both points; each should fit.
When finding a gradient from a graph, choose two points far apart where the line crosses grid corners.
Higher: negative reciprocal means flip the fraction and change the sign.
Exam technique
Give the equation in the form asked for, e.g. \(y = mx + c\) or \(ax + by = c\)
When working from a graph, draw the triangle you used to find the gradient.
In context questions, include units in your interpretation, e.g. '£45 per day'.
What each grade needs
What you need to be able to do, from the first marks up to the top grade.
Grade 3
Plot a straight line from its equationMake a table of values, plot the points and join them with a ruler.
Grade 4
Find the gradient between two pointsGradient = change in y ÷ change in x, e.g. from (1, 2) to (4, 11): \(9 \div 3 = 3\)
Grade 4
Identify gradient and intercept from an equationIn \(y = 5x - 2\), the gradient is 5 and the line crosses the y-axis at (0, −2).
Grade 5
Find the equation of a lineWork out m, then substitute a point to find c, e.g. through (2, 7) and (4, 11) gives \(y = 2x + 3\)
Grade 5
Identify and find parallel linesParallel lines have equal gradients: \(y = 3x + 1\) is parallel to \(y = 3x - 4\)
Grade 5
Rearrange an equation to find the gradientMake y the subject, e.g. \(2y + 6x = 5\) gives \(y = -3x + 2.5\), so the gradient is −3.
Grade 5
Interpret gradient and intercept in contexte.g. in \(C = 45d + 30\), 45 is the cost per day and 30 is a fixed charge.
Grade 7
Find perpendicular gradients and linesPerpendicular gradients multiply to −1, so a line perpendicular to \(y = 2x + 1\) has gradient \(-\dfrac{1}{2}\)
Quick recall
Cover the answers and test yourself. The app has these as flashcards that come back just before you'd forget them.
Write down the equation of the straight line that passes through \((2, 5)\) and \((7, 5)\).
\(y = 5\)
A straight line has gradient 4 and crosses the y-axis at the point \((0, -3)\). Write down the equation of the line.
\(y = 4x - 3\)
For each line, write ‘upwards’ or ‘downwards’ to show which way the line slopes from left to right. (i) \(y = 3x + 1\)
Upwards
Sample questions
Written for this site in the style of Edexcel exam questions. They are not taken from real past papers.
Question 1Easy1 mark
Tick (✓) one box. Which of these lines passes through the origin, \((0, 0)\)?
[1]
\(y = 2x\)
\(y = x + 2\)
\(y = 2\)
\(x = 2\)
Show the answer and mark scheme
Answer: \(y = 2x\)
B1 for y = 2x
Question 2Medium4 marks
A paddling pool is being emptied at a constant rate. Two minutes after emptying started there are 180 litres of water left in the pool. Five minutes after emptying started there are 90 litres left.
(a) Work out how many litres leave the pool each minute.
[2]
(b) Work out the total time, from when emptying started, that it takes for the pool to empty.
[2]
Show the answer and mark scheme
(a)Answer: 30 litres per minute
M1 for (180 − 90) ÷ (5 − 2) or 90 ÷ 3
A1 for 30
Worked solution: Between 2 and 5 minutes the volume falls by 90 litres in 3 minutes: 90 ÷ 3 = 30.
(b)Answer: 8 minutes
M1 for 180 ÷ 30 (= 6) or for finding the starting volume 240 litres
A1 for 8 (minutes)
Worked solution: At 2 minutes there are 180 litres left, which takes a further 180 ÷ 30 = 6 minutes. Total 2 + 6 = 8 minutes.
Question 3Hard6 marks
A, B, C and D are the points \(A(-1, 2)\),\(B(3, 5)\), \(C(8, 5)\) and \(D(4, 2)\).
(a) Prove that ABCD is a rhombus.
[3]
(b) Show that the line BD is the perpendicular bisector of the line AC.
[3]
Show the answer and mark scheme
(a)Answer: All four sides have length 5, so ABCD is a rhombus.
M1 for a correct method for the length of a side, e.g. AB² = 4² + 3² (= 25)
A1 for all four sides worked out as 5 (or all four squared lengths 25)
C1 for a conclusion that all four sides are equal, so ABCD is a rhombus
Worked solution: AB² = 4² + 3² = 25 so AB = 5. BC is horizontal: 8 − 3 = 5. CD² = (8 − 4)² + (5 − 2)² = 25 so CD = 5. DA is horizontal: 4 − (−1) = 5. All four sides equal 5, so ABCD is a rhombus.
(b)Answer: BD is perpendicular to AC (gradients −3 and 1/3), and the midpoint (3.5, 3.5) of AC lies on BD (y = −3x + 14).
M1 for the gradients of AC and BD, 1/3 and −3 (and their product −1)
M1 for the midpoint of AC as (3.5, 3.5) and the equation of BD, y = −3x + 14 (or a correct check that the midpoint is on BD)
C1 for the midpoint (3.5, 3.5) lies on BD (−3 × 3.5 + 14 = 3.5) and a conclusion that BD is perpendicular to AC and passes through its midpoint
Worked solution: Gradient of AC = (5 − 2) ÷ (8 − (−1)) = 1/3 and gradient of BD = (2 − 5) ÷ (4 − 3) = −3. Since 1/3 × (−3) = −1, BD is perpendicular to AC. The midpoint of AC is ((−1 + 8) ÷ 2, (2 + 5) ÷ 2) = (3.5, 3.5). BD has equation y = −3x + 14 (using B: 5 = −9 + c), and when x = 3.5, y = −10.5 + 14 = 3.5. So BD passes through the midpoint of AC and is perpendicular to it.