Solve Systems of Equations with Three Variables

By the end of this section, you will be able to:

Before you get started, take this readiness quiz.

  1. Evaluate 5x2y+3z

    when

    x=−2, y=−4,

    and

    z=3.

    If you missed this problem, review [link].

  2. Classify the equations as a conditional equation, an identity, or a contradiction and then state the solution. {2x+y=−11x+3y=9.

    If you missed this problem, review [link].

  3. Classify the equations as a conditional equation, an identity, or a contradiction and then state the solution. {7x+8y=43x5y=27.

    If you missed this problem, review [link].

Determine Whether an Ordered Triple is a Solution of a System of Three Linear Equations with Three Variables

In this section, we will extend our work of solving a system of linear equations. So far we have worked with systems of equations with two equations and two variables. Now we will work with systems of three equations with three variables. But first let's review what we already know about solving equations and systems involving up to two variables.

We learned earlier that the graph of a linear equation, ax+by=c,

is a line. Each point on the line, an ordered pair (x,y),

is a solution to the equation. For a system of two equations with two variables, we graph two lines. Then we can see that all the points that are solutions to each equation form a line. And, by finding what the lines have in common, we’ll find the solution to the system.

Most linear equations in one variable have one solution, but we saw that some equations, called contradictions, have no solutions and for other equations, called identities, all numbers are solutions

We know when we solve a system of two linear equations represented by a graph of two lines in the same plane, there are three possible cases, as shown.

Figure shows three graphs. In the first one, two lines intersect. Intersecting lines have one point in common. There is one solution to this system. The graph is labeled Consistent Independent. In the second graph, two lines are parallel. Parallel lines have no points in common. There is no solution to this system. The graph is labeled inconsistent. In the third graph, there is just one line. Both equations give the same line. Because we have just one line, there are infinitely many solutions. It is labeled consistent dependent. Similarly, for a linear equation with three variables ax+by+cz=d,

every solution to the equation is an ordered triple, (x,y,z)

that makes the equation true.

Linear Equation in Three Variables

A linear equation with three variables, where a, b, c, and d are real numbers and a, b, and c are not all 0, is of the form

ax+by+cz=d

Every solution to the equation is an ordered triple, (x,y,z)

that makes the equation true.

All the points that are solutions to one equation form a plane in three-dimensional space. And, by finding what the planes have in common, we’ll find the solution to the system.

When we solve a system of three linear equations represented by a graph of three planes in space, there are three possible cases.

Eight figures are shown. The first one shows three intersecting planes with one point in common. It is labeled Consistent system and Independent equations. The second figure has three parallel planes with no points in common. It is labeled Inconsistent system. In the third figure two planes are coincident and parallel to the third plane. The planes have no points in common. In the fourth figure, two planes are parallel and each intersects the third plane. The planes have no points in common. In the fifth figure, each plane intersects the other two, but all three share no points. The planes have no points in common. In the sixth figure, three planes intersect in one line. There is just one line, so there are infinitely many solutions. In the seventh figure, two planes are coincident and intersect the third plane in a line. There is just one line, so there are infinitely many solutions. In the last figure, three planes are coincident. There is just one plane, so there are infinitely many solutions. . . . . . . . To solve a system of three linear equations, we want to find the values of the variables that are solutions to all three equations. In other words, we are looking for the ordered triple (x,y,z)

that makes all three equations true. These are called the solutions of the system of three linear equations with three variables.

Solutions of a System of Linear Equations with Three Variables

Solutions of a system of equations are the values of the variables that make all the equations true. A solution is represented by an ordered triple (x,y,z).

To determine if an ordered triple is a solution to a system of three equations, we substitute the values of the variables into each equation. If the ordered triple makes all three equations true, it is a solution to the system.

Determine whether the ordered triple is a solution to the system: {xy+z=22xyz=−62x+2y+z=−3.

(−2,−1,3)

(−4,−3,4)

* * *

The equations are x minus y plus z equals 2, 2x minus y minus z equals minus 6 and 2x plus 2y plus z equals minus 3. Substituting minus 2 for x, minus 1 for y and 3 for z into all three equations, we find that all three hold true. Hence, minus 2, minus 1, 3 is a solution. * * *

The equations are x minus y plus z equals 2, 2x minus y minus z equals minus 6 and 2x plus 2y plus z equals minus 3. Substituting minus minus 4 for x, minus 3 for y and 4 for z into all three equations, we find that all three hold true. Hence, minus 4, minus 3, 4 is not a solution.

Determine whether the ordered triple is a solution to the system: {3x+y+z=2x+2y+z=−33x+y+2z=4.

(1,−3,2)

(4,−1,−5)

yes no

Determine whether the ordered triple is a solution to the system: {x3y+z=−53xyz=12x2y+3z=1.

(2,−2,3)

(−2,2,3)

no yes

Solve a System of Linear Equations with Three Variables

To solve a system of linear equations with three variables, we basically use the same techniques we used with systems that had two variables. We start with two pairs of equations and in each pair we eliminate the same variable. This will then give us a system of equations with only two variables and then we know how to solve that system!

Next, we use the values of the two variables we just found to go back to the original equation and find the third variable. We write our answer as an ordered triple and then check our results.

How to Solve a System of Equations With Three Variables by Elimination

Solve the system by elimination: {x2y+z=32x+y+z=43x+4y+3z=−1.

![The equations are x minus 2y plus z equals 3, 2x plus y plus z equals 4 and 3x plus 4y plus 3z equals minus 1. Step 1 is to write the equations in standard form. They are. If any coefficients are fractions, clear them. There are none.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_04_005a_img.jpg) ![Step 2 is to eliminate the same variable from two equations. Decide which variable you will eliminate. We can eliminate the y’s from equations 1 and 2 by multiplying equation 2 by 2. Work with a pair of equations to eliminate the chosen variable. Multiply one or both equations so that the coefficients of that variable are opposites. Add the equations resulting from Step 2 to eliminate one variable. The new equation we get is 5x plus 3z equals 11.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_04_005b_img.jpg) ![Step 3 is to repeat step 2 using two other equations and eliminate the same variable as in step 2. We can again eliminate the y’s using the equations 1, 3 by multiplying equation 1 by 2. Add the new equations and the result will be 5x plus 5z equals 5.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_04_005c_img.jpg) ![Step 4. The two new equations form a system of two equations with two variables. Solve this system. Eliminating x, we get z equal to minus 3. Substituting this in one of the new equations, we get x equal to 4.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_04_005d_img.jpg) ![Step 5 is to use the values of the two variables found in step 4 to find the third variable. Substituting values of x and z in one of the original equations, we get y equal to minus 1.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_04_005e_img.jpg) ![Step 6 is to write the solution as an ordered triple 4, minus 1, minus 3.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_04_005f_img.jpg) ![Step 7 is to check that the ordered triple is a solution to all three original equations. It makes all three equations true.](/algebra-intermediate-book/resources/CNX_IntAlg_Figure_04_04_005g_img.jpg)

Solve the system by elimination: {3x+yz=22x3y2z=14xy3z=0.

(2,−1,3)

Solve the system by elimination: {4x+y+z=−12x2y+z=22x+3yz=1.

(−2,3,4)

The steps are summarized here.

Solve a system of linear equations with three variables.
  1. Write the equations in standard form
    • If any coefficients are fractions, clear them.
  2. Eliminate the same variable from two equations.
    • Decide which variable you will eliminate.
    • Work with a pair of equations to eliminate the chosen variable.
    • Multiply one or both equations so that the coefficients of that variable are opposites.
    • Add the equations resulting from Step 2 to eliminate one variable
  3. Repeat Step 2 using two other equations and eliminate the same variable as in Step 2.
  4. The two new equations form a system of two equations with two variables. Solve this system.
  5. Use the values of the two variables found in Step 4 to find the third variable.
  6. Write the solution as an ordered triple.
  7. Check that the ordered triple is a solution to all three original equations.

Solve: {3x4z=03y+2z=−32x+3y=−5.

{3x4z=0(1)3y+2z=−3(2)2x+3y=−5(3)

We can eliminate z

from equations (1) and (2) by multiplying equation (2) by 2 and then adding the resulting equations.

The equations are 3 x minus 4 equals 0, 3y plus 2 z equals minus 3 and 2 x plus 3 y equals minus 5. Multiply equation 2 by 2 and add to equation 1. We get 3 x plus 6 y equals minus 6. Notice that equations (3) and (4) both have the variables x

and y

. We will solve this new system for x

and y

.

Multiply equation 3 by minus 2 and add that to equation 4. We get x equal to minus 4. To solve for y, we substitute x=−4

into equation (3).

Substitute minus 4 into equation 3 and solve for y. We get y equal to 1. We now have x=−4

and y=1.

We need to solve for z. We can substitute x=−4

into equation (1) to find z.

Substituting minus 4 into equation 1 for x, we get z equal to minus 3. We write the solution as an ordered triple. (−4,1,−3)

We check that the solution makes all three equations true.

3x4z=0(1)3(−4)4(−3)=?00=0 3y+2z=−3(2)3(1)+2(−3)=?3−3=−3 2x+3y=−5(3)2(−4)+3(1)=?5−5=−5The solution is(−4,1,−3).

Solve: {3x4z=−12y+3z=22x+3y=6.

(−3,4,−2)

Solve: {4x3z=−53y+2z=73x+4y=6.

(−2,3,−1)

When we solve a system and end up with no variables and a false statement, we know there are no solutions and that the system is inconsistent. The next example shows a system of equations that is inconsistent.

Solve the system of equations: {x+2y3z=−1x3y+z=12xy2z=2.

{x+2y3z=−1(1)x3y+z=1(2)2xy2z=2(3)

Use equation (1) and (2) to eliminate z.

The equations are x plus 2y minus 3z equals minus 1, x minus 3y plus z equals 1 and 2x minus y minus 2z equals 2. Use (2) and (3) to eliminate z

again.

Multiplying equation 2 by 3 and adding it to equation 1, we get equation 4, 4x minus 7y equals 2. Multiplying equation 2 by 2 and adding it to equation 3, we get equation 5, 4x minus 7y equals 4. Use (4) and (5) to eliminate a variable.

Equations 4 and 5 both have 2 variables. Multiply equation 5 by minus 1 and add it to equation 4. We get 0 equal to minus 2, which is false. There is no solution.

We are left with a false statement and this tells us the system is inconsistent and has no solution.

Solve the system of equations: {x+2y+6z=5x+y2z=3x4y2z=1.

no solution

Solve the system of equations: {2x2y+3z=64x3y+2z=02x+3y7z=1.

no solution

When we solve a system and end up with no variables but a true statement, we know there are infinitely many solutions. The system is consistent with dependent equations. Our solution will show how two of the variables depend on the third.

Solve the system of equations: {x+2yz=12x+7y+4z=11x+3y+z=4.

{x+2yz=1(1)2x+7y+4z=11(2)x+3y+z=4(3)

Use equation (1) and (3) to eliminate x.

The equations are x plus 2y minus z equals 1, 2x plus 7y plus 4z equals 11 and x plus 3y plus z equals 4. Multiply equation 1 with minus 1 and add it to equation 3. We get equation 4, y plus 2z equals 3. Use equation (1) and (2) to eliminate x again.

Multiply equation 1 with minus 2 and add it to equation 2. We get equation 5, 3y plus 6z equals 9. Use equation (4) and (5) to eliminate y

.

Multiply equation 4 with minus 3 and add it to equation 5. We get 0 equal to 0. There are infinite many solutions. Solving equation 4 for y, we get y equal to minus 2z plus 3. Substituting this into equation 1, we get x equal to 5z minus 5. The true statement 0 equal to 0 tells us that this is a dependent system that has infinitely many solutions. The solutions are of the form x, y, z where x is 5z minus 5, y is minus 2z plus 3 and z is any real number.

There are infinitely many solutions.
Solve equation (4) for y. Represent the solution showing how x and y are dependent on z.
y+2z=3y=−2z+3
Use equation (1) to solve for x. x+2yz=1
Substitute y=−2z+3. x+2(−2z+3)z=1x4z+6z=1x5z+6=1x=5z5

The true statement 0=0

tells us that this is a dependent system that has infinitely many solutions. The solutions are of the form (x,y,z)

where x=5z5;y=−2z+3

and z is any real number.

Solve the system by equations: {x+yz=02x+4y2z=63x+6y3z=9.

infinitely many solutions(x,3,z)

where x=z3;y=3;z

is any real number

Solve the system by equations: {xyz=1x+2y3z=−43x2y7z=0.

infinitely many solutions (x,y,z)

wherex=5z2;y=4z3;z

is any real number

Solve Applications using Systems of Linear Equations with Three Variables

Applications that are modeled by a systems of equations can be solved using the same techniques we used to solve the systems. Many of the application are just extensions to three variables of the types we have solved earlier.

The community college theater department sold three kinds of tickets to its latest play production. The adult tickets sold for $15, the student tickets for $10 and the child tickets for $8. The theater department was thrilled to have sold 250 tickets and brought in $2,825 in one night. The number of student tickets sold is twice the number of adult tickets sold. How many of each type did the department sell?

We will use a chart to organize the information. .
Number of students is twice number of adults.
Rewrite the equation in standard form. y=2x2xy=0
.
Use equations (1) and (2) to eliminate z.
.
Use (3) and (4) to eliminate y.
.
Solve for x. x=75 adult tickets
Use equation (3) to find y. −2x+y=0
Substitute x=75. −2(75)+y=0−150+y=0y=150student tickets
Use equation (1) to find z. x+y+z=250
Substitute in the values
x=75,y=150.

75+150+z=250225+z=250z=25child tickets
Write the solution. The theater department sold 75 adult tickets,
150 student tickets, and 25 child tickets.

The community college fine arts department sold three kinds of tickets to its latest dance presentation. The adult tickets sold for $20, the student tickets for $12 and the child tickets for $10.The fine arts department was thrilled to have sold 350 tickets and brought in $4,650 in one night. The number of child tickets sold is the same as the number of adult tickets sold. How many of each type did the department sell?

The fine arts department sold 75 adult tickets, 200 student tickets, and 75 child tickets.

The community college soccer team sold three kinds of tickets to its latest game. The adult tickets sold for $10, the student tickets for $8 and the child tickets for $5. The soccer team was thrilled to have sold 600 tickets and brought in $4,900 for one game. The number of adult tickets is twice the number of child tickets. How many of each type did the soccer team sell?

The soccer team sold 200 adult tickets, 300 student tickets, and 100 child tickets.

Access this online resource for additional instruction and practice with solving a linear system in three variables with no or infinite solutions.

Key Concepts


Every solution to the equation is an ordered triple,

(x,y,z)

that makes the equation true.

Practice Makes Perfect

Determine Whether an Ordered Triple is a Solution of a System of Three Linear Equations with Three Variables

In the following exercises, determine whether the ordered triple is a solution to the system.

{2x6y+z=33x4y3z=22x+3y2z=3

(3,1,3)


(4,3,7)

{3x+y+z=−4x+2y2z=12xyz=−1

(−5,−7,4)


(5,7,4)

no yes

{y10z=−82xy=2x5z=3

(7,12,2)


(2,2,1)

{x+3yz=15y=23x2x3y+z=−2

(−6,5,12)


(5,43,−3)

no yes

Solve a System of Linear Equations with Three Variables

In the following exercises, solve the system of equations.

{5x+2y+z=53xy+2z=62x+3y3z=5
{6x5y+2z=32x+y4z=53x3y+z=−1
(4,5,2)
{2x5y+3z=83xy+4z=7x+3y+2z=−3
{5x3y+2z=−52xyz=43x2y+2z=−7
(7,12,−2)
{3x5y+4z=55x+2y+z=02x+3y2z=3
{4x3y+z=72x5y4z=33x2y2z=−7
(−3,−5,4)
{3x+8y+2z=−52x+5y3z=0x+2y2z=−1
{11x+9y+2z=−97x+5y+3z=−74x+3y+z=−3
(2,−3,−2)
{13xyz=1x+52y+z=−22x+2y+12z=−4
{x+12y+12z=015x15y+z=013x13y+2z=−1
(6,−9,−3)
{x+13y2z=−113x+y+12z=012x+13y12z=−1
{13xy+12z=423x+52y4z=0x12y+32z=2
(3,−4,−2)
{x+2z=04y+3z=−22x5y=3
{2x+5y=43yz=34x+3z=−3
(−3,2,3)
{2y+3z=−15x+3y=−67x+z=1
{3xz=−35y+2z=−64x+3y=−8
(−2,0,−3)
{4x3y+2z=02x+3y7z=12x2y+3z=6
{x2y+2z=12x+yz=2xy+z=5

no solution

{2x+3y+z=12x+y+z=93x+4y+2z=20
{x+4y+z=−84xy+3z=92x+7y+z=0

no solution

{x+2y+z=4x+y2z=32x3y+z=−7
{x+y2z=32x3y+z=−7x+2y+z=4
(x,y,z)

where x=5z+2;y=−3z+1;z

is any real number

{x+y3z=−1yz=0x+2y=1
{x2y+3z=1x+y3z=73x4y+5z=7
(x,y,z)

where x=5z2;y=4z3;z

is any real number

Solve Applications using Systems of Linear Equations with Three Variables

In the following exercises, solve the given problem.

The sum of the measures of the angles of a triangle is 180. The sum of the measures of the second and third angles is twice the measure if the first angle. The third angle is twelve more than the second. Find the measures of the three angles.

The sum of the measures of the angles of a triangle is 180. The sum of the measures of the second and third angles is three the measure if the first angle. The third angle is fifteen more than the second. Find the measures of the three angles.

42, 50, 58

After watching a major musical production at the theater, the patrons can purchase souvenirs. If a family purchases 4 t-shirts, the video and 1 stuffed animal their total is $135.

A couple buys 2 t-shirts, the video and 3 stuffed animal for their nieces and spends $115. Another couple buys 2 t-shirts, the video and 1 stuffed animal and their total is $85. What is the cost of each item?

The church youth group is selling snacks to raise money to attend their convention. Amy sold 2 pounds of candy, 3 boxes of cookies and 1 can of popcorn for a total sales of $65. Brian sold 4 pounds of candy, 6 boxes of cookies and 3 cans of popcorn for a total sales of $140. Paulina sold 8 pounds of candy, 8 boxes of cookies and 5 can of popcorn for a total sales of $250. What is the cost of each item?

20, 5, 10

Writing Exercises

In your own words explain the steps to solve a system of linear equations with three variables by elimination.

How can you tell when a system of three linear equations with three variables has no solution? Infinitely many solutions?

Answers will vary.

Self Check

After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.

This table has 4 columns, 3 rows and a header row. The header row labels each column I can, confidently, with some help and no, I don’t get it. The first row contains the following statements: determine whether an ordered triple is a solution of a system of three linear equations with three variables, solve a system of linear equations with three variables, solve applications using systems of linear equations with three variables. The remaining columns are blank. On a scale of 1-10, how would you rate your mastery of this section in light of your responses on the checklist? How can you improve this?

Glossary

solutions of a system of linear equations with three variables
The solutions of a system of equations are the values of the variables that make all the equations true; a solution is represented by an ordered triple (x,y,z).

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

You can also download for free at http://cnx.org/contents/02776133-d49d-49cb-bfaa-67c7f61b25a1@4.13

Attribution: