Skip to main content
Logo image

Mathematics in Trades and Life

Section 3.6 Linear Systems

This section addresses the following topics.
  • Interpret data in various formats and analyze mathematical models
  • Read and use mathematical models in a technical document
This section covers the following mathematical concepts.
  • Solve a system of linear equations (skill)
In ExampleΒ 2.2.1 we solved a problem with two, different mixtures. In that case we knew how much of each we were adding. In other cases we know what result we want and need to figure out how much of each substance. This section presents a method for answering questions like this involving two or more constraints (equations) at the same time.

Subsection 3.6.1 Motivation

This section provides a first examples of a problem involving two, linear equations. It illustrates how we would recognize this type of problem and how to write it.
In previous dilution problems, we diluted a mixture using just diluent (water in that case). In other situations we will have two mixtures with different percents that we will combine to obtain a new mixture.

Example 3.6.1. Combining Mixtures.

Suppose we have 16 oz of 91% isopropyl alcohol and 12 oz of 75% isopropyl alcohol. How much of each do we need to mix to produce \(10.0\) oz of 85% alcohol?
The question asks us to determine an amount for each of the two mixtures. We can use a common technique in mathematics which is to start by writing the answer. We will declare that we will use \(A\) oz of 91% alcohol and \(B\) oz of 75% alcohol. Next we can look at the constraints and use them to write equations using these variables.
The first constraint is that we end up with 10 oz of solution. Thus when we add the two mixtures we end up with 10 oz, which is expressed by
\begin{equation*} A+B = 10.0\text{.} \end{equation*}
The second contraint is the percent alcohol. Because our variables are in terms of amount of solution, we need to express the percent alcohol constraint in terms of ounces (not percents). We can obtain amount from percent using the definition of percent. Because the resulting solution will be 85% alcohol there will be
\begin{equation*} (0.85)10.0 = 8.5 \text{ oz}\text{.} \end{equation*}
This will be the result of adding the amounts from each solution (just as in previous mixture problems). Because \(A\) oz of the first solution will be added and it is 91% alcohol, it will contribute \((0.91)A\) oz of alcohol. Similarly the second solution will contribute \((0.75)B\) oz of alcohol. Combined we will obtain
\begin{equation*} (0.91)A+(0.75)B = 8.5 \text{ oz}\text{.} \end{equation*}
Now we just need a way to solve this pair of equations.
In the next example two business considerations lead to a linear system.

Example 3.6.2.

Based on past sales, a business determines that snack fans prefer two item trail mix consisting of cashews and dried blueberries in 6 oz portions. They are willing to pay $9/lb for it. If the cashews cost $8.50/lb and the dried blueberries cost $9.75/lb, how many oz of each should be in one 6 oz portion?
We are asked for amounts for both ingredients. Let’s call the number of ounces \(c\) and \(b\text{.}\) Before we set up equations we should convert the prices to dollars per ounce.
\begin{equation*} \frac{\$8.50}{\text{lb}} \cdot \frac{1 \text{ lb}}{16 \text{ oz}} = \$0.53125/\text{oz}\text{.} \end{equation*}
\begin{equation*} \frac{\$9.75}{\text{lb}} \cdot \frac{1 \text{ lb}}{16 \text{ oz}} = \$0.609375/\text{oz}\text{.} \end{equation*}
\begin{equation*} \frac{\$9.00}{\text{lb}} \cdot \frac{1 \text{ lb}}{16 \text{ oz}} = \$0.5625/\text{oz}\text{.} \end{equation*}
The first constraint is the total amount. This is
\begin{equation*} c+b = 6 \text{ oz}\text{.} \end{equation*}
The second constraint is the cost. Total cost ($9.00) is the sum of the cost of the two ingredients, so the equation is
\begin{equation*} \frac{\$0.53125}{\text{oz}}(c \text{ oz}) + \frac{\$0.609375}{\text{oz}}(b \text{ oz}) = \$0.5625\text{.} \end{equation*}
The next example illustrates what to do when one or more of the constraints do not use all the variables. Note, the question can be answered without a linear system (see SectionΒ 2.2); we use it here as a familiar example.

Example 3.6.3.

Suppose we have 16 oz of 91% isopropyl alcohol and 16 oz of water. How much of each do we need to mix to produce 10.0 oz of 85% alcohol?
This can be set up the same way as ExampleΒ 3.6.1. The one change is that the second mixture is 0% isopropyl alcohol. This changes the equations to
\begin{align*} A + B \amp = 10.0\\ (0.91)A + (0.00)B \amp = 8.5\text{.} \end{align*}
The second equation can be re-written as
\begin{equation*} 0.91A = 8.5\text{.} \end{equation*}
We can now solve as we did before or using a method shown below.
The following example illustrated both writing a system of linear equations and also how to use multiple examples to answer a question.

Example 3.6.4.

A plane has to fly 106 nm in a straight line between Merrill Field and Homer airports. If the flight from Merrill to Homer took 53 minutes, and the flight from Homer to Merrill took 45 minutes, how fast was the plane flying through the air and how fast was the head/tail wind? We will suppose the wind speed was the same the whole time.
At first it is not clear what type of calculation we will need. We can follow the advice in ExampleΒ 3.6.1 to simply write down the answer. Because we are asked for plane and wind speeds, these are the variables. Call them \(p\) and \(w\text{.}\)
We also have data on two flights. These include times and distance but not speed (what we are asked to find). So we must ask ourselves how we can convert time and distance into speeds. We did this in ExampleΒ 2.4.4 and ExampleΒ 2.4.6.
For the trip to Homer we would like to setup
\begin{equation*} \frac{S_H \text{ nm}}{\text{hr}} = \frac{106 \text{ nm}}{53 \text{ min}}\text{,} \end{equation*}
however this has hours on the left and minutes on the right. So we must convert the time in minutes to time in hours (unit conversion is in SectionΒ 1.1). Because there are 60 minutes per hour, 53 minutes is \(53/60\) hours.
\begin{align*} \frac{S_H \text{ nm}}{\text{hr}} \amp = \frac{106 \text{ nm}}{53/60 \text{ hr}}.\\ \amp = 120 \frac{\text{nm}}{\text{hr}}\text{.} \end{align*}
For the return trip (Homer to Merrill) we perform the same calculation.
\begin{equation*} \frac{S_M \text{ nm}}{\text{hr}} = \frac{106 \text{ nm}}{45/60} \approx 141 \frac{\text{nm}}{\text{hr}}\text{.} \end{equation*}
Why do we have two speeds for the same trip? The wind slows down the first flight and speeds up the second. The speeds calculated above are across the ground (nm across the ground per hour). When travelling with wind at our backs, our speed is increased by the wind speed. When travelling with a head wind, our speed is decreased by the wind speed. For example if a plane is flying at 60 nm/hr and has a 7 nm/hr head wind it will be travelling only \(60-7=53\) nm/hr over the ground. This idea finally enables us to setup equations for the constraints.
\begin{align*} p-w \amp = 120.\\ p+w \amp = 141. \end{align*}
Later in this section we will learn a technique to solve these equations. However, this is a special case. The speed \(p\) must be between 120 and 141. Because the same amount (\(w\)) is subtracted and added, \(p\) is half-way between or
\begin{equation*} p=\frac{120+141}{2} \approx 130.5 \approx 130\text{.} \end{equation*}
Rounding to 130 is using significant digits rounding (times given had only 2 significant digits).

Subsection 3.6.2 Crossing Lines

This section connects solving a system of two linear equations to their graphs. Graphs will help us understand why (and when) there should be a solution. The next section provides the method for solving.
Our goal here is to consider what causes lines to cross. We will do this by looking at a pair of lines and seeing where they cross.
Recall that a line is a relation (set of points) such that the change between any two, equally spaced points is the same. Often you have heard this described as rise over run or slope. Slope is a geometric interpretation referring to how steep the line is.

Checkpoint 3.6.5.

In FigureΒ 3.6.6 there are two lines. One goes through point \(A=(1,3)\text{.}\) It rises at a slope of \(2/1\) (two up for each one over). The other line goes through the point \(B=(1,2)\) which is below \(A\text{.}\)
(a)
Use the slider to set the slope of the second line to 3. Does the line cross the one through \(A\text{?}\) Where (left or right of point \(B\))?
(b)
Use the slider to set the slope to something bigger than 3. Does the line cross the first one? Where (left or right of point \(B\))?
(c)
Use the slider to set the slope to 1. Does the line cross the first one? Where (left or right of point \(B\))?
(d)
In general if either slope is steeper than the other slope will the two lines cross?
(e)
Can you select a slope for the second line so that these two lines do not cross?

Instructions.

Use the slider to adjust the slope of the line through B.
Figure 3.6.6. Crossing Lines
This next example applies the idea of a line starting lower but rising faster to answer a financial question.

Example 3.6.7.

Vasya’s initial pay was $62,347.23. She received $5,000 raises each year. Pyotr’s initial pay was $67,242.33. He receives $3,500 raises each year. If they were both hired in 2012 in what year does Vasya first have a higher salary?
We could make a table.
Year Vasya Pyotr
2012 $62,347.23 $67,242.33
2013 $67,347.23 $70,742.33
2014 $72,347.23 $74,242.33
2015 $77,347.23 $77,742.33
2016 $82,347.23 $81,242.33
We see that is in 2016 that Vasya is first paid more.
Alternatively we could note that Vasya’s raises are $1,500 more each year than Pyotr’s raises. This means she closes the gap by $1,500 each year. The difference in their initial salaries is \(67242.33-62347.23=4895.10\text{.}\) Because she gains by 1500 each year it will take \(4895.10/1500 = 3.2634 \) years. Because they receive raises once a year this result must be rounded up to 4 years. Thus she is first paid more in 2016.

