Example 1.6.1. Seats in a Baseball Stadium.
A baseball stadium has seating arranged in three sections. As part of a special promotion, guests will receive two of three prizes. Guests seated in Sections A and B will receive a hat, guests seated in Sections B and C will receive a shirt, and guests seated in Sections A and C will receive a hot dog. The promoters told the stadium managers of their plans, and asked how many seats were in each section. The managers, thinking they were being helpful, told the promoters they would need
\(800\) hats,
\(608\) shirts, and
\(612\) hot dogs, and they have since been unavailable for further help. How many seats are in each section?
In order to answer this question, we need to make we know what is being asked. The final sentence of the question asks: βHow many seats are in each section?β
Since we are trying to solve for the number of seats in each section, those should be our variables. Let
\(x_1\) be the number of seats in Section A,
\(x_2\) be the number of seats in Section B, and
\(x_3\) be the number of seats in Section C.
Now we use the information given to create linear equations. We were told that hats go to guests in Sections A and B and that weβll need \(800\) hats, which means that
\begin{equation*}
x_1+x_2 = 800.
\end{equation*}
Guests in Sections B and C get shirts, which means that
\begin{equation*}
x_2+x_3 = 608\text{.}
\end{equation*}
Lastly, guests in Sections A and C get hot dogs, which means that
\begin{equation*}
x_1+x_3 = 612\text{.}
\end{equation*}
Putting these three equations into a linear system results in
\begin{align*}
\amp x_1\amp \amp + \amp \amp x_2\amp \amp \amp \amp \amp \amp = 800 \\
\amp \amp \amp \amp \amp x_2\amp \amp +\amp \amp x_3\amp \amp = 608 \\
\amp x_1 \amp \amp +\amp \amp \amp \amp \amp \amp x_3\amp \amp =612 \text{,}
\end{align*}
and the corresponding augmented matrix is
\begin{equation*}
\left[\begin{array}{cccc} 1\amp 1\amp 0\amp 800\\0\amp 1\amp 1\amp 608\\1\amp 0\amp 1\amp 612\\ \end{array} \right]\text{.}
\end{equation*}
To solve our system, we put the augmented matrix into reduced row echelon form and get
\begin{equation*}
\left[\begin{array}{cccc} 1\amp 1\amp 0\amp 800\\0\amp 1\amp 1\amp 608\\1\amp 0\amp 1\amp 612\\ \end{array} \right] \rrefarrow \left[\begin{array}{cccc} 1\amp 0\amp 0\amp 402\\0\amp 1\amp 0\amp 398\\0\amp 0\amp 1\amp 210\\ \end{array} \right]\text{.}
\end{equation*}
Since
\(x_1=402\text{,}\) this means that Section A has
\(402\) seats. Similarly, we see that Section B has
\(398\) seats, and Section C has
\(210\) seats. This is a reasonable solution because the number of seats in each section is nonnegative and a whole number.
Example 1.6.4. Balancing a chemical equation.
When chemicals react, no elements are created or destroyed; instead they recombine into different substances. For example, a blow torch works by burning acetylene \(C_2H_2\) in the presence of oxygen \(O_2\text{.}\) The result is carbon dioxide \(CO_2\) and water \(H_2 O\text{.}\)
\begin{equation*}
\text{acetylene } + \text{ oxygen } \longrightarrow \text{ carbon dioxide } + \text{ water}
\end{equation*}
If there were \(4\) atoms of carbon (as part of the acetylene) before the reaction, then there have to be \(4\) atoms of carbon (in the form of carbon dioxide) after the reaction also.
In chemistry, balancing a chemical equation means finding the smallest numbers of the different molecules involved in the reaction. Most students of chemistry balance equations by guessing and checking, but thereβs actually a system of linear equations involved, which means thereβs an algorithm which always leads to a solution.
Letβs balance the blow torch reaction, using our problem solving steps.
\begin{equation*}
\fillinmath{X}C_2H_2 + \fillinmath{X}O_2 \longrightarrow \fillinmath{X} CO_2 + \fillinmath{X}H_2O
\end{equation*}
We need to find the coefficients of each of the molecules, so those are the unknowns we should give names to. Letβs say there are \(x_1\) many molecules of \(C_2H_2\text{,}\) and \(x_2\) many molecules of \(O_2\text{,}\) and \(x_3\) many molecules of \(CO_2\text{,}\) and \(x_4\) many molecules of \(H_2O\text{.}\)
\begin{equation*}
x_1 \, C_2H_2 + x_2 \, O_2 \longrightarrow x_3 \, CO_2 + x_4 \, H_2O
\end{equation*}
Now we consider each element and the number of atoms there are before and after the reaction.
For carbon, which is denoted by \(C\text{,}\) there are \(x_1\) molecules of \(C_2H_2\text{,}\) and there are \(2\) carbon atoms in each of the \(x_1\) molecules, which means there are \(2x_1\) carbon atoms before the reaction takes place. After the reaction (or after the arrow), there are \(x_3\) molecules of \(CO_2\) and \(1\) carbon atom in each molecule, which means there are \(x_3\) many atoms of carbon after the reaction occurs. Because the number of carbon atoms must be the same before and after the reaction, we get the equation \(2x_1=x_3\text{,}\) or restated in the form which has the constant after the equal sign as
\begin{equation*}
2x_1-x_3=0\text{.}
\end{equation*}
Next, we examine hydrogen, which is denoted by \(H\text{.}\) Before the reaction there were \(2\) hydrogen atoms in each of the \(x_1\) molecules of \(C_2H_2\text{,}\) for a total of \(2x_1\) hydrogen atoms. After the reaction, there are \(2\) hydrogen atoms in each of the \(x_4\) molecules of \(H_2O\text{,}\) for a total of \(2x_4\) hydrogen atoms. This gives the equation \(2x_1=2x_4\text{,}\) or moving the variables to the left side of the equal sign,
\begin{equation*}
2x_1-2x_4=0\text{.}
\end{equation*}
Finally, we look at oxygen, denoted by \(O\text{.}\) Note that there is oxygen in both of the molecules that appear after the reaction. There were \(2x_2\) oxygen atoms before the reaction took place, and after the reaction there are \(2\) oxygen atoms in each of the \(x_3\) molecules of \(CO_2\) and \(1\) oxygen atom in each of the \(x_4\) molecules of \(H_2O\text{,}\) which means there is a total of \(2x_3+x_4\) oxygen atoms after the reaction. This gives us the equation \(2x_2=2x_3+x_4\text{,}\) or
\begin{equation*}
2x_2-2x_3-x_4=0\text{.}
\end{equation*}
We put these equations into an augmented matrix and then find the reduced row echelon form
\begin{equation*}
\begin{bmatrix} 1\amp 0 \amp -1\amp 0\amp 0\\2\amp 0 \amp 0\amp -2\amp 0\\0\amp 2\amp -2\amp -1\amp 0\\ \end{bmatrix} \rrefarrow \begin{bmatrix} 1\amp 0\amp 0\amp -1 \amp 0\\0\amp 1\amp 0\amp \frac{-5}{2}\amp 0\\0\amp 0\amp 1\amp -2 \amp 0\\ \end{bmatrix}\text{.}
\end{equation*}
Note that the variable
\(x_4\) is free, which means that mathematically,
\(x_4\) can take on any value. What happens if we let
\(x_4=1\text{?}\) The third row says that
\(x_3-2x_4=0\text{,}\) which means that
\(x_3=2\text{.}\) The second row says that
\(x_2-\frac{5}{2}x_4=0\text{,}\) which means that
\(x_2=\frac{5}{2}\text{,}\) and the first row says that
\(x_1-x_4=0\text{,}\) which means that
\(x_1=1\text{.}\)
However, it is impossible to have a fractional number of molecules. To clear the denominator, letβs multiply by \(2\) and let \(x_4=2\) instead of \(1\text{.}\) Then the particular solution becomes
\begin{align*}
x_1 \amp =2 \\
x_2 \amp =5 \\
x_3 \amp =4 \\
x_4 \amp =2
\end{align*}
and the balanced equation is
\begin{equation*}
2 C_2H_2 + 5 O_2 \longrightarrow 4 CO_2 + 2 H_2 O\text{.}
\end{equation*}
Note that it makes sense to have infinitely many solutions to the linear system, since multiplying the whole thing by \(2\) or \(5\) or any whole positive number will keep the reaction balanced with equal numbers of each elementβs atoms before and after the arrow.