Question
Question: How do you solve using gaussian elimination or gauss Jordan elimination, x-2y-z=2 , 2x – y + z = 4...
How do you solve using gaussian elimination or gauss Jordan elimination, x-2y-z=2 ,
2x – y + z = 4, -x + y -2z = -4 ?
Solution
While solving a system of linear equation by using gauss elimination method, we write all the coefficient and constants of equations in matrix form and then by doing row operation we try to make the coefficient of any rows 0 except one coefficient and then solve for unknowns.
Complete step by step solution:
Equations given in the question is x-2y-z=2 ,2x – y + z = 4, -x + y -2z = -4 , if we write in matrix form we get
1 2 −1 −2−11−11−224−4
Now we can perform row operation, let’s write R3 as sum of R1 and R3 and R2 as R2−2R1
1 0 0 −23−1−13−320−2
Now writing R3 as 31R2+R3
1 0 0 −230−13−220−2
From row 3, we get -2z is equal to -2, so z is equal to 1
From row 2, we get 3y + 3z =0 , so if we put z = 1, y comes out to be -1.
From row 1, we get x – 2y - z = 2, if we put z = 1 and y = -1 we get x equal to 1.
So x = 1, y = -1 and z = 1 is solution of the system of equation.
Note: The given 3 equations in the above question represent a plane in 3D coordinate system. If any 2 of the planes are parallel to each other then there will be no solution for the system. If one plane passes through the line formed by the intersection of another 2 planes then there will be an infinite no of solutions.