In linear algebra, the inverse square matrix A {\displaystyle A} is another square matrix A − 1 {\displaystyle A^{-1}} such that the product A − 1 A {\displaystyle A^{-1}A} is the identity matrix. There are many methods for calculating an inverse matrix, if it exists.
Gaussian elimination Gaussian elimination is a useful and easy way to compute the inverse of a matrix. To compute a matrix inverse using this method, an augmented matrix is first created with the left side being the matrix to invert and the right side being the identity matrix. Then, Gaussian elimination is used to convert the left side into the identity matrix, which causes the right side to become the inverse of the input matrix. For example, take the following matrix: A = ( − 1 3 2 1 − 1 ) {\displaystyle \mathbf {A} ={\begin{pmatrix}-1&{\tfrac {3}{2}}\\1&-1\end{pmatrix}}} The first step to compute its inverse is to create the augmented matrix ( − 1 3 2 1 0 1 − 1 0 1 ) {\displaystyle \left(\!\!{\begin{array}{cc|cc}-1&{\tfrac {3}{2}}&1&0\\1&-1&0&1\end{array}}\!\!\right)} Call the first row of this matrix R 1 {\displaystyle R_{1}} and the second row R 2 {\displaystyle R_{2}} . Then, add row 1 to row 2 ( R 1 + R 2 → R 2 ) . {\displaystyle (R_{1}+R_{2}\to R_{2}).} This yields ( − 1 3 2 1 0 0 1 2 1 1 ) {\displaystyle \left(\!\!{\begin{array}{cc|cc}-1&{\tfrac {3}{2}}&1&0\\0&{\tfrac {1}{2}}&1&1\end{array}}\!\!\right)} Next, subtract row 2, multiplied by 3, from row 1 ( R 1 − 3 R 2 → R 1 ) , {\displaystyle (R_{1}-3\,R_{2}\to R_{1}),} which yields ( − 1 0 − 2 − 3 0 1 2 1 1 ) {\displaystyle \left(\!\!{\begin{array}{cc|cc}-1&0&-2&-3\\0&{\tfrac {1}{2}}&1&1\end{array}}\!\!\right)}
… excerpt ends here. Continue reading the full article.
