# 4.7: Applications of Linear Functions

**At Grade**Created by: CK-12

**Practice**Applications of Linear Graphs

Joe’s Warehouse has banquet facilities to accommodate a maximum of 250 people. When the manager quotes a price for a banquet she is including the cost of renting the room plus the cost of the meal. A banquet for 70 people costs $1300. For 120 people, the price is $2200.

- Plot a graph of cost versus the number of people.
- From the graph, estimate the cost of a banquet for 150 people.
- Determine the slope of the line. What quantity does the slope of the line represent?
- Write an equation to model this real-life situation.

### Applications of Linear Functions

Linear relationships are often used to model real-life situations. In order to create an equation and graph to model the real-life situation, you need at least two data values related to the real-life situation. When the data values have been represented graphically and the equation of the line has been determined, questions relating to the real-life situation can be presented and answered.

When equations and graphs are used to model real-life situations, the domain of the graph is sometimes \begin{align*}x \epsilon N\end{align*}. However, it is often more convenient to sketch the graph as though \begin{align*}x \epsilon R\end{align*} instead of showing the function as a series of points in the plane.

#### Let's write use equations and graphs to represent the following real-life situations:

- A cab company charges $2.00 for the first 0.6 miles and $0.50 for each additional 0.2 miles.

This situation cannot be modeled with just one equation.

To graph this situation, the \begin{align*}x\end{align*}-axis is the distance in miles and the \begin{align*}y\end{align*}-axis is the cost in dollars. The first line from \begin{align*}A\end{align*} to \begin{align*}B\end{align*} extends horizontally across the distance from 0 to 0.6 miles. The cost is constant at $2.00. The equation for this constant function is \begin{align*}y=2.00\end{align*} or \begin{align*}c=2.00\end{align*}. The second line from \begin{align*}B\end{align*} to \begin{align*}C\end{align*} and upward is not constant.

The equation that models the second graph can be determined by using the data points (0.6, 2.00) and (1, 3.00)

\begin{align*}m &= \frac{y_2-y_1}{x_2-x_1} && \text{Use the data points to calculate the slope.}\\ m &= \frac{3.00-2.00}{1-0.6}\\ m &= \frac{3.00-2.00}{1-0.6}\\ m &= \frac{1.00}{0.4}\\ m &= 2.5\\ \\ y-y_1 &= m(x-x_1) && \text{Use the slope and one point to determine the equation.}\\ y- {\color{red}2} &= {\color{red}2.5} (x- {\color{red}0.6})\\ y-2 &= 2.5x-1.5\\ y-2 {\color{red}+2} &= 2.5x-1.5 {\color{red}+2}\\ y &= 2.5x+0.5\\ c &= 2.5d+0.5\end{align*}

Therefore, the equations that model this situation are:

\begin{align*}c=\begin{Bmatrix} 2.00 & 0<d \le 0.6 \\ 2.5d+0.5 & d>0.6 \end{Bmatrix}\end{align*}If we wanted to find the cost to travel 16 miles in the cab is, note that the distance is greater than 0.6 miles. Thus, the cost must be calculated using the equation \begin{align*}c=2.5d+0.5\end{align*}. Substitute 16 in for ‘\begin{align*}d\end{align*}’.

\begin{align*}& c = 2.5d+0.5\\ & c = 2.5 ({\color{red}16})+0.5\\ & c = 40+0.5\\ &\boxed{c = \$ 40.50}\end{align*}

- When a 40 gram mass was suspended from a coil spring, the length of the spring was 24 inches. When an 80 gram mass was suspended from the same coil spring, the length of the spring was 36 inches.

Let's first plot a graph of length versus mass. On the \begin{align*}x\end{align*}-axis is the mass in grams and on the \begin{align*}y\end{align*}-axis is the length of the spring in inches.

We can use this graph to estimate information. For example, to estimate the length of the spring for a mass of 70 grams look at 70 on the \begin{align*}x\end{align*}-axis and find the y-value for that point. The length of the coil spring for a mass of 70 grams is approximately 33 inches.

The equation of the line can be determined by using any two data values. Let's use (40, 24) and (80, 36).

\begin{align*}m &= \frac{y_2-y_1}{x_2-x_1}\\ m &= \frac{36-24}{80-40}\\ m &= \frac{12}{40}\\\ m &= \frac{3}{10}\\ \\ y &= mx+b\\ {\color{red}24} &= {\color{red}\frac{3}{10}}({\color{red}40})+b\\ 24 &= \frac{3}{\cancel{10}} \left(\overset{{\color{red}4}}{\cancel{40}}\right)+b\\ 24 &= 12+b\\ 24 {\color{red}-12} &= 12 {\color{red}-12}+b\\ 12 &= b\end{align*}

The \begin{align*}y\end{align*}-intercept is (0, 12). Thus, the equation that models the situation is

