Gradient of a Linear Graph
Measure how steep a straight line is: draw a right-angled step on the line, count its vertical change and its horizontal change in the units of the axes, and divide.
Before you start
- A point is fixed by its coordinates : the -coordinate is read on the horizontal axis and the -coordinate on the vertical axis (Lesson 10.1). On some graphs one square stands for 2, 5 or 10 units, so read the numbers on the axis, not the squares.
- The graph of a linear function is a straight line, drawn through the points of a table of values (Lesson 10.4).
- A fraction is written in its simplest form, and a negative number divided by a positive number is negative: and .
- A rate compares two quantities measured in different units, such as $4 per bowl or km/h.
What Gradient Measures
Some straight lines rise gently, some rise steeply and some fall. The gradient of a line is a number that measures how steep it is: how many units the line goes up (or down) for every unit it goes across to the right.
To find it, choose two points on the line where it passes exactly through a corner of the grid. From the left-hand point draw a right-angled step: go across to the right until you are directly below (or above) the other point, then go up (or down) to it. The distance across is the horizontal change; the distance up or down is the vertical change.
Gradient of a straight line
Both changes are counted in the units of the axes, going from the left-hand point to the right-hand point. So the horizontal change is always positive. The vertical change is positive when the step goes up and negative when it goes down.
Example 1: Finding a gradient with a step
Points and lie on a straight line. Draw the line and find its gradient.
Solution
Plot and , draw the line through them, and draw the step from , the left-hand point.
Across: from go right to , directly below . The -coordinate goes from to , so the horizontal change is .
Up: from go up to . The -coordinate goes from to , so the vertical change is .
The gradient of the line is : it goes up units for every unit across.
Positive, Negative and Zero Gradients
Read a line from left to right, as you read a sentence. Whether it goes up, goes down or stays level decides the sign of its gradient.
The sign of a gradient
A line that goes up from left to right has a positive gradient.
A line that goes down from left to right has a negative gradient: its step goes down, so its vertical change is negative.
A horizontal line has gradient : its vertical change is .
Example 2: A line going down
Points and lie on a straight line. Find the gradient of the line.
Solution
Draw the line and the step from , the left-hand point. The line goes down, so the step goes across and then down.
Across: from go right to , directly above . The horizontal change is .
Down: from go down to . The -coordinate falls from to , so the vertical change is .
The gradient is : the line goes down units for every unit across.
Example 3: A horizontal line
Points and lie on the line . Find its gradient.
Solution
Every point on the line has -coordinate , so the line is horizontal.
Across: from to the horizontal change is .
Up or down: the -coordinate stays at , so there is no step up or down: the vertical change is .
The line has gradient , as every horizontal line does.
Any Two Points Give the Same Gradient
A straight line is equally steep all along its length. So it does not matter which two points on it you choose: a small step and a big step on the same line give the same gradient. Choose points that make the counting easy.
Example 4: A small step and a big step
The line passes through , and . Find its gradient using and , then using and , then using and .
Solution
Small step, to : across , up . Gradient .
Big step, to : across , up . Gradient .
From to (not drawn): across , up . Gradient .
All three steps give the gradient : the line goes up unit for every units across.
Axes with Different Scales
On many graphs one square across and one square up do not stand for the same amount. Then counting squares gives the wrong gradient: the changes must be read from the numbers on the axes.
Count in units, not in squares
Before you count, check what one square stands for on each axis. A step of squares up is units only when one square up is unit.
Example 5: Unequal scales
The graph shows the line , with the points and on it. On the -axis one square is unit; on the -axis one square is units. Find the gradient of the line.
Solution
Across: from to . That is squares, and each square across is unit, so the horizontal change is .
Up: from to . That is squares, but each square up is units, so the vertical change is .
Counting squares would give , which is wrong: the line goes up units, not .
The gradient of the line is .
Comparing Steepness
The sign of a gradient tells you which way a line goes. Its size, ignoring the sign, tells you how steep it is.
Steepness
On the same axes, with the same scale on both, the larger the size of the gradient (ignoring its sign), the steeper the line.
Gradients and are equally steep: one line goes up units for every across and the other goes down units.
So a larger gradient does not always mean a steeper line: is smaller than , but a line with gradient is steeper than a line with gradient .
On axes with different scales a line can look gentler or steeper than it is (the line of Example 5 looks as steep as a line of gradient ), so compare the gradients, not the pictures.
Example 6: Which line is steepest?
The lines , , and are drawn below from the origin to the right.
(a) Find the gradient of each line.
(b) Which two lines are equally steep?
(c) List the lines from the steepest to the least steep.
Solution
(a) From the origin, follow each line to a corner of the grid and use that step.
: from to , across and up . Gradient .
: from to , across and up . Gradient .
: from to , across and up . Gradient .
: from to , across and down . Gradient .
(b) The gradients and have the same size, . The line goes up units for each unit across and goes down units, so they are equally steep.
(c) The sizes of the gradients, ignoring signs, are , , and .
(a) , , and . (b) and . (c) and (equally steep), then , then .
Gradient from Two Points or from a Table
When you are given two points but no grid, make a quick sketch: mark the two points roughly where they belong, draw the step from the left-hand point, and work out each change by subtracting coordinates.
The two changes from coordinates
Horizontal change the -coordinate of the right-hand point the -coordinate of the left-hand point.
Vertical change the -coordinate of the right-hand point the -coordinate of the left-hand point.
Example 7: Two given points
Find the gradient of the line through and .
Solution
Sketch the line with its step. is the left-hand point, since is less than .
Horizontal change: from to , so .
Vertical change: from down to , so . It is negative because the step goes down.
The gradient of the line through and is .
In a table of values for a straight line, each column is a point on the line. So any two columns give a step: the change in is the horizontal change and the change in is the vertical change.
Example 8: Gradient from a table of values
The table shows values of and for a straight line. Find the gradient of the line.
Solution
From each column to the next, increases by and increases by : a step across and up, as the graph of the table shows.
Check with the first and last columns: goes from to , a change of ; goes from to , a change of . Gradient .
The gradient of the line is .
Drawing a Line with a Given Gradient
To draw a line through a given point with a given gradient, write the gradient as and use it as a step: from the point go across to the right, then up (or down), and mark a new point. Take the same step once more as a check, then join the points with a ruler.
A whole-number gradient is a step of across: a gradient of is , so across and down.
Example 9: Drawing a line with a negative gradient
Draw the line through with gradient .
Solution
Write the gradient as : for every units across to the right, the line goes units down.
From : across to , then down to . Mark .
From : across to , then down to . Mark .
Join , and with a ruler and extend the line.
Check: from to the line goes across and down , and .
The line passes through , and , going down from left to right.
Gradient as a Rate
When the axes stand for real quantities, the gradient tells you how fast one quantity changes as the other increases: it is a rate. The scales of such graphs are often different, so count in the units of each axis.
Gradient as a rate
The unit of the gradient is the unit of the vertical axis per unit of the horizontal axis: dollars per bowl, litres per minute, kilometres per hour.
Example 10: Cost per item
A hawker stall sells fishball noodles at the same price for every bowl. The graph shows the cost of to bowls. One square across is bowl; one square up is $2.
(a) Why are the points not joined?
(b) Find the gradient and say what it stands for.
Solution
(a) A customer buys a whole number of bowls: there is no cost for bowls. So the points are plotted but not joined.
(b) The points lie on a straight line, so a step between any two of them gives its gradient. Use the points for bowl and bowls.
Across: from bowl to bowls, bowls.
Up: from $4 to $20, dollars ( squares of $2 each).
(a) Only whole numbers of bowls are sold. (b) The gradient is dollars per bowl: each bowl of fishball noodles costs $4.
Example 11: Litres per minute
Water flows into a tank at a steady rate. The graph shows the volume of water, litres, in the tank minutes after the tap is turned on. One square across is minute; one square up is litres.
(a) Find the gradient of the line, with its unit, and say what it stands for.
(b) How much water was in the tank when the tap was turned on?
Solution
The graph is an unbroken line because time passes continuously and the volume rises smoothly with it.
(a) The line passes through and at corners of the grid. Draw the step between them.
Across: minutes. Up: litres. (The step is squares across and squares up, but the squares stand for different amounts.)
(b) At the line is at .
(a) The gradient is litres per minute: water flows in at litres every minute. (b) There were litres in the tank at the start.
Example 12: A distance–time graph
A coach travels from Singapore to Malacca at a constant speed. The graph shows the distance, km, it has travelled hours after it set off. One square across is half an hour; one square up is km. Find the gradient of the graph and say what it stands for.
Solution
The line passes through and at corners of the grid. Draw the step between them.
Across: hours. Up: km.
The unit is kilometres per hour: the coach covers km in every hour.
The gradient is km/h: it is the speed of the coach.
The Gradient of
Look back at some of the lines in this lesson, their equations and the gradients you found:
| Line | Equation | Gradient |
|---|---|---|
| Example 1 | ||
| Example 2 | ||
| Example 3 | , that is | |
| Example 4 | ||
| Example 5 | ||
| Example 7 |
The equations of Examples 1, 2 and 7 were not given there. Check each by substituting its two points: and ; and ; and .
Each time, the gradient is the number in front of . This is no accident: in , each time increases by , increases by , so changes by for every unit across.
Gradient and equation
The graph of is a straight line with gradient .
It crosses the -axis at , because when .
In Example 11 the line is : the gradient is the rate of flow in litres per minute, and litres is the volume at the start.
Common Mistakes
- Counting squares on unequal scales. In Example 5, counting squares gives half the true gradient. Read the changes from the axis numbers.
- Turning the fraction upside down. The gradient is the vertical change divided by the horizontal change, not the other way round.
- Losing the minus sign. Count across from left to right. If the line goes down, the vertical change is negative and so is the gradient.
- "The bigger the gradient, the steeper the line." This is false for negative gradients: is smaller than , but a line with gradient is steeper. Compare the sizes, ignoring the signs.
- Using points that are not exactly on the line. Choose points where the line passes through a corner of the grid, or points given in the question or the table.
- Leaving out the unit of a rate. A gradient of on a volume–time graph is litres per minute.
Practice Questions
Try each question before you open its solution. For every gradient, draw or sketch the step.
Question 1
Find the gradient of the line shown. The points and lie on the line at corners of the grid.
ShowHide solution
Read the points: and . Draw the step from .
Horizontal change . Vertical change (up).
The gradient of the line is .
Question 2
Find the gradient of the line shown, which passes through the points and .
ShowHide solution
Read the points: is the left-hand point and the right-hand point.
Horizontal change . The line goes down, so the vertical change is .
The gradient of the line is .
Question 3
Sketch the line through each pair of points with its step, and find its gradient.
(a) and
(b) and
(c) and
ShowHide solution
(a) From go across to , then up to . Horizontal change ; vertical change . Gradient .
(b) The left-hand point is . Go across to , then down to .
Horizontal change ; vertical change . Gradient .
(c) Both points have -coordinate , so the line is horizontal. Horizontal change ; vertical change . Gradient .
(a) (b) (c)
Question 4
The table gives points on a straight line. Find the gradient of the line.
ShowHide solution
From each column to the next, increases by and decreases by : a step across and down.
Check with the first and last columns: across , vertical change , and .
The gradient of the line is .
Question 5
Five lines have these gradients. Line : . Line : . Line : . Line : . Line : .
(a) Which lines go down from left to right? Which line is horizontal?
(b) Which two lines are equally steep?
(c) List the lines from the steepest to the least steep.
ShowHide solution
(a) A negative gradient means the line goes down from left to right: and . A gradient of means a horizontal line: .
(b) Ignoring the signs, the sizes of the gradients are , , , and . Lines and both have size : goes up units for every across and goes down units, so they are equally steep.
(c) Order the sizes from the largest to the smallest: (), ( and ), (), ().
(a) and go down; is horizontal. (b) and . (c) ; then and , equally steep; then ; then .
Question 6
The graph shows a straight line through the points and . One square across is unit; one square up is units. Wei Ming counts squares across and squares up from to , and says that the gradient is .
(a) Explain his mistake.
(b) Find the correct gradient.
ShowHide solution
(a) The squares do not stand for the same amount on the two axes: one square up is units. He counted squares instead of units.
(b) Read the points: and .
Horizontal change . Vertical change : squares of units each.
(a) He counted squares, but each square up is units. (b) The gradient is .
Question 7
(a) Draw the line through with gradient .
(b) Draw the line through with gradient .
For each line, give the coordinates of two more points on it.
ShowHide solution
(a) A gradient of is : across and up. From go to , then to . Join the points.
(b) A gradient of means across and up. From go to , then to . Join the points.
(a) For example and . (b) For example and .
Question 8
A money changer at Raffles Place uses the graph below to change Singapore dollars (S$) into Malaysian ringgit (RM) at a fixed rate. One square across is S$5; one square up is RM10.
(a) Use the points and on the line to find its gradient.
(b) What does the gradient stand for?
(c) Use the gradient to find how many ringgit Ali gets for S$40.
ShowHide solution
(a) Draw the step from to .
Across: Singapore dollars. Up: ringgit.
(b) The gradient is ringgit per Singapore dollar: the money changer gives RM3.20 for every S$1.
(c) Each Singapore dollar buys RM3.20, so S$40 buys ringgit.
(a) ringgit per Singapore dollar (b) The rate of exchange: S$1 = RM3.20. (c) RM128
Question 9
Siti plays a game on her phone, and its battery runs down steadily. The graph shows the charge left in the battery, as a percentage of a full charge, hours after she starts. One square across is hour; one square up is 10%.
(a) What was the charge at the start?
(b) Find the gradient of the line, with its unit.
(c) What does the gradient tell you?
(d) After how many hours is the battery flat?
ShowHide solution
(a) At the line is at 90%.
(b) Use the points and , at corners of the grid.
Across: hours. The line goes down, so the vertical change is , in percent of a full charge.
The unit is the unit up per unit across: percent per hour. So the gradient is % per hour.
(c) The charge falls by 15% of a full charge every hour.
(d) The line meets the time axis at : the battery is flat after 6 hours. Check: 90% at 15% an hour lasts hours.
(a) 90% (b) % per hour (c) The charge falls by 15% of a full charge every hour. (d) After hours
Question 10
Priya uses her EZ-Link card for bus rides that all cost the same fare. The table shows the balance on her card after rides.
| Number of rides, | ||||
|---|---|---|---|---|
| Balance ($) |
(a) Show that the points lie on a straight line.
(b) Find the gradient of the graph of the balance against , and say what it means.
(c) After how many rides will the balance first fall below $5?
ShowHide solution
(a) For every more rides the balance goes down by the same amount: , and . Equal steps in give equal steps in the balance, so the points lie on a straight line.
(b) From one column to the next the step is rides across and $2.60 down, so the vertical change is .
The balance falls by $1.30 for each ride: each bus ride costs $1.30.
(c) After rides the balance is dollars. After rides it is dollars, which is below $5.
(a) The balance falls by $2.60 for every 2 rides, so the steps are equal and the points lie on a straight line. (b) dollars per ride: each ride costs $1.30. (c) After rides (balance $4.40).
Question 11
Mdm Lim's class orders printed T-shirts for Sports Day. The cost, dollars, of T-shirts is .
(a) Copy and complete the table.
(b) Use the table to find the gradient of the graph of against .
(c) Compare your answer with the equation. What do the numbers and stand for?
ShowHide solution
(a) ; ; ; .
(b) For every more T-shirts, goes up by : a step across and up.
(c) The gradient is the number in front of , as for every line . It is the rate: $8 for each T-shirt. The is the value of when : a fixed charge of $150, paid however many T-shirts are ordered.
(a) , , , (b) (c) $8 per T-shirt, and a fixed charge of $150.
Question 12
A straight line passes through and . Its gradient is .
(a) Find .
(b) Show that the point lies on the line.
ShowHide solution
(a) Sketch the step from , the left-hand point. Horizontal change .
A gradient of means up for every across. Across is lots of , so the line goes up .
So .
(b) From to : across and up , so the gradient from to is .
This is the gradient of the line. Only one straight line passes through with gradient , so lies on it.
(a) (b) The step from to has gradient , the same as the line, so is on the line.
Key Points
- The gradient of a straight line measures its steepness: .
- Find it with a right-angled step between two points on the line, going from left to right.
- Count both changes in the units of the axes, not in squares, above all when the scales differ.
- Up from left to right: positive gradient. Down: negative gradient. Horizontal: gradient .
- Any two points on a straight line give the same gradient.
- On the same axes, with the same scale on both, the larger the size of the gradient, ignoring its sign, the steeper the line; and are equally steep.
- To draw a line with a given gradient, step across and up (or down) from the given point, twice, and join.
- On a graph from a real setting the gradient is a rate, with the unit of the vertical axis per unit of the horizontal axis.
- The graph of has gradient and crosses the -axis at .