Note: if you are required to find an inverse using minors in this class, do not use any GE, even for attractive simplifications.
Note: If a matrix is orthonormal, its inverse must be found using a transpose in this class.
Finding the inverse of a matrix is usually a bad idea. But if you do need it, you may use the following trick:
Note that what you are really doing in the above is solving the system of equations for the columns of . The only trick is that if you reduce the matrix all the way to a unit matrix, the solution becomes the same as the right hand side of the reduced system.
Also note that the most efficient way to find the inverse, in terms of operations, is still LU decomposition. Normally this would take operations to find and and then operations to find the columns of . But the right hand sides to the systems are unit vectors, which are mostly zeros. If you use this to avoid computing coefficients in that are automatically zero, you can reduce the operations by .