To compute determinants of n×n matrices recursively, we extract smaller matrices by deleting one row and one column. The determinant of that smaller matrix is the minor, and with a sign attached it becomes the cofactor. The collection of cofactors organised into a matrix is called the cofactor matrix, and its transpose is the adjoint , used to invert matrices in the next subtopic.
Definition of minor
For a square matrix A=(aij) of order n, the minorMij of the entry aij is the determinant of the (n−1)×(n−1) matrix obtained by deleting row i and column j of A.
Example: for A=147258369,
M11=det(5869)=−3.
M23=det(1728)=−6.
Definition of cofactor
The cofactorCij is
Cij=(−1)i+jMij.
The sign pattern (−1)i+j alternates checkerboard-style starting with + in the top-left:
+−+−+−+−+.
In the example above: C11=+M11=−3, C23=−M23=+6.
Cofactor expansion
The determinant of A can be computed by expansion along any row or column:
detA=∑j=1naijCij(expansion along row i).
Similarly along column j:
detA=∑i=1naijCij.
This recursive procedure reduces an n×n determinant to a linear combination of (n−1)×(n−1) determinants.
Orthogonality of cofactors
A subtle but important fact: the sum ∑jaijCkj equals detA when i=k and equals 0 when i=k. The "wrong-row" expansion always vanishes.
Reason: the wrong-row expansion equals the determinant of the matrix obtained by replacing row k of A with row i of A , which has two equal rows.
This orthogonality is the basis for the adjoint formula in the next subtopic.
Cofactor matrix
The cofactor matrix of A is the matrix cof(A)=(Cij). Its transpose is the adjoint (next subtopic).
For our example:
C11=−3,C12=−(36−42)=6,C13=32−35=−3.
C21=−(18−24)=6,C22=9−21=−12,C23=−(8−14)=6.
C31=12−15=−3,C32=−(6−12)=6,C33=5−8=−3.
cof(A)=−36−36−126−36−3.
Worked examples
Example 1. Find M12 for A=2053421−11.
Delete row 1, column 2: det(05−11)=0+5=5. So M12=5, C12=−5.
Example 2. Find detA in the above example by expansion along row 1.
Let me double-check C11: M11=det(42−11)=4+2=6, so C11=+6.
C13: M13=det(0542)=0−20=−20, so C13=+(−20)=−20.
Det =2⋅6+3⋅(−5)+1⋅(−20)=12−15−20=−23.
Example 3. Show that the cofactor matrix of the identity I3 is itself the identity.
Each Cii is the determinant of an (n−1)×(n−1) identity, which is 1. Each Cij for i=j has a zero row in the minor, so is 0. So cof(I)=I.
Example 4. Find C32 for A=1340−15216.
Delete row 3, column 2: det(1321)=1−6=−5. Sign (−1)3+2=−1. So C32=5.
Example 5. Use orthogonality to verify: for the matrix in Example 4, a11C21+a12C22+a13C23=0.
Compute: C21=(−1)3det(0526)=−(−10)=10.
C22=+det(1426)=−2.
C23=−det(1405)=−5.
Sum: 1⋅10+0⋅(−2)+2⋅(−5)=10−10=0. ✓
Example 6. Find the cofactor matrix of (1324).
C11=4,C12=−3,C21=−2,C22=1. So cof=(4−2−31).
Try it yourself
Find M11,M12,M13 for 20−1142356.
Find the corresponding cofactors.
Expand the determinant of the matrix in question 1 along row 1.
Expand the same determinant along column 1, verify same answer.
Compute the cofactor matrix of (3214).
Compute the cofactor matrix of I3.
Verify the orthogonality ∑ja1jC2j=0 for 147258369.
Find C31 for the matrix in question 7.
For a 2×2 matrix A, show that the cofactor matrix is (d−b−ca). Notice it's the transpose of (d−c−ba).
Show that for a diagonal matrix the cofactor matrix is also diagonal.
Compute the cofactor matrix of 102−130214.
Find all entries of the cofactor matrix of the rotation matrix (cosθsinθ−sinθcosθ).
Prove: if A is symmetric, so is its cofactor matrix.
Prove: det(cof(A))=(detA)n−1 for an n×n matrix.
Pitfalls / Tricks
Always include the sign (−1)i+j , the most common error is to confuse minor and cofactor.
The sign pattern starts with + at the (1,1) entry and alternates.
Orthogonality of cofactors (∑aijCkj=0 for i=k) is what powers the adjoint inverse formula.
For large matrices, the cofactor expansion is inefficient (O(n!)). Row reduction is faster (O(n3)). The cofactor approach is more useful in proofs than in practical computation.
Next, the adjoint and the explicit inverse formula.