We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Study Guides > MTH 163, Precalculus

Solving Systems of Equations by Substitution

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.

  1. Solve one of the two equations for one of the variables in terms of the other.
  2. Substitute the expression for this variable into the second equation, then solve for the remaining variable.
  3. 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.
  4. 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.
[latex]\begin{array}{l}\text{ }-x+y=-5\hfill \\ \text{ }2x - 5y=1\hfill \end{array}[/latex]

Solution

First, we will solve the first equation for [latex]y[/latex].
[latex]\begin{array}{l}-x+y=-5\hfill \\ \text{ }y=x - 5\hfill \end{array}[/latex]
Now we can substitute the expression [latex]x - 5[/latex] for [latex]y[/latex] in the second equation.
[latex]\begin{array}{l}\text{ }2x - 5y=1\hfill \\ 2x - 5\left(x - 5\right)=1\hfill \\ \text{ }2x - 5x+25=1\hfill \\ \text{ }-3x=-24\hfill \\ \text{ }x=8\hfill \end{array}[/latex]
Now, we substitute [latex]x=8[/latex] into the first equation and solve for [latex]y[/latex].
[latex]\begin{array}{l}-\left(8\right)+y=-5\hfill \\ \text{ }y=3\hfill \end{array}[/latex]
Our solution is [latex]\left(8,3\right)[/latex]. Check the solution by substituting [latex]\left(8,3\right)[/latex] into both equations.
[latex]\begin{array}{llll}-x+y=-5\hfill & \hfill & \hfill & \hfill \\ -\left(8\right)+\left(3\right)=-5\hfill & \hfill & \hfill & \text{True}\hfill \\ 2x - 5y=1\hfill & \hfill & \hfill & \hfill \\ 2\left(8\right)-5\left(3\right)=1\hfill & \hfill & \hfill & \text{True}\hfill \end{array}[/latex]

Try It 3

Solve the following system of equations by substitution.
[latex]\begin{array}{l}x=y+3\hfill \\ 4=3x - 2y\hfill \end{array}[/latex]
Solution

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.

Licenses & Attributions

CC licensed content, Specific attribution