Solving Systems of Three Equations in Three Variables
In order to solve systems of equations in three variables, known as three-by-three systems, the primary tool we will be using is called Gaussian elimination, named after the prolific German mathematician Karl Friedrich Gauss. While there is no definitive order in which operations are to be performed, there are specific guidelines as to what type of moves can be made. We may number the equations to keep track of the steps we apply. The goal is to eliminate one variable at a time to achieve upper triangular form, the ideal form for a three-by-three system because it allows for straightforward back-substitution to find a solution [latex]\left(x,y,z\right),\text{}[/latex] which we call an ordered triple. A system in upper triangular form looks like the following:
- Interchange the order of any two equations.
- Multiply both sides of an equation by a nonzero constant.
- Add a nonzero multiple of one equation to another equation.
A General Note: Number of Possible Solutions
Figure 2 and Figure 3 illustrate possible solution scenarios for three-by-three systems.- Systems that have a single solution are those which, after elimination, result in a solution set consisting of an ordered triple [latex]\left\{\left(x,y,z\right)\right\}[/latex]. Graphically, the ordered triple defines a point that is the intersection of three planes in space.
- Systems that have an infinite number of solutions are those which, after elimination, result in an expression that is always true, such as [latex]0=0[/latex]. Graphically, an infinite number of solutions represents a line or coincident plane that serves as the intersection of three planes in space.
- Systems that have no solution are those that, after elimination, result in a statement that is a contradiction, such as [latex]3=0[/latex]. Graphically, a system with no solution is represented by three planes with no point in common.
Example 1: Determining Whether an Ordered Triple Is a Solution to a System
Determine whether the ordered triple [latex]\left(3,-2,1\right)[/latex] is a solution to the system.Solution
We will check each equation by substituting in the values of the ordered triple for [latex]x,y[/latex], and [latex]z[/latex].[latex]\begin{array}{ccccc}\begin{array}{r}\hfill x+y+z=2\\ \hfill \left(3\right)+\left(-2\right)+\left(1\right)=2\\ \hfill \text{True}\end{array}& & \begin{array}{r}\hfill \text{}6x - 4y+5z=31\\ \hfill 6\left(3\right)-4\left(-2\right)+5\left(1\right)=31\\ \hfill 18+8+5=31\\ \hfill \text{True}\end{array}& & \begin{array}{r}\hfill \text{}5x+2y+2z=13\\ \hfill 5\left(3\right)+2\left(-2\right)+2\left(1\right)=13\\ \hfill \text{}15 - 4+2=13\\ \hfill \text{True}\end{array}\end{array}[/latex]
The ordered triple [latex]\left(3,-2,1\right)[/latex] is indeed a solution to the system.How To: Given a linear system of three equations, solve for three unknowns.
- Pick any pair of equations and solve for one variable.
- Pick another pair of equations and solve for the same variable.
- You have created a system of two equations in two unknowns. Solve the resulting two-by-two system.
- Back-substitute known variables into any one of the original equations and solve for the missing variable.
Example 2: Solving a System of Three Equations in Three Variables by Elimination
Find a solution to the following system:Solution
There will always be several choices as to where to begin, but the most obvious first step here is to eliminate [latex]x[/latex] by adding equations (1) and (2).[latex]\begin{array} \hfill−2x+4y−6z=−18 \hfill& \left(1\right)\text{ multiplied by }−2 \\ 2x−5y+5z=17 \hfill& \left(3\right) \\ \text{_____________________________} \\ \hfill−y−z=−1\left(5\right)\hfill& \end{array}[/latex]
In equations (4) and (5), we have created a new two-by-two system. We can solve for [latex]z[/latex] by adding the two equations.Example 3: Solving a Real-World Problem Using a System of Three Equations in Three Variables
In the problem posed at the beginning of the section, John invested his inheritance of $12,000 in three different funds: part in a money-market fund paying 3% interest annually; part in municipal bonds paying 4% annually; and the rest in mutual funds paying 7% annually. John invested $4,000 more in mutual funds than he invested in municipal bonds. The total interest earned in one year was $670. How much did he invest in each type of fund?Solution
To solve this problem, we use all of the information given and set up three equations. First, we assign a variable to each of the three investment amounts:Try It 1
Solve the system of equations in three variables.Licenses & Attributions
CC licensed content, Specific attribution
- Precalculus. Provided by: OpenStax Authored by: OpenStax College. Located at: https://cnx.org/contents/[email protected]:1/Preface. License: CC BY: Attribution.