There are two main methods to obtain the Inverse Matrix. Remember that onlyr[r(Matrix%20Variants.md#Square|square%20matrices) can have inverses.
Via Determinant
This method is much more complicated for square matrices with more than two rows and columns, but can be calculated:
where is the Adjugate Matrix#todo and is the Determinant of r
In a matrix:
Via Gaussian-Jordan Elimination
We can obtain the inverse of a matrix by creating an augmented matrix containing the matrix and the Identity Matrix, :
and use the Gaussian-Jordan elimination method to obtain the RREF of :
- If , then is invertible, and has an inverse matrix
- If , then is singular.
Examples
Using RREF
Calculate the inverse matrix of the following matrix:
\boldsymbol{A} = \begin{bmatrix}
2 & 1 & 1 \ 3 & 2 & 1 \ 2 & 1 & 2 \end{bmatrix}
And then row reduce this:
[\boldsymbol{A|I}] = \left[ \begin{array}{rrr|rrr}
2 & 1 & 1 & 1 & 0 & 0 \ 3 & 2 & 1 & 0 & 1 & 0 \ 2 & 1 & 2 & 0 & 0 & 1 \end{array} \right] ~