Question
Question: How do you solve using the Gaussian elimination or gauss Jordan elimination, \(2x+y-z+2w=-6\), \(3x+...
How do you solve using the Gaussian elimination or gauss Jordan elimination, 2x+y−z+2w=−6, 3x+4y+w=1, x+5y+2z+6w=−3, 5x+2y−z−w=3?
Solution
Write the given equations in matrix form as 2 3 1 5 1452−102−1216−1x y z w =−6 1 −3 3 where the first matrix in the L.H.S is formed by the coefficients of given variables, second matrix contains the variables and the matrix in the R.H.S denotes the constant terms. Using gauss elimination method, make the first three elements of the fourth row, first two elements of the third row, first element of the second row of the matrix 2 3 1 5 1452−102−1216−1 equal to 0 by performing several row operations. Similarly, use the same row operations in the matrix −6 1 −3 3 . Finally, multiply the matrices present in the L.H.S and equate with the respective constant terms in the R.H.S to solve the equations easily.
Complete step by step answer:
Here we have been provided with four equations containing four variables and we are asked to solve the equations using the gauss elimination method or the gauss Jordan method. Here, we will apply the gauss elimination method.
2x+y−z+2w=−6
3x+4y+w=1
x+5y+2z+6w=−3
5x+2y−z−w=3
In Gauss elimination method first we write the given equations in matrix form as shown below:
2 3 1 5 1452−102−1216−1x y z w =−6 1 −3 3
Now, we have to perform several row operations such that we get first three elements of the fourth row, first two elements of the third row, first element of the second row of the matrix 2 3 1 5 1452−102−1216−1 equal to 0. Same row operations we need to perform in the matrix −6 1 −3 3 while leaving the matrix x y z w as it is. Once we are done with the above process we have to multiply the matrices in the L.H.S and compare with the constant terms in the R.H.S to solve for the variables. so let us perform the row operations.
⇒2 3 1 5 1452−102−1216−1x y z w =−6 1 −3 3
Interchanging the rows R1 and R3 we have,
⇒1 3 2 5 541220−1−1612−1x y z w =−3 1 −6 3
Performing the row operations R2=R2−3R1,R3=R3−2R1,R4=R4−5R1 we get,
⇒1 0 0 0 5−11−9−232−6−5−116−17−10−31x y z w =−3 10 0 18
Performing the row operations R2=−9R2,R3=11R3 we get,
⇒1 0 0 0 599−99−23254−55−116−153−110−31x y z w =−3 −90 0 18
Operating R2=R2+R3 and then interchanging the rows R2 and R3 we get,
⇒1 0 0 0 5990−23254−1−116−11043−31x y z w =−3 0 −90 18
Operating R2=1123R2,R4=9R4 we get,
⇒1 0 0 0 5−2070−2072−115−1−996−23043−279x y z w =−3 0 −90 162
Performing the row operation R4=R4−R2 we get,
⇒1 0 0 0 5−207002−115−1166−23043−49x y z w =−3 0 −90 162
Performing the row operations R2=231R2,R3=16R3 we get,
⇒1 0 0 0 5−9002−5−16166−10688−49x y z w =−3 0 −1440 162
Operating R4=R4+R3 we get,
⇒1 0 0 0 5−9002−5−1606−10688639x y z w =−3 0 −1440 −1278
Therefore, we have made the required elements 0 so multiplying the matrices in the L.H.S and comparing with the respective constants in the matrix present in the R.H.S we get,
⇒x+5y+2z+6w −9y−5z−10w −16z+688w 639w =−3 0 −1440 −1278
Starting with the last row we get,
⇒639w=−1278⇒w=−2
Substituting the third row we get,
⇒−16z+688(−2)=−1440⇒−16z=−64⇒z=4
Substituting the second row we get,
⇒−9y−5(4)−10(−2)=0⇒y=0
Substituting the first row we get,
⇒x+5(0)+2(4)+6(−2)=−3⇒x=1
Hence, the solution set is given as (x, y, z, w) = (1, 0, 4, -2).
Note: Note that here we have used the gauss elimination method to solve the question. if we have to use the gauss Jordan elimination method then we have to perform more row operations in the matrix 1 0 0 0 5−9002−5−1606−10688639 and convert it into a unit matrix. Finally, we have to multiply the matrices on the L.H.S and compare with the R.H.S just like we did above.