DeterminantsTopic #19 of 30

Cofactor Expansion

Minors, cofactors, Laplace expansion along rows and columns.

Overview

Cofactor expansion (Laplace expansion) is a method for computing determinants of any size matrix by reducing it to smaller determinants. It's especially useful when a row or column has many zeros.

Definitions

Minor

The minor MijM_{ij} is the determinant of the (n1)×(n1)(n-1) \times (n-1) submatrix obtained by deleting row ii and column jj.

Cofactor

The cofactor CijC_{ij} is the signed minor:

Cij=(1)i+j×MijC_{ij} = (-1)^{i+j} \times M_{ij}

Sign Pattern

[++++++++]\begin{bmatrix} + & - & + & - & \cdots \\ - & + & - & + & \cdots \\ + & - & + & - & \cdots \\ - & + & - & + & \cdots \\ \vdots & \vdots & \vdots & \vdots & \ddots \end{bmatrix}

Entry (i,j)(i,j) has sign (1)i+j(-1)^{i+j}.

Cofactor Expansion Formula

Along Row ii

det(A)=j=1naijCij=ai1Ci1+ai2Ci2++ainCin\det(A) = \sum_{j=1}^{n} a_{ij} C_{ij} = a_{i1}C_{i1} + a_{i2}C_{i2} + \cdots + a_{in}C_{in}

Along Column jj

det(A)=i=1naijCij=a1jC1j+a2jC2j++anjCnj\det(A) = \sum_{i=1}^{n} a_{ij} C_{ij} = a_{1j}C_{1j} + a_{2j}C_{2j} + \cdots + a_{nj}C_{nj}

3×3 Example

A=[123456789]A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}

Expansion Along Row 1:

det(A)=1×C11+2×C12+3×C13\det(A) = 1 \times C_{11} + 2 \times C_{12} + 3 \times C_{13}

Calculate minors:

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

M12=4679=4(9)6(7)=6M_{12} = \begin{vmatrix} 4 & 6 \\ 7 & 9 \end{vmatrix} = 4(9) - 6(7) = -6

M13=4578=4(8)5(7)=3M_{13} = \begin{vmatrix} 4 & 5 \\ 7 & 8 \end{vmatrix} = 4(8) - 5(7) = -3

Calculate cofactors:

C11=(+1)(3)=3C_{11} = (+1)(-3) = -3

C12=(1)(6)=6C_{12} = (-1)(-6) = 6

C13=(+1)(3)=3C_{13} = (+1)(-3) = -3

Determinant:

det(A)=1(3)+2(6)+3(3)=3+129=0\det(A) = 1(-3) + 2(6) + 3(-3) = -3 + 12 - 9 = 0

4×4 Example

A=[1003210400560007]A = \begin{bmatrix} 1 & 0 & 0 & 3 \\ 2 & 1 & 0 & 4 \\ 0 & 0 & 5 & 6 \\ 0 & 0 & 0 & 7 \end{bmatrix}

Expand along column 1 (most zeros):

det(A)=1×C11+2×C21+0×C31+0×C41=1×C11+2×C21\det(A) = 1 \times C_{11} + 2 \times C_{21} + 0 \times C_{31} + 0 \times C_{41} = 1 \times C_{11} + 2 \times C_{21}

Calculate C11C_{11}:

M11=104056007=1(5×76×0)=35(triangular: product of diagonal)M_{11} = \begin{vmatrix} 1 & 0 & 4 \\ 0 & 5 & 6 \\ 0 & 0 & 7 \end{vmatrix} = 1(5 \times 7 - 6 \times 0) = 35 \quad \text{(triangular: product of diagonal)}

C11=(+1)(35)=35C_{11} = (+1)(35) = 35

Calculate C21C_{21}:

M21=003056007M_{21} = \begin{vmatrix} 0 & 0 & 3 \\ 0 & 5 & 6 \\ 0 & 0 & 7 \end{vmatrix}

Expand along column 1: all entries are 0, so M21=0M_{21} = 0

C21=(1)(0)=0C_{21} = (-1)(0) = 0

Final:

det(A)=1(35)+2(0)=35\det(A) = 1(35) + 2(0) = 35

Strategy: Choose Best Row/Column

Always expand along the row or column with the most zeros to minimize computation.

Cofactor Matrix

The matrix of cofactors:

C=[C11C12C1nC21C22C2nCn1Cn2Cnn]C = \begin{bmatrix} C_{11} & C_{12} & \cdots & C_{1n} \\ C_{21} & C_{22} & \cdots & C_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ C_{n1} & C_{n2} & \cdots & C_{nn} \end{bmatrix}

Adjugate (Adjoint)

The adjugate is the transpose of the cofactor matrix:

adj(A)=CT\text{adj}(A) = C^T

Computing Inverse via Cofactors

A1=1det(A)×adj(A)A^{-1} = \frac{1}{\det(A)} \times \text{adj}(A)

Example

For A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}:

C=[dcba]C = \begin{bmatrix} d & -c \\ -b & a \end{bmatrix}

adj(A)=[dbca]\text{adj}(A) = \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}

A1=1adbc[dbca]A^{-1} = \frac{1}{ad-bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}