The inverse

One nice way of solving [Maple Math] occured if we can find some matrix [Maple Math] such that [Maple Math] . In this case, we first multiply both sides by [Maple Math] on the left to get [Maple Math] and the solution is simply given as [Maple Math] . (Since [Maple Math] , of course!) Now we study when it can be done and how the matrix [Maple Math] can then be found.

We will later show that the equation [Maple Math] or a similar reversed equation [Maple Math] is possible only when [Maple Math] is a square matrix. Further, it will come out that either of the two implies the other and then the two answers [Maple Math] must agree!

For our algorithm, it is easier to solve [Maple Math] . We think of this as [Maple Math] equations, where we replace the right hand side [Maple Math] by each of its column.

Now comes a simple but important observation. Our method of solving equations depended on choosing pivots from the left hand side coefficients only, while the operations were carried out on both the sides together. This means that if we have several right hand sides, we may as well augment all of them together, provided we remember not to take pivots from them. The final solutions can then be read off at the end separately.

Thus to solve [Maple Math] , we take the augmented matrix ( [Maple Math] | [Maple Math] ) and start the reduction process. We had done this earlier for a different purpose anyway, so there is nothing new involved! For example:

> A:=matrix(3,3,[1,2,1,-2,3,1,3,1,1]);M:=augment(A,eye(3));

[Maple Math]

[Maple Math]

> M1:=addrow(M,1,2,2):M2:=addrow(M1,1,3,-3);

[Maple Math]

> M3:=addrow(M2,2,3,5/7);

[Maple Math]

> M4:=multrow(M3,3,7);

[Maple Math]

> M5:=addrow(M4,3,2,-3):M6:=addrow(M5,3,1,-1);

[Maple Math]

> M7:=multrow(M6,2,1/7);

[Maple Math]

> M8:=addrow(M7,2,1,-2);

[Maple Math]

The desired answer appears in place of [Maple Math] . We extract it and verify that it does the right thing!

> F:=submatrix(M8,1..3,4..6);

[Maple Math]

> check:=evalm(F&*A),evalm(A&*F);

[Maple Math]

Of course, there are Maple shortcuts. We can apply the inverse command or use a simple algebraic inverse.

> inverse(A),evalm(A^(-1));

[Maple Math]

Note that we have a free result as a consequence. We know that the change from [Maple Math] to [Maple Math] was also effected by multiplying by the matrix [Maple Math] on the left. This is because, the product of the elementary matrices was automatically stored in [Maple Math] . BY observing [Maple Math] , we see that [Maple Math] . Thus, we have proved that [Maple Math] gives [Maple Math] also!

>