6.3: Systems of Linear Equations - Three Variables
In this section, you will:
- Solve systems of three equations in three variables.
- Identify inconsistent systems of equations containing three variables.
- Express the solution of a system of dependent equations containing three variables.
John received an inheritance of $12,000 that he divided into three parts and invested in three ways: in a money-market fund paying 3% annual interest; in municipal bonds paying 4% annual interest; and in mutual funds paying 7% annual interest. John invested $4,000 more in municipal funds than in municipal bonds. He earned $670 in interest the first year. How much did John invest in each type of fund?
Understanding the correct approach to setting up problems such as this one makes finding a solution a matter of following a pattern. We will solve this and similar problems involving three equations and three variables in this section. Doing so uses similar techniques as those used to solve systems of two equations in two variables. However, finding solutions to systems of three equations requires a bit more organization and a touch of visual gymnastics.
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 which we call an ordered triple . A system in upper triangular form looks like the following:
The third equation can be solved for and then we back-substitute to find and To write the system in upper triangular form, we can perform the following operations:
- 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.
The solution set to a three-by-three system is an ordered triple Graphically, the ordered triple defines the point that is the intersection of three planes in space. You can visualize such an intersection by imagining any corner in a rectangular room. A corner is defined by three planes: two adjoining walls and the floor (or ceiling). Any point where two walls and the floor meet represents the intersection of three planes.
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 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 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 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 is a solution to the system.
- Answer
-
We will check each equation by substituting in the values of the ordered triple for and
The ordered triple 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:
- Answer
-
There will always be several choices as to where to begin, but the most obvious first step here is to eliminate by adding equations (1) and (2).
The second step is multiplying equation (1) by and adding the result to equation (3). These two steps will eliminate the variable
In equations (4) and (5), we have created a new two-by-two system. We can solve for by adding the two equations.
Choosing one equation from each new system, we obtain the upper triangular form:
Next, we back-substitute into equation (4) and solve for
Finally, we can back-substitute and into equation (1). This will yield the solution for
The solution is the ordered triple See Figure 4 .
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?
- Answer
-
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:
The first equation indicates that the sum of the three principal amounts is $12,000.
We form the second equation according to the information that John invested $4,000 more in mutual funds than he invested in municipal bonds.
The third equation shows that the total amount of interest earned from each fund equals $670.
Then, we write the three equations as a system.
To make the calculations simpler, we can multiply the third equation by 100. Thus,
Step 1. Interchange equation (2) and equation (3) so that the two equations with three variables will line up.
Step 2. Multiply equation (1) by and add to equation (2). Write the result as row 2.
Step 3. Add equation (2) to equation (3) and write the result as equation (3).
Step 4. Solve for in equation (3). Back-substitute that value in equation (2) and solve for Then, back-substitute the values for and into equation (1) and solve for
John invested $2,000 in a money-market fund, $3,000 in municipal bonds, and $7,000 in mutual funds.
Try It #1
Solve the system of equations in three variables.
Identifying Inconsistent Systems of Equations Containing Three Variables
Just as with systems of equations in two variables, we may come across an inconsistent system of equations in three variables, which means that it does not have a solution that satisfies all three equations. The equations could represent three parallel planes, two parallel planes and one intersecting plane, or three planes that intersect the other two but not at the same location. The process of elimination will result in a false statement, such as or some other contradiction.
Example 4
Solving an Inconsistent System of Three Equations in Three Variables
Solve the following system.
- Answer
-
Looking at the coefficients of we can see that we can eliminate by adding equation (1) to equation (2).
Next, we multiply equation (1) by and add it to equation (3).
Then, we multiply equation (4) by 2 and add it to equation (5).
The final equation is a contradiction, so we conclude that the system of equations in inconsistent and, therefore, has no solution.
Analysis
In this system, each plane intersects the other two, but not at the same location. Therefore, the system is inconsistent.
Try It #2
Solve the system of three equations in three variables.
Expressing the Solution of a System of Dependent Equations Containing Three Variables
We know from working with systems of equations in two variables that a dependent system of equations has an infinite number of solutions. The same is true for dependent systems of equations in three variables. An infinite number of solutions can result from several situations. The three planes could be the same, so that a solution to one equation will be the solution to the other two equations. All three equations could be different but they intersect on a line, which has infinite solutions. Or two of the equations could be the same and intersect the third on a line.
Example 5
Finding the Solution to a Dependent System of Equations
Find the solution to the given system of three equations in three variables.
- Answer
-
First, we can multiply equation (1) by and add it to equation (2).
We do not need to proceed any further. The result we get is an identity, which tells us that this system has an infinite number of solutions. There are other ways to begin to solve this system, such as multiplying equation (3) by and adding it to equation (1). We then perform the same steps as above and find the same result,
When a system is dependent, we can find general expressions for the solutions. Adding equations (1) and (3), we have
We then solve the resulting equation for
We back-substitute the expression for into one of the equations and solve for
So the general solution is In this solution, can be any real number. The values of and are dependent on the value selected for
Analysis
As shown in Figure 5 , two of the planes are the same and they intersect the third plane on a line. The solution set is infinite, as all points along the intersection line will satisfy all three equations.
Q&A
Does the generic solution to a dependent system always have to be written in terms of
No, you can write the generic solution in terms of any of the variables, but it is common to write it in terms of x and if needed and
Try It #3
Solve the following system.
Media
Access these online resources for additional instruction and practice with systems of equations in three variables.