Math Lab
Home/Class XII/Ch 4/Minors and cofactors

Minors and cofactors

To compute determinants of n×nn \times 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)A = (a_{ij}) of order nn, the minor MijM_{ij} of the entry aija_{ij} is the determinant of the (n1)×(n1)(n - 1) \times (n - 1) matrix obtained by deleting row ii and column jj of AA.

Example: for A=(123456789)A = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix},

M11=det(5689)=3M_{11} = \det\begin{pmatrix} 5 & 6 \\ 8 & 9 \end{pmatrix} = -3.

M23=det(1278)=6M_{23} = \det\begin{pmatrix} 1 & 2 \\ 7 & 8 \end{pmatrix} = -6.

Definition of cofactor

The cofactor CijC_{ij} is

Cij=(1)i+jMij.C_{ij} = (-1)^{i + j} M_{ij}.

The sign pattern (1)i+j(-1)^{i+j} alternates checkerboard-style starting with ++ in the top-left:

(+++++).\begin{pmatrix} + & - & + \\ - & + & - \\ + & - & + \end{pmatrix}.

In the example above: C11=+M11=3C_{11} = +M_{11} = -3, C23=M23=+6C_{23} = -M_{23} = +6.

Cofactor expansion

The determinant of AA can be computed by expansion along any row or column:

detA=j=1naijCij(expansion along row i).\det A = \sum_{j = 1}^n a_{ij} C_{ij} \quad \text{(expansion along row } i \text{)}.

Similarly along column jj:

detA=i=1naijCij.\det A = \sum_{i = 1}^n a_{ij} C_{ij}.

This recursive procedure reduces an n×nn \times n determinant to a linear combination of (n1)×(n1)(n - 1) \times (n - 1) determinants.

Orthogonality of cofactors

A subtle but important fact: the sum jaijCkj\sum_j a_{ij} C_{kj} equals detA\det A when i=ki = k and equals 00 when iki \neq k. The "wrong-row" expansion always vanishes.

Reason: the wrong-row expansion equals the determinant of the matrix obtained by replacing row kk of AA with row ii of AA , which has two equal rows.

This orthogonality is the basis for the adjoint formula in the next subtopic.

Cofactor matrix

The cofactor matrix of AA is the matrix cof(A)=(Cij)\text{cof}(A) = (C_{ij}). Its transpose is the adjoint (next subtopic).

For our example:

C11=3,C12=(3642)=6,C13=3235=3C_{11} = -3, C_{12} = -(36 - 42) = 6, C_{13} = 32 - 35 = -3.

C21=(1824)=6,C22=921=12,C23=(814)=6C_{21} = -(18 - 24) = 6, C_{22} = 9 - 21 = -12, C_{23} = -(8 - 14) = 6.

C31=1215=3,C32=(612)=6,C33=58=3C_{31} = 12 - 15 = -3, C_{32} = -(6 - 12) = 6, C_{33} = 5 - 8 = -3.

cof(A)=(3636126363)\text{cof}(A) = \begin{pmatrix} -3 & 6 & -3 \\ 6 & -12 & 6 \\ -3 & 6 & -3 \end{pmatrix}.

Worked examples

Example 1. Find M12M_{12} for A=(231041521)A = \begin{pmatrix} 2 & 3 & 1 \\ 0 & 4 & -1 \\ 5 & 2 & 1 \end{pmatrix}.

Delete row 11, column 22: det(0151)=0+5=5\det\begin{pmatrix} 0 & -1 \\ 5 & 1 \end{pmatrix} = 0 + 5 = 5. So M12=5M_{12} = 5, C12=5C_{12} = -5.

Example 2. Find detA\det A in the above example by expansion along row 1.

a11C11+a12C12+a13C13=2(4+2)+3(5)+1(020)a_{11} C_{11} + a_{12} C_{12} + a_{13} C_{13} = 2 \cdot (4 + 2) + 3 \cdot (-5) + 1 \cdot (0 - 20) =121520=23= 12 - 15 - 20 = -23.

Let me double-check C11C_{11}: M11=det(4121)=4+2=6M_{11} = \det\begin{pmatrix} 4 & -1 \\ 2 & 1 \end{pmatrix} = 4 + 2 = 6, so C11=+6C_{11} = +6.

C13C_{13}: M13=det(0452)=020=20M_{13} = \det\begin{pmatrix} 0 & 4 \\ 5 & 2 \end{pmatrix} = 0 - 20 = -20, so C13=+(20)=20C_{13} = +(-20) = -20.

