SOLUTION: Solve the following system of equations by Gauss-Elimination method x + y + z = 9 x – 2y + 3z = 8 2x + y – z = 3

Algebra ->  Probability-and-statistics -> SOLUTION: Solve the following system of equations by Gauss-Elimination method x + y + z = 9 x – 2y + 3z = 8 2x + y – z = 3       Log On


   



Question 235843: Solve the following system of equations by Gauss-Elimination method
x + y + z = 9
x – 2y + 3z = 8
2x + y – z = 3

Answer by Stitch(470) About Me  (Show Source):
You can put this solution on YOUR website!
Aghhh so that was not Gauss-Elimination but below is a nother way to do it. Sorry about that....

Here is the Gauss-Elimination way:
Equation 1: X+%2B+Y+%2B+Z+=+9
Equation 2: X+-+2Y+%2B+3X+=+8
Equation 3: 2X+%2B+Y+-+Z+=+3
-*(Equation 1) + Equation 2 = Equation 2
Multiply equation 1 by negative 1 and then add to equation 2
-(X + Y + Z = 9) + (X - 2Y +3Z = 8) Rewrite the equation
(-X - Y - Z = -9) + (X - 2Y +3Z = 8) Combine like terms, notice that the X's cancel out
Equation 2 now equals -3Y+%2B+2Z+=+-1
-------
To eliminate X for equation 3, multiply equation 1 by -2
-2*(Equation 1) + Equation 3 = Equation 3
-2*(X + Y + Z = 9) + (2X + Y - Z = 3) Rewrite the equation
(-2X - 2Y -2Z = -18) + (2X + Y - Z = 3) Combine like terms, notice that the X's cancel out
Equation 3 now equals -Y+-+3Z+=+-15
-------
Now we have to eliminate another variable
Equation 2 now equals -3Y+%2B+2Z+=+-1
Equation 3 now equals -Y+-+3Z+=+-15
-3*(Equation 3) + Equation 2 = Equation 2
-3*(-Y -3Z = -15) + (-3Y + 2Z = -1) Rewrite the equation
(3Y + 9Z = 45) + (-3Y + 2Z = -1) Combine like terms, notice that the Y's cancel out
Equation 2 now equals 11Z+=+44 Divide both sides by 11
Z+=+4
Now we have to go back and do substitution
Lets plug 4 in for Z in the new equation 3
-Y+-+3Z+=+-15
-Y+-+%283%2A4%29+=+-15 Simplify
-Y+-+12+=+-15 Add Y to both sides
-12+=+-15+%2B+Y Add 15 to both sides
-12+%2B+15+=+Y
3+=+Y
Now lets plug our answers into equation 1
X+%2B+Y+%2B+Z+=+9
X+%2B+3+%2B+4+=+9 Combione like terms
X+%2B+7+=+9 Subtract 7 from both sides
X+=+2
You can see the checks down below



-------------------------------------------------------------------------------
Anothor way
Given:
Equation 1: X+%2B+Y+%2B+Z+=+9
Equation 2: X+-+2Y+%2B+3X+=+8
Equation 3: 2X+%2B+Y+-+Z+=+3
------------------------------------
Solution:
The first step is to solve for 1 of the variables.
Lets set equations 1 & 3 equal to zero
Equation 1: X+%2B+Y+%2B+Z+=+9 Subtract 9 from both sides
X+%2B+Y+%2B+Z+-+9+=+0
Equation 3: 2X+%2B+Y+-+Z+=+3 Subtract 3 from both sides
2X+%2B+Y+-+Z+-3+=+0
Now since both equations equal zero, we can set them equal to each other
X+%2B+Y+%2B+Z+-+9+=+2X+%2B+Y+-+Z+-+3 Add 3 to both sides
X+%2B+Y+%2B+Z+-+9+%2B+3+=+2X+%2B+Y+-+Z Subtract X from both sides
Y+%2B+Z+-+9+%2B+3+=+2X+%2B+Y+-+Z+-+X Combine like terms
Y+%2B+Z+-+6+=+X+%2B+Y+-+Z Subtract Y from both sides
Z+-+6+=+X++-+Z Add Z to both sides
Z+-+6+%2B+Z+=+X Combine like terms
2%2AZ+-+6+=+X
Lets label X+=+2%2AZ+-+6 as equation 4
-------------------------------------------
Now plug (2Z - 6) into equation 1 for X
Equation 1: X+%2B+Y+%2B+Z+=+9
%282%2AZ+-+6%29+%2B+Y+%2B+Z+=+9 Combine like terms
3%2AZ+-+6+%2B+Y+=+9 Add 6 to both sides
3%2AZ+%2B+Y+=+15 Subtract 3Z from both sides
Y+=+15+-+3Z
Lets label Y+=+15+-+3Z as equation 5
-------------------------------------------
Now plug equation 4 in for X, and equation 5 in for Y in Equation 2
Equation 2: X+-+2Y+%2B+3X+=+8
Combine like terms
-36+%2B+11%2AZ+=+8 Add 36 to both sides
11%2AZ+=+44 Divide both sides by 11
Z+=+4
-------------------------------------------
Now plug 4 into equation 5 for Z
Equation 5: Y+=+15+-+3Z
Y+=+15+-+3%2A%284%29 Simplify
Y+=+15+-+12 Combine like terms
Y+=+3
-------------------------------------------
Now plug 4 into equation 4 for Z
Equation 4: X+=+2%2AZ+-+6
X+=+2%2A%284%29+-+6 Simplify
X+=+8+-+6 Combine like terms
X+=+2
-------------------------------------------
Its time to check your answers
X = 2, Y = 3, Z = 4
Plug your answers into the three given equations and make sure that they are true
Equation 1: X+%2B+Y+%2B+Z+=+9
Equation 2: X+-+2Y+%2B+3X+=+8
Equation 3: 2X+%2B+Y+-+Z+=+3
----
Equation 1: 2+%2B+3+%2B+4+=+9
9+=+9+ Equation 1 checks out
----
Equation 2: X+-+2Y+%2B+3X+=+8
2++%96+2%2A%283%29+%2B+3%2A%284%29+=+8
2+-+6+%2B+12+=+8
8+=+8 Equation 2 checks out
----
Equation 3: 2X+%2B+Y+-+Z+=+3
2%2A%282%29+%2B+3+-+4+=+3
4+%2B+3+-+4+=+3
3+=+3Equation 3 checks out