For a square matrix \( A \), the cofactor of element \( a_{ij} \) is:
where \( M_{ij} \) is the minor (determinant of the submatrix after removing row i and column j).
The factor \((-1)^{i+j}\) determines the sign of the cofactor: positive if \(i+j\) is even, negative if \(i+j\) is odd.
The cofactor matrix \( \mathbf{C} \) is the matrix of all cofactors \( C_{ij} \).
The adjoint matrix (or adjugate) is the transpose of the cofactor matrix:
The inverse matrix is then:
Click on any cofactor value in the results to see the visual representation with the deleted row and column highlighted in red, and the remaining determinant calculated step by step. The sign factor is shown in red.