Write and the identity side by side and row reduce the whole block. When the left half has become , the right half is ; if a zero row appears on the left, has no inverse.
| Step | On | |
|---|---|---|
| 1 | Write the block [A | I]. Put the identity of the same size to the right of . | |
| 2 | Clear the entries below each pivot. Use elementary row operations on whole rows, all six entries. Swap rows if a pivot is . | : row 3 becomes |
| 3 | Clear the entries above each pivot. Work upward from the last pivot, as in Gauss-Jordan elimination for systems. | : ; then : |
| 4 | Scale each pivot to 1. Divide a row by its pivot. You may also do this before clearing; here every pivot is already . | |
| 5 | Read the inverse from the right half and check. Multiply by the result (matrix multiplication); it must give . | , ✓ |