Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Elementary Algebra

5.2 Solve Systems of Equations by Substitution

Elementary Algebra5.2 Solve Systems of Equations by Substitution

Learning Objectives

By the end of this section, you will be able to:

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

Be Prepared 5.2

Before you get started, take this readiness quiz.

  1. Simplify −5(3x)−5(3x).
    If you missed this problem, review Example 1.136.
  2. Simplify 42(n+5)42(n+5).
    If you missed this problem, review Example 1.123.
  3. Solve for yy. 8y8=322y8y8=322y
    If you missed this problem, review Example 2.34.
  4. Solve for xx. 3x9y=−33x9y=−3
    If you missed this problem, review Example 2.65.

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.

{2x+y=7x2y=6{2x+y=7x2y=6

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 5.13.

Example 5.13

How to Solve a System of Equations by Substitution

Solve the system by substitution. {2x+y=7x2y=6{2x+y=7x2y=6

 

 

 

Try It 5.25

Solve the system by substitution. {−2x+y=−11x+3y=9{−2x+y=−11x+3y=9

Try It 5.26

Solve the system by substitution. {x+3y=104x+y=18{x+3y=104x+y=18

How To

Solve a system of equations by substitution.

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

Example 5.14

Solve the system by substitution.

{x+y=−1y=x+5{x+y=−1y=x+5

Try It 5.27

Solve the system by substitution. {x+y=6y=3x2{x+y=6y=3x2

Try It 5.28

Solve the system by substitution. {2xy=1y=−3x6{2xy=1y=−3x6

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 5.15

Solve the system by substitution. {3x+y=52x+4y=−10{3x+y=52x+4y=−10

Try It 5.29

Solve the system by substitution. {4x+y=23x+2y=−1{4x+y=23x+2y=−1

Try It 5.30

Solve the system by substitution. {x+y=44xy=2{x+y=44xy=2

In Example 5.15 it was easiest to solve for y in the first equation because it had a coefficient of 1. In Example 5.16 it will be easier to solve for x.

Example 5.16

Solve the system by substitution. {x2y=−23x+2y=34{x2y=−23x+2y=34

Try It 5.31

Solve the system by substitution. {x5y=134x3y=1{x5y=134x3y=1

Try It 5.32

Solve the system by substitution. {x6y=−62x4y=4{x6y=−62x4y=4

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

Example 5.17

Solve the system by substitution. {y=−2x+5y=12x{y=−2x+5y=12x

Try It 5.33

Solve the system by substitution. {y=3x16y=13x{y=3x16y=13x

Try It 5.34

Solve the system by substitution. {y=x+10y=14x{y=x+10y=14x

Be very careful with the signs in the next example.

Example 5.18

Solve the system by substitution. {4x+2y=46xy=8{4x+2y=46xy=8

Try It 5.35

Solve the system by substitution. {x4y=−4−3x+4y=0{x4y=−4−3x+4y=0

Try It 5.36

Solve the system by substitution. {4xy=02x3y=5{4xy=02x3y=5

In Example 5.19, it will take a little more work to solve one equation for x or y.

Example 5.19

Solve the system by substitution. {4x3y=615y20x=−30{4x3y=615y20x=−30

Try It 5.37

Solve the system by substitution. {2x3y=12−12y+8x=48{2x3y=12−12y+8x=48

Try It 5.38

Solve the system by substitution. {5x+2y=12−4y10x=−24{5x+2y=12−4y10x=−24

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

Let’s see what happens in the next example.

Example 5.20

Solve the system by substitution. {5x2y=−10y=52x{5x2y=−10y=52x

Try It 5.39

Solve the system by substitution. {3x+2y=9y=32x+1{3x+2y=9y=32x+1

Try It 5.40

Solve the system by substitution. {5x3y=2y=53x4{5x3y=2y=53x4

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

How to use a problem solving strategy for systems of linear equations.

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

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

Try It 5.41

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

Try It 5.42

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

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

Example 5.22

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

Try It 5.43

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

Try It 5.44

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.

For Example 5.23 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 5.23

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.

Try It 5.45

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.

Try It 5.46

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.

Example 5.24

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?

Try It 5.47

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?

Try It 5.48

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?

Media

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

Section 5.2 Exercises

Practice Makes Perfect

Solve a System of Equations by Substitution

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

71.

{ 2 x + y = −4 3 x 2 y = −6 { 2 x + y = −4 3 x 2 y = −6

72.

{ 2 x + y = −2 3 x y = 7 { 2 x + y = −2 3 x y = 7

73.

{ x 2 y = −5 2 x 3 y = −4 { x 2 y = −5 2 x 3 y = −4

74.

{ x 3 y = −9 2 x + 5 y = 4 { x 3 y = −9 2 x + 5 y = 4

75.

{ 5 x 2 y = −6 y = 3 x + 3 { 5 x 2 y = −6 y = 3 x + 3

76.

{ −2 x + 2 y = 6 y = −3 x + 1 { −2 x + 2 y = 6 y = −3 x + 1

77.

{ 2 x + 3 y = 3 y = x + 3 { 2 x + 3 y = 3 y = x + 3

78.

{ 2 x + 5 y = −14 y = −2 x + 2 { 2 x + 5 y = −14 y = −2 x + 2

79.

{ 2 x + 5 y = 1 y = 1 3 x 2 { 2 x + 5 y = 1 y = 1 3 x 2

80.

{ 3 x + 4 y = 1 y = 2 5 x + 2 { 3 x + 4 y = 1 y = 2 5 x + 2

81.

{ 3 x 2 y = 6 y = 2 3 x + 2 { 3 x 2 y = 6 y = 2 3 x + 2

82.

{ −3 x 5 y = 3 y = 1 2 x 5 { −3 x 5 y = 3 y = 1 2 x 5

83.

{ 2 x + y = 10 x + y = −5 { 2 x + y = 10 x + y = −5

84.

{ −2 x + y = 10 x + 2 y = 16 { −2 x + y = 10 x + 2 y = 16

85.

{ 3 x + y = 1 −4 x + y = 15 { 3 x + y = 1 −4 x + y = 15

86.

{ x + y = 0 2 x + 3 y = −4 { x + y = 0 2 x + 3 y = −4

87.

{ x + 3 y = 1 3 x + 5 y = −5 { x + 3 y = 1 3 x + 5 y = −5

88.

{ x + 2 y = −1 2 x + 3 y = 1 { x + 2 y = −1 2 x + 3 y = 1

89.

{ 2 x + y = 5 x 2 y = −15 { 2 x + y = 5 x 2 y = −15

90.

{ 4 x + y = 10 x 2 y = −20 { 4 x + y = 10 x 2 y = −20

91.

{ y = −2 x 1 y = 1 3 x + 4 { y = −2 x 1 y = 1 3 x + 4

92.

{ y = x 6 y = 3 2 x + 4 { y = x 6 y = 3 2 x + 4

93.

{ y = 2 x 8 y = 3 5 x + 6 { y = 2 x 8 y = 3 5 x + 6

94.

{ y = x 1 y = x + 7 { y = x 1 y = x + 7

95.

{ 4 x + 2 y = 8 8 x y = 1 { 4 x + 2 y = 8 8 x y = 1

96.

{ x 12 y = −1 2 x 8 y = −6 { x 12 y = −1 2 x 8 y = −6

97.

{ 15 x + 2 y = 6 −5 x + 2 y = −4 { 15 x + 2 y = 6 −5 x + 2 y = −4

98.

{ 2 x 15 y = 7 12 x + 2 y = −4 { 2 x 15 y = 7 12 x + 2 y = −4

99.

{ y = 3 x 6 x 2 y = 0 { y = 3 x 6 x 2 y = 0

100.

{ x = 2 y 4 x 8 y = 0 { x = 2 y 4 x 8 y = 0

101.

{ 2 x + 16 y = 8 x 8 y = −4 { 2 x + 16 y = 8 x 8 y = −4

102.

{ 15 x + 4 y = 6 −30 x 8 y = −12 { 15 x + 4 y = 6 −30 x 8 y = −12

103.

{ y = −4 x 4 x + y = 1 { y = −4 x 4 x + y = 1

104.

{ y = 1 4 x x + 4 y = 8 { y = 1 4 x x + 4 y = 8

105.

{ y = 7 8 x + 4 −7 x + 8 y = 6 { y = 7 8 x + 4 −7 x + 8 y = 6

106.

{ y = 2 3 x + 5 2 x + 3 y = 11 { y = 2 3 x + 5 2 x + 3 y = 11

Solve Applications of Systems of Equations by Substitution

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

107.

The sum of two numbers is 15. One number is 3 less than the other. Find the numbers.

108.

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

109.

The sum of two numbers is −26. One number is 12 less than the other. Find the numbers.

110.

The perimeter of a rectangle is 50. The length is 5 more than the width. Find the length and width.

111.

The perimeter of a rectangle is 60. The length is 10 more than the width. Find the length and width.

112.

The perimeter of a rectangle is 58. The length is 5 more than three times the width. Find the length and width.

113.

The perimeter of a rectangle is 84. The length is 10 more than three times the width. Find the length and width.

114.

The measure of one of the small angles of a right triangle is 14 more than 3 times the measure of the other small angle. Find the measure of both angles.

115.

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.

116.

The measure of one of the small angles of a right triangle is 15 less than twice the measure of the other small angle. Find the measure of both angles.

117.

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.

118.

Maxim has been offered positions by two car dealers. The first company pays a salary of $10,000 plus a commission of $1,000 for each car sold. The second pays a salary of $20,000 plus a commission of $500 for each car sold. How many cars would need to be sold to make the total pay the same?

119.

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?

120.

Amara currently sells televisions for company A at a salary of $17,000 plus a $100 commission for each television she sells. Company B offers her a position with a salary of $29,000 plus a $20 commission for each television she sells. How televisions would Amara need to sell for the options to be equal?

121.

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?

Everyday Math

122.

When Gloria spent 15 minutes on the elliptical trainer and then did circuit training for 30 minutes, her fitness app says she burned 435 calories. When she spent 30 minutes on the elliptical trainer and 40 minutes circuit training she burned 690 calories. Solve the system {15e+30c=43530e+40c=690{15e+30c=43530e+40c=690 for ee, the number of calories she burns for each minute on the elliptical trainer, and cc, the number of calories she burns for each minute of circuit training.

123.

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 {56s=70ts=t+12{56s=70ts=t+12.

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

Writing Exercises

124.

Solve the system of equations
{x+y=10xy=6{x+y=10xy=6

by graphing.
by substitution.
Which method do you prefer? Why?

125.

Solve the system of equations
{3x+y=12x=y8{3x+y=12x=y8 by substitution and explain all your steps in words.

Self Check

After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.

This figure shows a table with three rows and four columns. The columns are labeled, “I can…,” “Confidently.” “With some help.” and “No - I don’t get it.” The only column with filled in cells below it is labeled “I can…” It reads, “solve a system of equations by substitution.” “solve applications of systems of equations by substitution.”

After reviewing this checklist, what will you do to become confident for all objectives?

Citation/Attribution

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:
    Access for free at https://openstax.org/books/elementary-algebra/pages/1-introduction
  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:
    Access for free at https://openstax.org/books/elementary-algebra/pages/1-introduction
Citation information

© Feb 9, 2022 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.