Login
📚 Modeling, Functions, and Graphs
Chapters ▾

8.2 Systems of Linear Equations in Three Variables

Some problems involve three (or more) unknown quantities, and efficient techniques for solving linear systems in many variables are available. In this section, we solve systems of three linear equations in three variables.

3 × 3 Linear Systems

A solution to an equation in three variables, such as

x + 2 y 3 z = 4

is an ordered triple of numbers that satisfies the equation. For example, ( 0 , 2 , 0 ) and ( 1 , 0 , 1 ) are solutions to the equation above, but ( 1 , 1 , 1 ) is not. You can verify this by substituting the coordinates into the equation to see if a true statement results.

For  ( 0 , 2 , 0 ) : 0 + 2 ( 2 ) 3 ( 0 ) = 4 b l a n k True For  ( 1 , 0 , 1 ) : 1 + 2 ( 0 ) 3 ( 1 ) = 4 b l a n k True For  ( 1 , 1 , 1 ) : 1 + 2 ( 1 ) 3 ( 1 ) = 4 b l a n k Not true

As with the two-variable case, a single linear equation in three variables has infinitely many solutions.

An ordered triple ( x , y , z ) can be represented geometrically as a point in space using a three-dimensional Cartesian coordinate system, as shown below. In this coordinate system, the graph of a linear equation in three variables is a plane, and the fact that there are infinitely many solutions to the equation tells us that that there are infinitely many points in the corresponding plane.

point in 3D space

A solution to a system of three linear equations in three variables is an ordered triple that satisfies each equation in the system. That triple represents a point that must lie on all three graphs. The figure below shows the different ways in which three planes may intersect in space.

8 cases of how 3 planes can intersect
  • In figure (a), the three planes intersect in a single point, so the corresponding system of three equations has a unique solution.
  • In figures (b), (c), and (d), the intersection is either a line or an entire plane, so the corresponding system has infinitely many solutions. Such a system is called dependent.
  • In figures (e), (f), (g), and (h), the three planes have no common intersection, so the corresponding system has no solution. In this case, the system is said to be inconsistent.

It is impractical to solve 3 × 3 systems by graphing. Even when technology for producing three-dimensional graphs is available, we cannot read coordinates on such graphs with any confidence. Thus, we will restrict our attention to algebraic methods of solving such systems.

What is a solution to a 3x3 linear system?

_____

What is a solution to a 3x3 linear system?

Back-Substitution

When we review our algebraic methods for 2 × 2 systems—substitution and linear combinations—we find features common to both. In both methods, we obtain an equation in one variable. Once we have solved for that variable, we substitute the value into an earlier equation to find the other variable.

One strategy for solving a 3 × 3 system extends this idea to include a third variable and a third equation. The following special case illustrates the substitution part of the procedure.

The technique used in Example is called back-substitution. It works in the special case where one of the equations involves exactly one variable, and a second equation involves that same variable and just one other variable. A 3 × 3 linear system with these properties is said to be in triangular form. If we can transform a system into triangular form, we can use back-substitution to complete the solution.

Use back-substitution to solve the system

2 x + 2 y + z = 10 y 4 z = 9 3 z = 6

Solution: _____

Enter you solution as an ordered triple.

( 5 , 1 , 2 )

Use back-substitution to solve the system

2 x + 2 y + z = 10 y 4 z = 9 3 z = 6

( 5 , 1 , 2 )

What sort of system can be solved by back-substitution?

_____

A triangular system

What sort of system can be solved by back-substitution?

  1. Any linear system
  2. A triangular system
  3. A dependent system
  4. A complex system

Gaussian Reduction

We can use linear combinations to reduce a 3 × 3 system to triangular form and then use back-substitution to find the solutions. Our strategy will be to eliminate one of the variables from each of the three equations by considering them in pairs. This results in a 2 × 2 system that we can solve using elimination. As an example, consider the system

