Modeling a Set of Data with Linear Functions

Now, we will look at a system of two linear equations. There are three different types of solutions for a system of linear equations. We will explore this topic in-depth later in the course.

Real-world situations including two or more linear functions may be modeled with a system of linear equations. Remember, when solving a system of linear equations, we are looking for points the two lines have in common. Typically, there are three types of answers possible, as shown in Figure 5.


Figure 5


HOW TO

Given a situation that represents a system of linear equations, write the system of equations and identify the solution.

  1. Identify the input and output of each linear model.
  2. Identify the slope and y-intercept of each linear model.
  3. Find the solution by setting the two linear functions equal to another and solving for x, or find the point of intersection on a graph.


EXAMPLE 4

Building a System of Linear Models to Choose a Truck Rental Company

Jamal is choosing between two truck-rental companies. The first, Keep on Trucking, Inc., charges an up-front fee of $20, then 59 cents a mile. The second, Move It Your Way, charges an up-front fee of $16, then 63 cents a mile. When will Keep on Trucking, Inc. be the better choice for Jamal?


Solution

The two important quantities in this problem are the cost and the number of miles driven. Because we have two companies to consider, we will define two functions in Table 1.

Input d, distance driven in miles
Outputs K(d): cost, in dollars, for renting from Keep on Trucking
M(d) cost, in dollars, for renting from Move It Your Way
Initial Value Up-front fee: K(0)=20 and M(0)=16
Rate of Change K(d)=\$ 0.59 / mile and P(d)=\$ 0.63 / mile

Table 1


A linear function is of the form f(x)=m x+b. Using the rates of change and initial charges, we can write the equations


\begin{aligned}
&K(d)=0.59 d+20 \\
&M(d)=0.63 d+16
\end{aligned}

Using these equations, we can determine when Keep on Trucking, Inc., will be the better choice. Because all we have to make that decision from is the costs, we are looking for when Move It Your Way, will cost less, or when K(d) < M(d). The solution pathway will lead us to find the equations for the two functions, find the intersection, and then see where the K(d) function is smaller.

These graphs are sketched in Figure 6, with K(d) in blue.


Figure 6


To find the intersection, we set the equations equal and solve:


\begin{aligned}
K(d) &=M(d) \\
0.59 d+20 &=0.63 d+16 \\
4 &=0.04 d \\
100 &=d \\
d &=100
\end{aligned}

This tells us that the cost from the two companies will be the same if 100 miles are driven. Either by looking at the graph, or noting that K(d) is growing at a slower rate, we can conclude that Keep on Trucking, Inc. will be the cheaper price when more than 100 miles are driven, that is d > 100.



Source: Rice University, https://openstax.org/books/college-algebra/pages/4-2-modeling-with-linear-functions
Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 License.

Last modified: Monday, May 9, 2022, 1:55 PM