\begin{align*}y=\frac{3}{10}x+12\end{align*}

\begin{align*}\boxed{l=\frac{3}{10} m+12}\end{align*}

where ‘\begin{align*}l\end{align*}’ is the length of the spring in inches and ‘\begin{align*}m\end{align*}’ is the mass in grams.

\begin{align*}& l = \frac{3}{10}m+12 && \text{Use the equation and substitute} \ 60 \ \text{in for} \ m.\\
& l = \frac{3}{10}({\color{red}60})+12\\
& l = \frac{3}{\cancel{10}} \left(\overset{{\color{red}6}}{\cancel{60}}\right)+12\\
& l = 18+12\\
& \boxed{l = 30 \ inches}\end{align*}

The \begin{align*}y\end{align*}-intercept is (0, 12). The \begin{align*}y\end{align*}-intercept represents the length of the coil spring before a mass was suspended from it. The length of the coil spring was 12 inches.

### Examples

#### Example 1

Earlier, you were given told that Joe’s Warehouse has banquet facilities to accommodate a maximum of 250 people. When the manager quotes a price for a banquet she is including the cost of renting the room plus the cost of the meal. A banquet for 70 people costs $1300. For 120 people, the price is $2200.

- Plot a graph of cost versus the number of people.
- From the graph, estimate the cost of a banquet for 150 people.
- Determine the slope of the line. What quantity does the slope of the line represent?
- Write an equation to model this real-life situation.

- On the \begin{align*}x\end{align*}-axis is the number of people and on the \begin{align*}y\end{align*}-axis is the cost of the banquet.

- The approximate cost of a banquet for 150 people is $2700.
- The two data points (70, 1300) and (120, 2200) will be used to calculate the slope of the line.

\begin{align*}m &= \frac{y_2-y_1}{x_2-x_1}\\ m &= \frac{2200-1300}{120-70}\\ m &= \frac{900}{50}\\ m &= \frac{18}{1}\end{align*}

The slope represents the cost of the banquet for each person. The cost is $18 per person.

When a linear function is used to model the real life situation, the equation can be written in the form or in the form \begin{align*}y=mx+b\end{align*} or in the form \begin{align*}Ax+By+C=0\end{align*}.

\begin{align*}y &= mx+b\\ {\color{red}1300} &= {\color{red}18}({\color{red}70})+b\\ 1300 &= 1260+b\\ 1300 {\color{red}-1260} &= 1260 {\color{red}-1260}+b\\ 40 &=b\end{align*}

The \begin{align*}y\end{align*}-intercept is (0, 40)

The equation to model the real-life situation is \begin{align*}y=18x+40\end{align*}. The variables should be changed to match the labels on the axes. The equation that best models the situation is \begin{align*}c=18n+40\end{align*} where ‘\begin{align*}c\end{align*}’ represents the cost and ‘\begin{align*}n\end{align*}’ represents the number of people.

#### Example 2

Some college students who plan on becoming math teachers decide to set up a tutoring service for high school math students. One student was charged $25 for 3 hours of tutoring. Another student was charged $55 for 7 hours of tutoring. The relationship between the cost and time is linear.

- What is the independent variable?
- What is the dependent variable?
- What are two data values for this relationship?
- Draw a graph of cost versus time.
- Determine an equation to model the situation.
- What is the significance of the slope?
- What is the cost-intercept?
- What does the cost-intercept represent?

- The cost for tutoring depends upon the amount of time. The independent variable is the time.
- The dependent variable is the cost.
- Two data values for this relationship are (3, 25) and (7, 55).
- On the \begin{align*}x\end{align*}-axis is the time in hours and on the \begin{align*}y\end{align*}-axis is the cost in dollars.

- Use the two data values (3, 25) and (7, 55) to calculate the slope of the line. \begin{align*}m = \frac{15}{2}\end{align*}. Determine the \begin{align*}y\end{align*}-intercept of the graph.

\begin{align*}y&=mx+b\\ {\color{red}25}&= {\color{red}\frac{15}{2}}( {\color{red}3})+b && \text{Use the slope and one of the data values to determine the value of} \ b.\\ 25 &= \frac{45}{2}+b\\ 25 {\color{red}-\frac{45}{2}} &= \frac{45}{2} {\color{red}-\frac{45}{2}}+b\\ {\color{red}\frac{50}{2}}-\frac{45}{2} &= b\\ \frac{5}{2} &= b\end{align*}The equation to model the relationship is \begin{align*}y=\frac{15}{2}x+\frac{5}{2}\end{align*}. To match the variables of the equation with the graph the equation is

\begin{align*}\boxed{c=\frac{15}{2}t+\frac{5}{2}}\end{align*}

The relationship is cost in dollars versus time in hours. The equation could also be written as\begin{align*}\boxed{c=7.50t+2.50}\end{align*}

