Systems of Linear Equations: Three Variables
June 23, 2024 | by Bloom Code Studio
Learning Objectives
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.
Figure 1 (credit: βElembis,β Wikimedia Commons)
Jordi 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. Jordi invested $4,000 more in mutual funds than in municipal bonds. He earned $670 in interest the first year. How much did Jordi 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 visualization.
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 (x,y,z),(π₯,π¦,π§), which we call an ordered triple. A system in upper triangular form looks like the following:
Ax+By+Cz=DEy+Fz=GHz=Kπ΄π₯+π΅π¦+πΆπ§=π·πΈπ¦+πΉπ§=πΊπ»π§=πΎ
The third equation can be solved for z,π§, and then we back-substitute to find yπ¦ and x.π₯. 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 {(x,y,z)}.{(π₯,π¦,π§)}. 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Β {(x,y,z)}.{(π₯,π¦,π§)}.Β 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Β 0=0.0=0.Β 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Β 3=0.3=0.Β Graphically, a system with no solution is represented by three planes with no point in common.
Figure 2 (a)Three planes intersect at a single point, representing a three-by-three system with a single solution. (b) Three planes intersect in a line, representing a three-by-three system with infinite solutions.
Figure 3 All three figures represent three-by-three systems with no solution. (a) The three planes intersect with each other, but not at a common point. (b) Two of the planes are parallel and intersect with the third plane, but not with each other. (c) All three planes are parallel, so there is no point of intersection.
EXAMPLE 1
Determining Whether an Ordered Triple Is a Solution to a System
Determine whether the ordered triple (3,β2,1)(3,β2,1) is a solution to the system.
x+y+z=26xβ4y+5z=315x+2y+2z=13π₯+π¦+π§=26π₯β4π¦+5π§=315π₯+2π¦+2π§=13
Solution
We will check each equation by substituting in the values of the ordered triple for x,y,π₯,π¦, and z.π§.
x+y+z=2(3)+(β2)+(1)=2True6xβ4y+5z=316(3)β4(β2)+5(1)=3118+8+5=31True5x+2y+2z=135(3)+2(β2)+2(1)=1315β4+2=13Trueπ₯+π¦+π§=2(3)+(β2)+(1)=2True6π₯β4π¦+5π§=316(3)β4(β2)+5(1)=3118+8+5=31True5π₯+2π¦+2π§=135(3)+2(β2)+2(1)=1315β4+2=13True
The ordered triple (3,β2,1)(3,β2,1) 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:
xβ2y+3z=9βx+3yβz=β62xβ5y+5z=17(1)(2)(3)π₯β2π¦+3π§=9(1)βπ₯+3π¦βπ§=β6(2)2π₯β5π¦+5π§=17(3)
Solution
There will always be several choices as to where to begin, but the most obvious first step here is to eliminate xπ₯ by adding equations (1) and (2).
xβ2y+3z=9βx+3yβz=β6(1)(2)y+2z=3(4)π₯β2π¦+3π§=9(1)βπ₯+3π¦βπ§=β6(2)π¦+2π§=3(4)
The second step is multiplying equation (1) by β2β2 and adding the result to equation (3). These two steps will eliminate the variable x.π₯.
β2x+4yβ6z=β182xβ5y+5z=17(1)multipliedbyβ2(3)____________________________________βyβz=β1(5)β2π₯+4π¦β6π§=β18(1)multipliedbyβ22π₯β5π¦+5π§=17(3)____________________________________βπ¦βπ§=β1(5)
In equations (4) and (5), we have created a new two-by-two system. We can solve for zπ§ by adding the two equations.
y+2z=3(4)βyβz=β1(5)z=2(6)π¦+2π§=3(4)βπ¦βπ§=β1(5)π§=2(6)
Choosing one equation from each new system, we obtain the upper triangular form:
xβ2y+3z=9y+2z=3z=2(1)(4)(6)π₯β2π¦+3π§=9(1)π¦+2π§=3(4)π§=2(6)
Next, we back-substitute z=2π§=2 into equation (4) and solve for y.π¦.
y+2(2)=3y+4=3y=β1π¦+2(2)=3π¦+4=3π¦=β1
Finally, we can back-substitute z=2π§=2 and y=β1π¦=β1 into equation (1). This will yield the solution for x.π₯.
xβ2(β1)+3(2)=9x+2+6=9x=1π₯β2(β1)+3(2)=9π₯+2+6=9π₯=1
The solution is the ordered tripleΒ (1,β1,2).(1,β1,2).Β SeeΒ Figure 4.
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, Jordi 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. Jordi 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:
x=amount invested in money-market fundy=amount invested in municipal bondsz=amount invested in mutual fundsπ₯=amount invested in money-market fundπ¦=amount invested in municipal bondsπ§=amount invested in mutual funds
The first equation indicates that the sum of the three principal amounts is $12,000.
x+y+z=12,000π₯+π¦+π§=12,000
We form the second equation according to the information that Jordi invested $4,000 more in mutual funds than he invested in municipal bonds.
z=y+4,000π§=π¦+4,000
The third equation shows that the total amount of interest earned from each fund equals $670.
0.03x+0.04y+0.07z=6700.03π₯+0.04π¦+0.07π§=670
Then, we write the three equations as a system.
x+y+z=12,000βy+z=4,0000.03x+0.04y+0.07z=670π₯+π¦+π§=12,000βπ¦+π§=4,0000.03π₯+0.04π¦+0.07π§=670
To make the calculations simpler, we can multiply the third equation by 100. Thus,
x+y+z=12,000βy+z=4,0003x+4y+7z=67,000(1)(2)(3)π₯+π¦+π§=12,000(1)βπ¦+π§=4,000(2)3π₯+4π¦+7π§=67,000(3)
Step 1. Interchange equation (2) and equation (3) so that the two equations with three variables will line up.
x+y+z=12,0003x+4y+7z=67,000βy+z=4,000π₯+π¦+π§=12,0003π₯+4π¦+7π§=67,000βπ¦+π§=4,000
Step 2. Multiply equation (1) by β3β3 and add to equation (2). Write the result as row 2.
x+y+z=12,000y+4z=31,000βy+z=4,000π₯+π¦+π§=12,000π¦+4π§=31,000βπ¦+π§=4,000
Step 3. Add equation (2) to equation (3) and write the result as equation (3).
x+y+z=12,000y+4z=31,0005z=35,000π₯+π¦+π§=12,000π¦+4π§=31,0005π§=35,000
Step 4. Solve for zπ§ in equation (3). Back-substitute that value in equation (2) and solve for y.π¦. Then, back-substitute the values for zπ§ and yπ¦ into equation (1) and solve for x.π₯.
5z=35,000z=7,000y+4(7,000)=31,000y=3,000x+3,000+7,000=12,000x=2,0005π§=35,000π§=7,000π¦+4(7,000)=31,000π¦=3,000π₯+3,000+7,000=12,000π₯=2,000
Jordi 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.
2x+yβ2z=β13xβ3yβz=5xβ2y+3z=62π₯+π¦β2π§=β13π₯β3π¦βπ§=5π₯β2π¦+3π§=6
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 3=73=7 or some other contradiction.
EXAMPLE 4
Solving an Inconsistent System of Three Equations in Three Variables
Solve the following system.
xβ3y+z=4βx+2yβ5z=35xβ13y+13z=8(1)(2)(3)π₯β3π¦+π§=4(1)βπ₯+2π¦β5π§=3(2)5π₯β13π¦+13π§=8(3)
Solution
Looking at the coefficients of x,π₯, we can see that we can eliminate xπ₯ by adding equation (1) to equation (2).
xβ3y+z=4(1)βx+2yβ5z=3(2)βyβ4z=7(4)π₯β3π¦+π§=4(1)βπ₯+2π¦β5π§=3(2)βπ¦β4π§=7(4)
Next, we multiply equation (1) by β5β5 and add it to equation (3).
β5x+15yβ5z=β205xβ13y+13z=8(1)multipliedbyβ5(3)______________________________________2y+8z=β12(5)β5π₯+15π¦β5π§=β20(1)multipliedbyβ55π₯β13π¦+13π§=8(3)______________________________________2π¦+8π§=β12(5)
Then, we multiply equation (4) by 2 and add it to equation (5).
β2yβ8z=14(4)multipliedby22y+8z=β12(5)_______________________________________0=2β2π¦β8π§=14(4)multipliedby22π¦+8π§=β12(5)_______________________________________0=2
The final equation 0=20=2 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.
x+y+z=2yβ3z=12x+y+5z=0π₯+π¦+π§=2π¦β3π§=12π₯+π¦+5π§=0
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.
2x+yβ3z=04x+2yβ6z=0xβy+z=0(1)(2)(3)2π₯+π¦β3π§=0(1)4π₯+2π¦β6π§=0(2)π₯βπ¦+π§=0(3)
Solution
First, we can multiply equation (1) by β2β2 and add it to equation (2).
β4xβ2y+6z=0equation(1)multipliedbyβ2ββββ4x+2yβ6z=0(2)____________________________________________0=0β4π₯β2π¦+6π§=0equation(1)multipliedbyβ2ββββ4π₯+2π¦β6π§=0(2)____________________________________________0=0
We do not need to proceed any further. The result we get is an identity, 0=0,0=0, 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 β2,β2, and adding it to equation (1). We then perform the same steps as above and find the same result, 0=0.0=0.
When a system is dependent, we can find general expressions for the solutions. Adding equations (1) and (3), we have
2x+yβ3z=0xβy+z=0_____________3xβ2z=02π₯+π¦β3π§=0π₯βπ¦+π§=0_____________3π₯β2π§=0
We then solve the resulting equation for z.π§.
3xβ2z=0z=32×3π₯β2π§=0π§=32π₯
We back-substitute the expression for zπ§ into one of the equations and solve for y.π¦.
2x+yβ3(32x)=02x+yβ92x=0y=92xβ2xy=52×2π₯+π¦β3(32π₯)=02π₯+π¦β92π₯=0π¦=92π₯β2π₯π¦=52π₯
So the general solution is (x,52x,32x).(π₯,52π₯,32π₯). In this solution, xπ₯ can be any real number. The values of yπ¦ and zπ§ are dependent on the value selected for x.π₯.
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.
Figure 5
Q&A
Does the generic solution to a dependent system always have to be written in terms of x?π₯?
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Β xπ₯Β andΒ y.π¦.
TRY IT #3
Solve the following system.
x+y+z=73xβ2yβz=4x+6y+5z=24
RELATED POSTS
View all