Gauss Jordan Elimination Method

Posted by Unknown on 10:17 PM with 1 comment
Gauss Jordan Elimination Method is a method to solve large linear equation numerically. It is done by manipulating the given matrix using elementary row operations. It puts zero both above and below each pivot element as it goes from top row of the matrix to the bottom. This method is also known as Back Substitution.

 

Gauss Jordan Elimination Method

Gauss Jordan elimination is an algorithm for getting matrices in reduced row echelon form using elementary row operations. Gauss Jordan is well suited for solving linear systems.
Consider n linear equations to be solved
a11x1 + a12 x2 + . ......+ a1nxn = b1
a21x1 + a22 x2 + . ......+ a2nxn = b2
........................................................

an1x1 + an2 x2 + . ......+ annxn = bn
If ⎡⎣⎢⎢⎢⎢⎢⎢a11a21..an1a12a22..an2..........a1na2n..ann∣∣∣∣∣∣∣b1b2..bn⎤⎦⎥⎥⎥⎥⎥⎥ is augmented matrix associated with a linear system, then elementary row operations are used to reduced this matrix to ⎡⎣⎢⎢⎢⎢⎢⎢10..001..0..........0...1∣∣∣∣∣∣∣m1m2..mn⎤⎦⎥⎥⎥⎥⎥⎥

The solution appears in last column, i.e. xi = mi.

Gauss Jordan Elimination Step by Step

In order to solve a system of three linear equations by Gauss Jordan elimination method, elementary row operation has to be performed on the augmented matrix as follow:
Step 1:
  • Transform the element at a11 position to 1, by a suitable elementary row transformation using the element at a21 or a31 position or otherwise.
  • Transform the non-zero elements , if any , at a21, a31 position as zeros (other elements of the first column) by using the element 1 at a11 position. If at the end of step 1, there is a non-zero element at a22 or a32 position, go to step 2. Otherwise skip it.
Step 2:
  • Transform the element at a22 position as 1 by a suitable elementary row transformation using the element at a32 position or otherwise.
  • Transform the other non-zero elements, if any, of the second column (i.e., the non-zero elements, if any, at a12 and a32 positions) as zeros, by using the element 1 at a22 position. At the end of step 2 or after skipping it for reasons specified above, examine the element at a33 position.If it is non-zero, go to step3.
Step 3:
  • Transform the element at a33 position as 1 by dividing R3 with a suitable number.
  • Transform the other non-zero elements if any of the third column (i.e., the non-zero elements, if any, at a13 , a23 position) as zeros by using the 1 present at a33 position.

Gauss Jordan Elimination Example

Below you could see examples on Gauss Jordan Elimination methods.

Solved Examples

Question 1: Solve the following equations by Gauss Jordan Elimination method.
x + 2y = 3
-x - 2z = -5
-3x - 5y + z = -4
Solution:
Given system of linear equations is x + 2y = 3
-x - 2z = -5
-3x - 5y + z = -4

Augmented matrix is
⎡⎣⎢1−1−320−50−21∣∣∣∣3−5−4⎤⎦⎥

Using operations R2 ∼ R2 + R1 and R3 ∼ R3 + 3R1
⎡⎣⎢1002210−21∣∣∣∣3−25⎤⎦⎥

R1 ~ R1 - R2 and R2 = R22

⎡⎣⎢1000112−11∣∣∣∣5−15⎤⎦⎥

R3 ~ R3 - R2
⎡⎣⎢1000102−12∣∣∣∣5−16⎤⎦⎥
R3 ~ R32
⎡⎣⎢1000102−11∣∣∣∣5−13⎤⎦⎥
R1 ~ R1 - 2R3 and R2 ~ R2 + R3
⎡⎣⎢100010001∣∣∣∣−123⎤⎦⎥
Therefore, the solution of the system is x = -1, y = 2 and z = 3.


Question 2: Solve the following equations by Gauss Jordan Elimination method. 3x + 4y + 5z = 18
2x - y + 8z = 13
5x - 2y + 7z = 20

Solution: The augmented Matrix is
⎡⎣⎢3254−1−2587181320⎤⎦⎥
On applying operation R1 --> R1 - R2, we get
⎡⎣⎢1255−1−2−38751320⎤⎦⎥
On applying R2 -->R2 - 2R1,R3 --> R3 - 5R1 ,we get
⎡⎣⎢1005−11−27−3142253−5⎤⎦⎥
On applying R2 --> -5R2 + 2R3, we get
⎡⎣⎢10051−27−3−26225−25−5⎤⎦⎥
On applying R1 --> R1 - 5R2, R3 --> R3 + 27R2 ,we obtain
⎡⎣⎢100010127−26−680130−25−680⎤⎦⎥
On applying R3 -->R3/(-680), we get
⎡⎣⎢100010127−261130−251⎤⎦⎥
On applying R1 --> R1 - 127R3, R2 --> R2 + 26R3 ,we obtain
⎡⎣⎢100010001311⎤⎦⎥
Hence, the solution is x = 3, y = 1, z = 1.