Solving a linear system in two variables by graphing works well when the solution consists of integer values, but if our solution contains decimals or fractions, it is not the most precise method. We will consider two more methods of solving a **system of linear equations** that are more precise than graphing. One such method is solving a system of equations by the **substitution method**, in which we solve one of the equations for one variable and then substitute the result into the second equation to solve for the second variable. Recall that we can solve for only one variable at a time, which is the reason the substitution method is both valuable and practical.

### How To: Given a system of two equations in two variables, solve using the substitution method.

- Solve one of the two equations for one of the variables in terms of the other.
- Substitute the expression for this variable into the second equation, then solve for the remaining variable.
- Substitute that solution into either of the original equations to find the value of the first variable. If possible, write the solution as an ordered pair.
- Check the solution in both equations.

### Example 3: Solving a System of Equations in Two Variables by Substitution

Solve the following system of equations by substitution.

### Solution

First, we will solve the first equation for [latex]y[/latex].

Now we can substitute the expression [latex]x - 5[/latex] for [latex]y[/latex] in the second equation.

Now, we substitute [latex]x=8[/latex] into the first equation and solve for [latex]y[/latex].

Our solution is [latex]\left(8,3\right)[/latex].

Check the solution by substituting [latex]\left(8,3\right)[/latex] into both equations.

### Try It 3

Solve the following system of equations by substitution.

### Q & A

### Can the substitution method be used to solve any linear system in two variables?

*Yes, but the method works best if one of the equations contains a coefficient of 1 or –1 so that we do not have to deal with fractions.*