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:
(rtransactions)+(stransactions)=2,000,000transactions
Without the units:
r+s=2,000,000
The price of each rental was $6. That means the problem has given us a rate of 6dollarstransaction to work with. The rate unit suggests this should be multiplied by something measured in transactions. It makes sense to multiply by r, and that would give us the total number of dollars generated from rentals. This is 6r. Similarly, the price of each sale was $15, so the revenue from sales was 15s. The total revenue was $15 million, which we can represent with this equation:
(6dollarstransaction)(rtransactions)+(15dollarstransaction)(stransactions)=$15,000,000
Without the units:
6r+15s=15,000,000
Here is our system of equations, with the commas removed:
{r+s=20000006r+15s=15000000
To solve the system, we will use a method called substitution. The idea is to use one equation to isolate r. Then substitute this for the β€œr” that’s in the other equation. This leaves you with one equation where the only variable is s. And we can handle that directly.
The first equation from the system is an easy one to isolate r:
r+s=2000000(the system's first equation)r=2000000βˆ’s
This tells us that the expression 2000000βˆ’s is equal to r, so we can substitute that in place of r in the second equation:
6r+15s=15000000(the system's second equation)6(2000000βˆ’s)+15s=15000000
Now we have an equation with only one variable, s.
6(2000000βˆ’s)+15s=1500000012000000βˆ’6s+15s=1500000012000000+9s=150000009s=30000009s9=30000009s=333333.3―
At this point, we know that s=333333.3―. 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=2000000βˆ’s.
r=2000000βˆ’sr=2000000βˆ’333333.3―r=1666666.6―
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:
{x+2y=53xβˆ’2y=8
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:
x+2y=5x=5βˆ’2y
Next, we substitute 5βˆ’2y in for x in the second equation, giving us a linear equation in only one variable y. And this is an equation that we may solve using skills from Section 2.1.
3xβˆ’2y=83(5βˆ’2y)βˆ’2y=815βˆ’6yβˆ’2y=815βˆ’8y=8βˆ’8y=βˆ’7y=78
Now that we have the value for y, we need to find the value for x. We already isolated x, and it’s easiest to just use that equation.
x=5βˆ’2yx=5βˆ’2(78)x=5βˆ’74x=204βˆ’74=134
At this point we think the solution is the point (134,78) or in other words: x=134, y=78. It’s only human to make mistakes though, so we should check that the solution actually works. To check it, try using x=134, y=78 in both of the original equations.
x+2y=53xβˆ’2y=8134+2(78)=?53(134)βˆ’2(78)=?8134+74=?5394βˆ’74=?8204=βœ“5324=βœ“8
We conclude then that this system of equations is true when x=134 and y=78. The solution is the point (134,78) and we write the solution set as {(134,78)}.

Checkpoint 4.2.5.

Use substitution to solve the system.
{xβˆ’3y=12x+y=βˆ’3
(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.
(b)
Substitute the isolated expression into the other equation.
Explanation.
Making the substitution: 2(3y+1)+y=βˆ’3.
(c)
Solve for the one variable that remains.
Explanation.
2(3y+1)+y=βˆ’36y+2+y=βˆ’37y+2=βˆ’37y=βˆ’5y=βˆ’57
(d)
Solve for the other variable.
Explanation.
x=3y+1x=3(βˆ’57)+1x=βˆ’157+77x=βˆ’87
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:
{3xβˆ’7y=5βˆ’5x+2y=11
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.
βˆ’5x+2y=112y=11+5x2y2=11+5x2y=112+52x
Note that there are fractions once we’ve isolated y. We should take care with the steps that follow to make sure that the fraction arithmetic is correct.
Substitute 112+52x 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.
3xβˆ’7y=53xβˆ’7(112+52x)=53xβˆ’772βˆ’352x=52β‹…(3xβˆ’772βˆ’352x)=2β‹…(5)6xβˆ’77βˆ’35x=10βˆ’29xβˆ’77=10βˆ’29x=87x=87βˆ’29=βˆ’3
Now that we have the value for x, we need to find the value for y. We already isolated y, and it’s easiest to just use that equation.
y=112+52xy=112+52(βˆ’3)y=112βˆ’152y=βˆ’42=βˆ’2
To check the solution we think we’ve found, try using x=βˆ’3, y=βˆ’2 in both of the original equations.
3xβˆ’7y=5βˆ’5x+2y=113(βˆ’3)βˆ’7(βˆ’2)=?5βˆ’5(βˆ’3)+2(βˆ’2)=?11βˆ’9+14=βœ“515βˆ’4=βœ“11
We conclude then that this system of equations is true when x=βˆ’3 and y=βˆ’2. The solution is the point (βˆ’3,βˆ’2) and we write the solution set as {(βˆ’3,βˆ’2)}.
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.
{x3βˆ’12y=5614x=y2+1
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, so:
x3βˆ’12y=566β‹…(x3βˆ’12y)=6β‹…562xβˆ’3y=5
In the second equation, the least common multiple of the denominators is 4, so:
14x=y2+14β‹…14x=4β‹…(y2+1)x=2y+4
Now we have a system that is equivalent to the original system of equations, but there are no fraction coefficients:
{2xβˆ’3y=5x=2y+4
The second equation has already isolated x, so we will substitute 2y+4 in for x in the first equation.
2xβˆ’3y=52(2y+4)βˆ’3y=54y+8βˆ’3y=5y+8=5y=βˆ’3
And we have solved for y. To find x, we know x=2y+4, so we have:
x=2y+4x=2(βˆ’3)+4x=βˆ’6+4=βˆ’2
The solution is (βˆ’2,βˆ’3). (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.
{y=56x+3y=23x+1
Explanation.
In the first equation, y is already isolated. So we can substitute 56x+3 in for y in the second equation: 56x+3=23x+1.
Some people prefer to think of this as setting the two right sides equal to each other. That works too: if 56x+3 is equal to y, and 23x+1 is also equal to y, then these expressions are equal to each other. Either way:
56x+3=23x+16β‹…(56x+3)=6β‹…(23x+1)5x+18=4x+6x+18=6x=βˆ’12
And then:
y=56(βˆ’12)+3y=βˆ’10+3=βˆ’7
And the solution is (βˆ’12,βˆ’7).
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. 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. So we have:
(Vdollars)+(Mdollars)=$8400
Or without units:
V+M=8400
The other total we were given is the total amount of interest, $178. 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:
0.02(Vdollars)+0.025(Mdollars)=$178
Or without units:
0.02V+0.025M=178
As a system, we write:
{V+M=84000.02V+0.025M=178
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:
V+M=8400V=8400βˆ’M
Now we substitute 8400βˆ’M in for V in the second equation:
0.02V+0.025M=1780.02(8400βˆ’M)+0.025M=178168βˆ’0.02M+0.025M=178168+0.005M=1780.005M=100.005M0.005=100.005M=2000
And then we can determine the value of V by using the earlier equation where we isolated V:
V=8400βˆ’MV=8400βˆ’2000V=6400
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, 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:
(SmL)+(VmL)=600mL
Or without units:
S+V=600
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:
0.42(SmL)+0.18(VmL)=204mL
Or without units:
0.42S+0.18V=204
So our system is:
{S+V=6000.42S+0.18V=204
To solve this system, we’ll isolate S in the first equation:
S+V=600S=600βˆ’V
And then substitute 600βˆ’V in for S in the second equation with :
0.42S+0.18V=2040.42(600βˆ’V)+0.18V=204252βˆ’0.42V+0.18V=204252βˆ’0.24V=204βˆ’0.24V=βˆ’48βˆ’0.24Vβˆ’0.24=βˆ’48βˆ’0.24V=200
Now we determine S using the equation where we had isolated S:
S=600βˆ’VS=600βˆ’200S=400
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? 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.
The total cost of the Colombian coffee in the blend will be 9C, and the total cost of the Honduran coffee in the blend will be 14H. All together, the blend has a total cost of 12.50β‹…30=375 dollars. So another equation is 9C+14H=375.
(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.
(c)
Substitute the isolated expression into the other equation.
Explanation.
Making the substitution: 9(30βˆ’H)+14H=375.
(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.
9(30βˆ’H)+14H=375270βˆ’9H+14H=375270+5H=3755H=105H=21
C=30βˆ’HC=30βˆ’21=9
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:
{y=2xβˆ’14xβˆ’2y=3
Explanation.
Since the first equation has already isolated y, we will substitute 2xβˆ’1 in for y in the second equation, and we have:
4xβˆ’2y=34xβˆ’2(2xβˆ’1)=34xβˆ’4x+2=32=3
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 {}, or βˆ….
For verification, let’s re-write the second equation in slope-intercept form:
4xβˆ’2y=3βˆ’2y=βˆ’4x+3βˆ’2yβˆ’2=βˆ’4x+3βˆ’2y=βˆ’4xβˆ’2+3βˆ’2y=2xβˆ’32
So the system is equivalent to:
{y=2xβˆ’1y=2xβˆ’32
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:
{y=2xβˆ’14xβˆ’2y=2
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:
4xβˆ’2y=24xβˆ’2(2xβˆ’1)=24xβˆ’4x+2=22=2
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. What does this mean for the original system of equations though? Apparently as long as y equals 2xβˆ’1, 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)∣y=2xβˆ’1}. 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:
4xβˆ’2y=2βˆ’2y=βˆ’4x+2βˆ’2yβˆ’2=βˆ’4xβˆ’2+2βˆ’2y=2xβˆ’1
So the system is equivalent to:
{y=2xβˆ’1y=2xβˆ’1
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.

Applications

53.
A rectangle’s length is 8 ft shorter than four times its width. The rectangle’s perimeter is 139 ft. 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. Each adult ticket cost $6.50, and each child ticket cost $2.50. 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. 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 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?
You have attempted 1 of 68 activities on this page.