Professional Documents
Culture Documents
Gauss Jordan Inverse PDF
Gauss Jordan Inverse PDF
Institute of Engineering,
Tribhuvan University, Nepal
Matrix Inverse via Gauss Jordan Method
i.e.,
x
23
⇒ a21 a22 a23 :
0
0 0 a33 0 : a34 a35 a36
x33 a31 a32 a33 : 1
⇓
Combining:
1 0 0 : x11 x12 x13
a11 a12 a13 : 1 0 0
0 1 0 : x21 x22 x23
a21 a22 a23 : 0 1 0 0 0 1 : x31 x32 x33
a31 a32 a33 : 0 0 1
JRS\IOE 2
Example
2 −3 −2
h i
Find the inverse of the following matrix using the Gauss Jordan Method: −1 −1 −3 .
3 −2 3
Solution:
2
−3 −2
A = −1 −1 −3
3 −2 3
∴ AX = I
2 1 0 0
−3 −2 :
R2 ← R2 + (1/2) ∗ R1
∼ 0 −5/2 −4 : 1/2 1 0
R3 ← R3 − (3/2) ∗ R1
0 5/2 6 : −3/2 0 1
2 0 14/5 2/5 0
: −6/5
R1 ← R1 − (6/5) ∗ R2
∼ 0 −5/2 −4 : 1/2 1 0
R3 ← R3 + R2
0 0 2 : −1 1 1
2 0 0 9/5
: −13/5 −7/5
R1 ← R1 − (7/5) ∗ R3
∼ 0 −5/2 0 : −3/2 3 2
R2 ← R2 + (2) ∗ R3
0 0 2 : −1 1 1
R1 ← R1/2 1 0 0 : 9/10 10
−13/10 −7/10 −13/10 −7/10
R2 ← (−2/5)R2 ∼ 0 1 0 : 3/5 −4/5 ∴ A = 3/5
−1
−6/5 −6/5 −4/5
R3 ← R3/2 0 0 1 : −1/2 1/2 1/2 −1/2 1/2 1/2
JRS\IOE 4
Assignments
1. Construct a 4 × 4 non-singular square matrix of your own and compute its inverse
using the Gauss Jordan Method and verify the correctness of the computation.
2. Write algorithm/pseudo-code and program to find the inverse of a given square
matrix of any order using the Gauss-Jordan Method. Verify your program with second,
third, fourth, and fifth order matrices.
JRS\IOE 5