Math July 19, 2026 · 10 min read

The Cofactor Matrix: Building Block of Adjugates, Inverses, and Determinant Theory

Calculate cofactor matrices step by step. Understand how each cofactor combines minors with alternating signs, and how the cofactor matrix leads to adjugates and inverses.

The cofactor matrix is the complete matrix of all cofactors of a given square matrix. While cofactor expansion uses individual cofactors to compute determinants, the cofactor matrix assembles every cofactor into a structured array that serves as the bridge between minors and the adjugate matrix. It is a fundamental construct in the theory of matrix inversion and linear algebra.

For an n × n matrix A, the cofactor matrix C is also n × n, where each entry C_ij equals (-1)^(i+j) × M_ij. Here, M_ij is the minor of element a_ij, defined as the determinant of the (n-1) × (n-1) submatrix obtained by deleting row i and column j. The alternating sign pattern (-1)^(i+j) creates a checkerboard of +1 and -1 values that accounts for the orientation of each minor.

Core Formula

C_ij = (-1)^(i+j) × det(submatrix without row i, col j)
adj(A) = C^T (transpose of cofactor matrix)

Constructing the 2×2 Cofactor Matrix

For a 2×2 matrix [[a,b],[c,d]], each cofactor is a single scalar (the "minor" of a 1×1 submatrix). The cofactor matrix is [[d,-c],[-b,a]]. Notice that this is the same as the adjoint for 2×2 matrices, since transposing a 2×2 matrix with this symmetric structure yields the same result. The relationship between cofactor matrix and adjugate becomes more apparent in 3×3 and higher dimensions.

The 3×3 Cofactor Matrix

For a 3×3 matrix, the cofactor matrix contains nine 2×2 determinants. Each cofactor C_ij represents the signed determinant of the submatrix formed by removing the i-th row and j-th column. For example, C_11 = +det([[e,f],[h,i]]), C_12 = -det([[d,f],[g,i]]), and so on. Computing all nine cofactors gives the complete cofactor matrix, which can then be transposed to form the adjugate.

Connection to Matrix Inversion

The cofactor matrix is the penultimate step in computing a matrix inverse. The chain of operations is: compute the cofactor matrix, transpose it to get the adjugate, then divide by the determinant. This process, while computationally intensive for large matrices, provides an exact analytical formula for the inverse that is invaluable in proofs and symbolic computation.

  • Singular Matrices: If det(A) = 0, the cofactor matrix still exists but the inverse does not.
  • Symmetric Matrices: For symmetric matrices, the cofactor matrix is also symmetric.
  • Cramer's Rule: Each variable in Cramer's Rule is a ratio of cofactor-matrix entries to the determinant.
  • Symbolic Computation: Cofactor matrices are used in computer algebra systems to compute exact matrix inverses.

Key Takeaway

The cofactor matrix assembles every signed minor into an n × n matrix. Its transpose is the adjugate, and dividing the adjugate by the determinant gives the inverse. Understanding cofactor matrices connects determinant theory, matrix inversion, and Cramer's Rule into a unified framework.