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:

C=1.89LC = 1.89L

where CC is the cost in dollars and LL is the number of litres. Its graph is a straight line through the origin with gradient 1.89.

Interactive

Cost of filling a fuel tank

The horizontal axis is litres of petrol LL (up to a 60 L tank) and the vertical axis is the cost CC in dollars. A higher price makes the line steeper; it always passes through the origin.

Building a linear model

  1. 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.

  2. Find the rate

    The amount added per unit is the gradient. If you only have data, use m=change in ychange in xm = \frac{\text{change in } y}{\text{change in } x}.

  3. 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.

  4. Write the equation and draw the graph

    Write it as y=mx+cy = mx + c with your letters. Draw it over the values that make sense (the domain).

  5. 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

  • Complex unfamiliar
  • Technology active

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, CC dollars, of pumping LL litres, and state the values of LL 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 C=1.92LC = 1.92L for 0≤L≤400 \le L \le 40.

6 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Identify the rate (gradient) and the fixed amount (intercept).

  2. Write the model and its domain from the physical limits.

  3. Graph it over the domain with labelled axes.

  4. 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 L=40L = 40.

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, VV litres, after tt hours.

Reads asYour answer shows here as maths.

The pool in the previous question holds 45 000 L when full. How many hours of filling are needed?

in hours

Models from data. Often you are given measurements rather than a rate. If the yy-values change by the same amount each time xx 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

  • Complex familiar
  • Technology active

A hardware store lists the cost of hiring a box trailer.

Hire time, hh (hours)2345
Cost, CC ($)47597183

(a) Show that the relationship is linear, and find its equation.

(b) Interpret the gradient and the CC-intercept.

(c) Predict the cost of hiring the trailer for 8 hours.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Check for constant differences to confirm the data is linear.

  2. Gradient from two points; intercept by substituting one point.

  3. 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: 2×71=1422 \times 71 = 142 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, LL cm, after tt hours.

Reads asYour answer shows here as maths.

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 L=28−2tL = 28 - 2t, which values of tt make sense?

Choose one answer

Common mistake

Models through the origin

Only use y=mxy = mx 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 + c+\,c.

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 xx give equal changes in yy.

  • From two data points: m=change in ychange in xm = \frac{\text{change in } y}{\text{change in } x}, then substitute to find cc.

  • 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.

Lesson 8 of 80% read

Save your progress with a free account