Det =26+3(5)+1(20)=121520=23= 2 \cdot 6 + 3 \cdot (-5) + 1 \cdot (-20) = 12 - 15 - 20 = -23.

Example 3. Show that the cofactor matrix of the identity I3I_3 is itself the identity.

Each CiiC_{ii} is the determinant of an (n1)×(n1)(n - 1) \times (n - 1) identity, which is 11. Each CijC_{ij} for iji \neq j has a zero row in the minor, so is 00. So cof(I)=I\text{cof}(I) = I.

Example 4. Find C32C_{32} for A=(102311456)A = \begin{pmatrix} 1 & 0 & 2 \\ 3 & -1 & 1 \\ 4 & 5 & 6 \end{pmatrix}.

Delete row 33, column 22: det(1231)=16=5\det\begin{pmatrix} 1 & 2 \\ 3 & 1 \end{pmatrix} = 1 - 6 = -5. Sign (1)3+2=1(-1)^{3 + 2} = -1. So C32=5C_{32} = 5.

Example 5. Use orthogonality to verify: for the matrix in Example 4, a11C21+a12C22+a13C23=0a_{11}C_{21} + a_{12}C_{22} + a_{13}C_{23} = 0.

Compute: C21=(1)3det(0256)=(10)=10C_{21} = (-1)^3 \det\begin{pmatrix} 0 & 2 \\ 5 & 6 \end{pmatrix} = -(-10) = 10.

C22=+det(1246)=2C_{22} = +\det\begin{pmatrix} 1 & 2 \\ 4 & 6 \end{pmatrix} = -2.

C23=det(1045)=5C_{23} = -\det\begin{pmatrix} 1 & 0 \\ 4 & 5 \end{pmatrix} = -5.

Sum: 110+0(2)+2(5)=1010=01 \cdot 10 + 0 \cdot (-2) + 2 \cdot (-5) = 10 - 10 = 0. \checkmark

Example 6. Find the cofactor matrix of (1234)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}.

C11=4,C12=3,C21=2,C22=1C_{11} = 4, C_{12} = -3, C_{21} = -2, C_{22} = 1. So cof=(4321)\text{cof} = \begin{pmatrix} 4 & -3 \\ -2 & 1 \end{pmatrix}.

Try it yourself

  1. Find M11,M12,M13M_{11}, M_{12}, M_{13} for (213045126)\begin{pmatrix} 2 & 1 & 3 \\ 0 & 4 & 5 \\ -1 & 2 & 6 \end{pmatrix}.
  2. Find the corresponding cofactors.
  3. Expand the determinant of the matrix in question 1 along row 1.
  4. Expand the same determinant along column 1, verify same answer.
  5. Compute the cofactor matrix of (3124)\begin{pmatrix} 3 & 1 \\ 2 & 4 \end{pmatrix}.
  6. Compute the cofactor matrix of I3I_3.
  7. Verify the orthogonality ja1jC2j=0\sum_j a_{1j} C_{2j} = 0 for (123456789)\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix}.
  8. Find C31C_{31} for the matrix in question 7.
  9. For a 2×22 \times 2 matrix AA, show that the cofactor matrix is (dcba)\begin{pmatrix} d & -c \\ -b & a \end{pmatrix}. Notice it's the transpose of (dbca)\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}.
  10. Show that for a diagonal matrix the cofactor matrix is also diagonal.
  11. Compute the cofactor matrix of (112031204)\begin{pmatrix} 1 & -1 & 2 \\ 0 & 3 & 1 \\ 2 & 0 & 4 \end{pmatrix}.
  12. Find all entries of the cofactor matrix of the rotation matrix (cosθsinθsinθcosθ)\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}.
  13. Prove: if AA is symmetric, so is its cofactor matrix.
  14. Prove: det(cof(A))=(detA)n1\det(\text{cof}(A)) = (\det A)^{n - 1} for an n×nn \times n matrix.

Pitfalls / Tricks

  • Always include the sign (1)i+j(-1)^{i+j} , the most common error is to confuse minor and cofactor.
  • The sign pattern starts with ++ at the (1,1)(1, 1) entry and alternates.
  • Orthogonality of cofactors (aijCkj=0\sum a_{ij}C_{kj} = 0 for iki \neq k) is what powers the adjoint inverse formula.
  • For large matrices, the cofactor expansion is inefficient (O(n!)O(n!)). Row reduction is faster (O(n3)O(n^3)). The cofactor approach is more useful in proofs than in practical computation.

Next, the adjoint and the explicit inverse formula.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Minors and cofactors
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6