Properties of the inverse

So, at least the algorithm is clear. If we can keep on finding pivots successfully [Maple Math] times, then we will get the desired result. Thus the only reason to fail is if one of the rows of [Maple Math] becomes zero and yields no pivot. This is the working test and many times the only useful one.

A matrix having an inverse is said to be invertible or nonsingular . It is said to be singular otherwise . In a sense all nonsquare matrices should be called singular, however, the term is reserved for square matrices only.

Equations with singular left hand sides pose special problems in solving equations. We discuss a sample for now, but the full treatment is done in the third chapter.

Example: Solve [Maple Math] where:

> A:=matrix(3,3,[1,1,2,2,1,3,3,4,7]);B:=matrix(3,1,[p,q,r]);

[Maple Math]

[Maple Math]

> M:=augment(A,B);

[Maple Math]

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

[Maple Math]

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

[Maple Math]

> M3:=addrow(M2,2,3,1);

[Maple Math]

Thus there shall be no solution, unless the RHS of the last equation vanishes, i.e. [Maple Math] . We now assume this condition and continue . But we have only two pivots and we need to clean out only the first two columns.

> M4:=addrow(M3,2,1,1);

[Maple Math]

>

Assuming the variables to be [Maple Math] , we can write the solution as [Maple Math] , [Maple Math] and [Maple Math] is arbitrary, provided, of course the consistency condition [Maple Math] holds.

The variable [Maple Math] is said to be free and the solutions are either an infinite set or an empty set in case the consistency condition fails.

If the right hand side has only independent unknown quantities, and if some row becomes zero on the left hand side, then we will always get consistency conditions . If the conditions are satisfied, then the whole rows of the augmented matrix become zero.

Some simple observations follow.

If the number of pivots is less than the total number of rows (number of equations), then we get consistency conditions and some right hand sides will lead to a no solution situation.

If the number of pivots is less than the number of columns of left hand side (number of variables), then there is at least one free variable and the solution set is either infinite or empty - so the solution is never unique!

It is not hard to convince yourself that the system [Maple Math] has a unique solution for all possible [Maple Math] (of correct height, of course) iff
the number of equations=number of variables=number of pivots .
In other words:
the number of rows=number of columns=number of pivots
Equivalently, .
[Maple Math] is invertible .
In particular, a nonsquare matrix cannot have an inverse!

Think about this. We will give more proof later.

It is possible to make a formula for the inverse of a matrix in terms of its coefficients or as a polynomial expression in the matrix. We only give a calculation to try for an invertible [Maple Math] .

> A:=matrix(3,3,[1,2,1,-2,3,1,3,1,1]);charpoly(A,t);

[Maple Math]

[Maple Math]

> AA:=evalm(A^2-5*A+7*eye(3));

[Maple Math]

> evalm(AA&*A);

[Maple Math]

The polynomial charpoly(A,t) is a polynomial satisfied by the matrix [Maple Math] and this is a very useful fundamental theorem, the so-called Cayley-Hamilton Theorem, to be learnt later. But using the fact that [Maple Math] , we can guess the inverse of [Maple Math] . We simply rewrite the equation as: [Maple Math] or [Maple Math] . Thus [Maple Math] is the desired inverse!

>