x + 2 y 3 z = 4 b l a n k b l a n k ( 1 ) 2 x y + z = 3 b l a n k b l a n k ( 2 ) 3 x + 2 y + z = 10 b l a n k b l a n k ( 3 )

  1. This system is already in standard form. We can choose any one of the three variables to eliminate first. For this example, we will eliminate x .
  2. Choose two of the equations, say (1) and (2), and use a linear combination: We multiply Equation (1) by 2 and add the result to Equation (2) to produce Equation (4).
    2 x 4 y + 6 z = 8 b l a n k 2 × ( 1 )
    2 x y + z = 3 ( 2 )
    5 y + 7 z = 11 ( 4 )
  3. Now we have an equation involving only two variables. But we need two equations in two unknowns to find the solution. So we choose a different pair of equations, say (1) and (3), and eliminate x again. We multiply Equation (1) by 3 and add the result to Equation (3) to obtain Equation (5).
    3 x 6 y + 9 z = 12 b l a n k 3 × ( 1 )
    3 x + 2 y + z = 10 ( 3 )
    4 y + 10 z = 22 ( 5 )
  4. We now form a 2 × 2 system with our new Equations (4) and (5).

    5 y + 7 z = 11 b l a n k b l a n k ( 4 ) 4 y + 10 z = 22 b l a n k b l a n k ( 5 )

    We eliminate either y or z to obtain an equation in a single variable. If we choose to eliminate y , we add 4 times Equation (4) to 5 times Equation (5) to obtain Equation (6).
    20 y + 28 z = 44 b l a n k 4 × ( 4 )
    20 y 50 z = 110 5 × ( 5 )
    22 z = 66 ( 6 )
  5. Now we can start solving for the variables. To keep things organized, we form a triangular system: Choose one of the original equations (in three variables), one of the equations from our 2 × 2 system, and our final equation in one variable. We choose Equations (1), (4), and (6).

    x + 2 y 3 z = 4 b l a n k b l a n k ( 1 ) 5 y + 7 z = 11 b l a n k b l a n k ( 4 ) 22 z = 66 b l a n k b l a n k ( 6 )


    This new system is in triangular form, and it has the same solutions as the original system. We complete the solution by back-substitution. Solve Equation (6) to find z = 3 . Substituting 3 for z in Equation (4), we find

    5 y + 7 ( 3 ) = 11 5 y + 21 = 11 5 y = 10 y = 2


    Finally, we substitute 3 for z and 2 for y into Equation (1) to find

    x + 2 ( 2 ) 3 ( 3 ) = 4 x + 4 9 = 4 x = 1

    The solution to the system is the ordered triple ( 1 , 2 , 3 ) . You can verify that this triple satisfies all three of the original equations.

After we eliminate one variable from a pair of equations, what is the next step?

_____

Eliminate the same variable from a different pair of equations.

After we eliminate one variable from a pair of equations, what is the next step?

  1. Eliminate a different variable from the same pair of equations.
  2. Eliminate the same variable from a different pair of equations.
  3. Eliminate a different variable from a different pair of equations.
  4. Substitute into the third equation.

The method described above for putting a linear system into triangular form is called Gaussian reduction, after the German mathematician Carl Gauss. We summarize our method for solving a 3 × 3 linear system as follows.

Use Gaussian reduction to solve the system

x 2 y + z = 1 b l a n k b l a n k ( 1 ) 2 3 x + 1 3 y z = 1 b l a n k b l a n k ( 2 ) 3 x + 3 y 2 z = 10 b l a n k b l a n k ( 3 )

Follow the steps suggested below:

  1. Clear the fractions from Equation (2). _____
  2. Eliminate z from Equations (1) and (2). _____
  3. Eliminate z from Equations (1) and (3). _____
  4. Eliminate x from your new 2 × 2 system. _____
  5. Form a triangular system and solve by back-substitution.
    Solution: _____ Give your answer as an ordered triple.
  1. 2 x + y 3 z = 3
  2. 5 x 5 y = 0
  3. 5 x y = 8
  4. 4 y = 8
  5. ( 2 , 2 , 1 )

Use Gaussian reduction to solve the system

x 2 y + z = 1 b l a n k b l a n k ( 1 ) 2 3 x + 1 3 y z = 1 b l a n k b l a n k ( 2 ) 3 x + 3 y 2 z = 10 b l a n k b l a n k ( 3 )

