Invertible matrix/Find inverse matrix/Table/Method

Let denote a square matrix. How can we decide whether the matrix is invertible, and how can we find the inverse matrix ?

For this we write down a table, on the left-hand side we write down the matrix , and on the right-hand side we write down the identity matrix (of the right size). Now we apply on both sides step by step the same elementary row manipulations. The goal is to produce in the left-hand column, starting with the matrix, in the end the identity matrix. This is possible if and only if the matrix is invertible. We claim that we produce, by this method, in the right column the matrix in the end. This rests on the following invariance principle. Every elementary row manipulation can be realized, according to fact, as a matrix multiplication with some elementary matrix from the left. If in the table we have somewhere the pair

after the next step (in the next line) we have

If we multiply the inverse of the second matrix (which we do not know yet; however, we do know its existence, in case the matrix is invertible) with the first matrix, then we get

This means that this expression is not changed in each single step. In the beginning, this expression equals , hence in the end, the pair must fulfil