topic badge

7.02 Linear functions in context

Lesson

We can now use our knowledge of linear relationships to model and solve problems in real-world situations.

Before we begin, there are a few differences to be aware of between the linear relationships we have seen so far on the coordinate plane, and the ones we use to model real-world situations.

 

Independent and dependent variables

The first thing to notice is that the independent and dependent variables, $x$x and $y$y, will often represent physical quantities such as time, distance, cost, mass or temperature. Instead of being labelled $x$x and $y$y, they may be labelled with letters or names that better represent those quantities.

 

For example, if we were modelling the rate of fuel being used in a car, the independent variable may represent the distance travelled, in kilometres, and the dependent variable may represent the volume of fuel, in litres, in the car's fuel tank. Instead of $x$x and $y$y, we might use $d$d and $V$V as our variables. Each of these variables has units of measurement associated with them.

Gradient and vertical intercept

As we know already, the two key features of a linear function, or straight-line graph, are the gradient and the $y$y-intercept. In linear modelling situations, the $y$y-intercept is often referred to as the vertical intercept, because the vertical axis may be labelled with a variable other than $y$y.

The vertical intercept represents an initial value. In our example above, the vertical intercept is $63$63 litres. It represents the volume of fuel in a full tank, before the car began its journey.

In a real-world context the gradient represents a rate of change. Using our example above, the gradient would represent the volume of fuel used per distance travelled. In other words, the gradient is a measure of the car's fuel consumption.

The graph above is decreasing as the fuel is being used, so it has a negative gradient. If we divide the 'rise' of $-63$63 by the 'run' of $900$900 we get a gradient of $-0.07$0.07. This means fuel is being consumed at a rate of $0.07$0.07 litres per kilometre (or $7$7 litres per $100$100 kilometres).

 

Gradient and vertical intercept

In linear modelling situations:

  • The vertical intercept represents an initial value
  • The gradient represents a rate of change

 

Changes to the coordinate plane

Because most physical quantities like distance, volume or time do not contain negative values, the graphs of most linear models tend to exist only in the first quadrant of the coordinate plane (like the example above). This is not always the case though. Temperature is a physical quantity that can have negative values.

 

Practice questions

Question 1

A bucket that is full of water has a hole made in its side.

The graph below shows the amount of water remaining in the bucket (in litres) over time (in minutes).

Loading Graph...

  1. What is the gradient of the function?

  2. What is the $y$y-intercept?

  3. Write an equation to represent the amount of water remaining in the bucket, $y$y, as a function of time, $x$x.

  4. What does the gradient represent?

    The amount of water remaining in the bucket after $2$2 minutes.

    A

    The time it takes the amount of water remaining in the bucket to drop by one litre.

    B

    The time it takes for the bucket to be completely empty.

    C

    The amount of water that is flowing out of the hole every minute.

    D
  5. What does the $y$y-intercept represent?

    The capacity of the bucket.

    A

    The amount of water remaining in the bucket after $32$32 minutes.

    B

    The size of the hole.

    C

    The amount of water remaining in the bucket when it is empty.

    D
  6. Find the amount of water remaining in the bucket after $56$56 minutes.

Question 2

A plumber charges a callout fee of $\$110$$110 plus $\$35$$35 per hour.

  1. Write an equation to represent the total amount charged by the plumber, $y$y, as a function of the number of hours worked, $x$x.

  2. What is the gradient of the function?

  3. What does the gradient represent?

    The minimum amount charged by the plumber.

    A

    The total amount charged for $0$0 hours of work.

    B

    The total amount charged increases by $\$1$$1 for each additional $35$35 hours of work.

    C

    The total amount charged increases by $\$35$$35 for each additional hour of work.

    D
  4. What is the $y$y-intercept?

  5. What does this $y$y-intercept represent?

    Select all that apply.

    The callout fee.

    A

    The maximum amount charged by the plumber.

    B

    The minimum amount charged by the plumber.

    C

    The total amount charged increases by $\$110$$110 for each additional hour of work.

    D
  6. Find the total amount charged by the plumber for $3$3 hours of work.

question 3

Use the graph to convert $-20^\circ$20°F to Celsius.

Loading Graph...

  1. $-40^\circ$40°C

    A

    $-34^\circ$34°C

    B

    $-29^\circ$29°C

    C

    $-23^\circ$23°C

    D

 

Linear relationship from a table of values

