Input: A matrix . Output: If has an inverse, output

Algorithm

  1. Form an augmented matrix with a identity
  2. Reduce in to REF and obtain
  3. If , then , otherwise is not invertible

Proof

  1. We start off with
  2. Note that the left side of the augmented matrix is and right right side is
  3. If we end up getting which means its the identity matrix, then we have successfully found the inverse
  4. If we do not get that, then we know immediately that this matrix is not invertible (This may happen if the matrix has redundant rows)

Example of Successful Invertable

Somewhere down the line, we get:

Therefore, the inverse