Follow the steps suggested below:

  1. Clear the fractions from Equation (2).
  2. Eliminate z from Equations (1) and (2).
  3. Eliminate z from Equations (1) and (3).
  4. Eliminate x from your new 2 × 2 system.
  5. Form a triangular system and solve by back-substitution.
  1. 2 x + y 3 z = 3
  2. 5 x 5 y = 0
  3. 5 x y = 8
  4. 4 y = 8
  5. ( 2 , 2 , 1 )

What should you do if one of the original equations in a 3x3 system is "missing" one of the variables?

_____

What should you do if one of the original equations in a 3x3 system is "missing" one of the variables?

Inconsistent and Dependent Systems

The results in Systems of Linear Equations in Two Variables for identifying dependent and inconsistent systems can be extended to 3 × 3 linear systems. If at any step in forming linear combinations we obtain an equation of the form

0 x + 0 y + 0 z = k , b l a n k ( k 0 )

then the system is inconsistent and has no solution. If we obtain an equation of the form

0 x + 0 y + 0 z = 0

then the system is dependent and has infinitely many solutions.

Decide whether the system is inconsistent, dependent, or consistent and independent.

x + 3 y z = 4 2 x 6 y + 2 z = 1 x + 2 y z = 3

_____

Inconsistent

Decide whether the system is inconsistent, dependent, or consistent and independent.

x + 3 y z = 4 2 x 6 y + 2 z = 1 x + 2 y z = 3

Inconsistent

What does it mean if you obtain an equation of the form 0 x + 0 y + 0 z = k , k 0 ?

_____

The system has no solution.

What does it mean if you obtain an equation of the form 0 x + 0 y + 0 z = k , k 0 ?

  1. The system has no solution.
  2. The system is dependent.
  3. The solution is ( 0 , 0 , 0 ) .
  4. The system is triangular.

Decide whether the system is inconsistent, dependent, or consistent and independent.

a c = 2 2 a + b = 5 a + b + c = 3

_____

Dependent

Decide whether the system is inconsistent, dependent, or consistent and independent.

a c = 2 2 a + b = 5 a + b + c = 3

Dependent

Explain how you know immediately that the following system is dependent:

x + y + z = 3 2 x + 2 y + 2 z = 6 x y z = 3

_____

Explain how you know immediately that the following system is dependent:

x + y + z = 3 2 x + 2 y + 2 z = 6 x y z = 3

Applications

Here are some problems that can be modeled by a system of three linear equations. When writing such systems, we must be careful to find three independent equations describing the conditions of the problem.

A manufacturer of office supplies makes three types of file cabinet: two-drawer, four-drawer, and horizontal. The manufacturing process is divided into three phases: assembly, painting, and finishing.

  • A two-drawer cabinet requires 3 hours to assemble, 1 hour to paint, and 1 hour to finish.
  • The four-drawer model takes 5 hours to assemble, 90 minutes to paint, and 2 hours to finish.
  • The horizontal cabinet takes 4 hours to assemble, 1 hour to paint, and 3 hours to finish.

The manufacturer employs enough workers for 500 hours of assembly time, 150 hours of painting, and 230 hours of finishing per week. How many of each type of file cabinet should he make in order to use all the hours available?

  1. Represent the number of each model of file cabinet by a different variable.
    Number of two-drawer cabinets: x
    Number of four-drawer cabinets: y
    Number of horizontal cabinets: z
  2. Organize the information into a table. (Convert all times to hours.)
    2-Drawer4-DrawerHorizontalTotal available
    Assembly____________________
    Painting____________________
    Finishing____________________

    Write three equations describing the time constraints in each of the three manufacturing phases. For example, the assembly phase requires 3 x hours for the two-drawer cabinets, 5 y hours for the four-drawer cabinets, and 4 z hours for the horizontal cabinets, and the sum of these times should be the time available, 500 hours.
    Assembly time:_____ ( 1 )
    Painting time:_____ ( 2 )
    Finishing time:_____ ( 3 )
  3. Solve the system. Follow the steps suggested below.
    1. Clear the fractions from the second equation.
      _____ (2)
    2. Subtract Equation (1) from 3 times Equation (3) to obtain a new Equation (4).
      _____ (4)
    3. Subtract Equation (2) from twice Equation (3) to obtain a new Equation (5).
      _____ (5)
    4. Equations (4) and (5) form a 2 × 2 system in y and z . Subtract Equation (5) from Equation (4) to obtain a new Equation (6).
      _____ (6)
    5. Form a triangular system with Equations (3), (4), and (6). Use back-substitution to complete the solution.
      _____ Enter the solution as an ordered triple.
  4. You should have found the following solution: The manufacturer should make 60 two-drawer cabinets, 40 four-drawer cabinets, and 30 horizontal cabinets.
