MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Upper Secondary
MathematicsUpper Secondary

Gradient and y-intercept — what do they mean

U2 — Algebra Advancing › U2.4 — Linear and Quadratic GraphsLecture 2 of 5~2630 words

Two graphs of the same taxi

Two taxi drivers in the same city each show you a graph of their fares. Driver A's line climbs steeply. Driver B's line is almost flat. Which driver charges more for each kilometre?

0 2 4 6 8 10 $5 $10 $15 $20 $25 Distance d (km) Cost C ($) (10, 20.5) (0, 2.5) Driver A’s graph 0 2 4 6 8 10 $20 $40 $60 $80 $100 Distance d (km) Cost C ($) (10, 20.5) (0, 2.5) Driver B’s graph
Two graphs of fares. Look at the numbers on the cost axes before you decide which line is "steeper".

Most people choose Driver A, because a steeper line looks more expensive. Now read the axes. Both lines start at $2.50. Both reach $20.50 at 10 km. So the two drivers charge exactly the same fare: $2.50 to get in, plus $1.80 for every kilometre. Driver B simply drew the cost axis to $100 instead of $25, which squashes the line.

This is the disruption. The steepness your eye sees depends on how the graph was drawn. The gradient does not. The gradient is a number, and in a real situation it has units: here, dollars per kilometre.

The last lecture showed how to draw , and promised to explore what the gradient means. This lecture keeps that promise. It also asks what the other number, , means. By the end, the two numbers in will read like a sentence about the world.

c is the value of y when x is zero

Start with the easier number. Put into :

So is the value of when is zero. On a graph, the points with form the -axis. So the line crosses the -axis at . This is why is called the -intercept.

In a real situation, usually means "before anything has happened". So is the starting value. Suppose a phone contract costs $40 to set up, plus $30 for each month. Let be the number of months and the total cost in dollars:

At , you have used the phone for no months. But you have already paid $40. So the line starts at , above the origin.

Notice the word "usually". The value means "the start" only when counts from the start. If were the calendar year, then would be the year 0, which means nothing for a phone contract. So before you interpret , always ask what means in the story.

m is a rate of change

Now the richer number. In the last lecture, the gradient was the amount added to for each step of 1 in . For the phone contract, each extra month adds $30. So the gradient, 30, is the monthly charge.

0 1 2 3 4 5 6 $40 $80 $120 $160 $200 $240 Months x Total cost y ($) 1 month +$30 3 months +$90 (0, 40): the $40 set-up fee (1, 70) (2, 100) (5, 190) y = 30x + 40
The phone contract. A step of 1 month adds $30. A step of 3 months adds $90. Both steps give dollars per month.

But real data rarely comes in steps of 1. Take the points for month 2 and month 5. Between them, changes by , and changes by . Divide the change in by the change in : . The same 30 appears. This gives the general definition.

The gradient of a straight line

For any two points and on a line,

The Greek letter (delta) means "change in". The gradient is the change in for each 1 unit of change in .

Why do any two points give the same answer? The last lecture showed that on a straight line, every step of 1 in adds the same amount to . Here that amount is 30. A change of 3 in is three such steps, so it adds . In general, the change in is always 30 times the change in . So their ratio is always 30, whichever two points you choose. In the figure, the two dashed triangles have different sizes but exactly the same shape.

Now read the definition slowly: change in per change in . A quantity "per" another quantity is a rate. And each change carries its own units:

= 30 dollars per month

So in a real situation, the gradient has units: dollars per month, metres per second, degrees per kilometre. The units are always "the units of per the units of ". When both axes use the same unit, the units cancel. A ramp that rises 1 m for every 12 m across has gradient , a pure number.

That is it. That is the whole idea. The gradient is not a steepness to look at. It is a rate to read: how fast changes as changes. Go back to the taxis. Each graph has a rise of dollars over a run of 10 km. Both gradients are dollars per kilometre. The drawing changed the look of the line, not the rate.

Stop and think

Find the gradient through and in two ways: as , and as . Does the order matter? What would happen if you used on top and underneath?

Show the answer

The first way gives . The second gives . The order does not matter, because swapping the points changes the sign of the top and the bottom, and the two signs cancel. The danger is mixing the orders. With on top and underneath, you get : the right size with the wrong sign. The rule is simple: whichever point comes first on top must also come first underneath.

Here is that exact mistake, hidden in otherwise careful working.

Spot the error — the gradient through two points

Amara finds the gradient of the line through A(−1, 4) and B(3, −4). One line of her working is wrong. Tap it.

Amara's working for the gradient through A and B, with the error marked:

  • Change in , from A to B: . Correct.
  • Change in : . Wrong: this goes from B to A. From A to B it is .
  • Gradient . The division is right, but it uses the wrong .
  • Correct answer: . As goes up, goes down, so a negative gradient makes sense.

The quickest check is a picture in your head. If goes down while goes up, the gradient must be negative. A sign that disagrees with the picture means the subtraction orders do not match.

Up, down or flat: what the sign tells you

The sign of tells you the direction of change.

What about a vertical line? For any two points on it, . So the gradient formula would divide by zero, and that has no answer. A vertical line has no gradient: we say its gradient is undefined. This is the gradient's view of a fact from the last lecture. A vertical line cannot be written as , because there is no number to put in.

The size of , ignoring its sign, tells you how fast the change happens. A line with gradient changes faster than a line with gradient 2, just in the downward direction. On the same axes, a phone plan at $50 per month is drawn steeper than one at $20 per month. On the same axes, steeper really does mean faster.

Now take the line apart yourself. Change and one at a time, and watch what each one does.

Graph builder — what m and c each do

Change m and c with the sliders or the buttons. First, change only c: what happens to the line? Then change only m. Then try three tasks. Task 1: make the line pass through (0, −1) and (3, 5). Task 2: make a line that falls 1.5 for every 1 across and crosses the y-axis at 4. Task 3: set m = 0.

Three lines with different gradients. The sign of decides the direction, and decides where each line crosses the -axis.

x y −3 −2 −1 1 2 3 −2 2 4 6 y = 2x + 1 y = −x + 3 y = 2
rises 2 for every 1 across and crosses the -axis at . falls 1 for every 1 across and crosses at . is flat, with gradient 0. Changing alone slides a line up or down. Changing alone turns it about the point .

What did you see? Changing slides the whole line up or down without turning it. Changing turns the line, and the point stays fixed while it turns. The two numbers do two separate jobs: fixes one point, and fixes the direction. This is why two numbers are enough to describe any straight line that is not vertical.

Worked examples

Worked Example 1 — The taxi fare, read as a sentence

A taxi charges a booking fee of $2.50, plus $1.80 per kilometre. Write an equation for the cost dollars of a journey of km. State and interpret the gradient and the intercept.

Equation. Each kilometre adds $1.80, so kilometres add . The fee is added once. So . This is with in place of and in place of .

Gradient. dollars per kilometre: each extra kilometre adds $1.80 to the fare.

Intercept. dollars: the cost at , before the taxi moves. It is the booking fee.

Where the model makes sense. The line goes on forever in both directions, but a distance cannot be negative. So only the part with describes real journeys. Always ask which part of the line is meaningful in the story.

Check. At : , the point on both drivers' graphs ✓.

Worked Example 2 — Reading m and c from a graph

A line crosses the -axis at and passes through . Find its gradient and intercept, and write its equation.

Intercept. The line crosses the -axis at , so . A negative intercept is completely normal. It means the line crosses below the origin, or in a story, that the starting value is below zero.

Gradient. Use the two points, in the same order on top and underneath:

Equation. .

Check. A third point on the drawn line, such as : ✓. This method needs the intercept to be visible on the graph. The next lecture finds the equation when it is not.

Worked Example 3 — Two tariffs that swap over

Two phone tariffs cost dollars after months. Tariff A: . Tariff B: . Which is cheaper for 3 months? For 10 months? When do they cost the same?

3 months. A: . B: . A is cheaper.

10 months. A: . B: . B is cheaper.

Read the two numbers. B starts $15 higher (intercepts 25 and 10). But B charges $3 less each month (gradients 12 and 15). So B closes the gap by $3 every month. A gap of $15, closed at $3 per month, takes months.

Check by algebra. The costs are equal when . Then , so . At , A costs and B costs ✓. This is a pair of simultaneous equations, and the crossing point is its solution.

0 2 4 6 8 10 12 $40 $80 $120 $160 $200 Months x Total cost y ($) (5, 85) A: y = 15x + 10 B: y = 12x + 25
Tariff A starts lower but rises faster. The lines cross at : before 5 months A is cheaper, and after 5 months B is cheaper.
Worked Example 4 — A falling line: a draining battery

A phone's battery shows 92% at 08:00 and 60% at 12:00. Assume it drains at a steady rate. Write an equation for the charge (in %) after hours from 08:00. When will the battery be empty?

Choose what means. Counting from 08:00 makes the intercept the 08:00 reading: .

Gradient. From to : . The units are percentage points per hour. The minus sign is information: the charge is being used up.

Equation. .

