The inverse, denoted by A-1, of a square matrix A is a square matrix such that
where I is the identity matrix. The inverse of a matrix exists only if the determinant of the matrix is not zero—that is, it is nonsingular. In general, you can find the inverse of only a square matrix. However, you can compute the pseudoinverse of a rectangular matrix.