Solve Systems of Equations with Three Variables
By the end of this section, you will be able to:
- 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
Determine Whether an Ordered Triple Is a Solution of a System of Three Linear Equations with Three Variables
So far we have worked with systems of two equations and two variables. Now we will extend that work to systems of three equations with three variables. But first let’s review what we already know about equations and systems involving up to two variables.
The graph of a linear equation is a line. Each point on the line — an ordered pair — is a solution to the equation. For a system of two equations with two variables, we graph two lines. The points the lines have in common form the solution to the system. When we solve a system of two linear equations, there are three possible cases: the lines intersect in exactly one point (a consistent, independent system), the lines are parallel and never meet (an inconsistent system, no solution), or the two equations describe the same line, so every point on it is a solution (a consistent, dependent system, infinitely many solutions).
Similarly, for a linear equation with three variables , every solution to the equation is an ordered triple, , that makes the equation true.
Linear equation in three variables. A linear equation with three variables, where , , , and are real numbers and , , and are not all , is of the form
Every solution to the equation is an ordered triple, , that makes the equation true.
All the points that are solutions to one such equation form a plane in three-dimensional space, and solving a system of three linear equations means finding what the three planes have in common. Just as with two variables, there are three possible cases:
- One solution. The three planes intersect at a single point. This is a consistent system with independent equations.
- No solution. The planes have no point in common — for example, they may be parallel, or two may be parallel while the third cuts across both, or each pair of planes may intersect in a different line so that no point lies on all three. This is an inconsistent system.
- Infinitely many solutions. The planes intersect along a common line (or are all the same plane), so every point on that line — or plane — is a solution. This is a consistent system with dependent equations.
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 that makes all three equations true. These are called the solutions of the system of three linear equations with three variables.
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.
Example. Determine whether the ordered triple is a solution to the system:
(a) (b)
(a) We substitute , , and into all three equations:
makes all three equations true, so it is a solution.
(b) We substitute , , and into all three equations:
does not make all three equations true, so it is not a solution.
Which ordered triple is a solution to the system?
Substitute each triple into all three equations; the solution must make every equation true.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 gives 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 an original equation and find the third variable. We write our answer as an ordered triple and then check our results.
Example. Solve the system by elimination:
| Step | What to do | Result |
|---|---|---|
| 1. Write the equations in standard form. If any coefficients are fractions, clear them. | The equations are already in standard form, with no fractions. We label them (1), (2), and (3). | |
| 2. Eliminate the same variable from two equations. Decide which variable you will eliminate; work with a pair of equations, multiplying one or both so the coefficients of that variable are opposites, then add. | We eliminate the ’s from equations (1) and (2) by multiplying equation (2) by , then adding the result to equation (1). This gives a new equation in and only — call it (4). | |
| 3. Repeat Step 2 using two other equations and eliminate the same variable. | We again eliminate , this time from equations (1) and (3), by multiplying equation (1) by , then adding. This gives equation (5). | |
| 4. The two new equations form a system of two equations with two variables. Solve this system. | Equations (4) and (5) involve only and . Multiplying (5) by and adding it to (4) eliminates . | so . Substituting into (4): , so . |
| 5. Use the values of the two variables found in Step 4 to find the third variable. | Substitute and into original equation (2) to find . | |
| 6. Write the solution as an ordered triple. | ||
| 7. Check that the ordered triple is a solution to all three original equations. | Substitute into each of the three original equations. | We’ll leave the checks to you — each equation should come out true. |
Solve a system of linear equations with three variables.
- Write the equations in standard form. If any coefficients are fractions, clear them.
- 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 to eliminate one variable.
- Repeat Step 2 using two other equations and eliminate the same variable as in Step 2.
- The two new equations form a system of two equations with two variables. Solve this system.
- Use the values of the two variables found in Step 4 to find the third variable.
- Write the solution as an ordered triple.
- Check that the ordered triple is a solution to all three original equations.
Solve the system by elimination:Enter the solution as an ordered triple.
Add equations (1) and (3) to eliminate y directly, giving an equation in x and z. Separately, add 3 times equation (1) to equation (2) to get a second equation in x and z.The system is easier to solve when each equation is already missing one of the variables.
Example. Solve the system by elimination:
Label the equations (1), (2), (3). Equation (1) is missing , equation (2) is missing , and equation (3) is missing . We can eliminate from (1) and (2) by multiplying (2) by and adding it to (1):
Call this new equation (4). Now equations (3) and (4) both involve only and :
Multiplying (3) by and adding it to (4) eliminates :
So . Substitute into (3) to find :
Substitute into (1) to find :
The solution is . Check that it makes all three original equations true:
Solve the system by elimination:Enter the solution as an ordered triple.
Each equation is missing one variable. Eliminate z from the first two equations to get an equation in x and y, then combine that with the third equation.When we solve a system and end up with no variables and a false statement, the system has no solution. It is inconsistent.
Example. Solve the system of equations:
Label the equations (1), (2), (3). Use (1) and (2) to eliminate : multiplying (2) by and adding it to (1) gives
— call this (4). Use (2) and (3) to eliminate again: multiplying (2) by and adding it to (3) gives
— call this (5). Equations (4) and (5) have the same left side but different constants. Multiplying (5) by and adding it to (4):
This is a false statement, so there is no solution. We are left with a false statement, which tells us the system is inconsistent.
Solve the system of equations:How many solutions does the system have?
Add the first two equations to eliminate x, getting one equation in y and z. Then subtract the first equation from the third to eliminate x again, getting a second equation in y and z. Compare the two.When we solve a system and end up with no variables but a true statement, the system has infinitely many solutions. It is consistent with dependent equations, and the solution shows how two of the variables depend on the third.
Example. Solve the system of equations:
Label the equations (1), (2), (3). Use (1) and (3) to eliminate : multiplying (1) by and adding it to (3) gives
— call this (4). Use (1) and (2) to eliminate again: multiplying (1) by and adding it to (2) gives
— call this (5). Use (4) and (5) to eliminate : multiplying (4) by and adding it to (5) gives
The true statement tells us the system is consistent with dependent equations — there are infinitely many solutions. Solve equation (4) for :
Substitute into equation (1) to solve for in terms of :
The solutions are all ordered triples of the form , where is any real number.
Solve the system of equations:How many solutions does the system have?
Compare the second and third equations — one is a constant multiple of the other, so the three planes reduce to only two independent equations.Solve Applications Using Systems of Linear Equations with Three Variables
Applications that are modeled by systems of equations can be solved using the same techniques we used to solve the systems above. Many applications are just extensions to three variables of the types we have solved earlier.
Example. 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 organize the information in a chart:
| Type | Number | Value | Total value |
|---|---|---|---|
| adult | |||
| student | |||
| child | |||
“The number of student tickets sold is twice the number of adult tickets sold” translates to , or in standard form, . Write the system of equations:
Label the equations (1), (2), (3). Use (1) and (2) to eliminate : multiplying (1) by and adding it to (2) gives
— call this (4). Use (3) and (4) to eliminate : multiplying (3) by and adding it to (4) gives
So — the department sold adult tickets. Substitute into (3) to find :
So student tickets were sold. Substitute and into (1) to find :
The theater department sold adult tickets, student tickets, and 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 department sold 350 tickets and brought in $4,650 in one night. The number of child tickets sold was the same as the number of adult tickets sold. How many student tickets did the department sell?
Let x, y, and z be the numbers of adult, student, and child tickets sold. Then x+y+z=350, 20x+12y+10z=4650, and z=x. Substitute z=x to reduce the system to two variables.Key terms
linear equation in three variables — an equation of the form , whose graph is a plane in three-dimensional space. ordered triple — a solution to an equation or system of equations in three variables. solutions of a system of linear equations with three variables — the ordered triples that make all three equations true; geometrically, the points common to all three planes. consistent system — a system with at least one solution. inconsistent system — a system with no solution; eliminating variables leaves a false statement like . dependent equations — equations whose graphs share a common line (or are the same plane), so the system has infinitely many solutions; eliminating variables leaves a true statement like .
Practice
Determine whether an ordered triple is a solution of a system of three linear equations with three variables
Isa solution to the system?
Substitute the triple into all three equations; it is a solution only if every equation comes out true.Isa solution to the system?
Substitute the triple into all three equations; it is a solution only if every equation comes out true.Isa solution to the system?
Substitute the triple into all three equations; it is a solution only if every equation comes out true.Isa solution to the system?
Substitute the triple into all three equations; it is a solution only if every equation comes out true.Solve a system of linear equations with three variables
Solve the system by elimination:Enter the solution as an ordered triple.
Eliminate y from the first and second equations, then eliminate y again using a different pair, to get a system of two equations in x and z.Solve the system by elimination:Enter the solution as an ordered triple.
Eliminate z from the first and second equations, then eliminate z again using the first and third, to get a system of two equations in x and y.Solve the system of equations:How many solutions does the system have?
Eliminate x from two different pairs of equations; if the two resulting equations in y and z contradict each other, the system has no solution.Solve the system of equations:How many solutions does the system have?
Eliminate x from two different pairs of equations; if the two resulting equations in y and z are equivalent, the system has infinitely many solutions.Solve applications using systems of linear equations with three variables
The sum of the measures of the angles of a triangle is 180 degrees. The sum of the measures of the second and third angles is three times the measure of the first angle, and the third angle is fifteen more than the second. Enter the measures of the first, second, and third angles, in that order, separated by commas.
Let x, y, and z be the first, second, and third angles. Then x+y+z=180, y+z=3x, and z=y+15; substitute to reduce to one variable.The church youth group is selling snacks to raise money for a convention. Amy sold 2 pounds of candy, 3 boxes of cookies, and 1 can of popcorn for total sales of $65. Brian sold 4 pounds of candy, 6 boxes of cookies, and 3 cans of popcorn for total sales of $140. Paulina sold 8 pounds of candy, 8 boxes of cookies, and 5 cans of popcorn for total sales of $250. Enter the cost of a pound of candy, a box of cookies, and a can of popcorn, in that order, separated by commas, in dollars.
Let c, k, and p be the prices of candy, cookies, and popcorn. Translate each person’s sales into an equation and solve the resulting system.This section is adapted from Intermediate Algebra 2e, Section 4.4: Solve Systems of Equations with Three Variables by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: described the three-plane geometric cases (one solution, no solution, infinitely many solutions) in prose instead of recreating the 3D plane diagrams; recast the seven-step worked example as a markdown table; omitted the Be Prepared quiz, Self Check checklist, and media links; converted the practice problems (“Try Its”) into interactive exercises with instant feedback — including turning the no-solution and infinite-solutions Try Its into multiple-choice questions about the number of solutions, since a word answer can’t be graded by the math checker; and adapted selected end-of-section Practice Makes Perfect exercises into an interactive Practice block covering all three objectives.