An identity matrix is a square matrix with ones along its main diagonal and zeros elsewhere. When a matrix is multiplied by its corresponding identity matrix, the original matrix is returned. The identity matrix for an n×n matrix is denoted In×n. Some key properties of identity matrices are that AI = IA = A for any square matrix A of the same dimensions.