Solving 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 and both between and , 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.
We will first solve one of the equations for either or . 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 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. Solve the system by substitution: .
| Step | What to do | Result |
|---|---|---|
| 1. Solve one of the equations for either variable. | We’ll solve the first equation for . | becomes |
| 2. Substitute the expression from Step 1 into the other equation. | Replace in the second equation with . | |
| 3. Solve the resulting equation. | Now we have an equation with just one variable. | , so , so |
| 4. Substitute the solution in Step 3 into one of the original equations to find the other variable. | We’ll use the first equation and replace with . | , so , so |
| 5. Write the solution as an ordered pair. | The ordered pair is . | |
| 6. Check that the ordered pair is a solution to both original equations. | Substitute into both equations. |
Both equations are true, so is the solution to the system.
Solve the system by substitution: and .
Solve the first equation for y, then substitute that expression for y in the second equation.How to 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 already given in slope-intercept form, Step 1 is done for us.
Example. Solve the system by substitution: .
The second equation is already solved for , so we substitute the expression in place of in the first equation: , so , so , and . Substitute into to find : . The ordered pair is .
Check: let and . Then , so ; and , so . Both equations are true, so is the solution to the system.
Solve the system by substitution: and .
The second equation is already solved for y — substitute for y in the first equation.If the equations are given in standard form, we’ll need to start by solving for one of the variables.
Example. Solve the system by substitution: .
We need to solve one equation for one variable. Solving the first equation for gives . Substitute for in the second equation: , so , so , and . Substitute into to find : . The ordered pair is .
Check: let and . Then , so , and ; and , so , and . The solution is .
Solve the system by substitution: and .
Solve the first equation for y, then substitute that expression into the second equation.Sometimes it is easier to solve for rather than — look for a variable whose coefficient is .
Example. Solve the system by substitution: .
We will solve the first equation for and then substitute the expression into the second equation. Solving for gives . Substitute for in the second equation: , so , so , and . Substitute into to find : . The ordered pair is .
Check: let and . Then , so , and ; and , so , and . The solution is .
Solve the system by substitution: and .
Solve the first equation for x, since its coefficient is already 1.When both equations are already solved for the same variable, it is easy to substitute!
Example. Solve the system by substitution: .
Since both equations are solved for , we can substitute one into the other: . Clear the fraction by multiplying both sides by : , so , and . Substitute into to find : . The ordered pair is .
Check: let and . Then , and ; and , so , and . The solution is .
Solve the system by substitution: and .
Both equations are already solved for y — set the two expressions equal, clear the fraction, and solve for x.Be very careful with the signs in the next example.
Example. Solve the system by substitution: .
We need to solve one equation for one variable. Solving the first equation for gives , so . Substitute for in the second equation: , so , so , and . Substitute into to find : , so , so , and . The ordered pair is .
Check: let and . Substituting back into both original equations gives and . The solution is .
Solve the system by substitution: and .
Solve the first equation for x, substitute into the second, and be careful with the negative signs.Sometimes, when we solve the resulting equation, all the variable terms cancel out.
Example. Solve the system by substitution: .
We need to solve one equation for one variable. Solving the first equation for gives . Substitute this expression into the second equation: , so , so .
Since 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.
Solve the system by substitution: and . What kind of system is this?
Solve the first equation for x and substitute into the second. If the variable terms cancel out leaving a true numeric statement, the equations are dependent.Look back at the equations in the last example — is there any way to recognize that they are the same line? Let’s see what happens when the lines are parallel instead.
Example. Solve the system by substitution: .
The second equation is already solved for , so we substitute for in the first equation: , so , so .
Since is a false statement, the equations are inconsistent. The graphs of the two equations would be parallel lines. The system has no solution.
Solve the system by substitution: and . What kind of system is this?
Substitute the expression for y into the first equation. If the variable terms cancel out leaving a false numeric statement, the system has no solution.Solve Applications of Systems of Equations by Substitution
We’ll use the same problem-solving strategy we used for solving systems of equations by graphing. 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.
Example. The sum of two numbers is zero. One number is nine less than the other. Find the numbers.
Let be the first number and be the second number. The sum of the two numbers is zero, so . One number is nine less than the other, so . The system is .
We’ll solve by substitution, since the second equation is already solved for . Substitute for in the first equation: , so , so , and . Substitute into to find : .
The numbers are and .
The sum of two numbers is 10. One number is 4 less than the other. Find the numbers, entering the smaller number first, as an ordered pair (smaller, larger).
Let n and m be the two numbers: and . Substitute and solve for m first.Example. The perimeter of a rectangle is . The length is five more than twice the width. Find the length and the width.
Let be the length and be the width. The perimeter of a rectangle is , so . The length is five more than twice the width, so . The system is .
Substitute for in the first equation: , so , so , so , and . Substitute into to find : .
Does a rectangle with length and width have perimeter ? Yes. The length is and the width is .
The perimeter of a rectangle is 40. The length is 4 more than the width. Find the length and width as an ordered pair (length, width).
Let L be the length and W the width: and .Example. 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.
Let be the measure of the first angle and be the measure of the second angle. One small angle is ten more than three times the other, so . The sum of the measures of the angles of a triangle is , and one angle of a right triangle already measures , so . The system is .
Substitute for in the second equation: , so , so , and . Substitute into to find : .
The measures of the small angles are and .
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 measures of both angles as an ordered pair (smaller angle, larger angle).
Let and . Substitute and solve for b first.Example. Heather has been offered two options for her salary as a trainer at the gym. Option A would pay her plus for each training session. Option B would pay her plus for each training session. How many training sessions would make the salary options equal?
Let be Heather’s salary and be the number of training sessions. Option A gives . Option B gives . The system is .
Substitute for in the second equation: , so , so , and .
Are 600 training sessions a reasonable number, and are the two options equal when ? Yes. The salary options would be equal for training sessions.
Geraldine has been offered positions by two insurance companies. The first 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?
Let s = Geraldine's salary and n = the number of policies sold: and .Key terms
substitution method — solving one equation of a system for a variable, then replacing that variable with the resulting expression in the other equation so it becomes an equation in one variable. consistent, dependent system — a system whose equations, after substitution, reduce to a true numeric statement (like ); the two equations describe the same line and the system has infinitely many solutions. inconsistent system — a system whose equations, after substitution, reduce to a false numeric statement (like ); the two equations describe parallel lines and the system has no solution.
This section is adapted from Elementary Algebra 2e, Section 5.2: Solving Systems of Equations by Substitution by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recast the first worked example’s step-by-step breakdown as a markdown table and condensed the remaining worked examples into prose with inline checks; omitted the Be Prepared quiz, Self Check checklist, media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback — including turning the dependent/inconsistent-system Try Its into a multiple-choice classification, since the math checker cannot reliably grade a bare true/false numeric statement as an answer.