Section 4.2 Substitution
¶Objectives: PCC Course Content and Outcome Guide
In Section 4.1, we focused on solving systems of equations by graphing. In addition to being time consuming, graphing can be an awkward method to determine the exact solution when the solution has large numbers, fractions, or decimals. There are two symbolic methods for solving systems of linear equations, and in this section we will use one of them: substitution.
Subsection 4.2.1 Solving Systems of Equations Using Substitution
Example 4.2.2. The Interview.
In 2014, the New York Times 1 (nyti.ms/2pupebT) posted the following about the movie, “The Interview”:
“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.
A few days later, Joey Devilla cleverly pointed out in his blog 2 http://www.joeydevilla.com/2014/12/31/, that there is enough information given to find the amount of sales versus rentals. Using algebra, we can write a system of equations and solve it to find the two quantities. 3 Although since the given information uses approximate values, the solutions we will find will only be approximations too.
First, we will define variables. We need two variables, because 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 in transactions. The article says that the total number of transactions is \(2\) million. So our first equation will add the total number of rental and sales transactions and set that equal to \(2\) million. Our equation is:
Without the units:
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 then the number of dollars generated from rentals was \(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:
Without the units:
Here is our system of equations:
To solve the system, we will use the substitution method. The idea is to use one equation to find an expression that is equal to \(r\) but, cleverly, does not use the variable “\(r\text{.}\)” Then, substitute this for \(r\) into the other equation. This leaves you with one equation that only has one variable.
The first equation from the system is an easy one to solve for \(r\text{:}\)
This tells us that the expression \(2{,}000{,}000-s\) is equal to \(r\text{,}\) so we can substitute it for \(r\) in the second equation:
Now we have an equation with only one variable, \(s\text{,}\) which we will solve for:
\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 solved the first equation for \(r\text{,}\) and found \(r=2{,}000{,}000-s\text{.}\)
To check our answer, we will see if \(s=333{,}333.\overline{3}\) and \(r=1{,}666{,}666.\overline{6}\) make the original equations true:
In summary, there were roughly \(333{,}333\) copies sold and roughly \(1{,}666{,}667\) copies rented.
Remark 4.2.3.
In Example 4.2.2, we chose to solve the equation \(r+s=2{,}000{,}000\) for \(r\text{.}\) We could just as easily have instead solved for \(s\) and substituted that result into the second equation instead. The summary conclusion would have been the same.
Remark 4.2.4.
In Example 4.2.2, we rounded the solution values because only whole numbers make sense in the context of the problem. It was OK to round, because the original information we had to work with were rounded. In fact, it would be OK to round even more to \(s=330{,}000\) and \(r=1{,}700{,}000\text{,}\) as long as we communicate clearly that we rounded and our values are rough.
In other exercises where there is no context and nothing suggests the given numbers are approximations, it is not OK to round and all answers should be communicated with their exact values.
Example 4.2.5.
Solve the system of equations using substitution:
To use substitution, we need to solve for one of the variables in one of our equations. Looking at both equations, it will be easiest to solve for \(x\) in the first equation:
Next, we replace \(x\) in the second equation with \(8-2y\text{,}\) giving us a linear equation in only one variable, \(y\text{,}\) that we may solve:
Now that we have the value for \(y\text{,}\) we need to find the value for \(x\text{.}\) We have already solved the first equation for \(x\text{,}\) so that is the easiest equation to use.
To check this solution, we replace \(x\) with \(4\) and \(y\) with \(2\) in each equation:
We conclude then that this system of equations is true when \(x=4\) and \(y=2\text{.}\) Our solution is the point \((4,2)\) and we write the solution set as \(\{(4,2)\}\text{.}\)
Checkpoint 4.2.6.
Example 4.2.7.
Solve this system of equations using substitution:
We need to solve for one of the variables in one of our equations. Looking at both equations, it will be easiest to solve for \(y\) in the second equation. The coefficient of \(y\) in that equation is smallest.
Note that in this example, there are fractions once we solve for \(y\text{.}\) We should take care with the steps that follow that the fraction arithmetic is correct.
Replace \(y\) in the first equation with \(\frac{11}{2}+\frac{5}{2}x\text{,}\) giving us a linear equation in only one variable, \(x\text{,}\) that we may solve:
Now that we have the value for \(x\text{,}\) we need to find the value for \(y\text{.}\) We have already solved the second equation for \(y\text{,}\) so that is the easiest equation to use.
To check this solution, we replace \(x\) with \(-3\) and \(y\) with \(-2\) in each equation:
We conclude then that this system of equations is true when \(x=-3\) and \(y=-2\text{.}\) Our solution is the point \((-3,-2)\) and we write the solution set as \(\{(-3,-2)\}\text{.}\)
Example 4.2.8. Clearing Fraction Denominators Before Solving.
Solve the system of equations using the substitution method:
When a system of equations has fraction coefficients, it can be helpful to take steps that replace the fractions with whole numbers. With each equation, we may multiply each side by the least common multiple of all the denominators.
In the first equation, the least common multiple of the denominators is \(6\text{,}\) so:
In the second equation, the least common multiple of the denominators is \(4\text{,}\) so:
Now we have this system that is equivalent to the original system of equations, but there are no fraction coefficients:
The second equation is already solved for \(x\text{,}\) so we will substitute \(x\) in the first equation with \(2y+4\text{,}\) and we have:
And we have solved for \(y\text{.}\) To find \(x\text{,}\) we know \(x=2y+4\text{,}\) so we have:
The solution is \((-2,-3)\text{.}\) Checking this solution is left as an exercise.
Checkpoint 4.2.9.
Try a similar exercise.
For summary reference, here is the general procedure.
Process 4.2.10. Solving Systems of Equations by Substitution.
To solve a system of equations by substitution,
Solve one of the equations for one of the variables.
Substitute that expression into the other equation. There should now only be one variable in that equation.
Solve that equation for the one remaining variable.
Substitute that value into an earlier equation and solve for the other variable.
Verify your solution in the original equations.
Subsection 4.2.2 Applications of Systems of Equations
Example 4.2.11. Two Different Interest Rates.
Notah made some large purchases with his two credit cards one month and took on a total of \(\$8{,}400\) in debt from the two cards. He didn't make any payments the first month, so the two credit card debts each started to accrue 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?
To start, we will define two variables based on our 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 determine our equations, notice that we are given two different totals. We will use these to form our two equations. The total amount charged is \(\$8{,}400\) so we have:
Or without units:
The other total we were given is the total amount of interest, \(\$178\text{,}\) which is also in dollars. 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 this card. Similarly, \(0.025m\) is the dollar amount of interest from using the Mastercard. Together:
Or without units:
As a system, we write:
To solve this system by substitution, notice that it will be easier to solve for one of the variables in the first equation. We'll solve that equation for \(v\text{:}\)
Now we will substitute \(8400-m\) for \(v\) in the second equation:
Lastly, we can determine the value of \(v\) by using the earlier equation where we isolated \(v\text{:}\)
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.12. Mixing Solutions with Two Different Concentrations.
LaVonda is a meticulous bartender and she needs to serve \(600\) milliliters of Rob Roy, an alcoholic 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?
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:
Or without units:
To build the second equation, we have to think about the alcohol concentrations for the scotch, vermouth, and Rob Roy. It can be tricky to think about percentages like these correctly. One strategy is to focus on the amount (in mL) of alcohol being mixed. If we have \(s\) milliliters of scotch that is \(42\%\) alcohol, then \(0.42s\) is the actual amount (in mL) of alcohol 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. All this means:
Or without units:
So our system is:
To solve this system, we'll solve for \(s\) in the first equation:
And then substitute \(s\) in the second equation with \(600-v\text{:}\)
As a last step, we will determine \(s\) using the equation where we had isolated \(s\text{:}\)
In summary, LaVonda needs to combine 400 mL of scotch with 200 mL of vermouth to create 600 mL of Rob Roy that is \(34\%\) alcohol by volume.
As a check for Example 4.2.12, we will use estimation to see that our solution is reasonable. Since LaVonda is making a \(34\%\) solution, she would need to use more of the \(42\%\) concentration than the \(18\%\) concentration, because \(34\%\) is closer to \(42\%\) than to \(18\%\text{.}\) This agrees with our answer because we found that she needed 400 mL of the \(42\%\) solution and 200 mL of the \(18\%\) solution. This is an added check that we have found reasonable answers.
Example 4.2.13. 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?
Before we begin, it may be helpful to try to estimate the solution. Let's compare the three prices. Since \(\$12.50\) is between the prices of \(\$9.00\) and \(\$14.00\text{,}\) this mixture is possible. Now we need to estimate the amount of each type needed. The price of the blend (\(\$12.50\) per pound) is closer to the higher priced beans (\(\$14.00\) per pound) than the lower priced beans (\(\$9.00\) per pound). So we will need to use more of that type. Keeping in mind that we need a total of \(30\) pounds, we roughly estimate \(20\) pounds of the \(\$14.00\) Honduran beans and \(10\) pounds of the \(\$9.00\) Columbian beans. How good is our estimate? Next we will solve this exercise exactly.
To set up our system of equations we define variables, letting \(C\) be the amount of Columbian coffee beans (in pounds) and \(H\) be the amount of Honduran coffee beans (in pounds).
The equations in our system will come from the total amount of beans and the total cost. The equation for the total amount of beans can be written as:
Or without units:
To build the second equation, we have to think about the cost of all these beans. If we have \(C\) pounds of Columbian beans that cost \(\$9.00\) per pound, then \(9C\) is the cost of those beans in dollars. Similarly, \(14H\) is the cost of the Honduran beans. And the total cost is for \(30\) pounds of beans priced at \(\$12.50\) per pound, totaling \(12.5(30)=37.5\) dollars. All this means:
Or without units and carrying out the multiplication on the right:
Now our system is:
To solve the system, we'll solve the first equation for \(C\text{:}\)
Next, we'll substitute \(C\) in the second equation with \(30-H\text{:}\)
Since \(H=21\text{,}\) we can conclude that \(C=9\text{.}\)
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. Our estimate at the beginning was pretty close, so we feel this answer is reasonable.
Subsection 4.2.3 Solving Special Systems of Equations with Substitution
Remember the two special cases we encountered when solving by graphing in Subsection 4.1.2? If the two lines represented by a system of equations have the same slope, then they might be separate lines that never meet, meaning 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. Let's see what happens when we use the substitution method on each of the special cases.
Example 4.2.14. A System with No Solution.
Solve the system of equations using the substitution method:
Since the first equation is already solved for \(y\text{,}\) we will substitute \(2x-1\) for \(y\) in the second equation, and we have:
Even though we were only intending to substitute away \(y\text{,}\) we ended up with an equation where there are no variables at all. This will happen whenever the lines have the same slope. This tells us the system represents either parallel or coinciding lines. Since \(2=3\) is false no matter what values \(x\) and \(y\) might be, there can be no solution to the system. So the lines are parallel and distinct. We write the solution set using the empty set symbol: the solution set is \(\emptyset\text{.}\)
To verify this, re-write the second equation, \(4x-2y=3\text{,}\) in slope-intercept form:
So the system is equivalent to:
Now it is easier to see that the two lines have the same slope but different \(y\)-intercepts. They are parallel and distinct lines, so the system has no solution.
Example 4.2.15. A System with Infinitely Many Solutions.
Solve the system of equations using the substitution method:
Since \(y=2x-1\text{,}\) we will substitute \(2x-1\) for \(y\) in the second equation and we have:
Even though we were only intending to substitute away \(y\text{,}\) we ended up with an equation where there are no variables at all. This will happen whenever the lines have the same slope. This tells us the system represents either parallel or coinciding lines. Since \(2=2\) is true no matter what values \(x\) and \(y\) might be, the system equations are true no matter what \(x\) is, as long as \(y=2x-1\text{.}\) So the lines coincide. We write the solution set as \(\{(x,y)\mid y=2x-1\}\text{.}\)
To verify this, re-write the second equation, \(4x-2y=2\text{,}\) in slope-intercept form:
The system looks like:
Now it is easier to see that the two equations represent the same line. Every point on the line is a solution to the system, so the system has infinitely many solutions. The solution set is \(\{(x,y) \mid y=2x-1\}\text{.}\)
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 might be a good first step 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
Review and Warmup
1.
Solve the equation.
\(\displaystyle{ {{\frac{5}{8}}-9a}={6} }\)
2.
Solve the equation.
\(\displaystyle{ {{\frac{7}{4}}-7c}={6} }\)
3.
Solve the equation.
\(\displaystyle{ {{\frac{3}{10}}-{\frac{1}{10}}A}={4} }\)
4.
Solve the equation.
\(\displaystyle{ {{\frac{7}{8}}-{\frac{1}{8}}C}={1} }\)
5.
Solve the linear equation for \(y\text{.}\)
\({-40x-5y}={-50}\)
6.
Solve the linear equation for \(y\text{.}\)
\({5y-15x}={-5}\)
7.
Solve the linear equation for \(y\text{.}\)
\({25x+5y}={-60}\)
8.
Solve the linear equation for \(y\text{.}\)
\({12x-2y}={-34}\)
9.
Solve the linear equation for \(y\text{.}\)
\({6x-y}={-16}\)
10.
Solve the linear equation for \(y\text{.}\)
\({3x-y}={-2}\)
Solving System of Equations Using Substitution
11.
Solve the following system of equations.
12.
Solve the following system of equations.
13.
Solve the following system of equations.
14.
Solve the following system of equations.
15.
Solve the following system of equations.
16.
Solve the following system of equations.
17.
Solve the following system of equations.
18.
Solve the following system of equations.
19.
Solve the following system of equations.
20.
Solve the following system of equations.
21.
Solve the following system of equations.
22.
Solve the following system of equations.
23.
Solve the following system of equations.
24.
Solve the following system of equations.
25.
Solve the following system of equations.
26.
Solve the following system of equations.
27.
Solve the following system of equations.
28.
Solve the following system of equations.
29.
Solve the following system of equations.
30.
Solve the following system of equations.
31.
Solve the following system of equations.
32.
Solve the following system of equations.
33.
Solve the following system of equations.
34.
Solve the following system of equations.
35.
Solve the following system of equations.
36.
Solve the following system of equations.
37.
Solve the following system of equations.
38.
Solve the following system of equations.
39.
Solve the following system of equations.
40.
Solve the following system of equations.
41.
Solve the following system of equations.
42.
Solve the following system of equations.
43.
Solve the following system of equations.
44.
Solve the following system of equations.
45.
Solve the following system of equations.
46.
Solve the following system of equations.
47.
Solve the following system of equations.
48.
Solve the following system of equations.
49.
Solve the following system of equations.
50.
Solve the following system of equations.
51.
Solve the following system of equations.
52.
Solve the following system of equations.
53.
Solve the following system of equations.
54.
Solve the following system of equations.
55.
Solve the following system of equations.
56.
Solve the following system of equations.
57.
Solve the following system of equations.
58.
Solve the following system of equations.
59.
Solve the following system of equations.
60.
Solve the following system of equations.
Applications
61.
A rectangle’s length is \(5\) feet shorter than five times its width. The rectangle’s perimeter is \(590\) feet. Find the rectangle’s length and width.
The rectangle’s length is feet, and its width is feet.
62.
A school fund raising event sold a total of \(191\) tickets and generated a total revenue of \({\$586.25}\text{.}\) There are two types of tickets: adult tickets and child tickets. Each adult ticket costs \({\$6.95}\text{,}\) and each child ticket costs \({\$1.50}\text{.}\) Write and solve a system of equations to answer the following questions.
adult tickets and child tickets were sold.
63.
Phone Company A charges a monthly fee of \({\$43.80}\text{,}\) and \({\$0.02}\) for each minute of talk time. Phone Company B charges a monthly fee of \({\$35.00}\text{,}\) and \({\$0.06}\) for each minute of talk time. Write and solve a system equation to answer the following questions.
These two companies would charge the same amount on a monthly bill when the talk time was minutes.
64.
Company A’s revenue this fiscal year is \({\$878{,}000}\text{,}\) but its revenue is decreasing by \({\$17{,}000}\) each year. Company B’s revenue this fiscal year is \({\$488{,}000}\text{,}\) and its revenue is increasing by \({\$13{,}000}\) each year. Write and solve a system of equations to answer the following question.
After years, Company B will catch up with Company A in revenue.
65.
A test has \(25\) problems, which are worth a total of \(100\) points. There are two types of problems in the test. Each multiple-choice problem is worth \(3\) points, and each short-answer problem is worth \(8\) points. Write and solve a system equation to answer the following questions.
This test has multiple-choice problems and short-answer problems.
66.
Candi invested a total of \({\$7{,}500}\) in two accounts. One account pays \(3\%\) interest annually; the other pays \(4\%\) interest annually. At the end of the year, Candi earned a total of \({\$255}\) in interest. Write and solve a system of equations to find how much money Candi invested in each account.
Candi invested in the \(3\%\) account and in the \(4\%\) account.
67.
Katherine invested a total of \({\$13{,}000}\) in two accounts. After a year, one account lost \(8.8\%\text{,}\) while the other account gained \(4.6\%\text{.}\) In total, Katherine lost \({\$608}\text{.}\) Write and solve a system of equations to find how much money Katherine invested in each account.
Katherine invested in the account with \(8.8\%\) loss and in the account with \(4.6\%\) gain.
68.
Town A and Town B were located close to each other, and recently merged into one city. Town A had a population with \(8\%\) Asians. Town B had a population with \(10\%\) Asians. After the merge, the new city has a total of \(4000\) residents, with \(9.3\%\) Asians. Write and solve a system of equations to find how many residents Town A and Town B used to have.
Town A used to have residents, and Town B used to have residents.
69.
You poured some \(6\%\) alcohol solution and some \(12\%\) alcohol solution into a mixing container. Now you have \(600\) grams of \(10 \%\) alcohol solution. How many grams of \(6\%\) solution and how many grams of \(12 \%\) solution did you pour into the mixing container?
Write and solve a system equation to answer the following questions.
You mixed grams of \(6\%\) solution with grams of \(12\%\) solution.
70.
Briana invested a total of \({\$10{,}000}\) in two accounts. One account pays \(7\%\) interest annually; the other pays \(2\%\) interest annually. At the end of the year, Briana earned a total of \({\$400}\) in interest. How much money did Briana invest in each account?
Briana invested in the \(7\%\) account and in the \(2\%\) account.
71.
Blake invested a total of \({\$52{,}000}\) in two accounts. One account pays \(5.5\%\) interest annually; the other pays \(4.6\%\) interest annually. At the end of the year, Blake earned a total interest of \({\$2{,}734}\text{.}\) How much money did Blake invest in each account?
Blake invested in the \(5.5\%\) account and in the \(4.6\%\) account.
72.
Renee invested a total of \({\$9{,}000}\) in two accounts. One account pays \(3\%\) interest annually; the other pays \(6\%\) interest annually. At the end of the year, Renee earned the same amount of interest from both accounts. How much money did Renee invest in each account?
Renee invested in the \(3\%\) account and in the \(6\%\) account.
73.
Stephen invested a total of \({\$40{,}000}\) in two accounts. One account pays \({6.6}\%\) interest annually; the other pays \({3.4}\%\) interest annually. At the end of the year, Stephen earned the same amount of interest from both accounts. How much money did Stephen invest in each account?
Stephen invested in the \({6.6}\%\) account in the \({3.4}\%\) account.
74.
Hannah invested a total of \({\$12{,}000}\) in two accounts. After a year, one account had earned \(11.7\%\text{,}\) while the other account had lost \(7.6\%\text{.}\) In total, Hannah had a net gain of \({\$535.50}\text{.}\) How much money did Hannah invest in each account?
Hannah invested in the account that grew by \(11.7\%\) and in the account that fell by \(7.6\%\text{.}\)
75.
You’ve poured some \(12\%\) (by mass) alcohol solution and some \(8\%\) alcohol solution into a large glass mixing container. Now you have \(800\) grams of \(10\%\) alcohol solution. How many grams of \(12\%\) solution and how many grams of \(8\%\) solution did you pour into the mixing container?
You poured grams of \(12\%\) solution and grams of \(8\%\) solution into the mixing container.
76.
A store has some beans selling for \({\$1.70}\) per pound, and some vegetables selling for \({\$3.10}\) per pound. The store plans to use them to produce \(14\) pounds of mixture and sell for \({\$2.57}\) per pound. How many pounds of beans and how many pounds of vegetables should be used?
To produce \(14\) pounds of mixture, the store should use pounds of beans and pounds of vegetables.
77.
Town A and Town B were located close to each other, and recently merged into one city. Town A had a population with \(6\%\) African Americans. Town B had a population with \(10\%\) African Americans. After the merge, the new city has a total of \(4000\) residents, with \(8.8\%\) African Americans. How many residents did Town A and Town B used to have?
Town A used to have residents, and Town B used to have residents.