Maths · 4 Coordinate geometry
4.2 Gradient of linear graphs
Before you start
- Plotting and reading coordinates , including negative ones (4.1).
- Reading the scale on a graph axis when one square does not stand for one unit.
- Subtracting a negative number: .
- Simplifying a fraction, and the sign rules for dividing: and .
Syllabus objectives covered (2)
- Find the gradient of a straight line.
- Calculate the gradient of a straight line from the coordinates of two points on it.
Part 1 of 6
What a gradient measures
- The gradient of a straight line is one number that says how steep the line is. It tells you how far the line goes up for every unit it goes across.
- To measure it, take any two points on the line. Between them, the line moves across by some amount and up (or down) by some amount. The gradient is the vertical change divided by the horizontal change.
- Read it as a rate. A gradient of means the line goes up for every across. A gradient of means it goes up for every across, which is the same as up for every across.
- The vertical change goes on top. The reason is in the definition: the gradient answers 'how much up per one across', so 'up' is the quantity being shared out and 'across' is what it is shared over.
- A straight line is equally steep everywhere along it. So every pair of points on the same line gives the same gradient. That is good news: you are free to choose the two points that are easiest to read.
- When the axes measure real quantities, the gradient has units: the -units per -unit. If is in litres and is in hours, a gradient of means litres per hour.
Part 2 of 6
The sign says which way, the size says how steep
- Always read a line from left to right, the way you read text. Every rule about the sign depends on this.graph diagram — not drawn yet
One pair of axes with four straight lines through different points: one rising from left to right labelled 'positive', one falling from left to right labelled 'negative', one horizontal labelled 'zero', and one vertical labelled 'undefined'.
Read each line left to right. Going up is positive, going down is negative, flat is zero, and a vertical line has no gradient you can calculate. - A line that goes up from left to right has a positive gradient. Its rise is positive and its run is positive.
- A line that goes down from left to right has a negative gradient. As you move right, decreases, so the rise is negative.
- A horizontal line has gradient . It goes across without going up at all, so the rise is , and divided by any run is .
- A vertical line has no gradient you can calculate. It goes up without going across, so the run is , and you cannot divide by . Its gradient is said to be undefined.
- Steepness comes from the size of the gradient, ignoring the sign. A line with gradient is steeper than a line with gradient , because is bigger than . The minus sign tells you only that the first line goes down.
Part 3 of 6
Finding the gradient of a line drawn on a grid
- Choose two points where the line passes exactly through a grid intersection, where a vertical gridline and a horizontal gridline cross. At these points you read the coordinates exactly instead of estimating them.
- Choose them far apart. A small error in reading a point matters less when the rise and run are large.
- Draw a right-angled triangle with the line as its sloping side: a horizontal side from the left point, and a vertical side up or down to the right point.graph diagram — not drawn yet
A grid with equal scales on both axes and a straight line rising through the grid points (-2, -1) and (4, 2); a right-angled triangle drawn below the line between these points, with the horizontal side labelled 'run = 6' and the vertical side labelled 'rise = 3'.
The line is the sloping side. Rise over run is . - Measure the two sides in axis units, not in squares. The run is the difference of the two -values; the rise is the difference of the two -values.
- Divide the rise by the run, then give the answer the sign that matches the direction of the line: positive if it goes up from left to right, negative if it goes down.
- Check the size. When both axes use the same scale, a line steeper than has a gradient bigger than in size, and a gentler line has a gradient between and in size. If your answer disagrees with the picture, look again.
Part 4 of 6
Squares are not units: reading the scales
- A graph may need different scales on its two axes, because the two quantities are measured in different units. One square across might be seconds while one square up is metres.
- Take a line that rises squares while it goes squares across on that grid. It looks like a line, and counting squares would give a gradient of . That is wrong.graph diagram — not drawn yet
A grid where the horizontal axis is time in seconds with one square = 2 s and the vertical axis is distance in metres with one square = 10 m; a straight line through (0, 0) and (6, 30), with a right-angled triangle whose sides are labelled '3 squares = 6 s' and '3 squares = 30 m'.
The triangle looks like a triangle, but its sides are m and s, so the gradient is , not . - Convert each side into the units of its own axis. The rise is metres. The run is seconds. The gradient is , which is metres per second.
- The lesson: how steep a line looks depends on the scales someone chose for the axes. The gradient does not. It is always the change in the -quantity divided by the change in the -quantity.
Part 5 of 6
The gradient from two coordinates
- Without a graph, you can still build the same triangle in your head. Call the two points and . Between them, the run is and the rise is .
- Put the rise over the run:
- The letter is the usual symbol for a gradient. This formula is not on the List of formulas printed in Papers 2 and 4, so you must know it.
- It does not matter which point you call point . What matters is that you use the same order on the top and on the bottom: if you start with point on top, start with point on the bottom too.
- Here is why. For and : . The other way round: . Reversing both subtractions flips both signs, and the two sign changes cancel.
- Reversing only one of them flips the sign of the answer, so a line that goes up would come out with a negative gradient. Write the formula down before you substitute, and you will keep the order.
- Because a straight line has the same gradient everywhere, gradients can test whether three points , and lie on one straight line. Work out the gradients of and . If they are equal, the three points are on one line, because the two pieces share the point and slope the same way. If they are different, the points are not on one line.
Part 6 of 6
Negative coordinates, fractions and the two special lines
- The formula itself is short; the work is in the signs. When you substitute a negative coordinate, put it in brackets: , not .
- Then subtracting a negative is adding: . A quick check: going from to is a move of units to the right, so the run must be .
- Simplify the fraction at the end. becomes , which you may also write as . A negative over a positive is negative; a negative over a negative is positive: .
- A gradient that is not a whole number may be given as a fraction or as a decimal, but not as a mixture of the two in one answer. is not a finished answer; or is.
- **Same -values**, as in and : the top of the fraction is , so the gradient is . The line is horizontal.
- **Same -values**, as in and : the bottom of the fraction is . You cannot divide by , so there is no gradient to calculate. The line is vertical.
- Before you calculate, picture where the two points are. If the right-hand point is lower than the left-hand point, the line goes down, so your answer must be negative. This two-second check catches a wrong sign before you write it down.
- This subtopic is not on the list of calculator-only content, so it can be examined on Paper 2, where no calculator is allowed. Practise doing the subtraction and the simplifying by hand.
Worked examples
Example 1. A straight line is drawn on a grid where one square is unit on both axes. It passes exactly through the grid points and . Find the gradient of the line.
Show the working
- These two points are on grid intersections and far apart, so they are good points to use. Draw the triangle with the horizontal side from and the vertical side up to .
- The run is the change in : from to is units.
- The rise is the change in : from to is units. The line goes up from left to right, so the rise is positive.
- Divide the rise by the run.
- Check the size. The scales are equal and the line is gentler than (it goes across but up only ), so a gradient between and is what you expect.
Answer: The gradient is (or ).
Example 2. A graph shows the volume of fuel, litres, in a generator's tank hours after it is switched on. On the horizontal axis, one square is hours. On the vertical axis, one square is litres. The straight line starts at when and meets the horizontal axis at . Find the gradient of the line and state what it means.
Show the working
- Use the two points where the line meets the axes: and . They are easy to read and far apart.
- On the grid, the line goes down squares while it goes squares across. Counting squares would give . Do not do that: the two axes have different scales.
- Convert to axis units. The run is hours. The rise is litres. It is negative because the line goes down from left to right.
- Divide the rise by the run.
- Give the units: litres per hour. A gradient of litres per hour means the volume of fuel goes down by litres every hour.
Answer: The gradient is litres per hour: the generator uses litres of fuel each hour.
Example 3. Calculate the gradient of the straight line through and .
Show the working
- First picture the points. is to the right of and lower down, so the line goes down from left to right. Expect a negative answer.
- Write the formula, then substitute with as point and as point . Put brackets round the negative -value.
- Top: . Bottom: .
- Divide.
- Check by taking the points the other way round: . The same answer, and negative, as the picture said.
Answer:
Example 4. The straight line through and has gradient . Find the value of .
Show the working
- The formula works in both directions. Here you know the gradient and one coordinate is missing, so write the formula with the letter in it and set it equal to the gradient.
- Use as point and as point .
- The bottom is , so the equation is .
- Multiply both sides by to clear the fraction, because is what is being divided by.
- So .
- Check: the gradient of the line through and is . Correct.
Answer:
Where people go wrong
Mistake: Dividing the change in by the change in (run over rise).
Instead: The change in goes on top: gradient .
The gradient measures how far the line goes up for each unit across. Run over rise gives the reciprocal: where the answer is .
Mistake: Counting squares on a graph whose two axes have different scales.
Instead: Convert each side of the triangle into the units of its own axis, then divide.
One square can mean hours across and litres up. In the fuel example, counting squares gives , but the true gradient is litres per hour.
Mistake: Subtracting the -values in one order and the -values in the other, as in .
Instead: Whichever point comes first on the top, it comes first on the bottom too.
Reversing only one subtraction flips the sign of the answer, so a line that goes down comes out positive.
Mistake: Writing as .
Instead: Put the negative in brackets, then subtracting a negative is adding: .
Going from to is a move of units to the right. A run of would put the second point to the left of the first.
Mistake: Giving a positive gradient for a line that goes down from left to right, because the sides of the triangle are lengths and lengths are positive.
Instead: Read the line from left to right. If it goes down, the rise is negative and so is the gradient.
The gradient records direction as well as steepness. The side lengths of the triangle give only the size.
Check yourself
- A straight line rises units while it goes units to the right. What is its gradient?
Answer
- A straight line goes down from left to right. Is its gradient positive or negative?
Answer
Negative. As you move right, decreases, so the rise is negative. - Line has gradient and line has gradient . Which line is steeper?
Answer
Line . Steepness is the size of the gradient, and is bigger than . The minus sign only says that goes down. - On a graph, one square across is second and one square up is metres. A straight line rises squares while it goes squares across. Find its gradient, with units.
Answer
Rise metres, run seconds, so the gradient is metres per second. - Calculate the gradient of the line through and .
Answer
- Calculate the gradient of the line through and .
Answer
(or ). - Calculate the gradient of the line through and . What kind of line is it?
Answer
. The -values are equal, so the line is horizontal. - What happens when you try to calculate the gradient of the line through and ?
Answer
The bottom of the fraction is , and you cannot divide by . The line is vertical, so its gradient is undefined.
Exam questions
Try each part first. Open the mark scheme after you have written your answer.
Question 1. A printing shop shows its prices on a straight-line graph of the cost, dollars, against the number of posters printed, . On the horizontal axis, one square represents posters. On the vertical axis, one square represents dollars. The line passes through the point and, from there, rises squares for every squares across.
(a) Find the gradient of the line. 2 marks No calculator
Mark scheme
- M1 rise and run seen, or oe
- A1 oe
(b) Explain what the gradient represents in this context. 1 mark No calculator
Mark scheme
- B1 each extra poster adds dollars (50 cents) to the cost oe; FT their (a)
(c) A second shop charges dollars for each poster. Its line is drawn on the same axes. State which shop's line is steeper, giving a reason. 1 mark No calculator
Mark scheme
- B1 the second shop's line, because oe; FT their (a)
Question 2. The points , and are given.
(a) Calculate the gradient of the line . 2 marks No calculator
Mark scheme
- M1 oe
- A1 oe
(b) Show that the gradient of the line is . 2 marks No calculator
Mark scheme
- M1 oe
- A1 or seen (points taken in either order), leading to with no errors in the working
(c) The point lies on the line . Find the value of . 3 marks No calculator
Mark scheme
- M1 , or using , oe, FT their (a)
- M1 , or , oe, the fraction cleared correctly
- A1 cao
Question 3. The points , and are given.
(a) Determine whether , and lie on the same straight line. Show your working. 3 marks
Mark scheme
- M1 gradient of oe
- M1 gradient of , or of , oe
- A1 not on the same straight line, because the gradients are different, with both gradients correct. Any other correct method scores in full, e.g. the line through and is , which gives at
(b) Explain why the gradient of the line through and cannot be calculated. 1 mark
Mark scheme
- B1 the change in is and division by is impossible, or the line is vertical, oe
How this is examined
- Working out a gradient from two coordinates, when one or more of them is negative: a Calculate or Find with two points given as coordinates and no graph to read from M1 for the change in over the change in written out with both subtractions in the same order and brackets round negatives, e.g. ; A1 for the simplified value, e.g. . With the substitution written down, an arithmetic slip after it can still leave you the M1.
- Reading a gradient off a drawn line in the units of each axis, not in squares: a Find on a straight line already drawn on a grid, where the two axes may have different scales M1 for a rise and a run read in axis units from two clearly chosen points (a triangle drawn on the line with each side labelled in axis units shows this); A1 for rise ÷ run with the sign that matches the direction of the line.
- Showing that two points give a gradient that the question has already printed: a Show (that) in which the gradient is given and only the working is being marked Every step in sight: the formula with the coordinates substituted, the unsimplified fraction such as , then the given value. The answer is printed in the question, so the marks are for the working that leads to it, and a bare final value shows nothing.
- What the sign and the size of a gradient tell you: a one-mark State, Write down or Explain: which of two lines is steeper, whether a gradient is positive or negative, or what a gradient means in a context A direct answer with its reason: 'line , because is bigger than ', or 'the cost goes up by dollars for each extra poster'. In a context, state the rate with its units: the -units per -unit.
Words to know
- Gradient
- A number that measures the steepness of a straight line: the change in divided by the change in between any two points on it. Written in formulas.
- Rise
- The change in between two points on a line. It is negative when the line goes down from left to right.
- Run
- The change in between two points on a line.
- Scale
- What one square stands for on an axis. The two axes of a graph can have different scales.
- Undefined gradient
- The gradient of a vertical line. The change in is , and you cannot divide by .