How to solve systems of linear equations with 3 variables

If there are #3# variables, then there must be #3# equations.

Lets say #A, B, C# are our equations and #x, y, z# are the variables.

You will follow these three steps:

  • By using #C#, write #z# in terms of #x# and #y#

  • Replace #z# with its equivalent in #B# . Then write #y# in terms of #x#

  • In #A#, replace #y# with its equivalent and replace #z# with its equivalent (if its equivalent involves #y#, replace #y#) then solve #A# for #x#.

Now you should know the value of #x#. You should have written #y# in terms of #x# so plug #x# and you will find #y#.

Finally, you should have written #z# in terms of #x# and #y# so you can find the value of #z#.

Example

#A: x+y+z=10#

#B: 2x+y+z=12#

#C: 3x+2y+z=17#

Lets find #x, y, z#

We are writing #z# in terms of #x# and #y# by using #C#, and I will call this equation as #1'#

#z=17-3x-2y#

Now we are plugging #1'# to #B#

#2x+y+(17-3x-2y)=12#
#-x-y=-5#

So we can write #y# in terms of #x#. I will call this equation as #2'#

#y=5-x#

Now we are plugging #1'# and #2'# to #A#. (We also replaced #y# in #1'# by using #2'#)

#x+(5-x) +(17-3x-2(5-x))=10#

#5+17-3x-10+2x=10#

#-x=-2->x=2#

Now we know the value of #x#. So:

By using #2'#, #y=3#

By using #1'#, #z=17-3*2-2*(3) = 5#

So #x=2, y=3, z=5#

Systems of equations with three variables are only slightly more complicated to solve than those with two variables. The two most straightforward methods of solving these types of equations are by elimination and by using 3 × 3 matrices.

To use elimination to solve a system of three equations with three variables, follow this procedure:

  1. Write all the equations in standard form cleared of decimals or fractions.
  2. Choose a variable to eliminate; then choose any two of the three equations and eliminate the chosen variable.
  3. Select a different set of two equations and eliminate the same variable as in Step 2.
  4. Solve the two equations from steps 2 and 3 for the two variables they contain.
  5. Substitute the answers from Step 4 into any equation involving the remaining variable.
  6. Check the solution with all three original equations.

Example 1

Solve this system of equations using elimination.

How to solve systems of linear equations with 3 variables

All the equations are already in the required form.

Choose a variable to eliminate, say x, and select two equations with which to eliminate it, say equations (1) and (2). 

How to solve systems of linear equations with 3 variables

Select a different set of two equations, say equations (2) and (3), and eliminate the same variable.

How to solve systems of linear equations with 3 variables

Solve the system created by equations (4) and (5).

How to solve systems of linear equations with 3 variables

Now, substitute z = 3 into equation (4) to find y. 

How to solve systems of linear equations with 3 variables

Use the answers from Step 4 and substitute into any equation involving the remaining variable.

Using equation (2),

How to solve systems of linear equations with 3 variables

Check the solution in all three original equations.

How to solve systems of linear equations with 3 variables

How to solve systems of linear equations with 3 variables

How to solve systems of linear equations with 3 variables

The solution is x = –1, y = 2, z = 3. 

Example 2

Solve this system of equations using the elimination method.

How to solve systems of linear equations with 3 variables

Write all equations in standard form.

How to solve systems of linear equations with 3 variables

Notice that equation (1) already has the y eliminated. Therefore, use equations (2) and (3) to eliminate y. Then use this result, together with equation (1), to solve for x and z. Use these results and substitute into either equation (2) or (3) to find y. 

How to solve systems of linear equations with 3 variables

How to solve systems of linear equations with 3 variables

Substitute z = 3 into equation (1). 

How to solve systems of linear equations with 3 variables

Substitute x = 4 and z = 3 into equation (2). 

How to solve systems of linear equations with 3 variables

Use the original equations to check the solution (the check is left to you).

The solution is x = 4, y = –2, z = 3.