1.4 Modeling with Linear Functions

Learning Objectives

  • Construct and solve applications using linear functions.

To use a linear function to describe a real-world application, we must first determine the known quantities and define the unknown quantities as a variable. Then, we begin to interpret the words as mathematical expressions using mathematical symbols. For example, think of the rental price for a car. Say the company charges [latex]$0.10[/latex] per mile in addition to a flat rate. In this case, to find the total cost to rent the car the known cost of [latex]$0.10[/latex] per mile will be multiplied by an unknown quantity; the number of miles driven. If we use [latex]x[/latex] to represent the unknown number of miles driven, then [latex]0.10x[/latex] represents the variable cost because it changes according to the number of miles driven.

If a quantity is independent of a variable we usually just add or subtract it according to the problem. As these amounts do not change, we call them fixed costs. If the car rental company charges [latex]$0.10[/latex] per mile plus a daily fee of [latex]$50[/latex], then the equation that describes the daily car rental cost, [latex]C[/latex], is [latex]C=0.10x+50[/latex].

Creating a Model

At the beginning of section 1.1, we discussed that climate change is one of the most serious threats to our planet today and how the increasing levels of CO2 in the earth’s atmosphere parallels the increase in global temperatures. In 2016, the global temperature was [latex] 1.1 [/latex] degrees C ([latex] 2 [/latex] degrees F) warmer than pre-industrial levels. The Paris Agreement was made and aims to keep the global temperature increase well below [latex] 2 [/latex] degrees C, and hopefully limit that increase to [latex] 1.5 [/latex] degrees C. (https://e360.yale.edu/features/how-the-world-passed-a-carbon-threshold-400ppm-and-why-it-matters) Although 196 countries signed this agreement, global warming is stilling increasing. From 2015 – 2019 the global temperature has risen [latex] 0.2 [/latex] degrees C. If this trend keeps rising like it has, our planet will be in serious danger.

We can use data from the follow graph to make a linear equation that models the increase of CO2 levels and use that model to predict the CO2 levels in the future, if the CO2 levels keep increasing at a similar rate. Data on CO2 levels have been collected since 1958 and is presented graphically below (red graph). We will be focusing on data starting with January 2005 up to present time. When we look at that portion of the graph the trend appears to follow an overall increasing linear model.

This link https://gml.noaa.gov/ccgg/trends/graph.html will take you to an interactive graph that you can use to fill out the following table.

Date of Monthly Averages CO2 levels (in ppm) Ordered Pair [latex] (x,y) [/latex]
Jan 2005 378.63 (2005, 378.63)
Jan 2008
Jan 2011
Jan 2014
Jan 2017
Jan 2020
Jan 2023

Let’s find the average rate of change from Jan 2005 to Jan 2014, using the slope formula. Recall that the slope [latex]m[/latex], or rate of change of a linear function between two points [latex]\left({x}_{2,\text{ }}{y}_{2}\right)[/latex] and [latex]\left({x}_{1},\text{ }{y}_{1}\right)[/latex] is: [latex]\dfrac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}[/latex].

[latex] \dfrac{Change\ in\ CO_{2}\ levels}{Change\ in\ years} = \dfrac{398.04-378.63}{2014-2005} = \dfrac{19.41}{9} = 2.16 [/latex]

The average CO2 increase per year is [latex] 2.16 [/latex] ppm.

We can use this information to write a linear equation that models the increase of atmospheric CO2 since Jan 2005. Let [latex] x [/latex] represent the number of years since 2005 ([latex] x=0 [/latex] for Jan 2005) and let [latex] y [/latex] represent the amount of atmospheric CO2 in that given year, measured in parts per million (ppm).

We will write this equation in [latex] y=mx+b [/latex] form. As discussed earlier in this module, [latex] m [/latex] is the slope and [latex] b [/latex] is the [latex] y [/latex]-intercept. When we are writing a linear model, [latex] m [/latex] is the average rate of change and [latex] b [/latex] is the start amount (or initial value). Above, we found the average rate of change of CO2 to be [latex] 2.16 [/latex] ppm. The start amount is the amount of atmospheric CO2 in Jan 2005, which is [latex] 378.63 [/latex] ppm.

Now substituting these values in place of [latex] m [/latex] and [latex] b [/latex] we get [latex] y=2.16x+378.63 [/latex].

We can now use this linear model to make some predictions (assuming that the average rate of change stays the same).

Predict the amount of atmospheric CO2 (in ppm) in January 2030 and January 2045

  • In Jan 2030: In order to use the above linear model we need to determine [latex] x [/latex]. Remember that [latex] x=0 [/latex] for Jan 2005. To find the [latex] x [/latex] we will find the difference in the years, [latex] x=2030-2005=25 [/latex]. Now substitute [latex] \color{Green}{25} [/latex] in place of [latex] \color{Green}{x} [/latex] and solve for [latex] y [/latex].

[latex] \begin{align} y &= 2.16\color{Green}{x}\color{black}{+378.63}\\ y &= 2.16(\color{Green}{25}\color{black}{)+378.63}\\ y &= 54+378.63\\ y &= 432.63 \end{align} [/latex]

