SYSTEMS OF EQUATIONS in THREE VARIABLES

It is often desirable or even necessary to use more than one variable to model a situation in many fields. When this is the case, we write and solve a system of equations in order to answer questions about the situation.



If a system of linear equations has at least one solution, it is consistent. If the system has no solutions, it is inconsistent. If the system has an infinity number of solutions, it is dependent. Otherwise it is independent.



A linear equation in three variables describes a plane and is an equation equivalent to the equation

\begin{eqnarray*}&& \\
Ax+By+Cz+D &=&0 \\
&&
\end{eqnarray*}


where A, B, C, and D are real numbers and A, B, C, and D are not all 0.




Problem 3.1f:


Solve the following system of equations for x, y and z:

       
$\displaystyle \frac{7}{2}x+\frac{2}{5}y-3z$ = -217 (1)
       
$\displaystyle \frac{4}{3}x+\frac{6}{7}y-\frac{8}{21}z$ = 6 (2)
       
$\displaystyle 5x+3y-\frac{7}{4}z$ = -12 (3)
       

Answer:          $x=6,\ y=35,\ z=84$




Solution:


Since most people cringe at the site of fractions, let's get rid of them. Multiply each equation by the smallest number that each denominator will divide into evenly.

\begin{eqnarray*}Equation\ 1 &:& \\
&& \\
10\left[ \frac{7}{2}x+\frac{2}{5}y...
...c{28}{4}z &=&-48 \\
&& \\
20x+12y-7z &=&-48 \\
&& \\
&&
\end{eqnarray*}


We have created three equivalent equivalent equations. Remember equivalent equations have the same solution as the original equation. The equivalent equations are:

\begin{eqnarray*}&& \\
(1) &:&35x+4y-30z=-2,170 \\
&& \\
(2) &:&14x+9y-4z=63 \\
&& \\
(3) &:&20x+12y-7z=-48 \\
&& \\
&&
\end{eqnarray*}


We are going to show you how to solve this system of equations three different ways:


1)        Substitution, 2)        Elimination 3)        Matrices




SUBSTITUTION:


The process of substitution involves several steps:


Step 1:        Solve for one of the variables in one of the equations. It makes no difference which equation and which variable you choose. Let's solve for x in equation (1).

\begin{eqnarray*}&& \\
35x+4y-30z &=&-2,170 \\
&& \\
35x &=&-4y+30z-2,170 \\
&& \\
x &=&\frac{-4y+30z-2,170}{35} \\
&&
\end{eqnarray*}


Step 2:        Substitute this value for x in equations (2) and (3). This will change equations (2) and (3) to equations in the two variables y and z. Call the changed equations (4) and (5), respectively.
       
14x+9y-4z = 63  
       
$\displaystyle 14\left( \frac{-4y+30z-2,170}{35}\right) +9y-4z$ = 63  
       
$\displaystyle 35\left[ 14\left( \frac{-4y+30z-2,170}{35}\right) +9y-4z\right]$ = $\displaystyle 35\left[
63\right]$  
       
$\displaystyle 14\left( -4y+30z-2,170\right) +35\left( 9y\right) +35\left( -4z\right)$ = 2,205  
       
-56y+420z-30,380+315y-140z = 2,205  
       
259y+280z = 32,585  
       
37y+40z = 4,655 (4)
       
       
       
20x+12y-7z = -48  
       
$\displaystyle 20\left( \frac{-4y+30z-2,170}{35}\right) +12y-7z$ = -48  
       
$\displaystyle 35\left[ 20\left( \frac{-4y+30z-2,170}{35}\right) +12y-7z\right]$ = $\displaystyle 35\left[
-48\right]$  
       
$\displaystyle 20\left( -4y+30z-2,170\right) +35\left( 12y\right) -35\left( 7z\right)$ = -1,680  
       
-80y+600z-43,400+420y-245z = -1,680  
       
340y+355z = 41,720  
       
68y+71z = 8,344 (5)
       
       

Step 3:        Solve for y in equation (4).

\begin{eqnarray*}&& \\
37y+40z &=&4,655 \\
&& \\
y &=&\frac{-40z+4,655}{37} \\
&& \\
&& \\
&& \\
&&
\end{eqnarray*}


Step 4:        Substitute this value of y in equation (5). This will give you an equation in z. Solve for z.