Assembly time: eq1 ( 1 )
Painting time: eq2 ( 2 )
Finishing time: eq3 ( 3 )

Clear the fractions from the second equation.

eq2a ( 2 ) ; then:

eq4 ( 4 ) ,

eq5 ( 5 ) ,

eq6 ( 6 )

x = 60 , y = 40 , z = 30 , so the solution is ( 60 , 40 , 30 ) .

A manufacturer of office supplies makes three types of file cabinet: two-drawer, four-drawer, and horizontal. The manufacturing process is divided into three phases: assembly, painting, and finishing.

  • A two-drawer cabinet requires 3 hours to assemble, 1 hour to paint, and 1 hour to finish.
  • The four-drawer model takes 5 hours to assemble, 90 minutes to paint, and 2 hours to finish.
  • The horizontal cabinet takes 4 hours to assemble, 1 hour to paint, and 3 hours to finish.

The manufacturer employs enough workers for 500 hours of assembly time, 150 hours of painting, and 230 hours of finishing per week. How many of each type of file cabinet should he make in order to use all the hours available?

  1. Represent the number of each model of file cabinet by a different variable.
    Number of two-drawer cabinets: x
    Number of four-drawer cabinets: y
    Number of horizontal cabinets: z
  2. Organize the information into a table. (Convert all times to hours.)
    2-Drawer4-DrawerHorizontalTotal available
    Assembly 000 000 000 000
    Painting
    Finishing

    Write three equations describing the time constraints in each of the three manufacturing phases. For example, the assembly phase requires 3 x hours for the two-drawer cabinets, 5 y hours for the four-drawer cabinets, and 4 z hours for the horizontal cabinets, and the sum of these times should be the time available, 500 hours.
    Assembly time: 00000000000000000000 ( 1 )
    Painting time: 00000000000000000000 ( 2 )
    Finishing time: 00000000000000000000 ( 3 )
  3. Solve the system. Follow the steps suggested below.
    1. Clear the fractions from the second equation.
    2. Subtract Equation (1) from 3 times Equation (3) to obtain a new Equation (4).
    3. Subtract Equation (2) from twice Equation (3) to obtain a new Equation (5).
    4. Equations (4) and (5) form a 2 × 2 system in y and z . Subtract Equation (5) from Equation (4) to obtain a new Equation (6).
    5. Form a triangular system with Equations (3), (4), and (6). Use back-substitution to complete the solution.
  4. You should have found the following solution: The manufacturer should make 60 two-drawer cabinets, 40 four-drawer cabinets, and 30 horizontal cabinets.

3 x + 5 y + 4 z = 500 x + 1.5 y + z = 150 x + 2 y + 3 z = 230

x = 60 , y = 40 , z = 30 , so the solution is ( 60 , 40 , 30 ) .

Section Summary

Vocabulary

Look up the definitions of new terms in the Glossary.

  • Ordered triple
  • Gaussian reduction
  • Triangular form
  • Back-substitution

CONCEPTS

  1. The solution to a 3 × 3 linear system is an ordered triple.
  2. A 3 × 3 system in triangular form can be solved by back-substitution.
  3. Gaussian reduction is a generalized form of the elimination method that can be used to reduce a 3 × 3 linear system to triangular form.
  4. 3 × 3 linear systems may be inconsistent or dependent.

STUDY QUESTIONS

  1. How can you check whether an ordered triple ( a , b , c ) is a solution of a 3 × 3 system?
  2. In order to solve by back-substitution, does the shortest equation in a triangular system have to be at the bottom?
  3. After you have eliminated one variable from two of the equations in a 3 × 3 linear system, what is the next step?
  4. How would you start Gaussian reduction on a 3 × 3 linear system if the first equation has only two variables?

SKILLS