Empty. Put : , so and . That is 11.5 hours after 08:00, which is 19:30.

Check. At : ✓. The model only makes sense for . A real battery does not drain at a perfectly steady rate, so the line is a model, and 19:30 is an estimate.

Three classic mistakes

Trap 1 — Judging the gradient by eye

A line can look steep or flat depending on the scales of the axes, as the two taxi graphs showed. Never compare gradients by looking at lines on different graphs. Read two points, calculate , and write the units.

Trap 2 — Mixing the order, or turning it upside down

The gradient is on top and underneath, never the other way round. And whichever point comes first on top must come first underneath. If the line falls from left to right, your answer must be negative. Use that as a check every time.

Trap 3 — Reading c where the graph begins

The intercept is the value of where . Some graphs start their -axis at another value, such as 2000 for a year, or 5 for a temperature. Then the left edge of the graph is not the -axis, and the value there is not . Check that the -axis really begins at 0 before you read an intercept.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck. All situations are invented.

  1. A candle's height cm after hours of burning is . State the gradient and the intercept, with units, and say what each means. How tall is the candle after 10 hours? When does it burn out? For which values of does the model make sense?

    Hint 1

    Rewrite it as , so the number multiplying is easy to see.

    Hint 2

    "Burns out" means . Solve .

    Full answer

    Gradient cm per hour: the candle gets 1.5 cm shorter each hour. Intercept 24 cm: its height before it is lit. After 10 hours: cm. It burns out when , so hours. Check: ✓. The model makes sense for . After 16 hours there is no candle, so a negative height means nothing.

  2. Find the gradient of the line through and . Do it twice, once with each point first, and show that you get the same answer. Then check your answer using the point , which is also on the line.

    Hint 1

    Write and keep the same point first on top and underneath. Brackets help with the negatives.

    Hint 2

    First way: . Second way: .

    Full answer

    First way: . Second way: . The same, because both signs flipped. Check with and : ✓. Any two points on a straight line give the same gradient. The line falls as increases, so a negative gradient fits the picture.

  3. Two gyms. Gym P charges a $60 joining fee and $25 per month. Gym Q has no joining fee and charges $35 per month. Write an equation for each. Which is cheaper for 3 months, and for 12 months? After how many months do they cost the same? Explain the answer using only the gradients and the intercepts.

    Hint 1

    P: . What is Q's intercept?

    Hint 2

    Q starts $60 cheaper. Each month, how much of that advantage does Q lose?

    Full answer

    P: . Q: , with intercept 0. For 3 months: P costs dollars and Q costs , so Q is cheaper. For 12 months: P costs and Q costs , so P is cheaper. Equal when , so and months, when both cost $210. Using the two numbers: Q starts $60 cheaper, but it charges $10 more per month, so its advantage is gone after months ✓.

  4. Two runners plot distance against time. Ravi's graph has time in minutes and distance in metres, and its gradient is 250. Mei's graph has time in seconds and distance in metres, and its gradient is 4. Who runs faster? Explain why comparing the numbers 250 and 4 directly would be wrong.

    Hint 1

    Write each gradient with its units: "metres per minute" and "metres per second". Units are part of the answer.

    Hint 2

    Convert both to the same unit, such as km per hour. There are 60 minutes in an hour, 3600 seconds in an hour, and 1000 m in a km.

    Full answer

    Ravi: 250 m per minute is m per hour, which is 15 km/h. Mei: 4 m per second is m per hour, which is 14.4 km/h. So Ravi is slightly faster. Comparing 250 with 4 directly would be wrong because they are rates in different units. A gradient is a number with units, and two rates can be compared only in the same units. This is Trap 1 in another form: the number, like the look of a line, depends on how the graph was set up. Check: Mei's speed in metres per minute is , a little less than Ravi's 250 ✓.

The bigger idea

A straight line has one gradient everywhere. That is what makes it straight: the rate of change never changes. But most things in the world do not change at a steady rate. A ball thrown upwards slows down, stops and falls. A population grows faster as it gets bigger.

For a curve, the gradient is different at every point. So a new question appears: how fast is changing at this exact point? Answering that question is the job of differentiation, the first half of calculus. The idea behind it is the one in this lecture. Take two points, find , and then move the two points closer and closer together.

The same idea already runs through other subjects. The gradient of a distance–time graph is a speed. The gradient of a velocity–time graph is an acceleration. In Economics, the gradient of a cost line is the cost of one more unit. Wherever one quantity depends on another, the gradient tells you how strongly one responds to the other. Learning to read it as a rate, with units, is learning to read graphs as statements about the world.

Key concepts in this lesson