Lesson 8 of 8 · 18 min
Modelling with straight-line graphs
Construct a linear model and its graph from a description or from data, use it to predict and solve practical problems, and judge where the model makes sense.
What you will be able to do
- Construct a linear model from a description in words, choosing sensible variables.
- Construct a linear model from two data values, and recognise linear data from a table.
- Draw the model's graph with labelled axes and a sensible domain.
- Use the model and its graph to answer questions, and comment on the model's limitations.
At the bowser, unleaded costs $1.89 a litre. Pump 10 L and you pay $18.90; pump 40 L and you pay $75.60. The cost goes up by the same $1.89 for every litre, and nothing is charged for pumping nothing. That is a linear model:
where is the cost in dollars and is the number of litres. Its graph is a straight line through the origin with gradient 1.89.
The horizontal axis is litres of petrol (up to a 60 L tank) and the vertical axis is the cost in dollars. A higher price makes the line steeper; it always passes through the origin.
Building a linear model
Choose the variables
The independent variable (what you choose, such as litres or hours) goes on the horizontal axis; the dependent variable (such as cost) goes on the vertical axis. Say what each letter means, with units.
Find the rate
The amount added per unit is the gradient. If you only have data, use .
Find the fixed amount
The value when the independent variable is zero is the intercept. If it isn't given, substitute a data point and solve.
Write the equation and draw the graph
Write it as with your letters. Draw it over the values that make sense (the domain).
Use it, and check it
Substitute to predict, or solve to find an unknown. Ask whether the answer is reasonable in context.
Worked example
Modelling the cost of filling a fuel tank
Priya's hatchback has a 55 L fuel tank. When she pulls into a service station, the gauge shows 15 L left in the tank. Unleaded petrol costs $1.92 per litre.
(a) Construct a model for the cost, dollars, of pumping litres, and state the values of for which it makes sense.
(b) Sketch the graph of the model.
(c) How much does it cost to fill the tank?
(d) Priya only has $50. How many litres can she buy? Give your answer to one decimal place.
The model for .
Step 1: Find the rate and the fixed amount
Each litre costs $1.92, so the gradient is 1.92. Pumping no petrol costs nothing, so the intercept is 0.
Step 2: Write the model
Step 3: Find the domain
The tank can take at most L, so the model makes sense for .
Beyond 40 L the petrol would overflow, so the model doesn't apply there.
Step 4: Sketch the graph
Draw a straight line from to , with (litres) on the horizontal axis and ($) on the vertical axis. Stop the line at .
Step 5: Cost to fill the tank
Step 6: Litres for $50
She can buy about 26.0 L. Rounding down makes sense here: 26.1 L would cost more than $50.
Try it yourself first, then check the working one step at a time.
Answer
(a) for . (b) A line from to . (c) $76.80. (d) About 26.0 L.
Method
Identify the rate (gradient) and the fixed amount (intercept).
Write the model and its domain from the physical limits.
Graph it over the domain with labelled axes.
Substitute or solve to answer each question, rounding sensibly.
Watch out for
Using 55 L as the amount to buy: the tank already has 15 L in it.
Drawing the line beyond .
A backyard pool already holds 6000 L of water. It is filled from a hose at 1500 L per hour. Write an equation for the volume of water, litres, after hours.
The pool in the previous question holds 45 000 L when full. How many hours of filling are needed?
Models from data. Often you are given measurements rather than a rate. If the -values change by the same amount each time goes up by the same step, the data is linear. Find the gradient from two of the points, then the intercept.
Worked example
Building a model from a table of costs
A hardware store lists the cost of hiring a box trailer.
| Hire time, (hours) | 2 | 3 | 4 | 5 |
|---|---|---|---|---|
| Cost, ($) | 47 | 59 | 71 | 83 |
(a) Show that the relationship is linear, and find its equation.
(b) Interpret the gradient and the -intercept.
(c) Predict the cost of hiring the trailer for 8 hours.
Step 1: Check the differences
Each extra hour adds . Equal steps in give equal changes in , so the relationship is linear.
Step 2: Find the gradient
Step 3: Find the intercept
Substitute into :
Step 4: Interpret
Hiring costs $12 for each hour, plus a fixed $23 charged on every hire, however short.
Step 5: Predict
Try it yourself first, then check the working one step at a time.
Answer
(a) Constant differences of $12; . (b) $12 per hour, plus a $23 fixed charge. (c) $119.
Method
Check for constant differences to confirm the data is linear.
Gradient from two points; intercept by substituting one point.
Interpret both in context, then use the model to predict.
Watch out for
Reading the intercept as 47 (the cost for 2 hours, not 0 hours).
Predicting by doubling the 4-hour cost: counts the fixed charge twice.
A candle burns down at a steady rate. It is 24 cm tall after 2 hours and 18 cm tall after 5 hours. Write an equation for its length, cm, after hours.
Where does the model make sense? A model only describes the situation over a sensible range of values, called its domain. A fuel tank can't take more than its capacity; a candle can't have a negative length; a plumber can't work a negative number of hours. Using a model far outside the data it was built from (extrapolation) can give silly answers.
For the candle model , which values of make sense?
Common mistake
Models through the origin
Only use when the quantity really is zero at the start, like the cost of zero litres of petrol. A plumber's bill, a taxi fare and a phone bill all have a fixed part, so their models need .
Exam tip
In the exam
A modelling question usually asks you to construct (write the equation, draw the graph) and then analyse (predict, solve, interpret, comment on limitations). For a graph, label both axes with the quantity and units, use an even scale, and draw only over the sensible domain. For "comment on the model", talk about the domain, whether the rate would really stay constant, and whether you are extrapolating.
Summary
A linear model is total = rate × quantity + fixed amount: the rate is the gradient, the fixed amount the intercept.
Data is linear when equal steps in give equal changes in .
From two data points: , then substitute to find .
Graph the model with labelled axes, units and a sensible domain.
Check answers against the context, and be wary of extrapolating beyond the data.
Finished the lesson?
Try the 4 quick checks above and the lesson completes itself, or mark it complete now.