When first introduced to systems of equations, you probably learned to solve a system of two-variable equations by graphing. But solving equations with three variables or more requires a new set of tricks, namely the techniques of elimination or substitution.

## An Example System of Equations

Consider this system of three, three-variable equations:

Equation #1:

Equation #2:

Equation #3:

## Solving by Elimination

Look for places where adding any two equations together will make at least one of the variables cancel itself out.

## Choose Two Equations and Combine

## Repeat Step 1 With Another Set of Equations

## Eliminate Another Variable

## Substitute the Value Back In

## Combine Two Equations

## Substitute the Value In

Choose any two of the equations and combine them to eliminate one of the variables. In this example, adding Equation #1 and Equation #2 will cancel out the *y* variable, leaving you with the following new equation:

New Equation #1:

Repeat Step 1, this time combining a *different* set of two equations but eliminating the *same* variable. Consider Equation #2 and Equation #3:

Equation #2:

Equation #3:

In this case the *y* variable doesn't immediately cancel itself out. So before you add the two equations together, multiply both sides of Equation #2 by 2. This gives you:

Equation #2 (modified):

Equation #3:

Now the 2*y* terms will cancel each other out, giving you another new equation:

New Equation #2:

Combine the two new equations you created, with the goal of eliminating yet another variable:

New Equation #1:

New Equation #2:

No variables cancel themselves out just yet, so you'll have to modify both equations. Multiply both sides of the first new equation by 11, and multiply both sides of the second new equation by −2. This gives you:

New Equation #1 (modified):

New Equation #2 (modified):

Add both equations together and simplify, which gives you:

Now that you know the value of *x*, you can substitute it into the original equations. This gives you:

Substituted Equation #1:

Substituted Equation #2:

Substituted Equation #3:

Choose any two of the new equations and combine them to eliminate another one of the variables. In this case, adding Substituted Equation #1 and Substituted Equation #2 makes *y* cancel out nicely. After simplifying, you'll have:

Substitute the value from Step 5 into any one of the substituted equations, and then solve for the remaining variable, *y.* Consider Substituted Equation #3:

Substituted Equation #3:

Substituting in the value for *z* gives you 2*y* – 1 = 5, and solving for *y* brings you to:

So the solution for this system of equations is *x* = 2, *y* = 3 and *z* = 1.

## Solving by Substitution

You can also solve the same system of equations using another technique called substitution. Here's the example again:

Equation #1:

Equation #2:

Equation #3:

## Choose a Variable and Equation

## Substitute That Into Another Equation

## Simplify and Solve for Another Variable

## Substitute This Value

## Back-Substitute This Value

Pick any variable and solve any one equation for that variable. In this case, solving Equation #1 for *y* works out easily to:

Substitute the new value for *y* into the other equations. In this case, choose Equation #2. This gives you:

Equation #2: 5*x* - (10 - 2*x* - 3*z*) *-* 5z = 2

Equation #3: *x* + 2(10 - 2*x* - *3z*) - *z* = 7

Make your life easier by simplifying both equations:

Equation #2:

Equation #3:

Choose one of the remaining two equations and solve for another variable. In this case, choose Equation #2 and *z*. This gives you:

Substitute the value from Step 3 into the final equation, which is #3. This gives you:

Things get a little messy here but once you simplify, you'll be back to:

"Back-substitute" the value from Step 4 into the two-variable equation you created in Step 3:

This lets you solve for *z.* (In this case, *z* = 1).

Next, back-substitute both the *x* value and the *z* value into the first equation that you'd already solved for *y*. This gives you:

...and simplifying gives you the value *y* = 3.

## Always Check Your Work

Note that both methods of solving the system of equations brought you to the same solution: (*x* = 2, *y* = 3, *z* = 1). Check your work by substituting this value into each of the three equations.