## Building Linear Models from Words

This section introduces a basic problem-solving method that will help you navigate the task of creating a linear model given verbal descriptions.

### Building Linear Models from Verbal Descriptions

#### Learning Objectives

In this section, you will:

- Build linear models from verbal descriptions.
- Model a set of data with a linear function.

Emily is a college student who plans to spend a summer in Seattle. She has saved $3,500 for her trip and anticipates spending $400 each week on rent, food, and activities. How can we write a linear model to represent her situation? What would be the x-intercept, and what can she learn from it? To answer these and related questions, we can create a model using a linear function. Models such as this one can be extremely useful for analyzing relationships and making predictions based on those relationships. In this section, we will explore examples of linear function models.

#### Building Linear Models from Verbal Descriptions

When building linear models to solve problems involving quantities with a constant rate of change, we typically follow the same problem strategies that we would use for any type of function. Let's briefly review them:

- Identify changing quantities, and then define descriptive variables to represent those quantities. When appropriate, sketch a picture or define a coordinate system.
- Carefully read the problem to identify important information. Look for information that provides values for the variables or values for parts of the functional model, such as slope and initial value.
- Carefully read the problem to determine what we are trying to find, identify, solve, or interpret.
- Identify a solution pathway from the provided information to what we are trying to find. Often this will involve checking and tracking units, building a table, or even finding a formula for the function being used to model the problem.
- When needed, write a formula for the function.
- Solve or evaluate the function using the formula.
- Reflect on whether your answer is reasonable for the given situation and whether it makes sense mathematically.
- Clearly convey your result using appropriate units, and answer in full sentences when necessary.

Now let's take a look at the student in Seattle. In her situation, there are two changing quantities: time and money. The amount of money she has remaining while on vacation depends on how long she stays. We can use this information to define our variables, including units.

So, the amount of money remaining depends on the number of weeks: .Notice that the unit of dollars per week matches the unit of our output variable divided by our input variable. Also, because the slope is negative, the linear function is decreasing. This should make sense because she is spending money each week.

The rate of change is constant, so we can start with the linear model . Then we can substitute the intercept and slope provided.

To find the -intercept (horizontal axis intercept), we set the output to zero, and solve for the input.

The -intercept (horizontal axis intercept) is weeks. Because this represents the input value when the output will be zero, we could say that Emily will have no money left after weeks.

When modeling any real-life scenario with functions, there is typically a limited domain over which that model will be valid-almost no trend continues indefinitely. Here the domain refers to the number of weeks. In this case, it doesn't make sense to talk about input values less than zero. A negative input value could refer to a number of weeks before she saved , but the scenario discussed poses the question once she saved because this is when her trip and subsequent spending starts. It is also likely that this model is not valid after the -intercept (horizontal axis intercept), unless Emily uses a credit card and goes into debt. The domain represents the set of input values, so the reasonable domain for this function is .

In this example, we were given a written description of the situation. We followed the steps of modeling a problem to analyze the information. However, the information provided may not always be the same. Sometimes we might be provided with an intercept. Other times we might be provided with an output value. We must be careful to analyze the information we are given, and use it appropriately to build a linear model.

#### Using a Given Intercept to Build a Model

Some real-world problems provide the vertical axis intercept, which is the constant or initial value. Once the vertical axis intercept is known, the t-intercept (horizontal axis intercept) can be calculated. Suppose, for example, that Hannah plans to pay off a no-interest loan from her parents. Her loan balance is $1,000. She plans to pay $250 per month until her balance is $0. The y-intercept is the initial amount of her debt, or $1,000. The rate of change, or slope, is -$250 per month. We can then use the slope-intercept form and the given information to develop a linear model.

Now we can set the function equal to 0, and solve for to find the -intercept.

The -intercept is the number of months it takes her to reach a balance of . The -intercept is 4 months, so it will take Hannah four months to pay off her loan.

#### Using a Given Input and Output to Build a Model

Many real-world applications are not as direct as the ones we just considered. Instead they require us to identify some aspect of a linear function. We might sometimes instead be asked to evaluate the linear model at a given input or set the equation of the linear model equal to a specified output.

#### HOW TO

##### Given a word problem that includes two pairs of input and output values, use the linear function to solve a problem.

- Identify the input and output values.
- Convert the data to two coordinate pairs.
- Find the slope.
- Write the linear model.
- Use the model to make a prediction by evaluating the function at a given x-value.
- Use the model to identify an x-value that results in a given y-value.
- Answer the question posed.

#### EXAMPLE 1

##### Using a Linear Model to Investigate a Town's Population

A town's population has been growing linearly. In 2004, the population was 6,200. By 2009, the population had grown to 8,100. Assume this trend continues.

(a) Predict the population in 2013.

(b) Identify the year in which the population will reach 15,000.

##### Solution

The two changing quantities are the population size and time. While we could use the actual year value as the input quantity, doing so tends to lead to very cumbersome equations because the y-intercept would correspond to the year 0, more than 2000 years ago!

To make computation a little nicer, we will define our input as the number of years since 2004.

To predict the population in , we would first need an equation for the population. Likewise, to find when the population would reach 15,000, we would need to solve for the input that would provide an output of 15,000. To write an equation, we need the initial value and the rate of change, or slope.

To determine the rate of change, we will use the change in output per change in input.

The problem gives us two input-output pairs. Converting them to match our defined variables, the year 2004 would correspond to , giving the point . Notice that through our clever choice of variable definition, we have "given" ourselves the -intercept of the function. The year 2009 would correspond to , giving the point .