Practice each skill in the Homework problems listed.

  1. Solve a triangular system by back-substitution: #1–6
  2. Solve a 3 × 3 linear system by Gaussian reduction: #7–20
  3. Identify inconsistent and dependent systems: #21–30
  4. Write a solve a 3 × 3 linear system to solve an applied problem: #31–40

Homework 8.2

Use back-substitution to solve Problems 1–6.

x + y + z = 2 3 y + z = 5 4 y = 8

( 1 , 2 , 1 )

2 x + 3 y z = 7 y 2 z = 6 5 z =   15

2 x y z = 6 5 y + 3 z = 8 13 y = 13

( 2 , 1 , 1 )

x + y + z = 1 x + 4 y = 1 3 x = 3

2 x + z = 5 3 y + 2 z = 6 5 x = 20

( 4 , 4 , 3 )

3 x y = 6 x 2 z = 7 13 x = 13

Use Gaussian reduction to solve Problems 7–20.

x + y + z = 0 2 x 2 y + z = 8 3 x + 2 y + z = 2

( 2 , 2 , 0 )

x 2 y + 4 z = 3 3 x + y 2 z = 12 2 x + y 3 z = 11

4 x + z = 3 2 x y = 2 3 y + 2 z = 0

( 0 , 2 , 3 )

3 y + z = 3 2 x + 3 y = 7 3 x + 2 z = 6

2 x + 3 y 2 z = 5 3 x 2 y 5 z = 5 5 x + 2 y + 3 z = 9

( 1 , 1 , 2 )

3 x 4 y + 2 z = 20 4 x + 3 y 3 z = 4 2 x 5 y + 5 z = 24

4 x + 6 y + 3 z = 3 2 x 3 y 2 z = 5 6 x + 6 y + 2 z = 5

( 1 2 , 2 3 , 3 )

3 x + 4 y + 6 z = 2 2 x + 2 y 3 z = 1 4 x 10 y + 9 z = 0

x 1 2 y 1 2 z = 4 x 3 2 y 2 z = 3 1 4 x + 1 4 y 1 4 z = 0

( 4 , 2 , 2 )

x + 2 y 1 2 z = 0 x + 3 5 y 2 5 z = 1 5 4 x 7 y 7 z = 6

x + y z = 2 1 2 x y + 1 2 z = 1 2 x + 1 3 y 2 3 z = 4 3

( 1 , 1 , 0 )

x + y 2 z = 3 x 1 3 y + 1 3 z = 5 3 1 2 x 1 2 y z = 3 2

x = y x + z = 5 6 y 2 z = 7 6

( 1 2 , 1 2 , 1 3 )

x = y + 1 2 y = z + 5 4 2 z = x 7 4

Solve the systems in Problems 21–30. If the system is inconsistent or dependent, say so.

3 x 2 y + z = 6 2 x + y z = 2 4 x + 2 y 2 z = 3

Inconsistent

x 2 y + z = 5 x + y = 2 y z = 3

2 x + 3 y z = 2 x y + 1 2 z = 2 4 x 1 3 y + 2 z = 8

( 1 2 , 0 , 3 )

3 x + 6 y + 2 z = 2 1 2 x 3 y z = 1 4 x + y + 1 3 z = 1 3

x = 2 y 7 y = 4 z + 3 z = 3 x + y

( 1 , 3 , 0 )

x = y + z y = 2 x z z = 3 x y

1 2 x + y = 1 2 z x y = z 2 x 2 y = z + 4 3

Inconsistent

x = 1 2 y 1 2 z + 1 x = 2 y + z 1 x = 1 2 y 1 2 z + 1 4

x y = 0 2 x + 2 y + z = 5 2 x + y 1 2 z = 0

( 1 2 , 1 2 , 3 )

x + y = 1 2 x y + z = 1 x 3 y z = 2 3

Solve Problems 31–40 by using a system of equations.

  1. Identify three unknown quantities and choose variables to represent them.
  2. If appropriate, make a table organizing the information in the problem.
  3. Write three equations about the variables in the problem.
  4. Solve the system and answer the question in the problem.

A box contains $ 6.25 in nickels, dimes, and quarters. There are 85 coins in all, with 3 times as many nickels as dimes. How many coins of each kind are there?

60 nickels, 20 dimes, 5 quarters

