Calculating the Inverse of a Matrix
Calculating the Inverse of a Matrix
Calculating the inverse of a
Step 0
Let
be the matrix you want to calculate.
Step 1: Create an Augmented Matrix
Add
Step 2: Calculating the Reduced Row Echelon Form
I hate this step.
Anyway, you want to make the left-hand side of the matrix to be
- Swap 2 rows.
- Multiply each element in one row by a non-zero constant.
- Add a multiple of another row to one row.
If you don't know how to do that, there are a lot of online resources about it.
Finally, we get
Step 3: The right-hand side of this matrix is the inverse of the original matrix.
So the inverse of the matrix is
Why does it work?
Doing a row operation is actually left-multiplying an elementary matrix. When the left-hand side becomes