- The slope of \begin{align*}\frac{15}{2}\end{align*} means that it costs $15.00 for 2 hours of tutoring. If the slope is expressed as a decimal, it means that it costs $7.50 for 1 hour of tutoring.
- The cost-intercept is the \begin{align*}y\end{align*}-intercept. The \begin{align*}y\end{align*}-intercept is (0, 2.50). This value could represent the cost of having a scheduled time or the cost that must be paid for cancelling the appointment. In a problem like this, the \begin{align*}y\end{align*}-intercept must represent a meaningful quantity for the problem.

#### Example 3

A Glace Bay developer has produced a new handheld computer called the Blueberry. He sold 10 computers in one location for $1950 and 15 in another for $2850. The number of computers and cost forms a linear relationship

- State the dependent and independent variables.
- Sketch a graph.
- Find an equation expressing cost in terms of the number of computers.
- State the slope of the line and tell what the slope means to the problem.
- State the cost-intercept and tell what it means to this problem.
- Using your equation, calculate the number of computers you could get for $6000.

- The number of dollars in sales from the computers depends upon the number of computers sold. The dependent variable is the dollars in sales and the independent variable is the number of computers sold.
- On the \begin{align*}x\end{align*}-axis is the number of computers and on the \begin{align*}y\end{align*}-axis is the cost of the computers.

- Use the data values (10, 1950) and (15, 2850) to calculate the slope of the line. \begin{align*}m=180\end{align*}. Next determine the \begin{align*}y\end{align*}-intercept of the graph.

\begin{align*}y &= mx+b\\ 1950 &= 180(10)+b\\ 1950 &= 1800+b\\ 1950-1800 &= 1800-1800+b\\ 150 &= b\end{align*}

The equation of the line that models the relationship is \begin{align*}\boxed{y=180x+150}\end{align*}To make the equation match the variables of the graph the equation is \begin{align*}\boxed{c=180n+150}\end{align*}

- The slope is \begin{align*}\frac{180}{1}\end{align*}. This means that the cost of one computer is $180.00.
- The cost intercept is the \begin{align*}y\end{align*}-intercept. The \begin{align*}y\end{align*}-intercept is (0, 150). This could represent the cost of renting the location where the sales are being made or perhaps the salary for the sales person.

\begin{align*}c &= 180n+150\\ 6000 &= 180n+150\\ 6000-150 &= 180n+150-150\\ 5850 &= 180n\\ \frac{5850}{180} &= \frac{180n}{180}\\ \frac{5850}{180} &= \frac{\cancel{180} n}{\cancel{180}}\\ 32.5 &= n\end{align*}

With $6000 you could get **32** computers.

#### Example 4

Handy Andy sells one quart can of paint thinner for $7.65 and a two quart can for $13.95. Assume there is a linear relationship between the volume of paint thinner and the price.

- What is the independent variable?
- What is the dependent variable?
- Write two data values for this relationship.
- Draw a graph to represent this relationship.
- What is the slope of the line?
- What does the slope represent in this problem?
- Write an equation to model this problem.
- What is the cost-intercept?
- What does the cost-intercept represent in this problem?
- How much would you pay for 6 quarts of paint thinner?

- The independent variable is the volume of paint thinner.
- The dependent variable is the cost of the paint thinner.
- Two data values are (1, 7.65) and (2, 13.95).
- On the \begin{align*}x\end{align*}-axis is the volume in quarts and on the \begin{align*}y\end{align*}-axis is the cost in dollars.
- Use the two data values (1, 7.65) and (2, 13.95) to calculate the slope of the line. The slope is \begin{align*}m=6.30\end{align*}.
- The slope represents the cost of one quart of paint thinner. The cost is $6.30.

\begin{align*}y &= mx+b\\ 7.65 &= 6.30(1)+b\\ 7.65 &= 6.30+b\\ 7.65-6.30 &= 6.30-6.30+b\\ 1.35 &= b\end{align*}

The equation to model the relationship is \begin{align*}y=6.30x+1.35\end{align*}. The equation that matches the variables of the graph is \begin{align*}\boxed{c=6.30v+1.35}\end{align*}

- The cost-intercept is (0, 1.35).
- This could represent the cost of the can that holds the paint thinner.

\begin{align*}c &= 6.30v+1.35\\ c &= 6.30(6)+1.35\\ c &= 37.80+1.35\\ c &= \$39.15\end{align*}

The cost of 6 quarts of paint thinner is $39.15.

#### Example 5

Juan drove from his mother’s home to his sister’s home. After driving for 20 minutes he was 62 miles away from his sister’s home and after driving for 32 minutes he was only 38 miles away. The time driving and the distance away from his sister’s home form a linear relationship.

- What is the independent variable? What is the dependent variable?
- What are the two data values?
- Draw a graph to represent this problem. Label the axis appropriately.
- Write an equation expressing distance in terms of time driving.
- What is the slope and what is its meaning in this problem?
- What is the time-intercept and what does it represent?
- What is the distance-intercept and what does it represent?
- How far is Juan from his sister’s home after he had been driving for 35 minutes?

- The independent variable is the time driving. The dependent variable is the distance.
- The two data values are (20, 62) and (32, 38).
- On the \begin{align*}x\end{align*}-axis is the time in minutes and on the \begin{align*}y\end{align*}-axis is the distance in miles.

- (20, 62) and (32, 38) are the coordinates that will be used to calculate the slope of the line.

\begin{align*}m &= \frac{y_2-y_1}{x_2-x_1}\\ m &= \frac{38-62}{32-20}\\ m &= \frac{-24}{12}\\ m &= -2\\ \\ y &= mx+b\\ {\color{red}62} &= {\color{red}-2} ({\color{red}20})+b\\ 62 &= -40+b\\ 62 {\color{red}+40} &= -40 {\color{red}+40}+b\\ 102 &= b \qquad \text{The} \ y \text{-intercept is} \ (0, 102)\end{align*}

\begin{align*}y &= mx+b\\ y &= -2x+102\\ d &= -2t+102\end{align*}

- The slope is \begin{align*}-2=\frac{-2}{1}=\frac{-2(miles)}{1(minute)}\end{align*}. The slope means that for each minute of driving, the distance that Juan has to drive to his sister’s home is reduced by 2 miles.
- The time-intercept is actually the \begin{align*}x\end{align*}-intercept. This value is:

\begin{align*}d &= -2t+102 && \text{Set} \ d=0 \ \text{and solve for} \ t.\\ {\color{red}0} &= -2t+102\\ 0 {\color{red}+2t} &= -2t {\color{red}+2t}+102\\ 2t &= 102\\ \frac{2t}{{\color{red}2}} &= \frac{102}{{\color{red}2}}\\ \frac{\cancel{2}t}{\cancel{2}} &= \frac{102}{2}\\ t &= 51 \ minutes\end{align*}

The time-intercept is 51 minutes and this represents the time it took Juan to drive from his mother’s home to his sister’s home.

- The distance-intercept is the \begin{align*}y\end{align*}-intercept. This value has been calculated as (0, 102). The distance-intercept represents the distance between his mother’s home and his sister’s home. The distance is 102 miles.

\begin{align*}d &= -2t+102 && \text{Substitute} \ 35 \ \text{into the equation for} \ t \ \text{and solve for} \ d.\\ d &= -2 ({\color{red}35})+102\\ d &= -70+102\\ d &= 32 \ miles\end{align*}

After driving for 35 minutes, Juan is 32 miles from his sister’s home.

### Review

Players on the school soccer team are selling candles to raise money for an upcoming trip. Each player has 24 candles to sell. If a player sells 4 candles a profit of $30 is made. If he sells 12 candles a profit of $70 is made. The profit and the number of candles sold form a linear relation.

- State the dependent and the independent variables.
- What are the two data values for this relation?
- Draw a graph and label the axis.
- Determine an equation to model this situation.
- What is the slope and what does it mean in this problem?
- Find the profit-intercept and explain what it represents.
- Calculate the maximum profit that a player can make.
- Write a suitable domain and range.
- If a player makes a profit of $90, how many candles did he sell?
- Is this data continuous, discrete, or neither? Justify your answer.

Jacob leaves his summer cottage and drives home. After driving for 5 hours, he is 112 km from home, and after 7 hours, he is 15 km from home. Assume that the distance from home and the number of hours driving form a linear relationship.

- State the dependent and the independent variables.
- What are the two data values for this relationship?
- Represent this linear relationship graphically.
- Determine the equation to model this situation.
- What is the slope and what does it represent?
- Find the distance-intercept and its real-life meaning in this problem.
- How long did it take Jacob to drive from his summer cottage to home?
- Write a suitable domain and range.
- How far was Jacob from home after driving 4 hours?
- How long had Jacob been driving when he was 209 km from home?

### Review (Answers)

To see the Review answers, open this PDF file and look for section 4.7.

### Notes/Highlights Having trouble? Report an issue.

Color | Highlighted Text | Notes | |
---|---|---|---|

Please Sign In to create your own Highlights / Notes | |||

Show More |

Linear Function

A linear function is a relation between two variables that produces a straight line when graphed.Slope

Slope is a measure of the steepness of a line. A line can have positive, negative, zero (horizontal), or undefined (vertical) slope. The slope of a line can be found by calculating “rise over run” or “the change in the over the change in the .” The symbol for slope is### Image Attributions

Here you will learn how to use what you know about the equations and graphs of lines to help you to solve real-life problems.