Let's start by taking a look at a problem that may seem a bit boring, but in terms of practical applications is perhaps the most common use of matrices: the solution of systems of linear equations. Following is a typical problem (although real-world problems may have hundreds of variables).
Solve the following system of equations:
The key observation is this: the problem above can be converted to matrix notation as follows:
Ignoring all the difficult details, here is how such systems can be
solved. Let
be the
square matrix in
equation (1) above, so the equation looks like this:
Suppose we can somehow find another matrix
such that
.
If we can, we can multiply both sides of equation (2)
by
to obtain:
Without explaining where we got it, the matrix on the left below
is just such a matrix
. Check that the multiplication below
does yield the identity matrix:
So we just need to multiply that matrix
by the column vector
containing 7, 11, and 5 to get our solution:
Although it doesn't happen all that often, somtimes the same system of
equations needs to be solved for a variety of column vectors on the
right--not just one. In that case, the solution to every one can be
obtained by a single multiplication by the matrix
.
The matrix
is usually written as
, called ``
-inverse''.
It is a multiplicative inverse in just the same way that
is
the inverse of
:
, and
is the multiplicative
identity, just as
is in matrix multiplication.
Entire books are written that describe methods of finding the
inverse of a matrix, so we won't go into that here.
Remember that for numbers, zero has no inverse; for matrices, it is much worse--many, many matrices do not have an inverse. Matrices without inverses are called ``singular''. Those with an inverse are called ``non-singular''.
Just as an example, the matrix on the left of the multiplication below
can't possibly have an inverse, as we can see from the matrix on
the right. No matter what the values are of
, it
is impossible to get anything but zeroes in certain spots in the
diagonal, and we need ones in all the diagonal spots:
If the set of linear equations has no solution, then it will be
impossible to invert the associated matrix. For example, the
following system of equations cannot possibly have a solution, since
cannot possibly add to two different numbers (7 and 11) as
would be required by the first two equations:
So obviously the associated matrix below cannot be inverted: