Skip to main content
Logo image

Section 4.2 Substitution

In Section 1, we used graphing to solve a system of two linear equations. While graphing is insightful, it can be time-consuming. And what happens if the actual solution to the system does not have whole number coordinates—will you be able to see exactly what are the coordinates of the crossing? And what if your hand-drawn graph has some small imperfection that makes it look like the lines are crossing at the wrong place?
There are two main alternatives to graphing that can find the solution to a system of two linear equations. They use pencil-and-paper algebra instead of a picture. This section covers one of those alternative methods, and the next section covers the other.
Figure 4.2.1. Alternative Video Lesson

Subsection 4.2.1 Substitution

Example 4.2.2. The Interview.

Once upon a time, the New York Times
 1 
nyti.ms/2pupebT
published an article about the movie, The Interview. It included the following quote:
The Interview generated roughly \(\$15\) million in online sales and rentals during its first four days of availability, Sony Pictures said on Sunday.
Sony did not say how much of that total represented \(\$6\) digital rentals versus \(\$15\) sales. The studio said there were about two million transactions overall.
Note the article is suggesting that we do not know how many rentals there were and how many sales there were. A few days later, Joey Devilla cleverly pointed out in his blog
 2 
www.joeydevilla.com/2014/12/31/
that there is enough information here to use algebra to figure out the number of sales and the number of rentals. We can write a system of equations and solve it to find the two quantities. (Since the numbers given in the article are only approximations, the solutions we find will also only be approximations.)
First, we will define variables. There are two unknown quantities: how many sales there were and how many rentals there were. Let \(r\) be the number of rental transactions and let \(s\) be the number of sales transactions.
If you are unsure how to write an equation from the background information, use the units to help you. The units of each term in an equation must match because we can only add like quantities. Both \(r\) and \(s\) are measured in “transactions”. The article says that the total number of transactions is two million. So our first equation will add the total number of rental and sales transactions and set that equal to two million. Our equation is:
\begin{equation*} (r\,\text{transactions})+(s\,\text{transactions})=2{,}000{,}000\,\text{transactions} \end{equation*}
Without the units:
\begin{equation*} r+s=2{,}000{,}000 \end{equation*}
The price of each rental was \(\$6\text{.}\) That means the problem has given us a rate of \(6\,\frac{\text{dollars}}{\text{transaction}}\) to work with. The rate unit suggests this should be multiplied by something measured in transactions. It makes sense to multiply by \(r\text{,}\) and that would give us the total number of dollars generated from rentals. This is \(6r\text{.}\) Similarly, the price of each sale was \(\$15\text{,}\) so the revenue from sales was \(15s\text{.}\) The total revenue was \(\$15\) million, which we can represent with this equation:
\begin{equation*} \left(6\,\tfrac{\text{dollars}}{\text{transaction}}\right)(r\,\text{transactions})+\left(15\,\tfrac{\text{dollars}}{\text{transaction}}\right)(s\,\text{transactions})=\$15{,}000{,}000 \end{equation*}
Without the units:
\begin{equation*} 6r+15s=15{,}000{,}000 \end{equation*}
Here is our system of equations, with the commas removed:
\begin{equation*} \left\{ \begin{alignedat}{4} r\amp+{}\amp s\amp={}\amp2\,000\,000 \\ 6r\amp+{}\amp 15s\amp={}\amp15\,000\,000 \end{alignedat} \right. \end{equation*}
To solve the system, we will use a method called substitution. The idea is to use one equation to isolate \(r\text{.}\) Then substitute this for the “\(r\)” that’s in the other equation. This leaves you with one equation where the only variable is \(s\text{.}\) And we can handle that directly.
The first equation from the system is an easy one to isolate \(r\text{:}\)
\begin{align*} r+s \amp=2\,000\,000\amp\text{(the system's first equation)}\\ r \amp=2\,000\,000-s \end{align*}
This tells us that the expression \(2\,000\,000-s\) is equal to \(r\text{,}\) so we can substitute that in place of \(r\) in the second equation:
\begin{align*} 6r+15s \amp=15\,000\,000\amp\text{(the system's second equation)}\\ 6(\substitute{2\,000\,000-s})+15s \amp=15\,000\,000\\ \end{align*}

Now we have an equation with only one variable, \(s\text{.}\)

\begin{align*} 6(2\,000\,000-s)+15s \amp=15\,000\,000\\ 12\,000\,000-6s+15s \amp=15\,000\,000\\ 12\,000\,000+9s \amp= 15\,000\,000\\ 9s \amp= 3\,000\,000\\ \divideunder{9s}{9} \amp= \divideunder{3\,000\,000}{9}\\ s \amp= 333\,333.\overline{3} \end{align*}
At this point, we know that \(s=333\,333.\overline{3}\text{.}\) This tells us that out of the \(2\) million transactions, roughly \(333{,}333\) were from online sales. Recall that we isolated \(r\) previously and found \(r=2\,000\,000-s\text{.}\)
\begin{align*} r \amp=2\,000\,000-s\\ r \amp=2\,000\,000-\substitute{333\,333.\overline{3}}\\ r \amp=1\,666\,666.\overline{6} \end{align*}
In summary, there were roughly \(333{,}333\) sales and roughly \(1{,}666{,}667\) rentals.

Remark 4.2.3.

In Example 2, we rounded the solution values because only whole numbers make sense in the context of the problem. It was especially acceptable to round because the original numbers we worked with were already rounded. In fact, it would be OK to round even more to something like \(s=330{,}000\) and \(r=1{,}670{,}000\) as long as we communicate clearly that we rounded.
In other exercises where there is no context, it is not OK to round. Solutions should be communicated with their exact values.

Example 4.2.4.

Solve the system of equations using substitution:
\begin{align*} \left\{ \begin{alignedat}{4} x\amp+{}\amp 2y \amp={}\amp 5 \\ 3x\amp-{}\amp 2y \amp={}\amp 8 \end{alignedat} \right. \end{align*}
Explanation.
To use substitution, we need to isolate one of the variables in one of our equations. Looking over both equations, it will be easiest to isolate \(x\) in the first equation:
\begin{align*} x+2y\amp=5\\ x\amp= 5-2y \end{align*}
Next, we substitute \(5-2y\) in for \(x\) in the second equation, giving us a linear equation in only one variable \(y\text{.}\) And this is an equation that we may solve using skills from Section 2.1.
\begin{align*} 3x-2y\amp=8\\ 3(\substitute{5-2y})-2y\amp=8\\ 15-6y-2y\amp=8\\ 15-8y\amp=8\\ -8y\amp=-7\\ y\amp=\frac{7}{8} \end{align*}
Now that we have the value for \(y\text{,}\) we need to find the value for \(x\text{.}\) We already isolated \(x\text{,}\) and it’s easiest to just use that equation.
\begin{align*} x\amp= 5-2y\\ x\amp= 5-2\left(\substitute{\frac{7}{8}}\right)\\ x\amp= 5-\frac{7}{4}\\ x\amp=\frac{20}{4}-\frac{7}{4}=\frac{13}{4} \end{align*}
At this point we think the solution is the point \(\left(\frac{13}{4},\frac{7}{8}\right)\) or in other words: \(x=\frac{13}{4}\text{,}\) \(y=\frac{7}{8}\text{.}\) It’s only human to make mistakes though, so we should check that the solution actually works. To check it, try using \(x=\frac{13}{4}\text{,}\) \(y=\frac{7}{8}\) in both of the original equations.
\begin{align*} x+2y\amp=5\amp3x-2y\amp=8\\ \substitute{\frac{13}{4}}+2\left(\substitute{\frac{7}{8}}\right)\amp\wonder{=}5\amp3\left(\substitute{\frac{13}{4}}\right)-2\left(\substitute{\frac{7}{8}}\right)\amp\wonder{=}8\\ \frac{13}{4}+\frac{7}{4}\amp\wonder{=}5\amp\frac{39}{4}-\frac{7}{4}\amp\wonder{=}8\\ \frac{20}{4}\amp\confirm{=}5\amp\frac{32}{4}\amp\confirm{=}8 \end{align*}
We conclude then that this system of equations is true when \(x=\frac{13}{4}\) and \(y=\frac{7}{8}\text{.}\) The solution is the point \(\left(\frac{13}{4},\frac{7}{8}\right)\) and we write the solution set as \(\left\{\left(\frac{13}{4},\frac{7}{8}\right)\right\}\text{.}\)

Checkpoint 4.2.5.

Use substitution to solve the system.
\begin{equation*} \begin{aligned} \left\{ \begin{alignedat}{4} x\amp-{}\amp 3y \amp={}\amp 1 \\ 2x\amp+{}\amp y \amp={}\amp -3 \end{alignedat} \right. \end{aligned} \end{equation*}
(a)
Isolate one of the variables in one of the equations.
Explanation.
We choose to isolate \(x\) in the first equation. All we need to do is add \(3y\) to each side, and then \(x=3y+1\text{.}\)
(b)
Substitute the isolated expression into the other equation.
Explanation.
Making the substitution: \(2\left(3y+1\right)+y=-3\text{.}\)
(c)
Solve for the one variable that remains.
Explanation.
\begin{equation*} \begin{aligned} 2\left(3y+1\right)+y \amp= -3\\ 6y+2+y\amp=-3\\ 7y+2\amp=-3\\ 7y\amp=-5\\ y\amp=-\frac{5}{7} \end{aligned} \end{equation*}
(d)
Solve for the other variable.
Explanation.
\begin{equation*} \begin{aligned} x \amp= 3y+1\\ x \amp= 3\left(-\frac{5}{7}\right)+1\\ x\amp=-\frac{15}{7}+\frac{7}{7}\\ x\amp=-\frac{8}{7} \end{aligned} \end{equation*}
Sometimes it makes more sense to start the process using the second equation instead of the first. And sometimes it makes more sense to isolate the second variable instead of the first.

Example 4.2.6.

Solve this system of equations using substitution:
\begin{align*} \left\{ \begin{alignedat}{4} 3x\amp-{}\amp 7y \amp={}\amp 5 \\ -5x\amp+{}\amp 2y \amp={}\amp 11 \end{alignedat} \right. \end{align*}
Explanation.
We need to isolate one of the variables in one of the equations. Looking over both equations, it will be easiest to isolate \(y\) in the second equation because that is where the coefficient is smallest. We are going to have to divide by some coefficient; it might as well be the smallest one to keep the fraction arithmetic as simple as we can.
\begin{align*} -5x+2y\amp=11\\ 2y\amp=11+5x\\ \divideunder{2y}{2}\amp=\divideunder{11+5x}{2}\\ y\amp=\frac{11}{2}+\frac{5}{2}x \end{align*}
Note that there are fractions once we’ve isolated \(y\text{.}\) We should take care with the steps that follow to make sure that the fraction arithmetic is correct.
Substitute \(\frac{11}{2}+\frac{5}{2}x\) in for \(y\) in the first equation, and that leads to having a single linear equation with only one variable. We can solve this as we did in Section 2.3. Note the step in the middle where we clear denominators.
\begin{align*} 3x-7y\amp=5\\ 3x-7\left(\frac{11}{2}+\frac{5}{2}x\right)\amp=5\\ 3x-\frac{77}{2}-\frac{35}{2}x\amp=5\\ \multiplyleft{2}\left(3x-\frac{77}{2}-\frac{35}{2}x\right)\amp=\multiplyleft{2}(5)\\ 6x-77-35x\amp=10\\ -29x-77\amp=10\\ -29x\amp=87\\ x\amp=\divideunder{87}{-29}=-3 \end{align*}
Now that we have the value for \(x\text{,}\) we need to find the value for \(y\text{.}\) We already isolated \(y\text{,}\) and it’s easiest to just use that equation.
\begin{align*} y\amp=\frac{11}{2}+\frac{5}{2}x\\ y\amp=\frac{11}{2}+\frac{5}{2}(\substitute{-3})\\ y\amp=\frac{11}{2}-\frac{15}{2}\\ y\amp=-\frac{4}{2}=-2 \end{align*}
To check the solution we think we’ve found, try using \(x=-3\text{,}\) \(y=-2\) in both of the original equations.
\begin{align*} 3x-7y \amp=5 \amp -5x+2y \amp= 11\\ 3(\substitute{-3})-7(\substitute{-2}) \amp\wonder{=}5 \amp -5(\substitute{-3})+2(\substitute{-2}) \amp\wonder{=} 11\\ -9+14\amp\confirm{=}5\amp 15-4\amp\confirm{=}11 \end{align*}
We conclude then that this system of equations is true when \(x=-3\) and \(y=-2\text{.}\) The solution is the point \((-3,-2)\) and we write the solution set as \(\{(-3,-2)\}\text{.}\)
A system may start out with fractions among the coefficients. Just as we learned in Section 2.3, the algebra can go more smoothly if we clear the denominators before doing more work.

Example 4.2.7.

Solve the system of equations using the substitution method.
\begin{align*} \left\{ \begin{aligned} \frac{x}{3} - \frac{1}{2}y \amp= \frac{5}{6} \\ \frac{1}{4}x \amp = \frac{y}{2} + 1 \end{aligned} \right. \end{align*}
Explanation.
When a system of equations has fraction coefficients, it may be helpful to “clear the denominators”. With each equation, multiply each side by the least common multiple of that equation’s denominators.
In the first equation, the least common multiple of the denominators is \(6\text{,}\) so:
\begin{align*} \frac{x}{3}-\frac{1}{2}y\amp=\frac{5}{6}\\ \multiplyleft{6}\left(\frac{x}{3}-\frac{1}{2}y\right)\amp=\multiplyleft{6}\frac{5}{6}\\ 2x-3y\amp=5 \end{align*}
In the second equation, the least common multiple of the denominators is \(4\text{,}\) so:
\begin{align*} \frac{1}{4}x\amp=\frac{y}{2}+1\\ \multiplyleft{4}\frac{1}{4}x\amp=\multiplyleft{4}\left(\frac{y}{2}+1\right)\\ x\amp=2y+4 \end{align*}
Now we have a system that is equivalent to the original system of equations, but there are no fraction coefficients:
\begin{align*} \left\{ \begin{aligned} 2x-3y\amp=5 \\ x\amp=2y+4 \end{aligned} \right. \end{align*}
The second equation has already isolated \(x\text{,}\) so we will substitute \(2y+4\) in for \(x\) in the first equation.
\begin{align*} 2x-3y\amp=5\\ 2(\substitute{2y+4})-3y\amp=5\\ 4y+8-3y\amp=5\\ y+8\amp=5\\ y\amp=-3 \end{align*}
And we have solved for \(y\text{.}\) To find \(x\text{,}\) we know \(x=2y+4\text{,}\) so we have:
\begin{align*} x\amp=2y+4\\ x\amp=2(\substitute{-3})+4\\ x\amp=-6+4=-2 \end{align*}
The solution is \((-2,-3)\text{.}\) (This should be checked in the original two equations though.)
Real world applications can lead to a system where both equations are either in point-slope form or slope-intercept form. This is helpful, since it means one variable has already been isolated.

Example 4.2.8.

Solve the system of equations using the substitution method.
\begin{align*} \left\{ \begin{aligned} y \amp= \frac{5}{6}x+3 \\ y \amp = \frac23x + 1 \end{aligned} \right. \end{align*}
Explanation.
In the first equation, \(y\) is already isolated. So we can substitute \(\frac{5}{6}x+3\) in for \(y\) in the second equation: \(\frac{5}{6}x+3 = \frac23x + 1\text{.}\)
Some people prefer to think of this as setting the two right sides equal to each other. That works too: if \(\frac{5}{6}x+3\) is equal to \(y\text{,}\) and \(\frac23x + 1\) is also equal to \(y\text{,}\) then these expressions are equal to each other. Either way:
\begin{align*} \frac{5}{6}x + 3\amp=\frac23x + 1\\ \multiplyleft{6}\left(\frac{5}{6}x + 3\right)\amp=\multiplyleft{6}\left(\frac23x + 1\right)\\ 5x + 18\amp=4x + 6\\ x + 18\amp=6\\ x\amp=-12 \end{align*}
And then:
\begin{align*} y \amp= \frac{5}{6}(\substitute{-12})+3\\ y \amp= -10+3=-7 \end{align*}
And the solution is \((-12,-7)\text{.}\)
For summary reference, here is the general procedure.

Subsection 4.2.2 Applications

Example 4.2.10. Two Different Interest Rates.

Notah made some large purchases with his two credit cards one month and took on a total of \(\$8400\) in debt from the two cards. He didn’t make any payments the first month, so the two credit card debts each started accruing interest. That month, his Visa card charged \(2\%\) interest and his Mastercard charged \(2.5\%\) interest. Because of this, Notah’s total debt grew by \(\$178\text{.}\) How much money did Notah charge to each card?
Explanation.
We start by clearly defining two variables for the two unknowns. Let \(V\) be the amount charged to the Visa card (in dollars) and let \(M\) be the amount charged to the Mastercard (in dollars).
To set up the equations, notice that we are given two different total dollar amounts. One is the total debt Notah initially took on, \(\$8400\text{.}\) So we have:
\begin{equation*} (V\,\text{dollars})+(M\,\text{dollars})=\$8400 \end{equation*}
Or without units:
\begin{equation*} V+M=8400 \end{equation*}
The other total we were given is the total amount of interest, \(\$178\text{.}\) The Visa had \(V\) dollars charged to it and accrues \(2\%\) interest. So \(0.02V\) is the dollar amount of interest that comes from using the Visa card. Similarly, \(0.025M\) is the dollar amount of interest from using the Mastercard. Together:
\begin{equation*} 0.02(V\,\text{dollars})+0.025(M\,\text{dollars})=\$178 \end{equation*}
Or without units:
\begin{equation*} 0.02V+0.025M=178 \end{equation*}
As a system, we write:
\begin{equation*} \left\{ \begin{alignedat}{3} V\amp+{}\amp M\amp={}8400 \\ 0.02V\amp+{}\amp 0.025M\amp{}=178 \end{alignedat} \right. \end{equation*}
To solve this system by substitution, notice that it will be easier to isolate one of the variables in the first equation. We’ll isolate \(V\text{:}\)
\begin{align*} V+M\amp=8400\\ V\amp=8400-M \end{align*}
Now we substitute \(8400-M\) in for \(V\) in the second equation:
\begin{align*} 0.02V+0.025M\amp=178\\ 0.02(\substitute{8400-M})+0.025M\amp=178\\ 168-0.02M+0.025M\amp=178\\ 168+0.005M\amp=178\\ 0.005M\amp=10\\ \divideunder{0.005M}{0.005}\amp=\divideunder{10}{0.005}\\ M\amp=2000 \end{align*}
And then we can determine the value of \(V\) by using the earlier equation where we isolated \(V\text{:}\)
\begin{align*} V\amp=8400-M\\ V\amp=8400-\substitute{2000}\\ V\amp=6400 \end{align*}
In summary, Notah charged \(\$6400\) to the Visa and \(\$2000\) to the Mastercard. We should check that these numbers work as solutions to our original system and that they make sense in context. (For instance, if one of these numbers were negative, or was something small like \(\$0.50\text{,}\) they wouldn’t make sense as credit card debt.)
The next two examples are called mixture problems, because they involve mixing two quantities together to form a combination and we want to find out how much of each quantity to mix.

Example 4.2.11. Mixing Solutions with Two Different Concentrations.

LaVonda is a meticulous bartender and she needs to serve \(600\) milliliters of Rob Roy, a cocktail that is \(34\%\) alcohol by volume. The main ingredients are scotch that is \(42\%\) alcohol and vermouth that is \(18\%\) alcohol. How many milliliters of each ingredient should she mix together to make the concentration she needs?
Explanation.
The two unknowns are the quantities of each ingredient. Let \(S\) be the amount of scotch (in mL) and let \(V\) be the amount of vermouth (in mL).
One quantity given to us in the problem is 600 mL. Since this is the total volume of the mixed drink, we must have:
\begin{equation*} (S\,\text{mL})+(V\,\text{mL})=600\,\text{mL} \end{equation*}
Or without units:
\begin{equation*} S+V=600 \end{equation*}
To build the second equation, we have to think about the alcohol concentrations for the pure scotch, pure vermouth, and the mixed Rob Roy. It can be tricky to think about percentages like these correctly. One strategy is to focus on the amount of alcohol (in mL). If we have \(S\) milliliters of scotch that is \(42\%\) alcohol, then \(0.42S\) is the actual amount of alcohol (in mL) in that scotch. Similarly, \(0.18V\) is the amount of alcohol in the vermouth. And the final cocktail is 600 mL of liquid that is \(34\%\) alcohol. So it has \(0.34(600)=204\) milliliters of alcohol. This is telling us:
\begin{equation*} 0.42(S\,\text{mL})+0.18(V\,\text{mL})=204\,\text{mL} \end{equation*}
Or without units:
\begin{equation*} 0.42S+0.18V=204 \end{equation*}
So our system is:
\begin{equation*} \left\{ \begin{alignedat}{3} S\amp+{}\amp V\amp=600 \\ 0.42S\amp+{}\amp0.18V\amp=204 \end{alignedat} \right. \end{equation*}
To solve this system, we’ll isolate \(S\) in the first equation:
\begin{align*} S+V\amp=600\\ S\amp=600-V \end{align*}
And then substitute \(600-V\) in for \(S\) in the second equation with :
\begin{align*} 0.42S+0.18V\amp=204\\ 0.42(\substitute{600-V})+0.18V\amp=204\\ 252-0.42V+0.18V\amp=204\\ 252-0.24V\amp=204\\ -0.24V\amp=-48\\ \divideunder{-0.24V}{-0.24}\amp=\divideunder{-48}{-0.24}\\ V\amp=200 \end{align*}
Now we determine \(S\) using the equation where we had isolated \(S\text{:}\)
\begin{align*} S\amp=600-V\\ S\amp=600-\substitute{200}\\ S\amp=400 \end{align*}
In summary, LaVonda needs to combine 400 mL of scotch with 200 mL of vermouth to create 600 mL of Rob Roy.
Let’s take a moment to consider estimation to ask whether the solution to Example 11 is reasonable. LaVonda will mix scotch (\(42\%\) concentration) with vermouth (\(18\%\) concentration) and wants to end with a \(34\%\) concentration. Is \(34\) closer to \(42\) or \(18\text{?}\) It’s closer to \(42\) so we should expect there to be more scotch than vermouth. This agrees with the solution we found.

Checkpoint 4.2.12. Mixing a Coffee Blend.

Desi owns a coffee shop and they want to mix two different types of coffee beans to make a blend that sells for \(\$12.50\) per pound. They have some coffee beans from Columbia that sell for \(\$9.00\) per pound and some coffee beans from Honduras that sell for \(\$14.00\) per pound. How many pounds of each should they mix to make \(30\) pounds of the blend?
(a)
Write two equations that form a system for this scenario.
Explanation.
We have \(C\) pounds of Columbian coffee and \(H\) pounds of Honduran coffee. Since there must be \(30\) pounds total, one equation is \(C+H=30\text{.}\)
The total cost of the Colombian coffee in the blend will be \(9C\text{,}\) and the total cost of the Honduran coffee in the blend will be \(14H\text{.}\) All together, the blend has a total cost of \(12.50\cdot30=375\) dollars. So another equation is \(9C+14H=375\text{.}\)
(b)
Isolate one of the variables in one of the equations.
Explanation.
We choose to isolate \(C\) in the first equation. All we need to do subtract \(H\) from each side, and then \(C = 30 - H\text{.}\)
(c)
Substitute the isolated expression into the other equation.
Explanation.
Making the substitution: \(9(30 - H) + 14H = 375\text{.}\)
(d)
Solve this equation in one variable and then solve for the other variable using the isolation from a previous step. Finally, report how much of each type of coffee Desi should use.
Explanation.
\begin{equation*} \begin{aligned} 9(30 - H) + 14H \amp= 375\\ 270 - 9H + 14H \amp= 375\\ 270 + 5H \amp= 375\\ 5H\amp=105\\ H\amp=21 \end{aligned} \end{equation*}
\begin{equation*} \begin{aligned} C \amp= 30 - H\\ C \amp= 30 - 21 = 9 \end{aligned} \end{equation*}
In summary, Desi needs to mix \(21\) pounds of the Honduran coffee beans with \(9\) pounds of the Columbian coffee beans to create this blend.

Subsection 4.2.3 Solving Special Systems of Equations with Substitution

Remember the two special cases for a system of two linear equations? We studied them in Subsection 4.1.3. If the two lines have the same slope, then they might be distinct lines that never meet, and then the system has no solutions. Or they might coincide as the same line, in which case there are infinitely many solutions represented by all the points on that line. In these cases, when we try to use substitution, interesting things happen.

Example 4.2.13. A System with No Solution.

Solve the system of equations using the substitution method:
\begin{align*} \left\{ \begin{aligned} y \amp= 2x-1 \\ 4x - 2y \amp= 3 \end{aligned} \right. \end{align*}
Explanation.
Since the first equation has already isolated \(y\text{,}\) we will substitute \(2x-1\) in for \(y\) in the second equation, and we have:
\begin{align*} 4x-2y\amp=3\\ 4x-2\substitute{(2x-1)}\amp=3\\ 4x-4x+2\amp=3\\ 2\amp=3 \end{align*}
Even though we were only intending to replace \(y\) in the second equation, it turned out that all instances of \(x\) disappear too. There are no variables at all in what remains. This will happen whenever the two lines from a system have the same slope. In this case, since \(2=3\) is false no matter what values \(x\) and \(y\) might be, there can be no solution to the system. If we graphed the two lines from this system, we would see them as parallel and distinct. We can say that there are no solutions, or that the solution set is empty. The solution set is \(\{\,\}\text{,}\) or \(\emptyset\text{.}\)
For verification, let’s re-write the second equation in slope-intercept form:
\begin{align*} 4x-2y\amp=3\\ -2y\amp=-4x+3\\ \divideunder{-2y}{-2}\amp=\divideunder{-4x+3}{-2}\\ y\amp=\frac{-4x}{-2}+\frac{3}{-2}\\ y\amp=2x-\frac{3}{2} \end{align*}
So the system is equivalent to:
\begin{align*} \left\{ \begin{aligned} y \amp = 2x-1 \\ y \amp = 2x-\frac{3}{2} \end{aligned} \right. \end{align*}
Now it is easier to see that the two lines have the same slope but different \(y\)-intercepts. The lines are parallel and distinct confirming that there should be no solution to the system.

Example 4.2.14. A System with Infinitely Many Solutions.

Solve the system of equations using the substitution method:
\begin{align*} \left\{ \begin{aligned} y \amp=2x-1 \\ 4x-2y \amp=2 \end{aligned} \right. \end{align*}
Explanation.
Since \(y\) is already isolated in the first line, we will use that and substitute \(2x-1\) in for \(y\) in the second equation:
\begin{align*} 4x-2y\amp=2\\ 4x-2\substitute{(2x-1)}\amp=2\\ 4x-4x+2\amp=2\\ 2\amp=2 \end{align*}
Once again, after the substitution we find ourselves with an equation where there are no variables. This time, it is an outright true equation; \(2\) really does equal \(2\text{.}\) What does this mean for the original system of equations though? Apparently as long as \(y\) equals \(2x-1\text{,}\) then both of the original equations are true. It’s obvious that \(y=2x-1\) makes the first equation true, but our algebra above shows that \(y=2x-1\) also makes the second equation true. So there are infinitely many solutions. If we want to, we can write the solution set using set-builder notation: \(\{(x,y)\mid y=2x-1\}\text{.}\) Ultimately the “two” lines from the system were actually the same line.
For verification, let’s re-write the second equation in slope-intercept form:
\begin{align*} 4x-2y\amp=2\\ -2y\amp=-4x+2\\ \frac{-2y}{-2}\amp=\frac{-4x}{-2}+\frac{2}{-2}\\ y\amp=2x-1 \end{align*}
So the system is equivalent to:
\begin{align*} \left\{ \begin{alignedat}{4} y \amp {}={} \amp 2x-1 \\ y \amp {}={} \amp 2x-1 \end{alignedat} \right. \end{align*}
Now it is clear that the two equations represent the same line. So every point on that line is a solution, and there are infinitely many solutions.

Reading Questions 4.2.4 Reading Questions

1.

Give an example of a system of two equations in \(x\) and \(y\) where it would be nicer to solve the system using substitution than by graphing the two lines that the equations define. Explain why substitution would be nicer than graphing for your example system.

2.

What can be helpful if you have a system of two linear equations in two variables where there are fractions appearing in the equations?

3.

In an application problem, thinking about the can help you understand how to set up equations.

Exercises 4.2.5 Exercises

Skills Practice

Exercise Group.
Solve the system of equations using substitution.
1.
\(\left\{ \begin{alignedat}{4} \amp {D = -4E+11} \\ \amp {D = 4E-21} \end{alignedat} \right.\)
2.
\(\left\{ \begin{alignedat}{4} \amp {l = -5K-23} \\ \amp {l = -K+1} \end{alignedat} \right.\)
3.
\(\left\{ \begin{alignedat}{4} \amp {V = -5\mathopen{}\left(Q+1\right)+13} \\ \amp {V = 4\mathopen{}\left(Q+3\right)-13} \end{alignedat} \right.\)
4.
\(\left\{ \begin{alignedat}{4} \amp {B = -5\mathopen{}\left(W+1\right)+37} \\ \amp {B = -\left(W-2\right)+2} \end{alignedat} \right.\)
5.
\(\left\{ \begin{alignedat}{4} \amp {-5c+k = 4} \\ \amp {c-5k = 28} \end{alignedat} \right.\)
6.
\(\left\{ \begin{alignedat}{4} \amp {-5h-R = -29} \\ \amp {-h-R = -9} \end{alignedat} \right.\)
7.
\(\left\{ \begin{alignedat}{4} \amp {A = 5n+22} \\ \amp {4n+4A = -8} \end{alignedat} \right.\)
8.
\(\left\{ \begin{alignedat}{4} \amp {h = 5t-14} \\ \amp {-t-3h = 10} \end{alignedat} \right.\)
9.
\(\left\{ \begin{alignedat}{4} \amp {P = -5\mathopen{}\left(z-5\right)-53} \\ \amp {P = 4z+35} \end{alignedat} \right.\)
10.
\(\left\{ \begin{alignedat}{4} \amp {x = 5\mathopen{}\left(E+5\right)-16} \\ \amp {x = -2E+2} \end{alignedat} \right.\)
11.
\(\left\{ \begin{alignedat}{4} \amp {8J-f = 9} \\ \amp {16J-2f = -7} \end{alignedat} \right.\)
12.
\(\left\{ \begin{alignedat}{4} \amp {-Q-7L = 9} \\ \amp {-4Q-28L = -2} \end{alignedat} \right.\)
13.
\(\left\{ \begin{alignedat}{4} \amp {v = -3W+18} \\ \amp {3W+v = 18} \end{alignedat} \right.\)
14.
\(\left\{ \begin{alignedat}{4} \amp {e = 2c+14} \\ \amp {-2c+e = 14} \end{alignedat} \right.\)
15.
\(\left\{ \begin{alignedat}{4} \amp {h-K = 3} \\ \amp {K = -5\mathopen{}\left(h+2\right)+12} \end{alignedat} \right.\)
16.
\(\left\{ \begin{alignedat}{4} \amp {n+u = -7} \\ \amp {u = 2\mathopen{}\left(n-2\right)-17} \end{alignedat} \right.\)
17.
\(\left\{ \begin{alignedat}{4} \amp {-2t+b = 5} \\ \amp {b = 2\mathopen{}\left(t-4\right)+16} \end{alignedat} \right.\)
18.
\(\left\{ \begin{alignedat}{4} \amp {4y+I = 0} \\ \amp {I = -4\mathopen{}\left(y+2\right)+15} \end{alignedat} \right.\)
19.
\(\left\{ \begin{alignedat}{4} \amp {2E-2r = 2} \\ \amp {5E+5r = -45} \end{alignedat} \right.\)
20.
\(\left\{ \begin{alignedat}{4} \amp {4J+5Z = 43} \\ \amp {-3J-4Z = -34} \end{alignedat} \right.\)
21.
\(\left\{ \begin{alignedat}{4} \amp {F = 5Q-8} \\ \amp {F = 9Q+3} \end{alignedat} \right.\)
22.
\(\left\{ \begin{alignedat}{4} \amp {n = 5W-1} \\ \amp {n = 2W-3} \end{alignedat} \right.\)
23.
\(\left\{ \begin{alignedat}{4} \amp {16c+4X = 72} \\ \amp {X = -4\mathopen{}\left(c+3\right)+30} \end{alignedat} \right.\)
24.
\(\left\{ \begin{alignedat}{4} \amp {-12h-3E = 21} \\ \amp {E = -4\mathopen{}\left(h+2\right)+1} \end{alignedat} \right.\)
25.
\(\left\{ \begin{alignedat}{4} \amp {l = -3\mathopen{}\left(m-4\right)+6} \\ \amp {l = 2m+5} \end{alignedat} \right.\)
26.
\(\left\{ \begin{alignedat}{4} \amp {V = -2\mathopen{}\left(t+7\right)+5} \\ \amp {V = 2\mathopen{}\left(t+3\right)-4} \end{alignedat} \right.\)
27.
\(\left\{ \begin{alignedat}{4} \amp {2y-C = 9} \\ \amp {-9y+7C = 1} \end{alignedat} \right.\)
28.
\(\left\{ \begin{alignedat}{4} \amp {E-j = -4} \\ \amp {5E-4j = 9} \end{alignedat} \right.\)
29.
\(\left\{ \begin{alignedat}{4} \amp {5J-2S = -3} \\ \amp {S = -2J-8} \end{alignedat} \right.\)
30.
\(\left\{ \begin{alignedat}{4} \amp {-4Q-z = -1} \\ \amp {z = 2Q-3} \end{alignedat} \right.\)
31.
\(\left\{ \begin{alignedat}{4} \amp {h = -\left(W-2\right)-8} \\ \amp {5W-2h = 4} \end{alignedat} \right.\)
32.
\(\left\{ \begin{alignedat}{4} \amp {Q = -\left(b-1\right)+4} \\ \amp {-9b+7Q = 2} \end{alignedat} \right.\)
33.
\(\left\{ \begin{alignedat}{4} \amp {-3h+2y = 5} \\ \amp {6h-3y = -6} \end{alignedat} \right.\)
34.
\(\left\{ \begin{alignedat}{4} \amp {-2m-2f = 1} \\ \amp {8m+5f = 6} \end{alignedat} \right.\)
35.
\(\left\{ \begin{alignedat}{4} \amp {N = 6.3t+2.6} \\ \amp {N = 4.6t+4.5} \end{alignedat} \right.\)
36.
\(\left\{ \begin{alignedat}{4} \amp {v = -3.1y+2.4} \\ \amp {v = 0.1y-3.6} \end{alignedat} \right.\)
37.
\(\left\{ \begin{alignedat}{4} \amp {5.8E+5.1d = -7.5} \\ \amp {-E+6.2d = -7.1} \end{alignedat} \right.\)
38.
\(\left\{ \begin{alignedat}{4} \amp {1.1J-K = -2.6} \\ \amp {7.7J+2.2K = 0.2} \end{alignedat} \right.\)
39.
\(\left\{ \begin{alignedat}{4} \amp {t = {\frac{4}{3}}P - {\frac{1}{5}}} \\ \amp {t = {\frac{5}{6}}P+{\frac{2}{3}}} \end{alignedat} \right.\)
40.
\(\left\{ \begin{alignedat}{4} \amp {b = {\frac{5}{6}}W - {\frac{4}{5}}} \\ \amp {b = {\frac{4}{5}}W - {\frac{2}{3}}} \end{alignedat} \right.\)
41.
\(\left\{ \begin{alignedat}{4} \amp {I = {\frac{2}{5}}\mathopen{}\left(b+3\right) - {\frac{9}{5}}} \\ \amp {I = {\frac{1}{3}}\mathopen{}\left(b-4\right)+{\frac{26}{15}}} \end{alignedat} \right.\)
42.
\(\left\{ \begin{alignedat}{4} \amp {s = {\frac{5}{2}}\mathopen{}\left(h-1\right)+{\frac{19}{10}}} \\ \amp {s = {\frac{5}{3}}\mathopen{}\left(h+2\right) - {\frac{23}{6}}} \end{alignedat} \right.\)
43.
\(\left\{ \begin{alignedat}{4} \amp {{\frac{3}{5}}m - {\frac{5}{2}}Z} = {{\frac{1}{5}}} \\ \amp {{\frac{2}{5}}m+Z} = {-{\frac{2}{5}}} \end{alignedat} \right.\)
44.
\(\left\{ \begin{alignedat}{4} \amp {{\frac{1}{5}}s - {\frac{5}{3}}G} = {-{\frac{4}{3}}} \\ \amp {{\frac{1}{6}}s-G} = {{\frac{4}{3}}} \end{alignedat} \right.\)
45.
\(\left\{ \begin{alignedat}{4} \amp {{\frac{1}{2}}y - {\frac{1}{2}}p} = {{\frac{3}{4}}} \\ \amp {{\frac{3}{4}}y - {\frac{3}{4}}p} = {-{\frac{1}{6}}} \end{alignedat} \right.\)
46.
\(\left\{ \begin{alignedat}{4} \amp {{\frac{3}{2}}D+{\frac{3}{2}}X} = {{\frac{1}{4}}} \\ \amp {{\frac{3}{4}}D+{\frac{3}{4}}X} = {{\frac{1}{4}}} \end{alignedat} \right.\)
47.
\(\left\{ \begin{alignedat}{4} \amp {{\frac{2}{5}}J - {\frac{3}{2}}D} = {{\frac{4}{15}}J+1} \\ \amp {{\frac{1}{3}}J-D} = {{\frac{5}{4}}} \end{alignedat} \right.\)
48.
\(\left\{ \begin{alignedat}{4} \amp {P+{\frac{1}{5}}m} = {-5P+3} \\ \amp {{\frac{5}{2}}P+{\frac{3}{5}}m} = {{\frac{1}{2}}} \end{alignedat} \right.\)
49.
\(\left\{ \begin{alignedat}{4} \amp {{\frac{4}{5}}W+T} = {-{\frac{4}{5}}\mathopen{}\left(W+3\right) - {\frac{26}{15}}} \\ \amp {{\frac{5}{4}}W+{\frac{3}{2}}T} = {-{\frac{4}{5}}} \end{alignedat} \right.\)
50.
\(\left\{ \begin{alignedat}{4} \amp {{\frac{5}{6}}b+{\frac{5}{6}}C} = {-\left(b+1\right) - {\frac{13}{10}}} \\ \amp {{\frac{2}{3}}b+C} = {{\frac{5}{3}}} \end{alignedat} \right.\)
51.
\(\left\{ \begin{alignedat}{4} \amp {{\frac{3}{4}}g - {\frac{5}{3}}l} = {{\frac{3}{2}}} \\ \amp {{\frac{3}{2}}g - {\frac{10}{3}}l} = {3} \end{alignedat} \right.\)
52.
\(\left\{ \begin{alignedat}{4} \amp {{\frac{5}{6}}m - {\frac{1}{4}}S} = {{\frac{1}{4}}} \\ \amp {{\frac{3}{2}}m - {\frac{9}{20}}S} = {{\frac{9}{20}}} \end{alignedat} \right.\)

Applications

53.
A rectangle’s length is \({8\ {\rm ft}}\) shorter than four times its width. The rectangle’s perimeter is \({139\ {\rm ft}}\text{.}\) Find the rectangle’s length and width.
54.
A school fundraising event sold a total of \(145\) tickets and generated a total revenue of \({\$746.50}\text{.}\) Each adult ticket cost \({\$6.50}\text{,}\) and each child ticket cost \({\$2.50}\text{.}\) How many adult tickets and how many child tickets were sold?
55.
One telecom company charges a monthly fee of \({\$36.95}\) and \({\$4.25}\) for each Gigabyte (GB) of data transmitted. A rival telecom company charges a monthly fee of \({\$45.95}\) and \({\$3.20}\) for each GB of data transmitted. How many GB of data would you have to use for the monthly bill to be the same for the two providers? And what would that monthly bill be?
56.
A local restaurant has two locations. At one location, the revenue this month is \({\$94{,}000}\) but it has been decreasing by \({\$5{,}000}\) per month. At the other location, the annual revenue this month is \({\$49{,}000}\) and it has been increasing by \({\$2{,}500}\) per month. How long will it be until the two restaurant locations are taking in the same monthly revenue? And what will that monthly revenue be?
57.
An algebra exam has \(29\) questions worth a total of 100 points. There are two types of question on the exam. There are multiple-choice questions each worth \(2\) points, and short-answer questions, each worth \(8\) points. How many questions are there of each type?
58.
Skye invested a total of \({\$4{,}200}\) in two investments. Her savings account pays \({2.5\%}\) interest annually. A riskier stock investment earned \({5\%}\) at the end of the year. At the end of the year, Skye earned a total of \({\$175}\) in interest. How much money did she invest in each account?
59.
Alessandro invested a total of \({\$3{,}900}\) in two investments. His savings account pays \({1.5\%}\) interest annually. A riskier stock investment lost \({7\%}\) at the end of the year. At the end of the year, Alessandro’s total fell from \({\$3{,}900}\) to \({\$3{,}687.50}\text{.}\) How much money did he invest in each account?
60.
Asterton and Balsamburg were two towns located close to each other, and recently they merged into one city. Asterton had a population with \({46\%}\) Democrats. Balsamburg had a population with \({51\%}\) Democrats. After the merge, the new city has a total of \(3700\) residents, with \({49.6\%}\) Democrats. How many residents did each town have before the merge?
61.
Delilah poured some \({10\%}\) alcohol solution and some \({18\%}\) alcohol solution together into a beaker, and then the beaker had \({555\ {\rm ml}}\) of \({12.6\%}\) alcohol solution. How much of each solution did Delilah pour into the beaker?
62.
A snack company will produce and sell 1-lb bags with a mixture of peanuts and cashews. Peanuts cost \({\$1.67}\) per pound, and cashews cost \({\$5.75}\) per pound. The company is targeting a product that will cost them \({\$2.50}\) per pound worth of ingredients. How much of each type of nut should go into a bag?