You’re expecting family for dinner in a few hours and, wouldn’t you know it, but your kitchen sink is clogged. The bottle of drain opener didn’t clear it out. Your brother-in-law has offered to help, but last time he tried he only made it worse. The plumber will charge you $100 just to come to your house. In addition, there will be a charge of $75 per hour for the service. If you decide to call the plumber, what will it cost?
For example, if the plumber takes one hour, then he’ll charge you $100 for showing up and $75 for the one hour of work. So, the total plumber’s bill will be
\begin{equation*}
100 + 75 = \$175
\end{equation*}
For two hours, there’s still the $100 charge, but also $75 for each of the two hours. That’s an additional charge of
\begin{equation*}
2 \text{ hours} \ast \frac{\$75}{\text{hour}} =2 \times 75= \$150
\end{equation*}
So, the total plumber’s bill will be
\begin{equation*}
\$100 + \$150 = \$250
\end{equation*}
Try this calculation all at once.
\begin{equation*}
\$100 + 2 \text{ hours} \ast \frac{\$75}{\text{hour}} = 100 + 2 \times 75 = \$250
\end{equation*}
Let’s hope it wouldn’t take the plumber as long as three hours, but if it did, we can do a similar calculation. Add the fixed charge of $100 to the additional charge of $75 for each of the three hours. The plumber’s bill would be
\begin{equation*}
\$100 + 3 \text{ hours} \ast \frac{\$75}{\text{hour}} = 100 + 3 \times 75 = \$325
\end{equation*}
What would it cost if the plumber takes only \(\frac{1}{2}\) hour? The plumber’s bill would be
\begin{equation*}
\$100 + \frac{1}{2} \text{ hours} \ast \frac{\$75}{\text{hour}} =100 + 0.5 \times 75 = \$100 + \$37.50 = \$137.50
\end{equation*}
Notice we used \(\frac{1}{2}=1 \div 2 = 0.5\text{.}\) Bet you knew that.
What would happen if the plumber was taking so long to get to your house that before he got there you dumped another bottle of drain opener in the sink and that did the trick? But before you could call and cancel the plumber, wouldn’t you know it, there he was. What do you owe him for that 0 hours of work? Probably $100. Unless your plumber says to “forget it.”
We see that the plumber’s charge depends on the amount of time it takes to unclog the sink. We can name these variables.
\begin{align*}
T \amp= \text{ time plumber takes (hours) } \sim \text{ indep} \\
P \amp= \text{ total plumber's charge (\$) } \sim \text{ dep}
\end{align*}
Look at the the relationship between \(T\) and \(P\) by making a table to describe how the plumber’s bill is a function of the time.
\(T\) |
0 |
0.5 |
1 |
2 |
3 |
\(P\) |
100 |
137.50 |
175 |
250 |
325 |
Each time we knew how long the plumber spent and calculated the plumber’s bill \(P\) by starting with the trip charge of $100 and adding in $75 times the number of hours. For example, for 3 hours we calculated
\begin{equation*}
\$100 + 3 \text{ hours} \ast \frac{\$75}{\text{hour}} = \$325
\end{equation*}
We have a name for the number of hours in general; it is \(T\text{.}\) So for \(T\) hours, we would calculate
\begin{equation*}
\$100 + T \text{ hours} \ast \frac{\$75}{\text{hour}}=P
\end{equation*}
See how we just put the \(P\) in for $325 and \(T\) where the 3 hours was? We’re just generalizing from our example. Drop the units and we have our equation. If the plumber works for \(T\) hours, then the cost is $\(P\) where
\begin{equation*}
P = 100 + T \ast 75
\end{equation*}
We started the equation “\(P=\)” because it is a convention to begin equations with the dependent variable, when possible.
An equation is a formula that shows how the value of the dependent variable (like \(P\)) depends on the value of the independent variable (like \(T\)). We usually write an equation in the form
\begin{equation*}
\text{dep} = \text{formula involving indep}
\end{equation*}
The equation is another way to describe a function, and efficient one - an equation carries a lot of information in only a few symbols.
There is a mathematical convention that we write numbers before letters in an equation. So, instead of \(T \ast 75\) we should write \(75 \ast T\text{.}\) There’s a conventional shorthand for this product: when a number and letter are next to each other, it means that they are multiplied. So, instead of \(75 * T\) we should write \(75T\text{.}\) Thus our equation is normally written as
\begin{equation*}
P = 100 + 75T.
\end{equation*}
You’ll have to remember the hidden multiplication when you’re calculating.
If you wanted to write the equation as
\begin{equation*}
P = 75T + 100,
\end{equation*}
that would be okay too. We can add the $100 trip charge first, like we did in our examples, or at the end. Same answer.
Suppose the plumber shows up at your house and fixed the sink in 25 minutes. Whew! No sooner do you pay your bill than your first dinner guest arrives. How much do you owe the plumber? Notice that
\begin{equation*}
25 \text{ minutes} \ast \frac{1 \text{ hour}}{60 \text{ minutes}} = 25 \div 60 = 0.4166666\ldots \text{ hours}
\end{equation*}
Therefore for 25 minutes we have \(T \approx 0.4166 \text{ hours}\text{.}\)
Using our equation we get
\begin{equation*}
P = 100 + 75\ast 0.4166 = 100 + 75 \times {0.4166} = 131.245 \approx \$131.25.
\end{equation*}
It was important that we rounded off our final answer because we had rounded off to get 0.4166 along the way. We could have done the entire calculation at once (avoiding the round off error) as
\begin{equation*}
100 + 75 \times 25 \div 60 =131.25
\end{equation*}
Either way, we owe the plumber $131.25.
If we plot the points from the table of values in a graph, we see that the points lie on a straight line. In Chapter 1 we highlighted the points from our table on the graph. It is more common to just show the smooth curve or line.
Why is the graph a straight line? Remember that the
rate of change tells us how steep the graph is. For example, let’s find the rate of change between 1 hour and 2 hours.
\begin{equation*}
\text{rate of change} = \frac{\text{change dep}}{\text{change indep}} = \frac{\$250 - \$175}{2 \text{ hours} - 1 \text{ hour}} = \frac{\$75}{1 \text{ hour}} = \$75 \text{ per hour}
\end{equation*}
Sure! We knew that. The plumber charges an extra $75 for each extra hour he works. The rate of change is precisely $75/hour, no matter where we calculate it. Since the rate of change is constant, the graph is the same steepness everywhere. So, the graph is a straight line, and the function is linear. Another way to say this is a function with constant rate of change is linear. The plumber’s total charge is a linear function of time.
Look back at our equation.
\begin{equation*}
P = 100 + 75T
\end{equation*}
Any linear equation fits this template.
Linear Equation Template
\begin{equation*}
\text{dep} = \text{start} + \text{slope} \ast \text{indep}
\end{equation*}
Notice our two variables are in our equation and there are two constants. Each constant has its own meaning. The first constant is 100 and it is measured in dollars. It is the trip charge, the fixed amount we would owe the plumber even if he does 0 hours work. In our standard form we refer to this quantity as the starting value (or start for short), but its official name is intercept. On the graph it’s where the line crosses the vertical axis. Think of a football player (running along the vertical axis) intercepting a pass (coming in the line). We can find the intercept from our equation by plugging in \(T = 0\) so that
\begin{equation*}
P = 100 + 75 \times 0 = 100
\end{equation*}
The second constant is 75, and though it’s tempting to say it is measured in dollars, it is really measured in $ per hour. This number is the rate of change, and in the context of linear equations it gets its own name too: it’s called the slope. Since the rate of change measures the steepness of any curve or line, the word “slope”, like mountain slope, makes sense. In our plumber example the intercept was $100 and the slope was $75/hour.