SOLUTION: Can someone please show me step by step how to solve this problem using matrices? I’m missing something somewhere, Thanx. x – y + 4z = 6 2x + z = 1 x +5y + z = -9

Algebra ->  Matrices-and-determiminant -> SOLUTION: Can someone please show me step by step how to solve this problem using matrices? I’m missing something somewhere, Thanx. x – y + 4z = 6 2x + z = 1 x +5y + z = -9       Log On


   



Question 449181: Can someone please show me step by step how to solve this problem using matrices? I’m missing something somewhere, Thanx.
x – y + 4z = 6
2x + z = 1
x +5y + z = -9

Found 2 solutions by ewatrrr, stanbon:
Answer by ewatrrr(24785) About Me  (Show Source):
You can put this solution on YOUR website!
 
Hi
x – y + 4z = 6
2x + z = 1
x +5y + z = -9
Ordered triple (0, -2, 1) is the solution for this system of equations:
See below
Solved by pluggable solver: Using Cramer's Rule to Solve Systems with 3 variables



system%281%2Ax%2B-1%2Ay%2B4%2Az=6%2C2%2Ax%2B0%2Ay%2B1%2Az=1%2C1%2Ax%2B5%2Ay%2B1%2Az=-9%29



First let A=%28matrix%283%2C3%2C1%2C-1%2C4%2C2%2C0%2C1%2C1%2C5%2C1%29%29. This is the matrix formed by the coefficients of the given system of equations.


Take note that the right hand values of the system are 6, 1, and -9 and they are highlighted here:




These values are important as they will be used to replace the columns of the matrix A.




Now let's calculate the the determinant of the matrix A to get abs%28A%29=36. To save space, I'm not showing the calculations for the determinant. However, if you need help with calculating the determinant of the matrix A, check out this solver.



Notation note: abs%28A%29 denotes the determinant of the matrix A.



---------------------------------------------------------



Now replace the first column of A (that corresponds to the variable 'x') with the values that form the right hand side of the system of equations. We will denote this new matrix A%5Bx%5D (since we're replacing the 'x' column so to speak).






Now compute the determinant of A%5Bx%5D to get abs%28A%5Bx%5D%29=0. Again, as a space saver, I didn't include the calculations of the determinant. Check out this solver to see how to find this determinant.



To find the first solution, simply divide the determinant of A%5Bx%5D by the determinant of A to get: x=%28abs%28A%5Bx%5D%29%29%2F%28abs%28A%29%29=%280%29%2F%2836%29=0



So the first solution is x=0




---------------------------------------------------------


We'll follow the same basic idea to find the other two solutions. Let's reset by letting A=%28matrix%283%2C3%2C1%2C-1%2C4%2C2%2C0%2C1%2C1%2C5%2C1%29%29 again (this is the coefficient matrix).




Now replace the second column of A (that corresponds to the variable 'y') with the values that form the right hand side of the system of equations. We will denote this new matrix A%5By%5D (since we're replacing the 'y' column in a way).






Now compute the determinant of A%5By%5D to get abs%28A%5By%5D%29=-72.



To find the second solution, divide the determinant of A%5By%5D by the determinant of A to get: y=%28abs%28A%5By%5D%29%29%2F%28abs%28A%29%29=%28-72%29%2F%2836%29=-2



So the second solution is y=-2




---------------------------------------------------------





Let's reset again by letting A=%28matrix%283%2C3%2C1%2C-1%2C4%2C2%2C0%2C1%2C1%2C5%2C1%29%29 which is the coefficient matrix.



Replace the third column of A (that corresponds to the variable 'z') with the values that form the right hand side of the system of equations. We will denote this new matrix A%5Bz%5D






Now compute the determinant of A%5Bz%5D to get abs%28A%5Bz%5D%29=36.



To find the third solution, divide the determinant of A%5Bz%5D by the determinant of A to get: z=%28abs%28A%5Bz%5D%29%29%2F%28abs%28A%29%29=%2836%29%2F%2836%29=1



So the third solution is z=1




====================================================================================

Final Answer:




So the three solutions are x=0, y=-2, and z=1 giving the ordered triple (0, -2, 1)




Note: there is a lot of work that is hidden in finding the determinants. Take a look at this 3x3 Determinant Solver to see how to get each determinant.



Answer by stanbon(75887) About Me  (Show Source):
You can put this solution on YOUR website!
Can someone please show me step by step how to solve this problem using matrices? I’m missing something somewhere, Thanx.
x – y + 4z = 6
2x + z = 1
x +5y + z = -9
------------------------
Form the matrix:
1..-1...4
2...0...1
1...5...1
-----------------
Find it's inverse:
The foll0wing is multiplied by 1/36
-5....21....-1
-1....-3.....7
30....-6.....2
======================
Multiply the inverse times the
column matrix [6....1.....-9] to get
x = 0
y = -2
z = 1
===================
Cheers,
Stan H.
============