The two coordinate pairs are and . Recall that we encountered examples in which we were provided two points earlier in the chapter. We can use these values to calculate the slope.

We already know the -intercept of the line, so we can immediately write the equation:

To predict the population in 2013, we evaluate our function at .

If the trend continues, our model predicts a population of 9,620 in

To find when the population will reach 15,000, we can set and solve for .

Our model predicts the population will reach 15,000 in a little more than 23 years after 2004, or somewhere around the year 2027.

#### TRY IT #1

A company sells doughnuts. They incur a fixed cost of for rent, insurance, and other expenses. It costs to produce each doughnut.

(a) Write a linear model to represent the cost of the company as a function of , the number of doughnuts produced.

(b) Find and interpret the -intercept.

#### TRY IT #2

A city's population has been growing linearly. In 2008, the population was 28,200. By 2012, the population was 36,800. Assume this trend continues.

(a) Predict the population in 2014.

(b) Identify the year in which the population will reach 54,000.

#### Using a Diagram to Build a Model

It is useful for many real-world applications to draw a picture to gain a sense of how the variables representing the input and output may be used to answer a question. To draw the picture, first consider what the problem is asking for. Then, determine the input and the output. The diagram should relate the variables. Often, geometrical shapes or figures are drawn. Distances are often traced out. If a right triangle is sketched, the Pythagorean Theorem relates the sides. If a rectangle is sketched, labeling width and height is helpful.

#### EXAMPLE 2

##### Using a Diagram to Model Distance Walked

Anna and Emanuel start at the same intersection. Anna walks east at 4 miles per hour while Emanuel walks south at 3 miles per hour. They are communicating with a two-way radio that has a range of 2 miles. How long after they start walking will they fall out of radio contact?

##### Solution

In essence, we can partially answer this question by saying they will fall out of radio contact when they are 2 miles apart, which leads us to ask a new question:

"How long will it take them to be 2 miles apart"?

In this problem, our changing quantities are time and position, but ultimately we need to know how long will it take for them to be 2 miles apart. We can see that time will be our input variable, so we'll define our input and output variables.

Because it is not obvious how to define our output variable, we'll start by drawing a picture such as Figure 2.

**Figure 2**

Initial Value: They both start at the same intersection so when , the distance traveled by each person should also be 0. Thus the initial value for each is 0.

Rate of Change: Anna is walking 4 miles per hour and Emanuel is walking 3 miles per hour, which are both rates of change. The slope for is 4 and the slope for is 3.

Using those values, we can write formulas for the distance each person has walked.

For this problem, the distances from the starting point are important. To notate these, we can define a coordinate system, identifying the "starting point" at the intersection where they both started. Then we can use the variable, , which we introduced above, to represent Anna's position, and define it to be a measurement from the starting point in the eastward direction. Likewise, can use the variable, , to represent Emanuel's position, measured from the starting point in the southward direction. Note that in defining the coordinate system, we specified both the starting point of the measurement and the direction of measure.

We can then define a third variable, , to be the measurement of the distance between Anna and Emanuel. Showing the variables on the diagram is often helpful, as we can see from Figure

Recall that we need to know how long it takes for , the distance between them, to equal 2 miles. Notice that for any given input , the outputs , and represent distances.

**Figure 3**

Figure 2 shows us that we can use the Pythagorean Theorem because we have drawn a right angle.

Using the Pythagorean Theorem, we get:

In this scenario we are considering only positive values of , so our distance will always be positive. We can simplify this answer to . This means that the distance between Anna and Emanuel is also a linear function. Because is a linear function, we can now answer the question of when the distance between them will reach 2 miles. We will set the output and solve for .

They will fall out of radio contact in 0.4 hour, or 24 minutes.

#### Q&A

**Should I draw diagrams when given information based on a geometric shape?**

*Yes. Sketch the figure and label the quantities and unknowns on the sketch.*

#### EXAMPLE 3

##### Using a Diagram to Model Distance Between Cities

There is a straight road leading from the town of Westborough to Agritown 30 miles east and 10 miles north. Partway down this road, it junctions with a second road, perpendicular to the first, leading to the town of Eastborough. If the town of Eastborough is located 20 miles directly east of the town of Westborough, how far is the road junction from Westborough?

##### Solution

It might help here to draw a picture of the situation. See Figure 4. It would then be helpful to introduce a coordinate system. While we could place the origin anywhere, placing it at Westborough seems convenient. This puts Agritown at coordinates , and Eastborough at .

**Figure 4**

Using this point along with the origin, we can find the slope of the line from Westborough to Agritown.

Now we can write an equation to describe the road from Westborough to Agritown.

From this, we can determine the perpendicular road to Eastborough will have slope .

Because the town of Eastborough is at the point , we can find the equation.

We can now find the coordinates of the junction of the roads by finding the intersection of these lines. Setting them equal,

The roads intersect at the point . Using the distance formula, we can now find the distance from Westborough to the junction.

##### Analysis

One nice use of linear models is to take advantage of the fact that the graphs of these functions are lines. This means real-world applications discussing maps need linear functions to model the distances between reference points.

#### TRY IT #3

There is a straight road leading from the town of Timpson to Ashburn 60 miles east and 12 miles north. Partway down the road, it junctions with a second road, perpendicular to the first, leading to the town of Garrison. If the town of Garrison is located 22 miles directly east of the town of Timpson, how far is the road junction from Timpson?

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.