Solving systems of linear equations by graphing is a good way to visualize the types of solutions that may result. However, there are many cases where solving a system by graphing is inconvenient or imprecise. If the graphs extend beyond the small grid with x and y both between −10 and 10, graphing the lines may be cumbersome. And if the solutions to the system are not integers, it can be hard to read their values precisely from a graph.
In this section, we will solve systems of linear equations by the substitution method.
Solve a System of Equations by Substitution
We will use the same system we used first for graphing.
\(\left\{\begin{array}{l}{2 x+y=7} \\ {x-2 y=6}\end{array}\right.\)
We will first solve one of the equations for either x or y. We can choose either equation and solve for either variable—but we’ll try to make a choice that will keep the work easy.
Then we substitute that expression into the other equation. The result is an equation with just one variable—and we know how to solve those!
After we find the value of one variable, we will substitute that value into one of the original equations and solve for the other variable. Finally, we check our solution and make sure it makes both equations true.
We’ll fill in all these steps now in Example \(\PageIndex{1}\).
Try It \(\PageIndex{2}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{-2 x+y=-11} \\ {x+3 y=9}\end{array}\right.\)
- Answer
-
(6,1)
Try It \(\PageIndex{3}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{x+3 y=10} \\ {4 x+y=18}\end{array}\right.\)
- Answer
-
(4,2)
SOLVE A SYSTEM OF EQUATIONS BY SUBSTITUTION.
- Solve one of the equations for either variable.
- Substitute the expression from Step 1 into the other equation.
- Solve the resulting equation.
- Substitute the solution in Step 3 into one of the original equations to find the other variable.
- Write the solution as an ordered pair.
- Check that the ordered pair is a solution to both original equations.
If one of the equations in the system is given in slope–intercept form, Step 1 is already done! We’ll see this in Example \(\PageIndex{4}\).
Try It \(\PageIndex{5}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{x+y=6} \\ {y=3 x-2}\end{array}\right.\)
- Answer
-
(2,4)
Try It \(\PageIndex{6}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{2 x-y=1} \\ {y=-3 x-6}\end{array}\right.\)
- Answer
-
(−1,−3)
If the equations are given in standard form, we’ll need to start by solving for one of the variables. In this next example, we’ll solve the first equation for y.
Example \(\PageIndex{7}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{3 x+y=5} \\ {2 x+4 y=-10}\end{array}\right.\)
Solution
We need to solve one equation for one variable. Then we will substitute that expression into the other equation.
Try It \(\PageIndex{8}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{4 x+y=2} \\ {3 x+2 y=-1}\end{array}\right.\)
- Answer
-
(1,−2)
Try It \(\PageIndex{9}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{-x+y=4} \\ {4 x-y=2}\end{array}\right.\)
- Answer
-
(2,6)
In Example \(\PageIndex{7}\) it was easiest to solve for y in the first equation because it had a coefficient of 1. In Example \(\PageIndex{10}\) it will be easier to solve for x.
Try It \(\PageIndex{11}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{x-5 y=13} \\ {4 x-3 y=1}\end{array}\right.\)
- Answer
-
(−2,−3)
Try It \(\PageIndex{12}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{x-6 y=-6} \\ {2 x-4 y=4}\end{array}\right.\)
- Answer
-
(6,2)
When both equations are already solved for the same variable, it is easy to substitute!
Try It \(\PageIndex{14}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{y=3 x-16} \\ {y=\frac{1}{3} x}\end{array}\right.\)
- Answer
-
(6,2)
Try It \(\PageIndex{15}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{y=-x+10} \\ {y=\frac{1}{4} x}\end{array}\right.\)
- Answer
-
(8,2)
Be very careful with the signs in the next example.
Try It \(\PageIndex{17}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{x-4 y=-4} \\ {-3 x+4 y=0}\end{array}\right.\)
- Answer
-
\((2,\frac{3}{2})\)
Try It \(\PageIndex{18}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{4 x-y=0} \\ {2 x-3 y=5}\end{array}\right.\)
- Answer
-
\((−\frac{1}{2},−2)\)
In Example, it will take a little more work to solve one equation for x or y.
Try It \(\PageIndex{20}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{2 x-3 y=12} \\ {-12 y+8 x=48}\end{array}\right.\)
- Answer
-
infinitely many solutions
Try It \(\PageIndex{21}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{5 x+2 y=12} \\ {-4 y-10 x=-24}\end{array}\right.\)
- Answer
-
infinitely many solutions
Look back at the equations in Example \(\PageIndex{22}\). Is there any way to recognize that they are the same line?
Let’s see what happens in the next example.
Example \(\PageIndex{22}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{5 x-2 y=-10} \\ {y=\frac{5}{2} x}\end{array}\right.\)
Solution
The second equation is already solved for y, so we can substitute for y in the first equation.
Substitute x for y in the first equation. |
|
Replace the y with \(\frac{5}{2}x\). |
|
Solve for x. |
|
|
|
Since 0 = −10 is a false statement the equations are inconsistent. The graphs of the two equation would be parallel lines. The system has no solutions.
Try It \(\PageIndex{23}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{3 x+2 y=9} \\ {y=-\frac{3}{2} x+1}\end{array}\right.\)
- Answer
-
no solution
Try It \(\PageIndex{24}\)
Solve the system by substitution. \(\left\{\begin{array}{l}{5 x-3 y=2} \\ {y=\frac{5}{3} x-4}\end{array}\right.\)
- Answer
-
no solution
Solve Applications of Systems of Equations by Substitution
We’ll copy here the problem solving strategy we used in the Solving Systems of Equations by Graphing section for solving systems of equations. Now that we know how to solve systems by substitution, that’s what we’ll do in Step 5.
HOW TO USE A PROBLEM SOLVING STRATEGY FOR SYSTEMS OF LINEAR EQUATIONS.
- Read the problem. Make sure all the words and ideas are understood.
- Identify what we are looking for.
- Name what we are looking for. Choose variables to represent those quantities.
- Translate into a system of equations.
- Solve the system of equations using good algebra techniques.
- Check the answer in the problem and make sure it makes sense.
- Answer the question with a complete sentence.
Some people find setting up word problems with two variables easier than setting them up with just one variable. Choosing the variable names is easier when all you need to do is write down two letters. Think about this in the next example—how would you have done it with just one variable?
Try It \(\PageIndex{26}\)
The sum of two numbers is 10. One number is 4 less than the other. Find the numbers.
- Answer
-
The numbers are 3 and 7.
Try It \(\PageIndex{27}\)
The sum of two number is −6. One number is 10 less than the other. Find the numbers.
- Answer
-
The numbers are 2 and −8.
In the Example \(\PageIndex{28}\), we’ll use the formula for the perimeter of a rectangle, P = 2L + 2W.
Try It \(\PageIndex{29}\)
The perimeter of a rectangle is 40. The length is 4 more than the width. Find the length and width of the rectangle.
- Answer
-
The length is 12 and the width is 8.
Try It \(\PageIndex{30}\)
The perimeter of a rectangle is 58. The length is 5 more than three times the width. Find the length and width of the rectangle.
- Answer
-
The length is 23 and the width is 6.
For Example \(\PageIndex{31}\) we need to remember that the sum of the measures of the angles of a triangle is 180 degrees and that a right triangle has one 90 degree angle.
Try It \(\PageIndex{32}\)
The measure of one of the small angles of a right triangle is 2 more than 3 times the measure of the other small angle. Find the measure of both angles.
- Answer
-
The measure of the angles are 22 degrees and 68 degrees.
Try It \(\PageIndex{33}\)
The measure of one of the small angles of a right triangle is 18 less than twice the measure of the other small angle. Find the measure of both angles.
- Answer
-
The measure of the angles are 36 degrees and 54 degrees.
Try It \(\PageIndex{35}\)
Geraldine has been offered positions by two insurance companies. The first company pays a salary of $12,000 plus a commission of $100 for each policy sold. The second pays a salary of $20,000 plus a commission of $50 for each policy sold. How many policies would need to be sold to make the total pay the same?
- Answer
-
There would need to be 160 policies sold to make the total pay the same.
Try It \(\PageIndex{36}\)
Kenneth currently sells suits for company A at a salary of $22,000 plus a $10 commission for each suit sold. Company B offers him a position with a salary of $28,000 plus a $4 commission for each suit sold. How many suits would Kenneth need to sell for the options to be equal?
- Answer
-
Kenneth would need to sell 1,000 suits.
Note
Access these online resources for additional instruction and practice with solving systems of equations by substitution.