3.5. Matrix inversion#
3.5.1. Motivation and definition#
Gauss-Jordan elimination works well for solving Ax = b, but the process needs to be repeated for every new b. Is there an alternative if we need to solve Ax = b for many different b?
A matrix is called nonsingular or invertible if it has an inverse, but singular if it does not.
If the inverse of A exists, it is unique and can be used to solve Ax = b.
Finding the inverse of A is usually hard. There is a general definition based on cofactors, as well as advanced numerical methods, that we will not cover. Instead, we focus on two options: a formula for 2 x 2 matrices, and use of Gauss-Jordan elimination for larger matrices.
3.5.2. Inverse of a 2 x 2 matrix#
For a 2 x 2 matrix,
the matrix inverse is
(Flip a and d, change the signs of b and c.)
Example: 2 x 2 inverse
To find the inverse of
First, compute its determinant:
Then, compute its inverse
3.5.3. Inverses using Gauss-Jordan elimination#
For larger matrices, we can use Gauss–Jordan elimination to solve \(\vv{A} \vv{A}^{-1} = \vv{I}\) as a generalization of Ax = b.
Check that \(|\vv{A}| \ne 0\) (i.e., A is invertible).
Form the 2n x n augmented matrix \([ \vv{A} \, | \, \vv{I} ]\)
Perform row operations to bring to \([ \vv{I} \, | \, \vv{A}^{-1} ]\).