Skip to main content

Section 2.2 Matrix Inverses

Handout 2.2 Matrix Inverses

Your scientists were so preoccupied with whether or not they could, they didn’t stop to think if they should.
―
Spielberg and Crichton, Jurassic Park, 1993 film
The algorithm we introduce in this section could be used to compute the inverse of an \(n\times n\) matrix. At the end of the lecture we’ll discuss some of the problems with our algorithm and why it can be difficult to compute a matrix inverse.
Motivating Question: Is there a matrix \(A\) such that
\begin{equation*} \begin{bmatrix} 2 \amp -1 \amp 0\\ -1 \amp 2 \amp -1\\ 0 \amp -1 \amp 2 \end{bmatrix}A = I_3\; ? \end{equation*}

Definition 2.16. Invertible (Non-singular) Matrix.

An \(n \times n\) matrix \(A\) is invertible (or non-singular) if there exists a matrix \(C\in\mathbb{R}^{n\times n}\) such that
\begin{equation*} AC = CA = I_n. \end{equation*}
If such a matrix exists, we write \(C=A^{-1}\text{.}\)

Example 2.18.

Find the inverse of the matrix below. Check that it truly is the inverse.
\begin{equation*} A = \begin{bmatrix} 2 \amp 5\\ -3 \amp -7 \end{bmatrix}. \end{equation*}

Example 2.20.

Solve the linear system.
\begin{equation*} \begin{array}{ccc} 3x_1 + 4x_2 \amp= \amp 7 \\ 5x_1 + 6x_2 \amp = \amp 7 \end{array} \end{equation*}
Let \(A\) and \(B\) be invertible \(n\times n\) matrices. Then
  • \(\displaystyle (A^{-1})^{-1} = A\)
  • \((AB)^{-1} = B^{-1}A^{-1}\) (non-commutative!)
  • \(\displaystyle (A^T)^{-1} = (A^{-1})^T\)

Example 2.21.

True or false: \((ABC)^{-1} = C^{-1}B^{-1}A^{-1}\text{.}\)
If \(A\in\mathbb{R}^{n\times n}\) and \(n>2\text{,}\) we can compute \(A^{-1}\) with the following algorithm:
  1. Row reduce the augmented matrix \(\begin{bmatrix} A \ \rvert \ I_n\end{bmatrix}\text{.}\)
  2. If the reduction has the form \(\begin{bmatrix}I_n \ \rvert \ B\end{bmatrix}\text{,}\) then \(A\) is invertible and \(B=A^{-1}\text{.}\) Otherwise, \(A\) is not invertible.

Example 2.22.

Compute the inverse of
\begin{equation*} A= \begin{bmatrix} 0 \amp 1 \amp 2\\ 1 \amp 0 \amp 3\\ 0 \amp 0 \amp 1 \end{bmatrix}. \end{equation*}
Why does the previous algorithm work? We can think of our algorithm as simultaneously solving \(n\) linear systems:
\begin{equation*} \begin{array}{ccc} A\vec x_1 \amp = \amp \vec e_1\\ A\vec x_2 \amp = \amp \vec e_2\\ \amp\vdots\\ A\vec x_n \amp = \amp \vec e_n \end{array} \end{equation*}
Each column of \(A^{-1}\) is \(A^{-1}\vec e_i=\vec x_i\text{.}\)
We can also justify the algorithm by using elementary matrices.

Definition 2.23. Elementary Matrix.

An elementary matrix \(E\) is one that differs from \(I_n\) by exactly one elementary row operation.
Recall the elementary row operations:
  1. Swap rows
  2. Multiply a row by a non-zero scalar
  3. Add a multiple of one row to another
Each operation can be represented by matrix multiplication using an elementary matrix.

Example 2.24.

Suppose
\begin{equation*} E \begin{bmatrix} 1 \amp 1 \amp 1\\ -2 \amp 1 \amp 0\\ 0 \amp 0 \amp 1 \end{bmatrix} = \begin{bmatrix} 1 \amp 1 \amp 1\\ 0 \amp 3 \amp 2\\ 0 \amp 0 \amp 1 \end{bmatrix}. \end{equation*}
By inspection, what is \(E\text{?}\) How does it compare to \(I_3\text{?}\)
Returning to why the algorithm works, applying a sequence of row operations to \(A\) to obtain \(I_n\) can be written as:
\begin{equation*} (E_k \cdots E_3E_2E_1)A = I_n. \end{equation*}
Thus, \(E_k \cdots E_3E_2E_1\) is the inverse matrix we seek.
Some final thoughts:
  • We could use \(A^{-1}\) to solve a linear system \(A\vec x=\vec b\text{.}\) We would compute \(A^{-1}\) and then solve by multiplying appropriately.
  • As many textbooks point out, \(A^{-1}\) is seldom used in practice: computing it can take a long time and may be prone to numerical error.
  • So why did we learn how to compute \(A^{-1}\text{?}\) Later in the course, we use elementary matrices and properties of \(A^{-1}\) to derive results.
  • A recurring theme: just because we can do something a certain way, doesn’t mean we should.