Real world situations often involve the collection of data, which is commonly displayed in a table of values. The independent variable (often but not always called $x$x) is always displayed in the first row of the table, followed by the dependent variable (often but not always called $y$y), in the second row.

We may first want to decide whether the values in the table represent a linear relationship. To do this, we could plot the values on a coordinate plane. If we can draw a straight line through all of the points, then we have a linear relationship.

Once we know that the relationship between the variables is linear, we can work out the gradient and vertical intercept, and express the relationship as a linear equation (or function).

 

Worked example

Example 1

Chirping crickets can be an excellent indication of how hot or cool it is outside. Different species of crickets have different chirping rates, but for a particular species, the following data was recorded. The data shows a linear relationship between $N$N, the number of chirps per minute, and $T$T, the outside temperature, in °C.

$N$N: Number of chirps per minutes $60$60 $70$70 $110$110 $140$140
$T$T: Temperature (°C) $12$12 $13$13 $17$17 $20$20

(a) Find the gradient of the linear relationship between $N$N and $T$T.

(b) Find the vertical intercept of the linear relationship between $N$N and $T$T.

(c) Write the linear function for $T$T in terms of $N$N.

(d) If the crickets made $83$83 chirps per minute, what would be the expected outside temperature in °C?

Solution

(a) To find the gradient we can use any two points from the table. Let's use $\left(60,12\right)$(60,12) and $\left(70,13\right)$(70,13), and remembering to subtract the coordinates of the right-most point from the coordinates of the left-most point.

$\text{Gradient }$Gradient $=$= $\frac{\text{change in }y\text{-coordinates}}{\text{change in }x\text{-coordinates}}$change in y-coordinateschange in x-coordinates
$m$m $=$= $\frac{13-12}{70-60}$13127060
  $=$= $\frac{1}{10}$110
  $=$= $0.1$0.1

 

Substituting $m=0.1$m=0.1 into the gradient-intercept form $y=mx+c$y=mx+c, and replacing the variables $x$x and $y$y with $N$N and $T$T, we have:

$y$y $=$= $mx+c$mx+c

 

$T$T $=$= $0.1N+c$0.1N+c

($1$1)


(b) To find $c$c, we can substitute the coordinates of any point in the table, into equation ($1$1). Let's use the first point where $N=60$N=60 and $T=12$T=12.

$T$T $=$= $0.1N+c$0.1N+c

 

$12$12 $=$= $0.1\times60+c$0.1×60+c

(Substituting $N=60$N=60 and $T=12$T=12)

$12$12 $=$= $6+c$6+c

 

$12-6$126 $=$= $6+c-6$6+c6

(Subtract $6$6 from both sides)

$6$6 $=$= $c$c

 

$c$c $=$= $6$6

 


Therefore, the vertical intercept is $6$6.

(c) Substituting $c=6$c=6 into equation ($1$1) gives the linear function $T=0.1N+6$T=0.1N+6.

(d) Substituting $N=83$N=83 into our linear function.

$T$T $=$= $0.1N+6$0.1N+6

 

$T$T $=$= $0.1\times83+6$0.1×83+6

(Substitute $N=83$N=83)

T $=$= $14.3$14.3°C

 

 

Practice question

Question 4

Petrol costs a certain amount per litre. The table shows the cost of various amounts of petrol.

Number of litres ($x$x) $0$0 $10$10 $20$20 $30$30 $40$40
Cost of petrol ($y$y) $0$0 $16.40$16.40 $32.80$32.80 $49.20$49.20 $65.60$65.60
  1. Write an equation linking the number of litres of petrol pumped ($x$x) and the cost of the petrol ($y$y).

  2. How much does petrol cost per litre?

  3. How much would $47$47 litres of petrol cost at this unit price?

  4. In the equation, $y=1.64x$y=1.64x, what does $1.64$1.64 represent?

    The unit rate of cost of petrol per litre.

    A

    The number of litres of petrol pumped.

    B

    The total cost of petrol pumped.

    C

 

Outcomes

1.3.3.1

use graphs in practical situations

1.3.3.2

interpret graphs in practical situations [complex]

1.3.3.3

draw graphs from given data to represent practical situations [complex]

1.3.3.4

interpret the point of intersection and other important features (𝑥 and 𝑦 intercepts) of given graphs of two linear functions drawn from practical contexts [complex]

What is Mathspace

About Mathspace