Subsection CIM Computing the Inverse of a Matrix

We have seen that the matrices from Archetype B and Archetype K both have inverses, but these inverse matrices have just dropped from the sky. How would we compute an inverse? And just when is a matrix invertible, and when is it not? Writing a putative inverse with $n^2$ unknowns and solving the resultant $n^2$ equations is one approach. Applying this approach to $2\times 2$ matrices can get us somewhere, so just for fun, let us do it.

Theorem TTMI Two-by-Two Matrix Inverse

Suppose \begin{equation*} A= \begin{bmatrix} a&b\\ c&d \end{bmatrix} \end{equation*}

Then $A$ is invertible if and only if $ad-bc\neq 0$. When $A$ is invertible, then \begin{equation*} \inverse{A}=\frac{1}{ad-bc} \begin{bmatrix} d&-b\\ -c&a \end{bmatrix} \end{equation*}

There are several ways one could try to prove this theorem, but there is a continual temptation to divide by one of the eight entries involved ($a$ through $f$), but we can never be sure if these numbers are zero or not. This could lead to an analysis by cases, which is messy, messy, messy. Note how the above proof never divides, but always multiplies, and how zero/nonzero considerations are handled. Pay attention to the expression $ad-bc$, as we will see it again in a while (Chapter D).

This theorem is cute, and it is nice to have a formula for the inverse, and a condition that tells us when we can use it. However, this approach becomes impractical for larger matrices, even though it is possible to demonstrate that, in theory, there is a general formula. (Think for a minute about extending this result to just $3\times 3$ matrices. For starters, we need 18 letters!) Instead, we will work column-by-column. Let us first work an example that will motivate the main theorem and remove some of the previous mystery.

Example CMI Computing a matrix inverse

Notice how the five systems of equations in the preceding example were all solved by exactly the same sequence of row operations. Would it not be nice to avoid this obvious duplication of effort? Our main theorem for this section follows, and it mimics this previous example, while also avoiding all the overhead.

Theorem CINM Computing the Inverse of a Nonsingular Matrix

Suppose $A$ is a nonsingular square matrix of size $n$. Create the $n\times 2n$ matrix $M$ by placing the $n\times n$ identity matrix $I_n$ to the right of the matrix $A$. Let $N$ be a matrix that is row-equivalent to $M$ and in reduced row-echelon form. Finally, let $J$ be the matrix formed from the final $n$ columns of $N$. Then $AJ=I_n$.

We have to be just a bit careful here about both what this theorem says and what it does not say. If $A$ is a nonsingular matrix, then we are guaranteed a matrix $B$ such that $AB=I_n$, and the proof gives us a process for constructing $B$. However, the definition of the inverse of a matrix (Definition MI) requires that $BA=I_n$ also. So at this juncture we must compute the matrix product in the “opposite” order before we claim $B$ as the inverse of $A$. However, we will soon see that this is always the case, in Theorem OSIS, so the title of this theorem is not inaccurate.

What if $A$ is singular? At this point we only know that Theorem CINM cannot be applied. The question of $A$'s inverse is still open. (But see Theorem NI in the next section.)

We will finish by computing the inverse for the coefficient matrix of Archetype B, the one we just pulled from a hat in Example SABMI. There are more examples in the Archetypes (Archetypes) to practice with, though notice that it is silly to ask for the inverse of a rectangular matrix (the sizes are not right) and not every square matrix has an inverse (remember Example MWIAA?).

Example CMIAB Computing a matrix inverse, Archetype B
Sage MISLE Matrix Inverse, Systems of Equations
(in context)