4. Systems of Equations

4.2 Solve Systems of Equations by Substitution

Lynn Marecek and MaryAnne Anthony-Smith

Learning Objectives

By the end of this section it is expected that you will be able to:

  • Solve a system of equations by substitution
  • Solve applications of systems of equations by substitution

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}{c}2x+y=7\hfill \\ x-2y=6\hfill \end{array}

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.

EXAMPLE 1

How to Solve a System of Equations by Substitution

Solve the system by substitution. \left\{\begin{array}{c}2x+y=7\hfill \\ x-2y=6\hfill \end{array}

Solution

This figure has three columns and six rows. The first row says, “Step 1. Solve one of the equations for either variable.” To the right of this, the middl row reads, “We’ll solve the first equation for y.” The third column shows the two equations: 2x + y = 7 and x – 2y = 6. It shows that 2x + y = 7 becomes y = 7 – 2x.The second row reads, “Step 2. Substitute the expression from Step 1 into the other equation.” Then, “We replace y in the second equation with the expression 7 – 2x.” It then shows the x – 2y = 6 becomes x – 2(7 – 2x) = 6.The third row says, “Step 3: Solve the resulting equation.” Then “Now we have an equation with just 1 variable. WE know how to solve this!” It then shows that x – 2(7 – 2x) = 6 becomes x – 14 + 4x = 6 which becomes 5x = 20. Thus x = 4.The fourth row says, “Step 4. Substitute the solution in Step 3 into one of the original quaitons to find the other variable.” Then, “We’ll use the first equation and replace x with 4.” Then it shows that 2x + y = 7 becomes 2(4) + y = 7. This becomes 8 + y = 7, and thus y = −1.The fifth row reads, “Step 5. Write the solution as an ordered pair.” Then “The ordered air is (x, y).” Then (4, −1).The sixth row reads, “Step 6. Check that the order pair is a solution to both original equations.” Then, “Substitute (4, −1) into both equations and make sure they are both true.” It then shows that 2x + y = 7 becomxe 2(4) + −1 = 7, and thus 7 = 7. It also shows that x – 2y = 6 becomes 4 – 2(−1) = 6, and thus 6−6. It also states, “Both equations are ture. (4, −1) is the solution to the system.”

TRY IT 1

Solve the system by substitution. \left\{\begin{array}{c}-2x+y=-11\hfill \\ x+3y=9\hfill \end{array}

Show answer

\left(6,1\right)

How to solve a system of equations by substitution.

  1. Solve one of the equations for either variable.
  2. Substitute the expression from Step 1 into the other equation.
  3. Solve the resulting equation.
  4. Substitute the solution in Step 3 into one of the original equations to find the other variable.
  5. Write the solution as an ordered pair.
  6. 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!

EXAMPLE 2

Solve the system by substitution.

\left\{\begin{array}{c}x+y=-1\hfill \\ y=x+5\hfill \end{array}

Solution

 

The second equation is already solved for y. We will substitute the expression in place of y in the first equation.

.
The second equation is already solved for y.
We will substitute into the first equation.
Replace the y with x + 5. .
Solve the resulting equation for x. .
.
.
Substitute x = −3 into y = x + 5 to find y. .
.
The ordered pair is (−3, 2). .
Check the ordered pair in both equations:

\begin{array}{cccc}\begin{array}{ccc}\hfill x+y& =\hfill & -1\hfill \\ \hfill -3+2& \stackrel{?}{=}\hfill & -1\hfill \\ \hfill -1& =\hfill & -1\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}& & & \begin{array}{ccc}\hfill y& =\hfill & x+5\hfill \\ \hfill 2& \stackrel{?}{=}\hfill & -3+5\hfill \\ \hfill 2& =\hfill & 2\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}\end{array}
The solution is (−3, 2).

TRY IT 2

Solve the system by substitution. \left\{\begin{array}{c}x+y=6\hfill \\ y=3x-2\hfill \end{array}

Show answer

\left(2,4\right)

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 3

Solve the system by substitution. \left\{\begin{array}{c}3x+y=5\hfill \\ 2x+4y=-10\hfill \end{array}

Solution

 

We need to solve one equation for one variable. Then we will substitute that expression into the other equation.

Solve for y.

Substitute into the other equation.
.
Replace the y with −3x + 5. .
Solve the resulting equation for x. .
.
.
Substitute x = 3 into 3x + y = 5 to find y. .
.
.
The ordered pair is (3, −4). .
Check the ordered pair in both equations:

\begin{array}{cccc}\begin{array}{ccc}\hfill 3x+y& =\hfill & 5\hfill \\ \hfill 3 \cdot 3+\left(-4\right)& \stackrel{?}{=}\hfill & 5\hfill \\ \hfill 9-4& \stackrel{?}{=}\hfill & 5\hfill \\ \hfill 5& =\hfill & 5\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}& & & \begin{array}{ccc}\hfill 2x+4y& =\hfill & -10\hfill \\ \hfill 2 \cdot 3+4\left(-4\right)& =\hfill & -10\hfill \\ \hfill 6-16& \stackrel{?}{=}\hfill & -10\hfill \\ \hfill -10& =\hfill & -10\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}\end{array}
The solution is (3, −4).

TRY IT 3

Solve the system by substitution. \left\{\begin{array}{c}4x+y=2\hfill \\ 3x+2y=-1\hfill \end{array}

Show answer

\left(1,-2\right)

In example 3, it was easiest to solve for y in the first equation because it had a coefficient of 1. In the next example it will be easier to solve for x.

EXAMPLE 4

Solve the system by substitution. \left\{\begin{array}{c}x-2y=-2\hfill \\ 3x+2y=34\hfill \end{array}

Solution

 

We will solve the first equation for x and then substitute the expression into the second equation.

.
Solve for x.

Substitute into the other equation.
.
Replace the x with 2y − 2. .
Solve the resulting equation for y. .

Substitute y = 5 into x − 2y = −2 to find x.
.
.
.
.
.
.
The ordered pair is (8, 5).
Check the ordered pair in both equations:

\begin{array}{cccc}\begin{array}{ccc}\hfill x-2y& =\hfill & -2\hfill \\ \hfill 8-2 \cdot 5& \stackrel{?}{=}\hfill & -2\hfill \\ \hfill 8-10& \stackrel{?}{=}\hfill & -2\hfill \\ \hfill -2& =\hfill & -2\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}& & & \begin{array}{ccc}\hfill 3x+2y& =\hfill & 34\hfill \\ \hfill 3 \cdot 8+2 \cdot 5& \stackrel{?}{=}\hfill & 34\hfill \\ \hfill 24+10& \stackrel{?}{=}\hfill & 34\hfill \\ \hfill 34& =\hfill & 34\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}\end{array}
The solution is (8, 5).

TRY IT 4

Solve the system by substitution. \left\{\begin{array}{c}x-5y=13\hfill \\ 4x-3y=1\hfill \end{array}

Show answer

\left(-2,-3\right)

When both equations are already solved for the same variable, it is easy to substitute!

EXAMPLE 5

Solve the system by substitution. \left\{\begin{array}{c}y=-2x+5\hfill \\ y=\frac{1}{2}x\hfill \end{array}

Solution

 

Since both equations are solved for y, we can substitute one into the other.

Substitute \frac{1}{2}x for y in the first equation. .
Replace the y with \frac{1}{2}x. .
Solve the resulting equation. Start
by clearing the fraction.
.
Solve for x. .
.
Substitute x = 2 into y = \frac{1}{2}x to find y. .
.
.
The ordered pair is (2,1).
Check the ordered pair in both equations:

\begin{array}{cccc}\begin{array}{ccc}\hfill y& =\hfill & \frac{1}{2}x\hfill \\ \hfill 1& \stackrel{?}{=}\hfill & \frac{1}{2}\cdot 2\hfill \\ \hfill 1& =\hfill & 1\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}& & & \begin{array}{ccc}\hfill y& =\hfill & -2x+5\hfill \\ \hfill 1& \stackrel{?}{=}\hfill & -2 \cdot 2+5\hfill \\ \hfill 1& =\hfill & -4+5\hfill \\ \hfill 1& =\hfill & 1\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}\end{array}
The solution is (2,1).

TRY IT 5

Solve the system by substitution. \left\{\begin{array}{c}y=3x-16\hfill \\ y=\frac{1}{3}x\hfill \end{array}

Show answer

\left(6,2\right)

Be very careful with the signs in the next example.

EXAMPLE 6

Solve the system by substitution. \left\{\begin{array}{c}4x+2y=4\hfill \\ 6x-y=8\hfill \end{array}

Solution

 

We need to solve one equation for one variable. We will solve the first equation for y.

.
Solve the first equation for y. .
Substitute −2x + 2 for y in the second equation. .
Replace the y with −2x + 2. .
Solve the equation for x. .
.
.


Substitute x=\frac{5}{4} into 4x + 2y = 4 to find y.
.
.
.
.
.
The ordered pair is \left(\frac{5}{4},-\frac{1}{2}\right).
Check the ordered pair in both equations.

\begin{array}{cccc}\begin{array}{ccc}\hfill 4x+2y& =\hfill & 4\hfill \\ \hfill 4\left(\frac{5}{4}\right)+2\left(-\frac{1}{2}\right)& \stackrel{?}{=}\hfill & 4\hfill \\ \hfill 5-1& \stackrel{?}{=}\hfill & 4\hfill \\ \hfill 4& =\hfill & 4\phantom{\rule{0.2em}{0ex}}✓\hfill \\ \\ \\ \\ \\ \end{array}\hfill & & & \begin{array}{ccc}\hfill 6x-y& =\hfill & 8\hfill \\ \hfill 6\left(\frac{5}{4}\right)-\left(-\frac{1}{2}\right)& \stackrel{?}{=}\hfill & 8\hfill \\ \hfill \frac{15}{4}-\left(-\frac{1}{2}\right)& \stackrel{?}{=}\hfill & 8\hfill \\ \hfill \frac{16}{2}& \stackrel{?}{=}\hfill & 8\hfill \\ \hfill 8& =\hfill & 8\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}\hfill \end{array}
The solution is \left(\frac{5}{4},-\frac{1}{2}\right).

TRY IT 6

Solve the system by substitution. \left\{\begin{array}{c}x-4y=-4\hfill \\ -3x+4y=0\hfill \end{array}

Show answer

\left(2,\frac{3}{2}\right)

In the next example, it will take a little more work to solve one equation for x or y.

EXAMPLE 7

Solve the system by substitution. \left\{\begin{array}{c}4x-3y=6\hfill \\ 15y-20x=-30\hfill \end{array}

Solution

 

We need to solve one equation for one variable. We will solve the first equation for x.

.
Solve the first equation for x. .
Substitute \frac{3}{4}y+\frac{3}{2} for x in the second equation. .
Replace the x with \frac{3}{4}y+\frac{3}{2}. .
Solve for y. .
.
.

Since 0 = 0 is a true statement, the system is consistent. The equations are dependent. The graphs of these two equations would give the same line. The system has infinitely many solutions.

TRY IT 7

Solve the system by substitution. \left\{\begin{array}{c}2x-3y=12\hfill \\ -12y+8x=48\hfill \end{array}

Show answer

infinitely many solutions

Look back at the equations in example 6. Is there any way to recognize that they are the same line?

Let’s see what happens in the next example.

EXAMPLE 8

Solve the system by substitution. \left\{\begin{array}{c}5x-2y=-10\hfill \\ y=\frac{5}{2}x\hfill \end{array}

 

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 8

Solve the system by substitution. \left\{\begin{array}{c}3x+2y=9\hfill \\ y=-\frac{3}{2}x+1\hfill \end{array}

Show answer

   no solution

Solve Applications of Systems of Equations by Substitution

We’ll copy here the problem solving strategy we used in the last sub chapter 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.

  1. Read the problem. Make sure all the words and ideas are understood.
  2. Identify what we are looking for.
  3. Name what we are looking for. Choose variables to represent those quantities.
  4. Translate into a system of equations.
  5. Solve the system of equations using good algebra techniques.
  6. Check the answer in the problem and make sure it makes sense.
  7. 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?

EXAMPLE 9

The sum of two numbers is zero. One number is nine less than the other. Find the numbers.

Solution
Step 1. Read the problem.
Step 2. Identify what we are looking for. We are looking for two numbers.
Step 3. Name what we are looking for.  Let n= the first number
Let m= the second number
Step 4. Translate into a system of equations. The sum of two numbers is zero.
.
One number is nine less than the other.
.
The system is: .
Step 5. Solve the system of
equations. We will use substitution
since the second equation is solved
for n.
Substitute m − 9 for n in the first equation. .
Solve for m. .
.
.
Substitute m=\frac{9}{2} into the second equation
and then solve for n.
.
.
.
.
Step 6. Check the answer in the problem. Do these numbers make sense in
the problem? We will leave this to you!
Step 7. Answer the question. The numbers are \frac{9}{2} and -\frac{9}{2}.

TRY IT 9

The sum of two numbers is 10. One number is 4 less than the other. Find the numbers.

Show answer

The numbers are 3 and 7.

In the next example, we’ll use the formula for the perimeter of a rectangle, P = 2L + 2W.

EXAMPLE 10

The perimeter of a rectangle is 88. The length is five more than twice the width. Find the length and the width.

Solution
Step 1. Read the problem. .
Step 2. Identify what you are looking for. We are looking for the length and width.
Step 3. Name what we are looking for. Let L= the length
  W= the width
Step 4. Translate into a system of equations. The perimeter of a rectangle is 88.
    2L + 2W = P
.
The length is five more than twice the width.
.
The system is: .
Step 5. Solve the system of equations.
We will use substitution since the second
equation is solved for L.

Substitute 2W + 5 for L in the first equation.
.
Solve for W. .
.
.
.
Substitute W = 13 into the second
equation and then solve for L.
.
.
.
Step 6. Check the answer in the problem. Does a rectangle with length 31 and width
13 have perimeter 88? Yes.
Step 7. Answer the equation. The length is 31 and the width is 13.

TRY IT 10

The perimeter of a rectangle is 40. The length is 4 more than the width. Find the length and width of the rectangle.

Show answer

The length is 12 and the width is 8.

For the next example 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.

EXAMPLE 11

The measure of one of the small angles of a right triangle is ten more than three times the measure of the other small angle. Find the measures of both angles.

Solution

 

We will draw and label a figure.

Step 1. Read the problem. .
Step 2. Identify what you are looking for. We are looking for the measures of the angles.
Step 3. Name what we are looking for. Let a= the measure of the 1st angle
\phantom{\rule{1.5em}{0ex}}b= the measure of the 2nd angle
Step 4. Translate into a system of equations. The measure of one of the small angles
of a right triangle is ten more than three
times the measure of the other small angle.
.
The sum of the measures of the angles of
a triangle is 180.
.
The system is: .
Step 5. Solve the system of equations.
We will use substitution since the first
equation is solved for a.
.
Substitute 3b + 10 for a in the
second equation.
.
Solve for b. .
.
.
Substitute b = 20 into the first
equation and then solve for a.
.
.
Step 6. Check the answer in the problem. We will leave this to you!
Step 7. Answer the question. The measures of the small angles are
20 and 70.

TRY IT 11

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.
Show answer

The measure of the angles are 22 degrees and 68 degrees.

EXAMPLE 12

Heather has been offered two options for her salary as a trainer at the gym. Option A would pay her $25,000 plus $15 for each training session. Option B would pay her $10,000 + $40 for each training session. How many training sessions would make the salary options equal?

Solution
Step 1. Read the problem.
Step 2. Identify what you are looking for. We are looking for the number of training sessions
that would make the pay equal.
Step 3. Name what we are looking for. Let s= Heather’s salary.
\phantom{\rule{1.5em}{0ex}}n= the number of training sessions
Step 4. Translate into a system of equations. Option A would pay her $25,000 plus $15
for each training session.
.
Option B would pay her $10,000 + $40
for each training session
.
The system is: .
Step 5. Solve the system of equations.
We will use substitution.
.
Substitute 25,000 + 15n for s in the second equation. .
Solve for n. .
.
.
Step 6. Check the answer. Are 600 training sessions a year reasonable?
Are the two options equal when n = 600?
Step 7. Answer the question. The salary options would be equal for 600 training sessions.

TRY IT 12

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?

Show answer

There would need to be 160 policies sold to make the total pay the same.

Access these online resources for additional instruction and practice with solving systems of equations by substitution.

Key Concepts

  • Solve a system of equations by substitution
    1. Solve one of the equations for either variable.
    2. Substitute the expression from Step 1 into the other equation.
    3. Solve the resulting equation.
    4. Substitute the solution in Step 3 into one of the original equations to find the other variable.
    5. Write the solution as an ordered pair.
    6. Check that the ordered pair is a solution to both original equations.

4.2 Exercise Set

In the following exercises, solve the systems of equations by substitution.

  1. \left\{\begin{array}{c}2x+y=-4\hfill \\ 3x-2y=-6\hfill \end{array}
  2. \left\{\begin{array}{c}x-2y=-5\hfill \\ 2x-3y=-4\hfill \end{array}
  3. \left\{\begin{array}{c}5x-2y=-6\hfill \\ y=3x+3\hfill \end{array}
  4. \left\{\begin{array}{c}2x+3y=3\hfill \\ y=\text{−}x+3\hfill \end{array}
  5. \left\{\begin{array}{c}2x+5y=1\hfill \\ y=\frac{1}{3}x-2\hfill \end{array}
  6. \left\{\begin{array}{c}3x-2y=6\hfill \\ y=\frac{2}{3}x+2\hfill \end{array}
  7. \left\{\begin{array}{c}2x+y=10\hfill \\ -x+y=-5\hfill \end{array}
  8. \left\{\begin{array}{c}3x+y=1\hfill \\ -4x+y=15\hfill \end{array}
  9. \left\{\begin{array}{c}x+3y=1\hfill \\ 3x+5y=-5\hfill \end{array}
  10. \left\{\begin{array}{c}2x+y=5\hfill \\ x-2y=-15\hfill \end{array}
  11. \left\{\begin{array}{c}y=-2x-1\hfill \\ y=-\frac{1}{3}x+4\hfill \end{array}
  12. \left\{\begin{array}{c}y=2x-8\hfill \\ y=\frac{3}{5}x+6\hfill \end{array}
  13. \left\{\begin{array}{c}4x+2y=8\hfill \\ 8x-y=1\hfill \end{array}
  14. \left\{\begin{array}{c}15x+2y=6\hfill \\ -5x+2y=-4\hfill \end{array}
  15. \left\{\begin{array}{c}y=3x\hfill \\ 6x-2y=0\hfill \end{array}
  16. \left\{\begin{array}{c}2x+16y=8\hfill \\ -x-8y=-4\hfill \end{array}
  17. \left\{\begin{array}{c}y=-4x\hfill \\ 4x+y=1\hfill \end{array}
  18. \left\{\begin{array}{c}y=\frac{7}{8}x+4\hfill \\ -7x+8y=6\hfill \end{array}

In the following exercises, translate to a system of equations and solve.

  1. The sum of two numbers is 15. One number is 3 less than the other. Find the numbers
  2. The sum of two numbers is −26. One number is 12 less than the other. Find the numbers.
  3. The perimeter of a rectangle is 60. The length is 10 more than the width. Find the length and width.
  4. The perimeter of a rectangle is 84. The length is 10 more than three times the width. Find the length and width.
  5. The measure of one of the small angles of a right triangle is 26 more than 3 times the measure of the other small angle. Find the measure of both angles.
  6. The measure of one of the small angles of a right triangle is 45 less than twice the measure of the other small angle. Find the measure of both angles.
  7. Jackie has been offered positions by two cable companies. The first company pays a salary of $ 14,000 plus a commission of $100 for each cable package sold. The second pays a salary of $20,000 plus a commission of $25 for each cable package sold. How many cable packages would need to be sold to make the total pay the same?
  8. Mitchell currently sells stoves for company A at a salary of $12,000 plus a $150 commission for each stove he sells. Company B offers him a position with a salary of $24,000 plus a $50 commission for each stove he sells. How many stoves would Mitchell need to sell for the options to be equal?
  9. Stephanie left Riverside, California, driving her motorhome north on Interstate 15 towards Salt Lake City at a speed of 56 miles per hour. Half an hour later, Tina left Riverside in her car on the same route as Stephanie, driving 70 miles per hour. Solve the system \left\{\begin{array}{c}56s=70t\hfill \\ s=t+\frac{1}{2}\hfill \end{array}.

    1. for t to find out how long it will take Tina to catch up to Stephanie.
    2. what is the value of s, the number of hours Stephanie will have driven before Tina catches up to her?

Answers:

  1. \left(-2,0\right)
  2. \left(7,6\right)
  3. \left(0,3\right)
  4. \left(6,-3\right)
  5. \left(3,-1\right)
  6. \left(6,6\right)
  7. \left(5,0\right)
  8. \left(-2,7\right)
  9. \left(-5,2\right)
  10. \left(-1,7\right)
  11. \left(-3,5\right)
  12. (10, 12)
  13. \left(\frac{1}{2},3\right)
  14. \left(\frac{1}{2},-\frac{3}{4}\right)
  15. Infinitely many solutions
  16. Infinitely many solutions
  17. No solution
  18. No solution
  19. The numbers are 6 and 9.
  20. The numbers are −7 and −19.
  21. The length is 20 and the width is 10.
  22. The length is 34 and the width is 8.
  23. The measures are 16° and 74°.
  24. The measures are 45° and 45°.
  25. 80 cable packages would need to be sold.
  26. Mitchell would need to sell 120 stoves.
      1. t=2 hours
      2. s=2\frac{1}{2} hours

License

Icon for the Creative Commons Attribution 4.0 International License

Business/Technical Mathematics Copyright © 2021 by Lynn Marecek and MaryAnne Anthony-Smith is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book