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

- Identify the input and output of each linear model.
- Identify the slope and y-intercept of each linear model.
- Find the solution by setting the two linear functions equal to another and solving for , 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.

**Table 1**

A linear function is of the form . Using the rates of change and initial charges, we can write the equations

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 . The solution pathway will lead us to find the equations for the two functions, find the intersection, and then see where the function is smaller.

These graphs are sketched in Figure 6, with in blue.

**Figure 6**

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

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

Source: Rice University, https://openstax.org/books/college-algebra/pages/4-2-modeling-with-linear-functions

This work is licensed under a Creative Commons Attribution 4.0 License.