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

$\begin{array}{l}\text{ }-x+y=-5\hfill \\ \text{ }2x - 5y=1\hfill \end{array}$

### Solution

First, we will solve the first equation for $y$.

$\begin{array}{l}-x+y=-5\hfill \\ \text{ }y=x - 5\hfill \end{array}$

Now we can substitute the expression $x - 5$ for $y$ in the second equation.

$\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}$

Now, we substitute $x=8$ into the first equation and solve for $y$.

$\begin{array}{l}-\left(8\right)+y=-5\hfill \\ \text{ }y=3\hfill \end{array}$

Our solution is $\left(8,3\right)$.

Check the solution by substituting $\left(8,3\right)$ into both equations.

$\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}$

### Try It 3

Solve the following system of equations by substitution.

$\begin{array}{l}x=y+3\hfill \\ 4=3x - 2y\hfill \end{array}$

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