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.
\begin{equation*}
\begin{bmatrix}
a \amp b\\
c \amp d
\end{bmatrix}^{-1}
=
\frac{1}{ad-bc}
\begin{bmatrix}
d \amp -b\\
-c \amp a
\end{bmatrix}.
\end{equation*}
Hint.
In the solution, I give a proof of this theorem. You may find it interesting to try it for yourself before looking at the full proof. The idea is to start with a matrix \(A = \begin{bmatrix} a \amp b \\ c \amp d \end{bmatrix}\) for fixed \(a,b,c,d \in \mathbb{R}\) with \(ad - bc \neq 0\text{.}\) Now, let \(A^{-1} = \begin{bmatrix} x_1 \amp x_2 \\ x_3 \amp x_4 \end{bmatrix}\) for unknown \(x_1,x_2,x_3,x_4\in \mathbb{R}\text{.}\) Set \(AA^{-1} = I_2\) and determine what the unknowns \(x_1,x_2,x_3,x_4\) are in terms of the known \(a,b,c,d\text{.}\) You should end up solving a system of linear equations involving 4 equations in the 4 unknowns.
A matrix \(A\in\mathbb{R}^{n\times n}\) has an inverse if and only if for every \(\vec b\in\mathbb{R}^n\text{,}\) the system \(A\vec x=\vec b\) has a unique solution. In this case,
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.
A matrix \(A\) is invertible if and only if it is row equivalent to the identity matrix. In this case, any sequence of elementary row operations that transforms \(A\) into \(I\text{,}\) when applied to \(I\text{,}\) generates \(A^{-1}\text{.}\)