Things change, like the price of gasoline, and just about every day it seems. What does it mean when the price of a gallon of gas drops from $3.999/gal to $3.299/gal? The symbol / is short for “per” or “for each,” so that means each gallon costs
\begin{equation*}
\$3.999-\$3.299=\$0.70 = 70\text{¢}
\end{equation*}
less. Does this 70¢ truly matter?
Before we answer that question, are you wondering why there’s that extra 9 at the end of the price? We might think a gallon costs $3.99 but there’s really a small 9 following it. Sometimes that 9 is raised up slightly on the gas station sign. You have to read the fine print. What it means is an extra \(\frac{9}{10}\)¢ for each gallon. So the true price of a gallon of gas would be $3.999. Gas costs a tiny bit more than you thought. Good grief.
Back to our question. Does 70¢ truly matter to us? Probably not. Can’t even buy a bag of potato chips for 70¢. But, how often do you buy just one gallon of gas? Typically you might put five, or ten, or even twenty gallons of gas into the tank. We want to understand how the price of gasoline influences what it really costs us at the pump. To do that let’s compare our costs when we buy ten gallons of gas. There’s no good reason for picking ten; it’s just a nice number to work with.
If gas costs $3.999/gal and we buy 10 gallons, it costs
\begin{equation*}
10 \text{ gallons} \ast \frac{\$3.999}{\text{gallon}} = 10 \times 3.999 = \$39.99
\end{equation*}
See how we described the computation twice? First, with units, fractions, and \(\ast\) for multiplication in what’s sometimes called “algebraic notation.” Then, with just numbers and \(\times\) for multiplication - that’s what you can type into a calculator.
If gas drops to $3.299/gal and we buy 10 gallons, it costs
\begin{equation*}
10 \text{ gallons} \ast \frac{\$3.299}{\text{gallon}} = 10 \times 3.299 = \$32.99
\end{equation*}
That’s $7 less. For $7 savings on gas you could buy that bag of potato chips, and an iced tea to go with it, and still have change. That amount matters. I mean, especially since it’s $7 savings every time you put 10 gallons in the tank.
Gas prices have been changing wildly, and along with them, the price of 10 gallons of gas. In mathematics, things that change are called variables. The two variables we’re focusing on in this story are
\begin{align*}
P \amp= \text{ price of gasoline (\$/gal) }\\
C \amp= \text{ total cost (\$) }
\end{align*}
Notice that we gave each variable a letter name. It is helpful to just use a single letter chosen from the word it stands for. In our example, \(P\) stands for “price” and \(C\) stands for “cost”. In this course we rarely use the letter \(X\) simply because so few words begin with \(X\text{.}\) Whenever we name a variable (\(P\)) we also describe in words what it represents (the price of gasoline), and we state what units it’s measured in ($/gal).
In talking about the relationship between these variables we might say “the total cost depends on the price of gas,” so \(C\) depends on \(P\text{.}\) That tells us that \(C\) is the dependent variable and \(P\) is the independent variable. In general, the variable we really care about is the dependent variable, in this case \(C\text{,}\) the total amount of money it costs us. The concept of dependence is so important that there’s yet another word for it. We say that \(C\) is a function of \(P\text{,}\) as in “cost is a function of price.”
Knowing which variable is independent or dependent is helpful to us. To emphasize the dependence, we often make a notation next to the variable name.
\begin{align*}
P \amp= \text{ price of gasoline (\$/gal) } \sim \text{ indep}\\
C \amp= \text{ total cost (\$) } \sim \text{ dep}
\end{align*}
This labeling is rarely used outside this textbook, so add it in for yourself if you need it. In some situations dependency can be viewed either way; there might not be one correct way to do it. Labeling the dependence is extra important then, so anyone reading your work knows which way you are thinking of it.
Given a choice, we usually assign dependence such that given a value of the independent variable, it is easy to calculate the corresponding value for the dependent variable. In our example it’s easy to use the price per gallon, \(P\text{,}\) to figure out the total cost, \(C\text{.}\) We can work backwards - from \(C\) to \(P\) - but it’s not as easy.
For example, suppose we buy 10 gallons of gas and it costs $28.99. We can figure out that the price per gallon must be
\begin{equation*}
P=\frac{\$28.99}{10 \text{ gallons}}= 28.99 \div 10 = \$2.899 \text{/gal}
\end{equation*}
Notice that we use the fraction as part of the algebraic notation, but we use \(\div\) to indicate division on the calculator. Your calculator key for division may be \(/\) instead, which we reserve as a shorthand for “per.”
From our experience we have a sense of what gas might cost. In my lifetime, I’ve seen gas prices as low as 35.9¢/gallon in the 1960s to a high of $4.099/gallon recently. This range of values sounds too specific, so it would sound better to say something general like
“Gas prices are (definitely) between $0/gal and $5/gal.”
The mathematical shorthand for this sentence is
\begin{equation*}
0 \le P \le 5
\end{equation*}
The inequality symbol \(\le\) is pronounced “less than or equal to”. Formally, the range of realistic values of the independent variable is called the domain of the function \(C\text{.}\) In this text, we rarely write the domain because it’s usually clear from the story what realistic values would be. The exercises in this section ask you to do so for practice.
Be aware that there are often many different numbers in a story. Some numbers are examples of values the variables take on, such as $3.999/gal or $39.99 in our example. Other numbers are constants; they do not change (at least not during the story). The one constant in our story is that we are always buying 10 gallons of gas. Occasionally there are other numbers in a story that turn out not to be relevant at all, so be on the lookout.
Back to our story. A report says that the average price of gasoline in Minnesota was $2.900/gal in 2010 and increased approximately 20% per year for the next several years. We would like to check what that says about the average price of gasoline in 2011 and 2012, say. (It is unlikely that the price increase continued much longer at that rate.)
To understand what that report is saying, we need to remember how percents work. Luckily, the word “percent” is very descriptive. The “cent” part means “hundred,” like 100 cents in a dollar or 100 years in a century. And, as usual, “per” means “for each.” Together, percent means “per hundred.” The number 20% means 20 for each hundred. Written as a fraction it is \(\frac{20}{100}\text{.}\) Divide to get the decimal \(20 \div 100 = 0.20.\)
\begin{equation*}
\text{Think money: }20\%\text{ is like }20\text{¢ , and }0.20\text{ is like }\$0.20
\end{equation*}
Bottom line: 20%, \(\frac{20}{100}\text{,}\) and 0.20 mean exactly the same number.
\begin{equation*}
20\% = \frac{20}{100} = 20 \div 100 = 0.20
\end{equation*}
To calculate the percent of a number we multiply by the decimal version. For example,
\begin{equation*}
20\% \text{ of } \$2.900 = 0.20 \times 2.900 = \$0.58
\end{equation*}
The report says the price increased by 20% each year, so by 2011 the price had increased an average of $0.58. That 58 cents is not what gas cost in 2011. It’s how much more gas cost in 2011 compared to 2010. To see what the report projected for the 2011 cost we need to add that increase on to the original 2010 price.
\begin{equation*}
\$2.900 + \$0.58= \$3.48\text{ per gallon}
\end{equation*}
Sounds about right. Expensive, to be sure, but fairly accurate.
For 2012, the price increased by 20% again. That means 20% of what it was in 2011. We can’t just add $0.58 again. That was 20% of the 2010 value, and we want 20% of the 2011 value. Going to have to calculate that.
\begin{equation*}
20\% \text{ of } \$3.48 = 0.20 \times 3.48 = \$0.696
\end{equation*}
so the projected 2012 value was
\begin{equation*}
\$3.48 + \$0.696= \$4.176\text{ per gallon}
\end{equation*}
One last note. The number 20% in the report sounds like a rough approximation. The report probably means the increase was around 20%, maybe a little less, maybe a little more. So our answers of $3.48/gal and $4.176/gal could be a little less or a little more too. But they sound so perfectly correct. To be safe, we really ought to round off these answers, to something more general like around $3.50/gal in 2011 or approximately $4.20/gal in 2012. Using our “approximately equal to” symbol we write \(P \approx \$3.50\)/gal in 2011 and \(P \approx \$4.20\)/gal in 2012.