Subsection 3.6.3 Solving Linear Systems

This section presents two ways of solving linear systems of this type. The second method is very important for larger systems.

Example 3.6.8.

We will solve the system from ExampleΒ 3.6.1. The two equations are
\begin{align*} A+B & = 10.0.\\ (0.91)A+(0.75)B & = 8.5. \end{align*}
Notice we can solve the first equation for \(B\text{.}\) If we do then we can substitute it into the second equation. The result will be a single equation with only one variable. We already know how to solve equations like that.
\begin{align*} A+B & = 10.0.\\ B & = 10.0-A. \end{align*}
\begin{align*} (0.91)A+(0.75)B & = 8.5.\\ (0.91)A+(0.75)(10.0-A) & = 8.5. & & \text{Substitute B from above}\\ (0.91)A+7.5-(0.75)A & = 8.5. & & \text{Distribute}\\ (0.91)A-(0.75)A & = 8.5-7.5.\\ (0.91-0.75)A & = 1.0.\\ (0.16)A & = 1.0.\\ A & = \frac{1.0}{0.16}\\ & = 6.25. \end{align*}
Now that we know that \(A = 6.25\) we can substitute that into \(A+B=10.0\text{.}\) This gives us
\begin{align*} A+B & = 10.0.\\ 6.25+B & = 10.0.\\ B & = 3.75. \end{align*}
We can check that this works in the other equation (about percent alcohol).
\begin{align*} (0.91)A+(0.75)B & = \\ (0.91)(6.25)+(0.75)(3.75) & = \\ 5.6875+2.8125 & = 8.5. \end{align*}
If we had 7 variables instead of two, substituting would take a while. Instead we can use the following method which is more like solving as we know it, that is isolating a variable. This method is called elimination.

Example 3.6.9.

We will solve the system
\begin{align*} A+B & = 10.0.\\ (0.91)A+(0.75)B & = 8.5. \end{align*}
In the second line below notice how we modify the first equation to partially match the second one.
\begin{align*} A+B & = 10.0. & & \text{Original equation 1}\\ -(0.91)(A+B) & = -(0.91)10.0. & & \text{Scale to match 2nd equation}\\ -(0.91)A-(0.91)B & = -9.1. & & \text{Distribute}\\ \end{align*}
Now add the two equations.
\begin{align*} -(0.91)A-(0.91)B & = -9.1. & & \text{Scaled equation 1}\\ (0.91)A+(0.75)B & = 8.5. & & \text{Original equation 2}\\ -(0.16)B & = -0.6. & & \text{Result of adding previous 2 lines}\\ B & = \frac{-0.6}{-0.16}\\ & = 3.75. \end{align*}
In the fifth line we added the two equations. Because they had opposite coefficients for \(A\text{,}\) that variable was eliminated, leaving us with just \(B\text{.}\) This can always be done with systems of linear equations.
We finish solving this system the same way as the previous example, by substituting the value of \(B\) back into the first equation.
\begin{align*} A+B & = 10.0.\\ A+3.75 & = 10.0.\\ A & = 6.25. \end{align*}

Subsection 3.6.4 Other Cases

In FigureΒ 3.6.6 we discovered a slope that resulted in no intersection. If we were solving a pair of linear equations that represented lines like this, our calculations would not produce a solution. These are known as inconsistent systems. This section provides two examples of such systems and demonstrates how we identify them. For this book, identifying these cases and correctly describing them is all you are expected to do.

Example 3.6.12. Inconsistent Linear System.

Find all solutions to the system
\begin{align*} 2x + 3y & = 5.\\ 4x + 6y & = 7. \end{align*}
We will use elimination. If we multiply -2 by the first equation we will obtain -4 (opposite of x in the second equation).
\begin{align*} 2x + 3y & = 5.\\ -2(2x+3y) & = -2(5).\\ -4x-6y & = -10.\\ 4x+6y & = 7.\\ 0 & = -3. \end{align*}
Our work is correct, but the conclusion is clearly false. You can think of this as saying, for a solution to exist 0 must equal -3. Because this is a contradiction, we call the system inconsistent. This means there are no solutions.
There is a third case.

Example 3.6.13. Dependent System.

Find all solutions to the system
\begin{align*} 2x + 3y & = 5.\\ 4x + 6y & = 10. \end{align*}
We will use elimination. If we multiply -2 by the first equation we will obtain -4 (opposite of x in the second equation).
\begin{align*} 2x + 3y & = 5.\\ -2(2x+3y) & = -2(5).\\ -4x-6y & = -10.\\ 4x+6y & = 10.\\ 0 & = 0. \end{align*}
This time we have a true, but rather uninformative statement. We notice that after scaling (multiplying by -2) the two equations were identical. Essentially we had only one equation. Because one can be obtained from the other we call them dependent.

Exercises 3.6.5 Exercises

Solve Systems of Equations.

Solve each of the following linear systems.

Applications.

Identify the linear system and solve it to answer these questions.