Sava D. answered 06/26/17
Tutor
4.9
(98)
Math teacher able to connect arithmetic, algebra and beyond
I will show you the general method of calculating inverse of a matrix. It works with any square matrix. If the matrix does not have an inverse, you will get row with all zeros in the process.
Notation each row will be denoted with the index of the number of the row. For example, R2 means row 2. We will replace a row in next matrix with a new row, that will be a linear combination of 2 rows. The notation R2-3R1 means that in the next matrix I will replace the row against you see that notation with the difference row 2 subtract (three times row 1).
In order to find the matrix inverse, we need to transform the current matrix into identity matrix. We will make the same transformations starting with an identity matrix. The resulting matrix will be the inverse of the starting matrix.
Starting matrix | Transformation | Identity matrix
transformations | |transformations
1 0 6 | | 1 0 0
-2 1 20 | 2R1 +R2 | 0 1 0
5 0 2 | 5R1 - R3 | 0 0 1
(1)Next matrix :
1 0 6 | | 1 0 0
0 1 20 | | 2 1 0
0 0 28 | 1/28•R3 | 5 0 -1
(2)Next matrix
1 0 6 | R1-6R3 | 1 0 0
0 1 20 | R2-20R3 | 2 1 0
0 0 1 | | 5/28 0 -1/28
(3) Next matrix
1 0 0 | | -1/14 0 3/14
0 1 0 | |-11/7 1 5/7
0 0 1 | | 5/28 0 -1/28
Calculations are show below for New matrix 1 and the transformations on the identity matrix.
2R1+R2
a22=2•0+1 =1
a23=2•6+8=20
For identity matrix:
a12=2•1+0=2
a22=2•0+1=1
a23=2•0+0=0
5R1-R3
a32=5•0-0=0
a33=5•6-2=28
For the inverse matrix:
a31=5•1-0=5
a32=5•0-0=0
a33=5•0-1=-1
Note, a21=a31=0 (this is how we decided to make the transformations.
The rest of calculations are done the same way.
Suggestion: Use separate sheet of paper to write explicitly the calculations, including the members signs and work slowly to be able to calculate carefully. Check your work twice.
This is an algorithm. You can research and can find matrix calculator that calculates the inverse of a matrix for you, that will confirm your answer or show you made a mistake.