m is a non-degenerate square matrix:
Augment
m with the 3×3 identity matrix:
Do row reduction on the augmented matrix:
The last three columns of the result are
Inverse[m]:
The first 3 columns of
RowReduce[m] are the 3×3 identity matrix:
m is a degenerate square matrix:
Augment
m with the 3×3 identity matrix:
Do row reduction on the augmented matrix:
The last 4 columns of any row with the leading one beyond the 4

column is in the null space:
Even though the vectors are not the same, they are a basis for the same space: