GCSE Mathematics · Chapter 15 · Algebra
A straight line is fixed by two numbers: how steep it is, and where it crosses the y-axis.
This chapter shows how to plot a line, measure its steepness and read its equation in the form y = mx + c. You will then write the equation of any line from points on it, and decide when two lines are parallel.
In this chapter · jump to a section
Start here
Your route through this chapter
By the end of this chapter you will be able to:
- plot a straight line from a table of values, and recognise horizontal and vertical lines
- find the gradient of a line from a graph or from two points
- read the gradient and the y-intercept from an equation in the form
- draw a line quickly from its equation
- find the equation of a line from a graph, from a gradient and a point, or from two points
- decide whether two lines are parallel, and write the equation of a parallel line
- explain what the gradient and the intercept mean in a real situation
- Higher: find the gradient and the equation of a perpendicular line
Time: two sessions, about 2½ hours. Session 1 covers sections 1 to 4. Session 2 covers sections 5 to 8 and the practice ladder.
Before you start, check you can do three things. Plot and read coordinates in all four quadrants. Substitute a negative number into an expression such as . Solve a two-step equation such as .
Three interactive figures sit inside the teaching. Figure 15.1 measures a gradient in section 2. Figure 15.2 explores in section 3. Figure 15.3 belongs to the Higher section at the end.
Section 1
Plotting a line from a table of values
An equation such as is a rule that links two numbers. Choose a value for , and the rule gives you the value of . Each pair of values is a point with coordinates .
The graph of the equation is the set of all the points that obey the rule. For a rule like this one, those points lie on a straight line. That is why it is called a linear equation.
To draw the line, work out a few points and join them. Two points fix a straight line. A third point is a check: if the three do not line up, one of them is wrong.
Coordinates are always written with the value first. The point is 2 across and 4 up. Go along the corridor, then up the stairs.
A table of values keeps the working tidy. Choose simple values, including a negative one and zero. Substitute each into the rule, then plot the points and rule a line through them. Extend the line to the edges of the grid, because the line does not stop at your last point.
Two kinds of line have very short equations. On the line , every point has a y-coordinate of 3, such as and . The line is horizontal. On the line , every point has an x-coordinate of . That line is vertical. Mixing up vertical and horizontal lines is a common slip: crosses the x-axis, so it runs up and down.
Worked example 1: table, points, line
Complete a table of values for for . Then describe the graph.
| Working | Reason |
|---|---|
| : | Substitute for . Multiply first, then subtract 2. |
| : | Zero is always an easy value to use. |
| : | Each step of 1 in adds 3 to . |
| : | A fourth point gives a second check on the pattern. |
| Plot , , , and rule a line through them | The points line up, so the table is correct. |
Check yourself. Does the point lie on the line ?
Show the answer
Substitute into the rule: . The rule gives 9, and the point has a y-coordinate of 9. So yes, lies on the line.
Common mistake: plotting the coordinates the wrong way round. A student plots at 4 across and 2 up. The first number is always the x-coordinate, which is the distance across. Swapped points do not line up with the others, which is how the third point catches the error.
Section 2
Gradient: how steep the line is
The gradient of a line measures its steepness. It tells you how far the line goes up for each 1 unit it goes across.
Look back at the table for . Each time went up by 1, went up by 3. So the gradient of that line is 3.
To find a gradient, pick any two points on the line. Work out how much changes and how much changes between them. Then divide.
On a graph, draw a right-angled triangle under the line. The height of the triangle is the change in . The base is the change in . Choose points where the line crosses grid corners, so both numbers are exact.
The sign of the gradient tells you the direction. Read the line from left to right, as you read a sentence.
| Line | Gradient |
|---|---|
| Goes up from left to right | Positive |
| Goes down from left to right | Negative |
| Horizontal | Zero |
| Vertical | None: the change in is 0, and you cannot divide by 0 |
With coordinates you do not need a drawing. For the points and , subtract the y-coordinates and subtract the x-coordinates. Start from the same point both times. The change in is . The change in is . The gradient is .
A bigger triangle on the same line gives the same answer. The line is equally steep everywhere, so any two points will do.
Figure 15.1 lets you move two points and watch the triangle change. Press the button to see what dividing the wrong way up would give.
Gradient from two points
Change in y = 5 − (−1) = 6
Change in x = 2 − (−2) = 4
Gradient = 6 ÷ 4 = 3/2
Positive: the line goes up as you move to the right.
Line through A and B: y = 3x/2 + 2
Worked example 2: gradient from two points
Find the gradient of the line through and .
| Working | Reason |
|---|---|
| Change in | Subtract the y-coordinates, second point minus first point. |
| Change in | Subtract the x-coordinates in the same order. Subtracting a negative adds. |
| Gradient | Divide the change in by the change in . |
| Gradient | Simplify the fraction. The line goes down, so a negative answer makes sense. |
Check yourself. Find the gradient of the line through and .
Show the answer
The change in is . The change in is . The gradient is . The line goes up from left to right, so a positive gradient is right.
Common mistake: dividing the change in x by the change in y. For the points and a student writes and gets . The fraction is upside down. Gradient is "up divided by across", so the change in goes on top.
A second slip is subtracting in a different order top and bottom. Writing on top and underneath gives . The sign is wrong, because the two subtractions started from different points.
Section 3
The equation y = mx + c
Every straight line that is not vertical has an equation of the form . The letters and stand for two numbers, and each one has a clear meaning.
- is the gradient. It is the number that multiplies .
- is the y-intercept. It is the value of where the line crosses the y-axis.
Why is the crossing point? On the y-axis, is 0. Put into and you get . So the line passes through .
Why is the gradient? Each time goes up by 1, the term goes up by . So goes up by as well. That is exactly what gradient means.
For , the gradient is 4 and the y-intercept is . The line crosses the y-axis at . The sign belongs to the number, so the intercept is , not 7.
The order of the terms does not matter. The equation is the same as . Its gradient is and its intercept is 5. Look for the number multiplying , wherever it sits. Taking the first number as the gradient would give 5 here, which is wrong. Dropping the sign of the gradient would give 2, which is also wrong.
Sometimes is not alone. In , the left side is . You must make the subject before you read anything. Divide every term by 2 to get . Now the gradient is 3 and the intercept is 4.
Figure 15.2 shows all of this at once. Slide and watch the line tilt. Slide and watch the whole line move up or down without changing its steepness.
Gradient and intercept explorer
y = 2x − 3
Gradient = 2, the number multiplying x.
y-intercept = −3: the line crosses the y-axis at (0, −3).
It crosses the x-axis at (3/2, 0). That crossing is not c.
| x | −2 | −1 | 0 | 1 | 2 |
|---|---|---|---|---|---|
| y | −7 | −5 | −3 | −1 | 1 |
Worked example 3: reading m and c
Write down the gradient and the y-intercept of each line: (a) , (b) .
| Working | Reason |
|---|---|
| (a) | Reorder the terms so the x-term comes first. The minus sign stays with . |
| Gradient , y-intercept | The gradient multiplies . The intercept is the constant term. |
| (b) | Divide every term of by 2 to make the subject. |
| Gradient , y-intercept | Read the two numbers only after is alone. |
Check yourself. Find the gradient and the y-intercept of the line .
Show the answer
Divide every term by 3 to make the subject: . The gradient is 2 and the y-intercept is . The line crosses the y-axis at .
Common mistake: reading the gradient before y is the subject. A student looks at and says the gradient is 6. The equation is not yet in the form . After dividing by 2, the gradient is 3. Always check that the left side is a single .
Section 4
Drawing a line from its equation
Once you can read and , you can draw a line without a table. Use the intercept to start and the gradient to step.
Take . The intercept is 3, so mark the point . The gradient is , so each step of 1 to the right goes down 2. Step to , then to . Rule a line through the points and extend it.
A fractional gradient is just as easy. For a gradient of , go 3 across and 2 up. The bottom number is the step across, and the top number is the step up.
Some equations are written with and on the same side, such as . There is a fast method for these. Find where the line crosses each axis.
- On the y-axis, . The equation becomes , so . The line crosses at .
- On the x-axis, . The equation becomes , so . The line crosses at .
Join the two crossing points. This is sometimes called the cover-up method, because you cover one term at a time.
Notice that the two crossings are different points. Only the crossing on the y-axis is the intercept in .
Worked example 4: intercept, then gradient steps
Draw the line for values of from to 3.
| Working | Reason |
|---|---|
| Mark | The intercept is 3, so the line crosses the y-axis at 3. |
| Step to | The gradient is : go 1 across and 2 down. |
| Step to and | Repeat the same step to get more points. |
| Step back to | Going 1 to the left reverses the step, so go 2 up. |
| Rule a line through all the points | The points line up, which confirms the steps. |
Check yourself. Where does the line cross each axis?
Show the answer
On the y-axis, , so and . The line crosses at . On the x-axis, , so and . The line crosses at .
Common mistake: reading c from the x-axis. A student sees that a line crosses the x-axis at 4 and writes . The intercept is always read from the y-axis, where . The x-axis crossing is a different point with a different meaning.
Section 5
Finding the equation of a line
Now reverse the process. You are given a line, and you need its equation. Every time, the job is to find two numbers: and .
From a graph. Read where the line crosses the y-axis. Then draw a triangle to find . Write with your two numbers.
From a gradient and a point. You know already. Write with that value of . The point lies on the line, so its coordinates fit the equation. Substitute its and values, and solve for .
From two points. First find the gradient from the two points, as in section 2. Then use either point to find , as above.
The second step matters. A line with gradient 2 could be anywhere on the grid. The point pins it in place. Leaving out the intercept and writing only describes a different line, the one through the origin.
Take care when you substitute. The x-coordinate replaces , and the y-coordinate replaces . Using the y-coordinate of the point as c is another slip. The point is not on the y-axis, so 11 is not the intercept.
Worked example 5: from a gradient and a point, then from two points
(a) A line has gradient 3 and passes through . Find its equation. (b) Find the equation of the line through and .
| Working | Reason |
|---|---|
| (a) | The gradient is 3, so . The intercept is still unknown. |
| The point is on the line, so substitute and . | |
| Solve by subtracting 6 from both sides. | |
| Write the equation with both numbers in place. |
| Working | Reason |
|---|---|
| (b) Gradient | Divide the change in by the change in . |
| Put the gradient into . | |
| , so | Substitute the point and solve for . |
| Write the finished equation. | |
| Check with the other point, . It fits. |
Check yourself. A line passes through and . What is its equation?
Show the answer
The gradient is . The point is on the y-axis, so . The equation is . Check with : .
Common mistake: swapping x and y when substituting. For gradient 3 through , a student writes . The coordinates have gone in the wrong places. The first coordinate is and the second is , so the correct line is .
Section 6
Parallel lines
Parallel lines run in the same direction and never meet. They are equally steep. So parallel lines have the same gradient.
The lines and are parallel. Both have gradient 2. Only the intercepts differ, which is why one line sits above the other.
To test whether two lines are parallel, compare their gradients. Make sure each equation has as the subject first. For example, becomes . Its gradient is 3, so it is parallel to .
To find the equation of a parallel line, copy the gradient. Then use a point on the new line to find its intercept, exactly as in section 5.
Worked example 6: a parallel line through a point
Find the equation of the line that is parallel to and passes through .
| Working | Reason |
|---|---|
| Gradient | Parallel lines have the same gradient as each other. |
| The new line has gradient 4, but a different intercept. | |
| The point is on the new line, so substitute it. | |
| Solve by subtracting 8 from both sides. | |
| Write the equation of the new line. |
Check yourself. Which two of these lines are parallel: , and ?
Show the answer
Find each gradient. The first line has gradient 2. The second has gradient . The third becomes , so its gradient is 2. The first and third lines are parallel.
Common mistake: matching intercepts instead of gradients. A student says and are parallel because both end in . Equal intercepts mean the lines cross at the same point on the y-axis. Parallel lines need equal gradients.
Section 7
What the gradient and intercept mean in real life
Straight-line graphs describe real situations where something changes at a steady rate. In these graphs, and are not just numbers. Each has a meaning, with units.
- The intercept is the starting value, when is 0.
- The gradient is the rate of change. It is how much changes for each 1 unit of .
A seedling is 2 cm tall when it is planted. It then grows 0.5 cm each day. After days its height is cm, where . The intercept, 2, is the height at the start. The gradient, 0.5, is the growth in centimetres per day.
To give the units of a gradient, say "the units of per unit of ". Here that is centimetres per day. On a graph of cost against miles, it would be pounds per mile.
A negative gradient means the quantity is falling. A candle that burns down 2 cm each hour has a gradient of .
You can use the equation to answer questions in both directions. Given the number of days, substitute to find the height. Given a height, solve an equation to find the number of days.
Worked example 7: a plumber's bill
A plumber charges £ for a job that takes hours, where . (a) What do 40 and 30 represent? (b) Find the charge for 3.5 hours. (c) A bill is £190. How long did the job take?
| Working | Reason |
|---|---|
| 40 is a fixed fee of £40 | The intercept is the charge when , before any work is done. |
| 30 is a rate of £30 per hour | The gradient is the extra charge for each extra hour. |
| Substitute to find the charge, £145. | |
| , so | Substitute , then subtract 40 from both sides. |
| Divide both sides by 30. The job took 5 hours. |
Check yourself. A taxi fare is £ for a journey of miles, where . What is the fare for 10 miles?
Show the answer
Substitute : . The fare is £21.50. The 3.5 is a fixed charge of £3.50, and the 1.8 is a rate of £1.80 per mile.
Common mistake: mixing up the gradient and the intercept. For a student says the plumber charges £40 per hour. The 40 is not multiplied by , so it does not grow with time. The number multiplying the variable is the rate. The number on its own is the fixed amount.
Section 8Higher
Higher: perpendicular lines
Perpendicular lines meet at a right angle. Their gradients are linked by a rule that is less obvious than the rule for parallel lines.
Start with a line of gradient 2. It goes 1 across and 2 up. Turn that step through a right angle. It becomes 2 across and 1 down. So the perpendicular line has gradient .
Two things happened to the gradient. The fraction turned upside down, and the sign changed. A number turned upside down is called its reciprocal. So the perpendicular gradient is the negative reciprocal of the original gradient.
| Gradient of a line | Gradient of a perpendicular line |
|---|---|
There is a neat test. Multiply the two gradients together. If the lines are perpendicular, the answer is . For example, .
Both changes are needed. Using the negative only turns 2 into . That line is a mirror image, not a right-angle turn. Using the reciprocal only turns 2 into . That line still slopes upwards, so it cannot be at right angles. Using the parallel rule keeps the gradient as 2, which gives a parallel line.
Figure 15.3 lets you test all four choices. Only one of them shows the right-angle marker, and only one gives a product of .
Parallel and perpendicular lines
Navy: y = 2x − 1 · Teal: y = −2x + 3
2 × (−2) = −4
Changing the sign alone gives a mirror image, not a right angle. The product is not −1.
To find the equation of a perpendicular line, work in three steps. Find the gradient of the first line. Take its negative reciprocal. Then use a point to find , as in section 5.
Worked example 8: a perpendicular line through a point
Line L has equation . Find the equation of the line that is perpendicular to L and passes through .
| Working | Reason |
|---|---|
| Gradient of L | The gradient is the number multiplying in the equation of L. |
| Perpendicular gradient | Take the negative reciprocal: turn 2 upside down and change the sign. |
| Put the new gradient into . | |
| The point is on the new line, so substitute it. | |
| Solve by adding 2 to both sides. | |
| Write the equation. Check: . |
Check yourself. A line has gradient . Write down the gradient of a perpendicular line.
Show the answer
Turn the fraction upside down to get , and change the sign from negative to positive. The perpendicular gradient is . Check: .
Common mistake: using the negative only. For a line of gradient 2, a student gives the perpendicular gradient as . The product is , not . The fraction must also be turned upside down, giving .
Practice
Practice ladder
Work down the ladder. Try each question before you open its solution.
Rung 1: Fluency
Q1. On the line , what is the value of when ?
Worked solution to Q1
Substitute into the rule. Multiply first: . Then subtract 3: . So the point is on the line, below and to the left of the origin.
Q2. Calculate the gradient of the line through and .
Worked solution to Q2
The change in is . The change in is . Divide the change in by the change in : the gradient is .
Q3. Write down the gradient and the y-intercept of the line .
Worked solution to Q3
Reorder the terms: . The number multiplying is the gradient, so the gradient is . The constant term is the intercept, so the line crosses the y-axis at 6.
Q4. State where the line crosses the x-axis and the y-axis.
Worked solution to Q4
On the y-axis, , so and . The line crosses at . On the x-axis, , so and . The line crosses at .
Rung 2: Reasoning
Q5. A line with gradient passes through . Write down its equation.
Worked solution to Q5
Start with . The point is on the line, so . That gives , so . The equation is .
Q6. A line passes through and . Show that its equation is .
Worked solution to Q6
The change in is and the change in is . The gradient is . Substitute into : , so . The equation is , as required.
Q7. Explain why the lines and are parallel.
Worked solution to Q7
Make the subject of the first equation by dividing every term by 3: . Its gradient is 3. The second line also has gradient 3. Equal gradients mean the lines are parallel. Their intercepts, and 4, are different, so they are separate lines.
Rung 3: Problem solving
Q8. A gym charges a joining fee and a fixed price each month. The total cost £ after months is . Tom has paid £233 in total. For how many months has he been a member?
Worked solution to Q8
Substitute into the equation: . Subtract 35 from both sides: . Divide both sides by 22: . Tom has been a member for 9 months. The 35 is the joining fee and the 22 is the monthly price.
Q9. The points , and all lie on one straight line. Determine the value of .
Worked solution to Q9
Find the gradient from the first two points: . Use to find the intercept: , so . The line is . Substitute : , so and .
Q10 (Higher). Line P passes through and . Line Q is perpendicular to line P and passes through . Find the equation of line Q.
Worked solution to Q10
The gradient of P is . The perpendicular gradient is the negative reciprocal, which is . Substitute into : , so . The equation of Q is . Check: .
Exam practice
Exam technique and worked answer workshop
Straight-line questions reward clear, labelled working. Marks are given for the gradient, for the method of finding , and for the final equation.
- Write the gradient as a fraction first. Show the change in over the change in before you simplify.
- Always finish with an equation. An answer of ", " should be followed by .
- Make y the subject before reading a gradient. Divide every term, not just one.
- Check with a point. Substitute a known point into your final equation.
- Give meaning and units in context questions. Say what the gradient measures, such as pounds per day.
In the mark guidance, M marks are for method, A marks are for accuracy and B marks are independent of method.
Exam question 1 (3 marks · non-calculator · about 3 minutes)
A straight line passes through the points and . Find the equation of the line. Give your answer in the form .
Mark guidance for exam question 1
- M1 for a correct method for the gradient, such as .
- M1 for substituting a point into to find .
- A1 for .
Annotated model answer: exam question 1
| Working | What the marker sees |
|---|---|
| Gradient | The change in is over the change in , in the same order. First method mark. |
| The gradient is placed correctly in the general equation. | |
| , so | A point on the line is substituted the right way round. Second method mark. |
| The answer is a full equation in the form asked for. Accuracy mark. | |
| Check: | The other point fits. The check is not marked, but it confirms the answer. |
Exam question 2 (3 marks · non-calculator · about 3 minutes)
Here are the equations of four straight lines.
Line A: . Line B: . Line C: . Line D: .
(a) Two of these lines are parallel. Write down the two lines. (1 mark)
(b) Write down the coordinates of the point where line B crosses the y-axis. (1 mark)
(c) Write down the equation of the line that is parallel to line D and passes through . (1 mark)
Mark guidance for exam question 2
- B1 for A and C. Line C becomes , so both have gradient 3.
- B1 for .
- B1 for .
Exam question 3 (4 marks · calculator allowed · about 5 minutes)
A shop hires out bikes. The cost, £, of hiring a bike for days is shown by a straight-line graph. The graph passes through and .
(a) Find an equation for in terms of . (2 marks)
(b) Explain what the gradient of the graph represents. (1 mark)
(c) Work out the cost of hiring a bike for 9 days. (1 mark)
Mark guidance for exam question 3
- M1 for the gradient, .
- A1 for .
- B1 for stating that the gradient is the cost of each extra day, £7 per day.
- A1 for £75.
Working for (c): .
Exam question 4 (4 marks · non-calculator · about 5 minutes · Higher)
A is the point and B is the point . Find the equation of the line that is perpendicular to AB and passes through B.
Mark guidance for exam question 4
- M1 for the gradient of AB, .
- M1 for the perpendicular gradient, 2, from the negative reciprocal.
- M1 for substituting into .
- A1 for .
Recap
Recap and next step
- Plot a line from a table of values. The x-coordinate comes first, and three points check each other.
- Gradient is the change in divided by the change in . Up to the right is positive, and down to the right is negative.
- In , is the gradient and is where the line crosses the y-axis. Make the subject first.
- To find an equation, find , then substitute a point to find . Parallel lines have equal gradients.
- Higher: the gradients of perpendicular lines multiply to , so use the negative reciprocal.
Next chapter: 16, Quadratics. The graphs there are curves, and the ideas of intercept and steepness carry over.
For your exam board
Straight-line graphs are examined by every board at both tiers, on calculator and non-calculator papers. Perpendicular lines are examined at Higher tier only.
- Pearson Edexcel 1MA1: specification references A9 and A10.
- AQA 8300: specification references A9 and A10.
- OCR J560: specification references 7.02a, straight line graphs, and 7.02b, parallel and perpendicular lines.
Sections 1 to 7 are Foundation content. Section 8 is Higher only.