So in 2030, the CO2 levels will have risen to approximately [latex] 432.63 [/latex] ppm.

  • In Jan 2045: To find the [latex] x [/latex] we will find the difference of the years, [latex] x=2045-2005=\color{Green}{40} [/latex].

[latex] \begin{align} y &= 2.16x+378.63\\ y &= 2.16(\color{Green}{40}\color{black}{)+378.63}\\ y &= 86.4+378.63\\ y &= 465.03 \end{align} [/latex]

So in 2045, the CO2 levels will have risen to approximately [latex] 465.03 [/latex] ppm.

When will the atmospheric CO2 levels reach [latex] 500 [/latex] ppm, according to the model? (Round to nearest year)

  • Replace [latex] \color{Green}{y} [/latex] with [latex] \color{Green}{500} [/latex] and solve for x.

[latex] \begin{align} y &= 2.16x+378.63\\ \color{Green}{500} &= 2.16x+378.63\\ 500-378.63 &= 2.16x && \color{blue}{\textsf{subtract}}\\ 121.37 &= 2.16x && \color{blue}{\textsf{divide}}\\ 56.189… &= x \end{align} [/latex]

So, the CO2 levels will reach [latex] 500 [/latex] ppm approximately 56 years after 2005. The CO2 levels will be over [latex] 500 [/latex] ppm in the year 2061.

Initial Value and Rate of Change

Problems are not always explicitly stated in terms of a function or represented with a graph. Fortunately, we can analyze the problem by first representing it as a linear function and then interpreting the components of the function. As long as we know or can figure out the initial value and the rate of change of a linear function, we can solve many different kinds of real-world problems.

How To: Given a linear function [latex]f[/latex] and the initial value and rate of change, evaluate [latex]f(c)[/latex]

  1. Determine the start amount (initial value) and the rate of change (slope).
  2. Substitute the values into [latex]f\left(x\right)=mx+b[/latex].
  3. Evaluate the function at [latex]x=c[/latex].

Initial value is a term that is typically used in applications of functions sometimes called the start amount.  It can be represented as the starting point of the relationship we are describing with a function. In the case of linear functions, the initial value is typically the [latex] y [/latex]-intercept. Here are some characteristics of the initial value:

  • The point [latex](0,y)[/latex] is often the initial value of a linear function
  • The [latex] y [/latex]-value of the initial value comes from [latex] b [/latex] in slope-intercept form of a linear function, [latex]f\left(x\right)=mx+b[/latex]
  • The initial value can be found by solving for [latex] b [/latex] or substituting [latex] 0 [/latex] in for [latex] x [/latex] in a linear function.

Example

Marcus currently has [latex]200[/latex] songs in his music collection. Every month he adds [latex]15[/latex] new songs. Write a formula for the number of songs, [latex] N [/latex], in his collection as a function of time, [latex] t [/latex], the number of months.

1) How many songs will he own in a year?

2) How many months will it take to grow his collection to 500 songs?

In the example above, notice that [latex] N [/latex] is an increasing linear function. As the input (the number of months) increases, the output (number of songs) increases as well.

Comparisons with Linear Functions

Example

There are two cell phone companies that offer different packages. Company A charges a monthly service fee of [latex]$34[/latex] plus [latex]$0.05[/latex] per minute of talk-time. Company B charges a monthly service fee of [latex]$40[/latex] plus [latex]$0.04[/latex] per minute of talk-time.

  1. Write a linear equation that models the packages offered by both companies.
  2. If the average number of minutes used each month is [latex]1,160[/latex], which company offers the better plan?
  3. If the average number of minutes used each month is [latex]420[/latex], which company offers the better plan?

The following video shows another example of writing two equations that will allow you to compare two different cell phone plans.

Writing a Linear Function Given Two Data Points

The next example demonstrating writing a linear function given two data points. In this case, Ilya’s weekly income depends on the number of insurance policies he sells. We are given his income for two different weeks and the number of policies sold. We first find the rate of change and then solve for the initial value.

Example

Working as an insurance salesperson, Ilya earns a base salary plus a commission on each new policy. Therefore, Ilya’s weekly income, [latex] I [/latex], depends on the number of new policies, [latex] n [/latex], he sells during the week. Last week, he sold [latex]3[/latex] new policies and earned [latex]$760[/latex] for the week. The week before, he sold [latex]5[/latex] new policies and earned [latex]$920[/latex].

1) Find an equation for [latex] I(n) [/latex] and interpret the meaning of the components of the equation.

2) What is Ilya’s weekly income if he sells [latex] 12 [/latex] policies?

3) How many policies does he need to sell to make a weekly income of $2040?

In the following video example, we show how to identify the initial value, slope, and equation for a linear function.

Modeling Monthly Cost

This example of modeling real-world scenarios using linear functions involves the monthly cost to run a company given monthly fixed costs and production costs per item manufactured.

Example

Suppose Sofia starts a company in which she incurs a fixed cost of [latex]$1,250[/latex] per month for the overhead which includes office rent. Her production costs are [latex]$37.50[/latex] per item. Write a linear function [latex] C [/latex] where [latex] C(x) [/latex] is the cost for [latex] x [/latex] items produced in a given month. What will be the monthly cost if Sofia produces [latex] 100 [/latex] items in a month?

A final video example shows how to write a linear function that represents how many miles you can travel in a rental car given a fixed amount of money.