Applications of Linear Functions

Learning Outcomes

  • Write the equation for a linear function given an application

In the real world, 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.

We will begin by looking at applications that that involve calculating slope and then we will move on to writing a linear equation given an application.

The units for slope are always [latex]\dfrac{\text{units for the output}}{\text{units for the input}}[/latex]. Think of the units as the change of output value for each unit of change in input value. An example of slope could be miles per hour or dollars per day. Notice the units appear as a ratio of units for the output per units for the input.  Recall that the slope measures steepness.

Example

The population of a city increased from [latex]23,400[/latex] in [latex]2008[/latex] to [latex]27,800[/latex] in [latex]2012[/latex]. Find the change of population per year if we assume the change was constant from [latex]2008[/latex] to [latex]2012[/latex].

In the next video, we show an example where we determine the increase in cost for producing solar panels given two data points.

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 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.  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 y-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 y-value of the initial value comes from b 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 b or substituting [latex]0[/latex] in for x in a linear function.

In our next example, we are given a scenario where Marcus wants to increase the number of songs in his music collection by a fixed amount each month. This is a perfect candidate for a linear function because the increase in the number of songs stays the same each month. We will identify the initial value for the music collection and write an equation that represents the number of songs in the collection for any number of months t.

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, N, in his collection as a function of time, t, the number of months. How many songs will he own in a year?

In the example we just completed, notice that N is an increasing linear function. As the input (the number of months) increases, the output (number of songs) increases as well.

The following video provides an example of how to write a function that will give the cost in dollars for a given number of credit hours taken, x.  Notice how the function consists of an initial value (the cost of the registration fee) plus an increase in cost for every credit hour taken.

In our next example, we will show that you can write the equation for 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, I, depends on the number of new policies, n, 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]. Find an equation for I(n) and interpret the meaning of the components of the equation.

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

We will show one more example of how to write a linear function that represents the monthly cost to run a company given monthly fixed costs and production costs per item.

Example

Suppose Ben starts a company in which he incurs a fixed cost of [latex]$1,250[/latex] per month for the overhead which includes his office rent. His production costs are [latex]$37.50[/latex] per item. Write a linear function where C(x) is the cost for x items produced in a given month.

The following 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.

In the next example, we will take data that is in tabular (table) form to write an equation that describes the rate of change of a rat population.

Example

The table below relates the number of rats in a population to time (in weeks). Use the table to write a linear equation.

w, number of weeks [latex]0[/latex] [latex]2[/latex] [latex]4[/latex] [latex]6[/latex]
P(w), number of rats [latex]1000[/latex] [latex]1080[/latex] [latex]1160[/latex] [latex]1240[/latex]

Think About It

Is the initial value always provided in a table of values like the table in the previous example? Write your ideas in the textbox below before you look at the answer.

If your answer is no, give a description of how you would find the initial value.

 Summary

  • Sometimes we are given an initial value and sometimes we have to solve for it.
  • Using units can help you verify that you have calculated slope correctly.
  • We can write the equation for a line given a slope and a data point or from a table of data.