ELI5: Explain Like I'm 5

Cofactor matrix

Have you ever played with building blocks? Imagine you have a big block that is made up of smaller blocks. If you break the big block down into smaller pieces, you can get a matrix.

Now let's say you want to find the inverse of the matrix. That means you want to find another matrix that you can multiply the original matrix with to get the identity matrix (like the number "1" in normal math).

But how do you do that? One way is to use the cofactor matrix.

To find the cofactor matrix, you first have to find the minor matrix. The minor matrix is made up of the determinants of the smaller matrices that are formed by removing one row and one column from the original matrix.

For each element in the original matrix, you multiply it by the sign of its position (plus for even positions, minus for odd positions) and by the determinant of its corresponding minor matrix. That gives you the cofactor matrix.

Once you have the cofactor matrix, you can take its transpose (flip it over the diagonal) and divide every element by the determinant of the original matrix to get the inverse matrix.

So basically, the cofactor matrix is a step in finding the inverse of a matrix by using determinants and minor matrices.
Related topics others have asked about: