Sub topic 13
Reading Distance-Time Graphs
This chapter assumes you know distance = speed × time, can use ratios, and can solve a pair of linear equations. It also assumes you have met average speed and relative speed earlier in this tutorial. Here you will turn those ideas into pictures. CAT sometimes gives a graph directly. More often, a sketch you draw yourself shows what a word problem is doing before any algebra starts.
The graph in one sentence
A distance-time graph puts time on the horizontal axis and distance on the vertical axis. The distance is measured from a fixed reference point, usually the starting town. Each traveller is one line, and every feature of the line has a meaning.
| Feature of the line | What it means |
|---|---|
| Slope (rise ÷ run) | Speed, in the units of the axes |
| Steeper line | Faster traveller |
| Horizontal segment | Stopped, because distance does not change |
| Line going down | Moving back towards the reference point |
| Two lines crossing | The two travellers are at the same place at the same time |
| Where a line starts on the time axis | When the traveller set off |
| Where a line starts on the distance axis | A head start, or a different starting point |
| End of a line | Arrival at the destination |
The key fact is that slope is speed. The vertical change is distance and the horizontal change is time, so rise ÷ run is distance ÷ time.
Two travellers approaching each other
A leaves town P at 40 km/h towards Q. B leaves Q at the same moment at 60 km/h towards P. P and Q are 200 km apart. Distance on the graph is measured from P.
- A's line starts at (0, 0) and rises with slope 40.
- B's line starts at (0, 200) and falls with slope −60.
The crossing is the meeting. Setting the two distances equal gives 40t = 200 − 60t, so t = 2 hours, and the distance from P is 40 × 2 = 80 km. The algebra is the same as the relative-speed shortcut. The gap of 200 km closes at 40 + 60 = 100 km/h, which gives 2 hours. The graph shows why the speeds add: the lines approach each other from opposite sides, so their gap shrinks by 100 km every hour.
You can turn this into a small solver. Each traveller is described by a starting position and a signed velocity, where the sign shows the direction of travel.
def meeting(p1, v1, p2, v2):
"""Positions are measured from P at time 0. Velocity is signed."""
if v1 == v2:
return None # parallel lines never cross
t = (p2 - p1) / (v1 - v2)
return t, p1 + v1 * t
print(meeting(0, 40, 200, -60)) # (2.0, 80.0)The function returns None when the velocities are equal. Equal slopes mean parallel lines, so the travellers never meet. That is the graph version of "same speed, same direction, the gap never changes".
Head starts and late departures
Suppose A leaves P at 40 km/h. One hour later B leaves P at 60 km/h along the same road. When does B catch A?
B's line starts on the time axis at t = 1, not at the origin. Extend it backwards to t = 0. Since B covers 60 km each hour, the extended line would sit at −60 km at t = 0. This is a virtual starting position, and it lets you use the same formula.
def meeting(p1, v1, p2, v2):
if v1 == v2:
return None
t = (p2 - p1) / (v1 - v2)
return t, p1 + v1 * t
# B's line extended back to t = 0 starts at -60 km
print(meeting(0, 40, -60, 60)) # (3.0, 120.0)B catches A 3 hours after A set off, which is 2 hours after B set off. They are 120 km from P. A quick check: B has travelled 2 × 60 = 120 km, and A has travelled 3 × 40 = 120 km.
Journeys with stops and several segments
A real journey is often a broken line. Each straight piece has its own slope. The average speed over any stretch is the slope of the straight line (the chord) joining its two end points. It is not the mean of the segment slopes.
Take a trip with the points (0, 0), (1, 60), (1.5, 60), (3.5, 180), given as (hours, kilometres). The traveller drives for an hour, rests for half an hour, then drives for two hours.
points = [(0, 0), (1, 60), (1.5, 60), (3.5, 180)]
for (t1, d1), (t2, d2) in zip(points, points[1:]):
print(f"{t1}-{t2} h: {(d2 - d1) / (t2 - t1):.1f} km/h")
total_time = points[-1][0] - points[0][0]
total_distance = points[-1][1] - points[0][1]
print(f"average: {total_distance / total_time:.1f} km/h")The output is 60.0, 0.0 and 60.0 km/h for the three segments, and an average of 51.4 km/h. The traveller never drove slower than 60 km/h while moving, yet the average is lower. The rest counts in the time but adds nothing to the distance. The graph makes this visible, because the chord from start to finish is flatter than the driving segments.
The post-meeting time ratio from the graph
A leaves P and B leaves Q at the same time, travelling towards each other at constant speeds. They meet, and then A takes a hours to reach Q while B takes b hours to reach P. What is the ratio of their speeds?
Draw the two lines as an X. The two triangles on either side of the crossing are similar, because their sides lie along the same two lines. You can reach the same result with algebra. Let the meeting time be t.
- Before the meeting, A covers vA × t. B covers that same stretch after the meeting, so vA × t = vB × b.
- In the same way, B's distance before the meeting equals what A covers after it: vB × t = vA × a.
Dividing the first equation by the second gives vA / vB = (vB × b) / (vA × a). Rearranging, (vA / vB)² = b / a, so
vA : vB = √b : √a.
The speed ratio is the square root of the inverse ratio of the post-meeting times. Take a = 9 and b = 4. Then vA : vB = 2 : 3. Check with t: A covers 2t before the meeting, which must equal B's 3 × 4 = 12 km, so t = 6 and the units work out. B's pre-meeting distance is 3 × 6 = 18, and A's post-meeting distance is 2 × 9 = 18. Both equations hold.
Races on a graph
In a race, both lines start at the origin, or at different heights if there is a head start. "A beats B by 20 m in a 100 m race" means that at the moment A's line reaches 100 on the vertical axis, B's line is at 80. The slopes are therefore in the ratio 100 : 80, which is 5 : 4. A head start moves B's line up the distance axis. A dead heat means the two lines reach the finishing height at the same time, so they meet exactly there.
The same ratio gives the result over a longer race. In 200 m, A finishes when B is at 160 m, so the winning margin is 40 m. In general, if the slopes are fixed, the margin grows in proportion to the race length.
Late and early arrival on a graph
Two lines can run between the same two heights, the start and the destination. The faster line reaches the destination height sooner, and the horizontal gap between the line ends is the difference in arrival times. Because both travellers cover the same distance, speed and time are inversely proportional. Speeds in the ratio 4 : 5 give times in the ratio 5 : 4. If that difference is 30 minutes, then 1 unit of the ratio is 30 minutes, and the slower traveller takes 5 units, which is 150 minutes.
Reading exam graphs without errors
- Check what the vertical axis measures. "Distance from A" can fall and rise again, while "distance travelled" can only rise or stay flat.
- Check the axis units before computing a slope. Minutes on one axis and kilometres on the other give km per minute, which you must convert.
- Use points where the line passes exactly through grid marks. Slope from two exact points is more reliable than an estimate from a long run.
- A graph with a time-speed shape is a different object. On a speed-time graph the area under the curve is distance, and slope is acceleration. On a distance-time graph the area has no meaning.
- Sketch a quick graph for any meeting, catching-up or head-start problem, even if the question has no picture. The crossing point is the answer, and a wrong sign is easy to spot when you can see the lines.
Exercise
A leaves town P at 8:00 at 30 km/h towards Q, which is 150 km away. B leaves Q at 9:00 at 45 km/h towards P. At what time do they meet, and how far from P?
Show answer
At 9:00 A has already covered 30 km, so the gap is 120 km. It closes at 30 + 45 = 75 km/h, which takes 120 / 75 = 1.6 hours, or 1 hour 36 minutes. They meet at 10:36, and A has travelled 30 × 2.6 = 78 km from P. Check from B's side: 45 × 1.6 = 72 km, and 78 + 72 = 150.
Exercise
After meeting, A reaches Q in 16 hours and B reaches P in 25 hours. They left P and Q at the same time. Find the ratio of A's speed to B's speed.
Show answer
Here a = 16 (A's time after meeting) and b = 25 (B's time after meeting). The speed ratio vA : vB = √b : √a = √25 : √16 = 5 : 4. A is faster, so A takes the shorter post-meeting time. This agrees with the rule that the smaller time goes with the larger speed.
Exercise
A journey graph has the points (0, 0), (2, 80), (3, 80), (6, 200), given as (hours, kilometres). What is the average speed for the whole trip, and what is the speed in the last segment?
Show answer
The total distance is 200 km and the total time is 6 hours, so the average speed is 200 / 6 ≈ 33.3 km/h. The last segment covers 120 km in 3 hours, which is 40 km/h. The flat segment from hour 2 to hour 3 is a stop, and it still counts in the total time.