Vanita has $ 446 in 10 -dollar, 5 -dollar, and 1 -dollar bills. There are 94 bills in all, with 10 more 5 -dollar bills than 10 -dollar bills. How many bills of each kind does she have?

The perimeter of a triangle is 155 inches. Side x is 20 inches shorter than side y , and side y is 5 inches longer than side z . Find the lengths of the sides of the triangle.

x = 40 in, y = 60 in, z = 55 in

One angle of a triangle measures 10 more than a second angle, and the third angle is 10 more than six times the measure of the smallest angle. Find the measure of each angle.

Vegetable Medley is made of carrots, green beans, and cauliflower. The package says that 1 cup of Vegetable Medley provides 29.4 milligrams of vitamin C and 47.4 milligrams of calcium.

  • One cup of carrots contains 9 milligrams of vitamin C and 48 milligrams of calcium.
  • One cup of green beans contains 15 milligrams of vitamin C and 63 milligrams of calcium.
  • One cup of cauliflower contains 69 milligrams of vitamin C and 26 milligrams of calcium.

How much of each vegetable is in 1 cup of Vegetable Medley?

0.3 cup carrots, 0.4 cup green beans, 0.3 cup cauliflower

The Java Shoppe sells a house brand of coffee that is only 2.25 % caffeine for $ 6.60 per pound. The house brand is a mixture of:

  • Colombian coffee that sells for $ 6 per pound and is 2 % caffeine,
  • French roast that sells for $ 7.60 per pound and is 4 % caffeine,
  • and Sumatran that sells for $ 6.80 per pound and is 1 % caffeine.

How much of each variety is in a pound of house brand?

The ABC Psychological Testing Service offers three types of reports on test results: score only, evaluation, and narrative report.

  • Each score-only test takes 3 minutes to score using an optical scanner and 1 minute to print the interpretation.
  • Each evaluation takes 3 minutes to score, 4 minutes to analyze, and 2 minutes to print.
  • Each narrative report takes 3 minutes to score, 5 minutes to analyze, and 8 minutes to print.

If ABC Services uses its optical scanner 7 hours per day, has 8 hours in which to analyze results, and has 12 hours of printer time available per day, how many of each type of report can it complete each day when it is using all its resources?

40 score only, 20 evaluations, 80 narrative report

Reliable Auto Company wants to ship 1700 Status Sedans to three major dealers in Los Angeles, Chicago, and Miami. From past experience, Reliable figures that it will sell twice as many sedans in Los Angeles as in Chicago. It costs $ 230 to ship a sedan to Los Angeles, $ 70 to Chicago, and $ 160 to Miami. If Reliable Auto has $ 292 , 000 to pay for shipping costs, how many sedans should it ship to each city?

Ace, Inc. produces three kinds of wooden rackets: tennis rackets, Ping-Pong paddles, and squash rackets. After the pieces are cut, each racket goes through three phases of production: gluing, sanding, and finishing.

  • A tennis racket takes 3 hours to glue, 2 hours to sand, and 3 hours to finish.
  • A Ping-Pong paddle takes 1 hour to glue, 1 hour to sand, and 1 hour to finish.
  • A squash racket takes 2 hours to glue, 2 hours to sand, and 2 1 2 hours to finish.

Ace has available 95 labor-hours in its gluing department, 75 labor-hours in sanding, and 100 labor-hours in finishing per day. How many of each racket should it make in order to use all the available personnel?

20 tennis, 15 Ping Pong, 10 squash

A farmer has 1300 acres on which to plant wheat, corn, and soybeans. The seed costs $ 6 for an acre of wheat, $ 4 for an acre of corn, and $ 5 for an acre of soybeans. An acre of wheat requires 5 acre-feet of water during the growing season, while an acre of corn requires 2 acre-feet and an acre of soybeans requires 3 acre-feet. If the farmer has $ 6150 to spend on seed and can count on 3800 acre-feet of water, how many acres of each crop should he plant in order to use all his resources?

Modeling, Functions, and Graphs by Katherine Yoshiwara (yoshiwarabooks.org), GNU Free Documentation License 1.2 or later. Adapted for the XYZ HTML edition with the authors' permission (recorded 2026-07-04). License: GFDL-1.2-or-later.