![]()
MATH347 L9: Row echelon forms
|
New concepts:
Gauss-Jordan algorithm
Existence of matrix inverse
Operations with inverses
![]()
Gaussian multiplier inverse
|
Recall that the Gaussian multiplier matrix ...
... has inverse (matrix that “undoes” the linear transformation)
![]()
Gauss-Jordan algorithm
|
What about general square matrices ? How to find inverse
is inverse if or
Find the inverse is equivalent to solving systems , ...,
Gauss Jordan algoritm generalizes Gaussian elimination that solves a single linear system to solving systems simultaneously by forming the bordered matrix
Example
>> |
A=[1 2 1; -1 0 2; 2 -1 -4]; AX=[A eye(3)]; format rat; disp(AX); |
1 2 1 1 0
0
-1 0 2 0 1
0
2 -1 -4 0 0
1
>> |
![]()
Gauss-Jordan example (cont)
|
>> |
AX(2,:)=AX(2,:)+AX(1,:); AX(3,:)=AX(3,:)-2*AX(1,:); disp(AX); |
1 2 1 1 0
0
0 2 3 1 1
0
0 -5 -6 -2 0
1
>> |
AX(2,:)=(1/2)*AX(2,:); disp(AX); |
1 2 1 1 0
0
0 1 3/2 1/2 1/2
0
0 -5 -6 -2 0
1
>> |
AX(3,:)=AX(3,:)+5*AX(2,:); disp(AX); |
1 2 1 1 0
0
0 1 3/2 1/2 1/2
0
0 0 3/2 1/2 5/2
1
>> |
AX(3,:)=(2/3)*AX(3,:); disp(AX); |
1 2 1 1 0
0
0 1 3/2 1/2 1/2
0
0 0 1 1/3 5/3
2/3
![]()
Gauss-Jordan example (cont)
|
>> |
AX(2,:)=AX(2,:)-(3/2)*AX(3,:); AX(1,:)=AX(1,:)-AX(3,:); disp(AX); |
1 2 0 2/3 -5/3
-2/3
0 1 0 0 -2
-1
0 0 1 1/3 5/3
2/3
>> |
AX(1,:)=AX(1,:)-2*AX(2,:); X=AX(:,4:6); disp(AX); |
1 0 0 2/3 7/3
4/3
0 1 0 0 -2
-1
0 0 1 1/3 5/3
2/3
>> |
format short; disp([A*X X*A]); |
1.0000 0 0.0000 1.0000 0 0
-0.0000 1.0000 -0.0000 0 1.0000 0
0.0000 0.0000 1.0000 0 0 1.0000
>> |
![]()
Existence of inverse
|
When does a matrix inverse exist?
invertible
has a unique solution for all
has a unique solution
The reduced row echelon form of is
can be written as product of elementary matrices
invertible exists, and is a solution . If there were two solutions , then
Choose
. If there is a row of zeros, and solution is not unique. If solution is unique then
implies
.
![]()
Operations with matrix inverses
|
The inverse of a product
If invertible so are: , ,
Verify