Which road is steeper?
Two roads climb the same hill. The numbers are invented for this lecture. Road A rises 30 m while it moves 400 m across, measured flat along the ground. Road B rises 45 m while it moves 500 m across. Which road is steeper?
Road B climbs higher, so it is tempting to say B. But Road B is also longer, and a long road can climb high and still be gentle. Words like "steep" and "gentle" cannot settle this. You need one number for each road.
Here is a fair way to compare. Ask how much each road rises for every 1 metre across.
- Road A: m up for each metre across.
- Road B: m up for each metre across.
So Road B is steeper, but only a little. Now the question has an answer that nobody can argue with.
The last lecture ended with a promise. It said that the size of the step tells you how steep a line is, and that the next lecture would give that number its name. The number is called the gradient. Some books call it the slope.
The step, measured for each 1 across
Go back to the taxi in the last lecture. The fare was dollars for a journey of km. Every extra kilometre added $0.50. On the graph, every step of 1 across went 0.5 up. For the line , every step of 1 across went 2 up.
That number, the distance up for each 1 across, is the gradient. The taxi line has gradient 0.5. The line has gradient 2. A bigger step up for each 1 across means a steeper line.
You have met this number before, under another name. In the lecture on the nth term, the sequence went 5, 8, 11, 14. Each term was 3 more than the one before, and the positions were 1 apart. So if you plot position against term, every 1 across goes 3 up. The common difference of an arithmetic sequence is the gradient of its straight line.
Often the step you can see is not 1 across. In the taxi table, the points and are 2 across and 1 up. How much is that for each single kilometre? Share the 1 up equally between the 2 across: . This is why the gradient is a division. Dividing the distance up by the distance across turns any step into a step of 1 across.
The distance across is called the run. The distance up is called the rise.
Choose any two points on the line. Then
For points and , the gradient is . It is the number of units the line goes up for each 1 unit across.
The small numbers 1 and 2 under the letters are labels, not powers. means "the coordinates of the first point". means "the coordinates of the second point".
The letter is the usual name for a gradient. Why ? Nobody knows for certain. Its earliest known use in print is in a British geometry book by Matthew O'Brien in 1844, and historians have not found his reason. So is simply a name, the way a person's name is a name. (Some countries use other letters, such as .)
The figure shows the rule at work on the line through A(1, 2) and B(4, 8). Draw a right-angled triangle under the line. Its flat side is the run, and its upright side is the rise.
The rise is . The run is . So the gradient is . Check on the grid: 1 across from A, the line is 2 higher.
Any two points give the same answer
A fair question: would a different pair of points give a different gradient? A bigger triangle has a bigger rise. Does the gradient grow too?
For a straight line, it does not. The reason comes from the last lecture. On a straight line, every 1 across adds the same amount up. So 3 across adds 3 times that amount, and 10 across adds 10 times that amount. When the run grows, the rise grows in the same proportion, and the division gives the same answer. A big triangle under the line is an enlarged copy of a small one, with exactly the same shape.
That is it. That is the whole idea. A straight line has one gradient, and every triangle under it gives that same number.
Test it below. Change the triangle and watch what stays the same.
Choose a line. Move the start of the triangle and change its size with the sliders or the − and + buttons. Watch the rise, the run and the gradient.
The table shows four different triangles under the taxi line . The rise and the run change, but the gradient does not.
| From | To | Rise | Run | Gradient |
|---|---|---|---|---|
| (0, 3) | (1, 3.5) | 0.5 | 1 | 0.5 |
| (0, 3) | (2, 4) | 1 | 2 | 0.5 |
| (2, 4) | (6, 6) | 2 | 4 | 0.5 |
| (4, 5) | (7, 6.5) | 1.5 | 3 | 0.5 |
On the line , the same happens with a negative gradient: from (0, 5) to (1, 2) the rise is −3 and the run is 1, and from (−1, 8) to (2, −1) the rise is −9 and the run is 3. Both give −3. On the vertical line , every triangle has a run of 0, so there is no gradient to find.
You should have seen that the rise and the run changed every time, but their division did not. On the taxi line it was always 0.5, whether the triangle was 1 across or 4 across.
On the line in the figure, Jia uses the points (1, 2) and (4, 8). Tomás uses (2, 4) and (3, 6), which are also on the line. His triangle is much smaller. Does he get a smaller gradient?
Show the answer
No. Tomás finds a rise of and a run of , so his gradient is . This is the same as Jia's. His triangle is smaller in both directions by the same factor, 3, so the division does not change. If two pairs of points on a graph give different gradients, the graph is not a straight line. That is the test the last lecture used on .
Downhill lines have negative gradients
Read every graph from left to right, the way you read a sentence. Moving right, increases, so the run is positive. If the line climbs, increases and the rise is positive too. If the line falls, decreases, so the rise is negative. A negative number divided by a positive number is negative. So a line that falls from left to right has a negative gradient.
Take , the equation from the last lecture's "spot the error". Two points on it are and . The rise is , so the line falls 6. The run is . The gradient is . The line goes 3 down for each 1 across.
Does it matter which point you call the first? Take the points the other way round. The rise is , and the run is . The gradient is , the same as before. Both changes flip their signs together, and the two minus signs cancel in the division.
So there is only one rule about order. The point that comes first at the top must also come first at the bottom. Then either order gives the right answer.
The sign gives direction, the size gives steepness
A gradient carries two pieces of information. Before reading on, test your own idea of what "steeper" means.
Line P has gradient 2. Line Q has gradient −3. Both axes use the same scale. Choose your answer before you read on.
Line P has gradient 2 and line Q has gradient −3. The figure draws both through the origin with equal scales. Q is steeper: it falls 3 for each 1 across, while P rises only 2.
The sign of a gradient tells you the direction: positive goes up, negative goes down. The size of the gradient, read without its sign, tells you the steepness. A gradient of means 3 down for each 1 across. A gradient of 2 means 2 up for each 1 across. A fall of 3 is a steeper journey than a climb of 2, so the line with gradient is steeper. For steepness, compare 3 with 2, not with 2.
The size also gives a quick check. A gradient of exactly 1 (or ) means the rise and the run are equal. When both axes use the same scale, that line makes an angle of 45° with the horizontal. A size bigger than 1 means steeper than 45°. A size between 0 and 1 means gentler than 45°.
Flat lines and upright lines
A horizontal line such as passes through and . The rise is , and the run is 5. The gradient is . A gradient of 0 means no climb at all, wherever you start.
An upright (vertical) line such as passes through and . The rise is . The run is . So the gradient would be .
This is the hard part of the lecture. Spend time here. A division asks a question: asks "what number times 2 makes 10?" The answer is 5. So asks "what number times 0 makes 5?" There is no such number, because any number times 0 is 0. The question has no answer, so the division has no answer. We say the gradient of a vertical line is undefined.
It is tempting to say the gradient is "very big". Picture lines that get steeper and steeper. Their gradients are 10, then 100, then 1000. They grow without end. The upright line is steeper than every one of them, so no number fits it. Undefined does not mean large. It means that there is no number at all.
Gradients in the real world
A gradient often has units. On the taxi graph, the rise is in dollars and the run is in kilometres. So the gradient 0.5 means $0.50 per kilometre: it is the price of each extra kilometre. A gradient is a rate: how fast one quantity changes as the other one grows.
When the rise and the run are both in metres, the units cancel and the gradient is a pure number. Roads and ramps describe it in two common ways. A road sign may say 10%, which means a gradient of : 10 m up for every 100 m across. A ramp may be described as "1 in 12", which means 1 up for every 12 across, a gradient of . Building codes in many countries, including Singapore, India and the United States, use 1 in 12 as the steepest gradient allowed for a wheelchair ramp.
Some descriptions measure along the sloping road instead of flat across the ground. For gentle slopes the difference is tiny: 1 m up for every 8 m along the road gives about 0.126 instead of 0.125.
The steepest street in the world, according to Guinness World Records, is Baldwin Street in Dunedin, New Zealand. Its steepest part has a gradient of 34.8%, measured along the centre of the street over 10 m across. So in those 10 m across, the street rises about 3.48 m. A sign at the bottom describes it as about 1 in 2.86.
Worked examples
Find the gradient of the line through and .
Plan. Call the first point and the second. Put brackets round the negative number before you subtract it.
Rise: . Run: .
The line goes 1 down for each 1 across.
Check. Picture the points. Moving right from to , the height drops from 5 to 1. The line falls, so a negative gradient makes sense. The rise and run have the same size, so the line falls at 45° when both axes use the same scale.
Find the gradient of the line in the graph below.
Plan. Choose two points where the line crosses grid corners exactly, so you can read them without guessing. Here those are and . Then read the numbers on the axes. Do not count squares.
Rise: . Run: .
Check. The triangle looks square: 4 squares across and 4 squares up. Counting squares would give a gradient of 1, which is wrong. The vertical axis goes up in 2s, so 4 squares up is 8 units. The line looks like 45° only because of the scales.
A shop door is 45 cm above the pavement. A ramp must have a gradient no steeper than 1 in 12. What is the shortest run the ramp can have? A builder offers a ramp with a run of 4.8 m. Is it allowed?
Plan. Use the same unit for rise and run: 45 cm = 0.45 m. "1 in 12" means each 1 m up needs 12 m across.
Shortest run: m.
The builder's ramp: gradient . The limit is .
Since 0.094 is bigger than 0.083, the builder's ramp is too steep. It is not allowed.
Check. The shorter the run for the same rise, the steeper the ramp. A run of 4.8 m is shorter than the minimum 5.4 m, so the ramp must be too steep. Both methods agree.
A line has gradient 4 and passes through . It also passes through . Find .
Plan. Use the meaning of gradient: 4 up for each 1 across.
From to is 3 across. So the line rises . The height goes from 3 to . So .
Check. Use the formula with the two points: . This is the gradient we were given.
Three classic mistakes
Both numbers sit in your triangle, so it is easy to divide the wrong way. For A(1, 2) and B(4, 8), run ÷ rise gives instead of 2. This mistake does not change the sign. It turns the answer upside down. To catch it, look at the line. This line is steeper than 45°, so its gradient must be bigger than 1. Always ask: which side of the triangle goes up? That one goes on top.
For A(1, 2) and B(4, 8), the working takes B first at the top but A first at the bottom. It gives , an uphill line with a downhill gradient. A wrong sign almost always comes from this. Keep the same point first in both places, and check the sign against the picture: uphill means positive.
Squares are not units. When the two axes use different scales, counting squares gives the wrong gradient, as in Worked Example 2. Always read the coordinates from the numbers on the axes, then subtract.
Work each one on paper first. Open a hint only when you are stuck.
-
Find the gradient of the line through each pair of points. (a) and . (b) and .
Hint 1
Rise is the change in . Run is the change in . Take the points in the same order for both.
Hint 2
In (b), the run is . Subtracting a negative number adds it.
Full answer
(a) Rise . Run . Gradient . Check: goes up as goes up, so the gradient should be positive. It is.
(b) Rise . Run . Gradient . Check: the height drops from 4 to −8 as you move right, so the line falls and the gradient should be negative. It is.
-
Line R passes through and . Line S passes through and . Which line is steeper? Which way does each one go?
Hint 1
Find both gradients first. Then compare their sizes, without the signs.
Hint 2
R: rise 6, run 4. S: rise , run .
Full answer
R: gradient , so R goes uphill, 1.5 up for each 1 across.
S: gradient , so S goes downhill, 2 down for each 1 across.
Compare the sizes: 2 is bigger than 1.5. So S is the steeper line, even though −2 is less than 1.5.
-
(a) Find the gradient of the line through and . (b) Amara says the line through and has gradient 0, "because the values do not change". Is she right?
Hint 1
In (a), compare the two values. In (b), compare the two values.
Hint 2
In (b), the run is . What is ?
Full answer
(a) Rise . Run . Gradient . The line is horizontal: it is .
(b) No. The rise is and the run is . The gradient would be , which has no answer, so the gradient is undefined. The line is vertical: it is . Amara has mixed up the two cases. A gradient of 0 needs no change in . No change in gives no gradient at all.
-
The points A, B and C are plotted. (a) Do they lie on one straight line? (b) The point lies on the same line as A and B. Find . (c) Does the point lie on that line?
Hint 1
On a straight line, every pair of points gives the same gradient. Compare the gradient from A to B with the gradient from B to C.
Hint 2
The gradient from A to B is . For (b), count how many units across it is from A to , and use the meaning of gradient.
Full answer
(a) A to B: . B to C: . The gradients are equal, and the two pieces share the point B, so A, B and C lie on one straight line.
(b) From to is 6 across. With gradient 2, the line rises . So . Check: .
(c) No. The point on the line at is C. The point is 1 unit above it. Check with gradients: from B to is , which is not 2.
A gradient measures how fast one quantity changes as another grows. That idea is everywhere. On a graph of distance against time, the gradient is the speed: metres per second. On a graph of cost against amount, it is the price of each extra unit. On a graph of a population against years, it is the growth each year.
A straight line changes at the same rate everywhere, so one number describes it. A curve such as does not. Its steps grow, so it gets steeper as you move right. To ask "how steep is a curve at one exact point?" is the starting question of calculus, developed by Isaac Newton and Gottfried Leibniz in the late 1600s. Every answer that calculus gives is a gradient, and it begins with rise ÷ run.
- The gradient of a straight line is the rise divided by the run, which is the change in divided by the change in between any two points on it.
- The gradient is the number of units the line goes up for each 1 unit across, and every pair of points on a straight line gives the same gradient.
- Read from left to right, an uphill line has a positive gradient, a downhill line has a negative gradient, and a horizontal line has gradient 0.
- A vertical line has no run, and division by 0 has no answer, so its gradient is undefined.
- The size of a gradient, read without its sign, gives the steepness, so a line with gradient is steeper than a line with gradient 2.
- In a real situation a gradient is a rate, with units such as dollars per kilometre or metres per second.