A graph can tell a whole journey. On a distance-time graph the gradient is the speed, a flat line is a stop and a line going down is a return. A conversion graph changes one unit into another. You read both kinds, work out average speed, and draw a graph from a table of data.
about 25 min1 simulation1 practice question
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
A journey as a picture
The Physics chapter on Motion has lessons on distance-time graphs and velocity-time graphs for real motion. Here we read the same pictures as mathematics, and then draw graphs from data.
Hana walks along a path. We plot time along the horizontal axis and her distance from the start up the vertical axis. This is a distance-time graph.
A distance-time graph with time in hours from 0 to 3 along the horizontal axis and distance from the start in kilometres from 0 to 7 up the vertical axis. A line rises from the origin to the point (1.5, 6). It then runs flat to (2, 6). Then it falls to (3, 3). The three stages are labelled 4 kilometres per hour, at rest, and 3 kilometres per hour back.
The gradient is the speed. The gradient is the change in distance divided by the change in time. In the first stage the graph rises 6km in 1.5h. The speed is 1.56=4km/h.
A steeper line means a faster speed. A shallow line means a slower speed.
A horizontal line means a stop. The distance does not change.
A line that goes down means a return. The distance from the start is getting smaller.
In the last stage Hana comes back 3km in 1h, so the gradient is −3km/h. The minus sign shows the direction. Her speed is 3km/h.
Average speed
Average speed is the total distance travelled divided by the total time taken. Rests count as time. Hana walked 6km out and 3km back, so she travelled 9km in 3h:
average speed=39=3km/h.
Notice two things. First, she ended only 3km from the start, but she travelled 9km. Distance travelled is not the same as distance from the start. Second, the average of her three stage speeds, 4, 0 and 3, is not the right way to find the average speed. We need the total distance and the total time.
Conversion graphs
A conversion graph changes a quantity from one unit to another. It is usually a straight line.
About 2.2 pounds make 1 kilogram. The graph of pounds against kilograms is a straight line through the origin. To change 15kg into pounds, go up from 15 on the kilogram axis to the line, then across to the pound axis. You read about 33lb. To change 77lb into kilograms, go across from 77 to the line, then down. You read 35kg.
The gradient of a conversion graph is a rate. Here it is 2.2 pounds for each kilogram. In general, the unit of a gradient is the unit of the vertical axis divided by the unit of the horizontal axis.
Some graphs do not pass through the origin. The graph of F=1.8C+32 from the first lesson crosses the vertical axis at 32, because water freezes at 32∘F. A taxi fare graph crosses at the fixed charge, and its gradient is the cost for each extra kilometre.
Drawing a graph from data
A tank is filling at a steady rate. These readings were taken.
t (min)
0
2
4
6
8
V (litres)
10
16
22
28
34
Choose scales that use most of the page and are easy to read, such as 1 square for 1 minute and 1 square for 2 litres.
Label both axes with the quantity and its unit.
Plot every point carefully, with a small cross.
Join the points. The points lie on a straight line, so use a ruler. If the points suggest a curve, draw a smooth curve.
Now read the graph. The line rises 6 litres in every 2 minutes, so the gradient is 3litres per minute: the rate at which the tank fills. The line meets the vertical axis at 10, so the tank held 10 litres at the start.
Practise with new numbers
Try it in Python
The program takes a journey as a list of points. It works out the gradient of each stage and the average speed.
Common mistakes
Reading a horizontal line as a constant speed. On a distance-time graph, a flat line means the object is not moving.
Taking the average of the speeds. Use total distance divided by total time.
Leaving out the rest. The time spent at rest is part of the total time.
Forgetting the unit of the gradient. It is the unit of y per unit of x, such as km/h or litres per minute.
Joining data points with a curve when they are straight. Check the points first.
Remember these
On a distance-time graph: gradient is speed, flat is a stop, downwards is a return.
Average speed is total distance divided by total time.
A conversion graph is read in both directions. Its gradient is a rate.
Draw a graph from data with good scales, labelled axes, accurate points and a ruler for straight lines.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
A distance-time graph is a horizontal line. What is the object doing?
A straight line on a distance-time graph passes through (1,2) and (3,8), with distance in kilometres and time in hours. What is the speed?
On the graph of F=1.8C+32, what does the point where the line crosses the vertical axis show?
A cyclist rides at 20km/h for 1h and then at 5km/h for 2h. What is the average speed?
A conversion graph is a straight line through (0,0) and (10,15). What does its gradient tell you?
References
Cambridge International, IGCSE Mathematics 0580 syllabus (2025, 2026 and 2027), section 2.9 Graphs in practical situations (travel graphs, conversion graphs, drawing graphs from data).
Enroll free in Proportion and Graphs from Real Life
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.