Graphing linear relationships
Making a table of values from a rule, plotting real data with sensible axes, recognising a linear relationship, and reading values from the graph by interpolation and extrapolation.
Graphs in Standard maths are about real things, so the axes have names and units: dollars, litres, minutes, kilometres. A straight-line graph tells you the quantity changes at a steady rate. Once it's drawn, you can read answers straight off it.
From rule to table to graph
To graph a rule, choose a few $x$ values, work out each $y$, and plot the points. Three points are enough for a straight line: two to draw it and one to check it.
A $500$ L water tank is drained at a steady $25$ L per minute, so the volume left is $V = 500 - 25t$ after $t$ minutes. Make a table of values for $t = 0, 4, 8, 12, 16, 20$ and describe the graph.
| $t$ (min) | $0$ | $4$ | $8$ | $12$ | $16$ | $20$ |
|---|---|---|---|---|---|---|
| $V$ (L) | $500$ | $400$ | $300$ | $200$ | $100$ | $0$ |
The test for a linear relationship is in the table. If equal steps in $x$ always give equal steps in $y$, the points line up. If the steps in $y$ grow or shrink, the graph curves.
Plotting real data
Good graphs have a title, both axes labelled with units, an even scale on each axis, and points plotted with small crosses or dots. The input variable (the one you control, often time) goes across. The output goes up.
Choose the tank. Tap the grid to plot each point from the table. When all six are right, the line appears. Drag the reader to find when $250$ L is left. Then pick the savings plan, plot it, and drag the reader past the last point. Why does the tool warn you there?
Reading from a graph
- Interpolation means reading a value between your data points. On a straight-line model this is usually reliable.
- Extrapolation means extending the line beyond your data. It assumes the pattern keeps going, which often isn't true.
Use the tank graph from Example 1. (a) How much water is left after $10$ minutes? (b) When will $150$ L be left?
A baby's mass was $3.4$ kg at birth and $6.2$ kg at $4$ months, and it grew close to linearly in between. A parent extends the line to predict the mass at $10$ years. Comment.
Your turn
A candle is $24$ cm tall and burns down $1.5$ cm each hour, so $h = 24 - 1.5t$. Complete the table for $t = 0, 4, 8, 12, 16$ and find when the candle burns out.
Show the working
$h$: $24, 18, 12, 6, 0$. Each $4$ hours removes $6$ cm. It burns out when $h = 0$, at $t = 16$ hours.
For $y = 3x - 3$, find $y$ when $x = 4$.
$y = 3 \times 4 - 3 = 9$
Which table shows a linear relationship?
In the second table, $y$ goes down by $3$ every time $x$ goes up by $1$. The others change by different amounts each step.
Using $V = 500 - 25t$, how many litres are left after $10$ minutes?
$500 - 25 \times 10 = 250$ L
Using $V = 500 - 25t$, after how many minutes are $150$ L left?
$150 = 500 - 25t$, so $25t = 350$ and $t = 14$ minutes.
Estimating a value between two plotted data points is called:
"Inter" means between. Going beyond the data is extrapolation.
On a graph of cost against time, which variable usually goes on the horizontal axis?
The input variable, here time, goes across. The cost depends on the time, so it goes up the vertical axis.
A candle's height is $h = 24 - 1.5t$ cm after $t$ hours. After how many hours does it burn out?
$0 = 24 - 1.5t$, so $1.5t = 24$ and $t = 16$ hours.
A tradie's charges lie on a straight line: $\$90$ for $0$ hours and $\$390$ for $4$ hours. What is the charge, in dollars, for $2$ hours?
$2$ hours is halfway between $0$ and $4$, so the charge is halfway between $\$90$ and $\$390$: $\dfrac{90 + 390}{2} = 240$. So $\$240$.
Exam style: A plant grew from $5$ cm to $17$ cm in $6$ weeks at a steady rate. Using a linear model, which prediction is least reliable?
Two years is far beyond the data (extrapolation). Plants don't keep growing at the same rate forever. The others are interpolation.
Exam style: A plant grew from $5$ cm to $17$ cm in $6$ weeks at a steady rate. Use a linear model to estimate its height, in cm, at $3$ weeks.
The rate is $\dfrac{17 - 5}{6} = 2$ cm per week. At $3$ weeks: $5 + 2 \times 3 = 11$ cm.
Coaching Centre