\begin{eqnarray*}&& \\
68y+71z &=&8,344 \\
&& \\
68\left( \frac{-40z+4,655...
...\
-93z &=&-7,812 \\
&& \\
z &=&84 \\
&& \\
&& \\
&&
\end{eqnarray*}


Step 5:        Substitute this value of z in equation (4) and solve for y.

\begin{eqnarray*}&& \\
37y+40z &=&4,655 \\
&& \\
37y+40\left( 84\right) &=...
... \\
37y &=&1,295 \\
&& \\
y &=&35 \\
&& \\
&& \\
&&
\end{eqnarray*}


Step 7:        Substitute 35 for y and 84 for z in equation (1) and solve for x.

\begin{eqnarray*}&& \\
35x+4y-30z &=&-2,170 \\
&& \\
35x+4\left( 35\right)...
...170 \\
&& \\
35x &=&210 \\
&& \\
x &=&6 \\
&& \\
&&
\end{eqnarray*}


The solution: $x=6,\ y=35,$ and z=84.

Step 8:        Check the solutions in the original equations:

\begin{eqnarray*}&& \\
\frac{7}{2}\left( 6\right) +\frac{2}{5}\left( 35\right)...
...4\right)
&=&-12\rightarrow yes \\
&& \\
&& \\
&& \\
&&
\end{eqnarray*}


ELIMINATION:


The process of elimination involves several steps: First you reduce three equations to two equations with two variables, and then to one equation with one variable.



Step 1:        Decide which variable you will eliminate. It makes no difference which one you choose. Let us eliminate x first.

\begin{eqnarray*}&& \\
\begin{array}{l}
(1) \\
\\
(2) \\
\\
(3)
\end...
...& - & 7z & = & -48
\end{array}
\end{array}
& \\
&& \\
&&
\end{eqnarray*}


Step 2:        Add -2 times equation (1) to 5 equation (2) to form Equation (4). Add -4 times equation (2) to 7 times equation (3) to form equation (5).

\begin{eqnarray*}&& \\
-2\left[ Equation\ 1\right] +5\left[ Equation\ 2\right]...
... &=&\left[
\begin{array}{c}
Equation\ 5
\end{array}
\right]
\end{eqnarray*}



\begin{eqnarray*}&=&==== \\
\begin{array}{l}
-2\ \times \ (1) \\
\\
+\ 5\...
... & 40z & = & 4,655
\end{array}
\end{array}
& \\
&& \\
&&
\end{eqnarray*}



\begin{eqnarray*}&& \\
\begin{array}{l}
-4\ \times \ (1) \\
\\
+\ 7\ \tim...
... & 71z & = & 8,344
\end{array}
\end{array}
& \\
&& \\
&&
\end{eqnarray*}


Step :        We now have two equations with two variables.

\begin{eqnarray*}&& \\
(4) &:&37y+40z=4,655 \\
&& \\
(5) &:&68y+71z=8,344 \\
&& \\
&&
\end{eqnarray*}


Step 4:        Add -68 times equation (5) to 37 times equation (5) to create equation (6) with just one variable.
$
\begin{array}{r}
-68\times (4) \\
\\
+37\ \times \ \ (5) \\
\\
=\ (6...
... & 2,627z & = & 308,728 \\
& & & & \\
& - & 93z & = & -7,812
\end{array}
$



Step 5:        Solve for x in equation (6).

\begin{eqnarray*}&& \\
-93z &=&-7,812 \\
&& \\
z &=&84 \\
&& \\
&&
\end{eqnarray*}


Step 6:        Substitute 84 for z in equation (5) and solve for y.

\begin{eqnarray*}&& \\
68y+71z &=&8,344 \\
&& \\
68y+71\left( 84\right) &=...
... \\
&& \\
68y &=&2,380 \\
&& \\
y &=&35 \\
&& \\
&&
\end{eqnarray*}


Step 7:        Substitute 35 for y and 84 for z in equation (1) and solve for x.

\begin{eqnarray*}&& \\
35x+4\left( 35\right) -30\left( 84\right) &=&-2,170 \\
&& \\
35x &=&210 \\
&& \\
x &=&6 \\
&& \\
&&
\end{eqnarray*}


The solution: $x=6,\ y=35,$ and z=84.


MATRICES:


The process of using matrices is essentially a shortcut of the process of elimination. Each row of the matrix represents an equation and each column represents coefficients of one of the variables.


Step 1: Create a three-row by four-column matrix using coefficients and the constant of each equation.

\begin{eqnarray*}&& \\
&&
\begin{array}{r}
(1) \\
\\
(2) \\
\\
(3)
...
...
20 & & 12 & & -7 & \vert & -48
\end{array}
\right] \\
&&
\end{eqnarray*}



The vertical lines in the matrix stands for the equal signs between both sides of each equation. The first column contains the coefficients of x, the second column contains the coefficients of y, the third column contains the coefficients of z, and the last column contains the constants.



We want to convert the original matrix

\begin{eqnarray*}&& \\
&&
\begin{array}{r}
(1) \\
\\
(2) \\
\\
(3)
...
...
20 & & 12 & & -7 & \vert & -48
\end{array}
\right] \\
&&
\end{eqnarray*}


to the following matrix.

\begin{eqnarray*}&& \\
&&
\begin{array}{r}
(1) \\
\\
(2) \\
\\
(3)
...
... & \\
0 & & 0 & & 1 & \vert & c
\end{array}
\right] \\
&&
\end{eqnarray*}


Because then you can read the matrix as x=a, y=b, and z=c..



Step 2:        We work with column 1 first. Multiply Row 1 by $\dfrac{1}{35}$ to form a new Row 1.

\begin{eqnarray*}&& \\
\frac{1}{35}\left[ Row\ 1\right] &=&\left[ New\ Row\ 1\right] \\
&&
\end{eqnarray*}



\begin{eqnarray*}&& \\
&&
\begin{array}{r}
(1) \\
\\
(2) \\
\\
(3)
...
...
20 & & 12 & & -7 & \vert & -48
\end{array}
\right] \\
&&
\end{eqnarray*}


Step 3:        We will now complete with column 1. We want zeros in Cell 21 and Cell 31. We achieve this by adding -14 times Row 1 to Row 2 to form a new Row 2 and, by adding -20 times Row 1 to Row 3 to form a new Row 3.

\begin{eqnarray*}&& \\
-14\left[ Row\ 1\right] +\left[ Row\ 2\right] &=&\left[...
...ght] +\left[ Row\ 3\right] &=&\left[ New\ Row\ 3\right] \\
&&
\end{eqnarray*}



\begin{eqnarray*}&& \\
&&
\begin{array}{r}
(1) \\
\\
(2) \\
\\
(3)
...
...& & \dfrac{71}{7} & \vert & 1,192
\end{array}
\right] \\
&&
\end{eqnarray*}


Step 4:        Let's now work with column 2.We want the number 1 in Cell 22. We do this by multiplying row 2 by $\dfrac{35}{259}$ to form a new row 2.

\begin{eqnarray*}&& \\
\frac{35}{259}\left[ Row\ 2\right] &=&\left[ New\ Row\ 2\right] \\
&&
\end{eqnarray*}



\begin{eqnarray*}&& \\
&&
\begin{array}{r}
(1) \\
\\
(2) \\
\\
(3)
...
...& & \dfrac{71}{7} & \vert & 1,192
\end{array}
\right] \\
&&
\end{eqnarray*}


Step 5:        To complete our work with Row 2 we want zeros in cell 12 and cell 32. We achieve this by adding $-\dfrac{4}{35}$ times Row 2 to Row 1 for a new Row 1, and adding $-\dfrac{340}{35}$ times Row 2 to Row 3 for a new Row 3

\begin{eqnarray*}&& \\
-\frac{4}{35}\left[ Row\ 2\right] +\left[ Row\ 1\right]...
...ht] +\left[ Row\ 3\right] &=&\left[ New\
Row\ 3\right] \\
&&
\end{eqnarray*}



\begin{eqnarray*}&& \\
&&
\begin{array}{r}
(1) \\
\\
(2) \\
\\
(3)
...
...59} & \vert & -\dfrac{7,812}{259}
\end{array}
\right] \\
&&
\end{eqnarray*}


Step 6:        Let's now work the Column 3. We first want the number 1 in Cell 33. We can do this by multiplying Row 3 by $-\dfrac{259}{93}$ to form a new Row 3.

\begin{eqnarray*}&& \\
-\dfrac{259}{93}\left[ Row\ 3\right] &=&\left[ New\ Row\ 3\right] \\
&&
\end{eqnarray*}



\begin{eqnarray*}&& \\
&&
\begin{array}{r}
(1) \\
\\
(2) \\
\\
(3)
...
...& \\
0 & & 0 & & 1 & \vert & 84
\end{array}
\right] \\
&&
\end{eqnarray*}


Step 6:        Let's now put zeros in Cell 13 and Cell 33. We do this by adding $\dfrac{254}{259}$ times Row 3 to Row 1 to form a new Row 1, and by adding $-\dfrac{280}{259}$ times Row 3 to Row 2 to form a new Row 2.

\begin{eqnarray*}&& \\
\frac{254}{259}\left[ Row\ 3\right] +\left[ Row\ 1\righ...
...ht] +\left[ Row\ 2\right] &=&\left[ New\
Row\ 2\right] \\
&&
\end{eqnarray*}



\begin{eqnarray*}&& \\
&&
\begin{array}{r}
(1) \\
\\
(2) \\
\\
(3)
...
...& \\
0 & & 0 & & 1 & \vert & 84
\end{array}
\right] \\
&&
\end{eqnarray*}


The solution: $x=6,\ y=35,$ and z=84..


If you would like to go back to the problem page, click on Problem.

If you would like to return to the beginning of the three by three system of equations, click on Example.




[Two--Variable Systems] [Three-Variable Systems]
[Algebra] [Geometry] [Trigonometry ]

S.O.S MATH: Home Page

Copyright © 1999-2004 MathMedics, LLC. All rights reserved.
Math Medics, LLC. - P.O. Box 12395 - El Paso TX 79913 - USA