Professional Documents
Culture Documents
Matrix Inversion
In this method, if A is a given matrix, for which we have to find the inverse; at first, we
place an identity matrix, whose order is same as that of A, adjacent to A which we call an
augmented matrix.
Then the inverse of A is computed in two stages. In the first stage, A is converted into an
upper triangular form, using Gaussian elimination method
In the second stage, the above upper triangular matrix is reduced to an identity matrix by
row transformations. All these operations are also performed on the adjacently placed
identity matrix.
Finally, when A is transformed into an identity matrix, the adjacent matrix gives the
inverse of A.
In order to increase the accuracy of the result, it is essential to employ partial pivoting.
Example
Use the Gaussian elimination method to find the inverse of the matrix
1 1 1
A = 4 3 −1
3 5 3
Solution
At first, we place an identity matrix of the same order adjacent to the given matrix. Thus,
the augmented matrix can be written as
1 1 1 1 0 0
4 3 −1 0 1 0
3 5 3 0 0 1
Stage I (Reduction to upper triangular form): Let R1, R2 and R3 denote the 1st , 2nd
and 3rd rows of a matrix. In the 1st column, 4 is the largest element, thus interchanging
R1 and R2 to bring the pivot element 4 to the place of a11, we have the augmented
matrix in the form
4 3 −1 0 1 0
1 1 1 1 0 0
3 5 3 0 0 1
Divide R1 by 4 to get
3 1 1
1 4 − 4 0 4 0
1 1 1 1 0 0
3 5 3 0 0 1
Perform R2 − R1 → , which gives
3 1 1
1 4 − 0 0
4 4
0 1 5
1 −
1
0
4 4 4
3 5 3 0 0 1
3 1 1
1 4 − 4 0 4 0
0 11 15 1 − 1 0
4 4 4
0 1 1
0 −
3
1
4 4 4
Now, looking at the second column for the pivot, the max (1/4. 11/4) is 11/4. Therefore,
we interchange R2 and R3 in the last equation and get
3 1 1
1 4 − 4 0 4 0
0 11 15 0 − 3 1
4 4 4
0 1 5
1 −
1
0
4 4 4
Now, divide R2 by the pivot a22 = 11/4, and obtain
3 1 1
1 4 − 4 0 4
0
0 1 15 0 − 3 4
11 11 11
0 1 5 1 − 1 0
4 4 4
Performing R3 − (1 4) R2 → R3 yields
3 1 1
1 4 − 4 0 4
0
0 1 15 0 − 3 4
11 11 11
0 0 10 1 − 2 − 1
11 11 11
Finally, we divide R3 by (10/11), thus getting an upper triangular form
3 1 1
1 − 0 0
4 4 4
0 1 15 0 − 3 4
11 11 11
0 0 1 11 − 1 − 1
10 5 10
Stage II
Reduction to an identity matrix (1/4)R3 + R1 and (-15/11)R3 + R2
3 11 1 1
1 4 0 40 −
5 40
0 1 0 − 3 1
0
2 2
0 0 1 11 − 1 − 1
10 5 10
7 1 2
1 0 0 5 −
5 5
0 1 0 − 3 0 1
2 2
0 0 1 11 − 1 − 1
10 5 10
Thus, we have
7 1 2
5 −
5 5
−1 3 1
A = − 0
2 2
11 − 1 − 1
10 5 10
Example
2 1 1
Find the inverse of the 3 2 3 using gauss elimination method.
1 4 9
Solution
We have the argumented system
2 1 1 1 0 0
[ A / I ] = 3 2 3 | 0 1 0
1 4 9 0 0 1
2 1 1 1 0 0
1 3 −3 3 1
~ 3 | 1 0 R2 − ( ) R1 , R3 − ( ) R1
2 2 2 2 2
7 17 −1
1 0 1
2 2 2
2 1 1 1 0 0
1 3 −3
~ 0 | 1 0 R3 − 7 R2
2 2 2
0 0 −2 10 −7 1
x11 x12 x13
now if x21 x22 x23
x31 x32 x33
then the system 1 is the inverse of the given matrix the system is eqivalent to
three systems
2 1 1 1
x11
0 1 3 −3
x21 =
2 2 2
x
0 0
−2 31 10
2 1 1
x12 0
0 1 3
x22 = 1
2 2
x −7
0 0
−2 32
x11 = −3 x21 = 12 x31 = −5
5 −17 7
x21 = x22 = x23 =
2 2 2
−1 3 1
x31 = x22 = x23 = −
2 2 2
and the inverse martix is
−6 5 −1
1
24 −17 3
2
−10 7 −1
2 1 1
x13 0
0 1 3
x23 = 0
2 2
x 1
0
0 −2 33
by back substitution , the three systems of equation may be written as
Example
4 1 2
Fine the inverse of the matrix 2 3 −1 using gauss elimination method.
1 −2 2
Solution
4 1 2 1 0 0
[ Α/Ι ] = 2 3 −1| 0 1 0
1 −2 2 0 0 1
4 1 2 1 0 0
5 −1 1 1
~ 0 −2 | 1 0 R2 − R1 , R3 − R1
2 2 2 4
−9 3 −1
0 0 1
4 2 4
x11 x12 x13
now if x21 x22 x23 is the inverse of the given matrix , then the system(1)is
x31 x32 x33
equivalent to three systems
4 1 2 1
x11
5 −1
0 −2 x12 =
2 2
x13
−93 −14
0
42 20
4 1 2
12 x 0
0 5
−2 x22 = 1
2
x 9
−9 3 23
0 10
4 2
4 1 2
x13 0
5
0 −2 x23 = 0
2
x 1
−9 3 33
0
4 2
−4 5 7
x11 = x21 = x31 =
3 3 3
x21 = 2 x22 = −2 x23 = −3
7 −8 10
x31 = x22 = x23 = −
3 3 3
Example
Find the inverse of the given matrix by Gauss-Jordan method
1 1 1
A = 4 3 −1
3 5 3
Solution
Let R1, R2 and R3 denote the 1st, 2nd and 3rd rows of a matrix. We place the identity
matrix adjacent to the given matrix. So the augmented matrix is given by
1 1 1 1 0 0
4 3 −1 0 1 0
3 5 3 0 0 1
Performing R2 − 4 R1 → R2 , we get
1 1 1 1 0 0
0 −1 −5 0 1 0
3 5 3 0 0 1
Now, performing R3 − 3R1 → R3 , we obtain
1 1 1 1 0 0
0 −1 −5 −4 1 0
0 2 0 −3 0 1
7 1 2
1 0 0 5 −
5 5
0 −1 0 3 1
0 −
2 2
0 0 1 11 − 1 − 1
10 5 10
Finally, multiplying R2 by –1, we obtain
7 1 2
1 0 0 5 −
5 5
0 1 0 − 3 1
0
2 2
0 0 1 11 − 1 − 1
10 5 10
Hence, we have
7 1 2
5 −
5 5
−1 3 1
A = − 0
2 2
11 1 1
− −
10 5 10
Exercise
Solve all the above examples solved by Gauss elimination by using gauss Jordan method.