Determinants: Computation, Properties & Cofactors
2966 words
15 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Determinants: Computation, Properties & Cofactors ## 🎯 Learning Objectives After this topic you will be able to: - Compute the determinant of $2 \times 2$ and $3 \times 3$ matrices - Use Sarrus's rule for $3 \times 3$ determinants - Compute determinants by cofactor expansion along any row or column - List and app...

Determinants: Computation, Properties & Cofactors
🎯 Learning Objectives
After this topic you will be able to:
- Compute the determinant of 2×2 and 3×3 matrices
- Use Sarrus's rule for 3×3 determinants
- Compute determinants by cofactor expansion along any row or column
- List and apply the key properties of determinants
- Use the determinant to test whether a matrix is invertible
- Compute minors and cofactors
📋 Prerequisites
- Matrices Introduction (this week) — you need to be comfortable with matrix notation and dimensions
- Basic algebra — arithmetic, factorisation
- Determinants are a bridge between matrices (Week 1) and solving linear systems (Week 2)
1. What is a Determinant?
1.1 Intuition: The "Scaling Factor" of a Matrix
A determinant answers the question: by what factor does this matrix scale areas (or volumes)?
Imagine a 2×2 matrix as a transformation that maps the unit square to a parallelogram. The absolute value of the determinant is the area of that parallelogram. If the determinant is zero, the parallelogram collapses — the transformation squishes everything into a lower dimension.
(Diagram)
A zero determinant means the matrix is singular (non-invertible) — it destroys information. A non-zero determinant means the matrix is invertible — the transformation can be reversed.
1.2 Formal Definition
Definition (Determinant). The determinant is a function det:Rn×n→R that assigns to each square matrix A a real number det(A), satisfying:
- det(In)=1
- det(AB)=det(A)det(B)
- det is alternating multilinear in the columns (or rows) We'll compute it concretely below before worrying about the abstract properties.
2. Computing Determinants
2.1 2×2 Determinant
>A=[acbd]>For
>det(A)=acbd=ad−bc>, the determinant is:
>det(341−2)=3(−2)−1(4)=−6−4=−10>Example 1: 2×2 determinant
2.2 3×3 Determinant — Sarrus's Rule
For 3×3 matrices, Sarrus's rule is a handy shortcut (but only works for 3×3!).
>A=a11a21a31a12a22a32a13a23a33>For
>det(A)=a11a22a33+a12a23a31+a13a21a32−a13a22a31−a11a23a32−a12a21a33>:
Copy the first two columns to the right Sum of products along the three downward diagonals (blue) Minus sum of products along the three upward diagonals (red)
>A=147258369>Example 2: Sarrus's rule
>147258369∣∣∣147258>Copy columns and compute:
>det(A)=1⋅5⋅9+2⋅6⋅7+3⋅4⋅8−3⋅5⋅7−1⋅6⋅8−2⋅4⋅9=45+84+96−105−48−72=0>
>A=1−1003221−1>This matrix is singular (determinant = 0). Example 3: Sarrus with a non-zero determinant
>det(A)=1(3)(−1)+0(1)(0)+2(−1)(2)−2(3)(0)−1(1)(2)−0(−1)(−1)=−3+0−4−0−2−0=−9>
2.3 Cofactor Expansion (General Method)
For larger matrices (n≥4), Sarrus doesn't work. We use cofactor expansion (also called Laplace expansion).
>det(A)=j=1∑naijCij(expand along row i)>Definition (Minor and Cofactor).
Minor Mij: the determinant of the (n−1)×(n−1) matrix obtained by deleting row i and column j from A. Cofactor Cij=(−1)i+jMij. Cofactor Expansion Theorem. For any square matrix A,
>det(A)=i=1∑naijCij>or equivalently along any column j:
The sign pattern (−1)i+j is a checkerboard:
>A=2−3112001−2>Example 4: Cofactor expansion along row 1Compute det(A) for
>M11=det[201−2]=2(−2)−1(0)=−4>.Step 1: Identify a11=2, a12=1, a13=0.Step 2: Compute minors and cofactors.
>M12=det[−311−2]=(−3)(−2)−1(1)=6−1=5>, C11=(+1)(−4)=−4
>M13=det[−3120]=(−3)(0)−2(1)=−2>, C12=(−1)(5)=−5
>A=3102020120−110103>, C13=(+1)(−2)=−2Step 3: det(A)=2(−4)+1(−5)+0(−2)=−8−5+0=−13Check: Use Sarrus to verify: 2(2)(−2)+1(1)(1)+0(−3)(0)−0(2)(1)−2(1)(0)−1(−3)(−2) =−8+1+0−0−0−6=−13 ✓ Example 5: Smart expansion — choose the row with the most zerosCompute det(A) for
>M33=det312021013>.Expand along row 3 (has three zeros, only one non-zero entry at column 3):a31=0, a32=0, a33=−1, a34=0.det(A)=(−1)⋅C33 where C33=(+1)⋅M33 (since 3+3=6, even).
>M33=3⋅det[2113]−0+0=3(6−1)=15>(delete row 3, column 3)Expand again along row 1:
Therefore det(A)=−1⋅15=−15.
3. Properties of Determinants
These properties are essential for simplifying computations and for proofs.
| Property | Statement | Example |
|---|---|---|
| P1: Identity | det(In)=1 | |
| P2: Row swap | Swapping two rows changes sign | detcadb=−(ad−bc) |
| P3: Scalar multiple of a row | If a row is multiplied by c , det multiplies by c | detcaccbd=c(ad−bc) |
| P4: Add multiple of one row to another | det unchanged | This is why row reduction preserves determinants |
| P5: Zero row/column | det(A)=0 if any row or column is all zeros | |
| P6: Identical rows | det(A)=0 if two rows are identical | |
| P7: Triangular | det(A)=∏aii for triangular matrices | Product of diagonal entries |
| P8: Product | det(AB)=det(A)det(B) | |
| P9: Transpose | det(AT)=det(A) | |
| P10: Inverse | det(A−1)=1/det(A) | Only when det(A)=0 |
| P11: Row linearity | det is linear in each row | det(row1+row1′,…)=det(row1,…)+det(row1′,…) |
>det123245367>Example 6: Using properties to simplifyCompute
.Notice row 2 is twice row 1: 2×(1,2,3)=(2,4,6).By P6 (or by P3 + P11), since rows 1 and 2 are linearly dependent, the determinant is 0.
4. Determinant and Invertibility
Theorem (Invertibility Criterion). An n×n matrix A is invertible if and only if det(A)=0. This is arguably the most important property of determinants. It tells us:
- det(A)=0 ⟺ A is invertible ⟺ Ax=b has a unique solution for every b
- det(A)=0 ⟺ A is singular ⟺ Ax=b has either no solution or infinitely many
Proof sketch: Why det ≠ 0 ⇔ invertibleA is invertible iff its RREF is In. Row operations only multiply the determinant by non-zero scalars (or flip sign). So det(A)=0 iff det(RREF(A))=0. But the only n×n matrix in RREF with non-zero determinant is In, whose determinant is 1. Therefore det(A)=0 iff RREF(A)=In iff A is invertible.
5. Minors and Cofactors — Formal Definitions
>A=1022−1134−2>Definition (Minor). Given An×n, the minor Mij is the determinant of the submatrix formed by deleting row i and column j. Definition (Cofactor). Cij=(−1)i+jMij. The cofactor matrix (matrix of cofactors) and its transpose — the adjugate (or classical adjoint) — will appear in Week 2 when we compute inverses and use Cramer's rule. Example 7: Finding all minors and cofactors for a 3×3 matrix
>M11=det[−114−2]=(−1)(−2)−4(1)=2−4=−2>
>M12=det[024−2]=0(−2)−4(2)=−8>, C11=(+1)(−2)=−2
>M13=det[02−11]=0(1)−(−1)(2)=2>, C12=(−1)(−8)=8
>M21=det[213−2]=2(−2)−3(1)=−4−3=−7>, C13=(+1)(2)=2
, C21=(−1)(−7)=7... and so on.
6. Edge Cases & Gotchas
| Situation | What Happens |
|---|---|
| ** 1×1 matrix** | det([a])=a |
| ** 0×0 matrix** | Convention: det=1 (vacuously) |
| Row swap | Flips the sign. A common exam trick: do an odd number of swaps |
| **Determinant of cA ** | det(cA)=cndet(A) , not cdet(A) — because every row gets multiplied by c |
| ** det(A+B) ** | det(A+B)=det(A)+det(B) in general. This is a common trap |
7. Common Pitfalls
❌ Pitfall 1: Forgetting the alternating sign in cofactor expansion
Students often forget (−1)i+j. Remember the checkerboard: top-left is +.
❌ Pitfall 2: Applying Sarrus to 4×4 or larger
Sarrus only works for 3×3. For larger matrices, use cofactor expansion or row reduction.
❌ Pitfall 3: Thinking det(A+B)=det(A)+det(B)
Determinants are not linear in addition; they are linear in each row. det(A+B) is almost never equal to det(A)+det(B).
8. Formula Summary Table
| Concept | Formula | Notes |
|---|---|---|
| 2×2 determinant | ad−bc | |
| 3×3 determinant (Sarrus) | a11a22a33+a12a23a31+a13a21a32−a13a22a31−a11a23a32−a12a21a33 | Only for 3×3 |
| Cofactor | Cij=(−1)i+jMij | Mij = minor |
| Cofactor expansion | det(A)=∑jaijCij | Along any row or column |
| Triangular determinant | ∏iaii | Product of diagonal entries |
| Invertibility test | det(A)=0 ⟺ A is invertible |
9. 📝 Practice Questions
>det(53−24)>Q1: 2×2 determinantCompute
>det12001−2−131>.Strategy: ad−bc.Solution: det=5(4)−(−2)(3)=20+6=26. Q2: 3×3 determinant using Sarrus
>det=1(1)(1)+0(3)(0)+(−1)(2)(−2)−(−1)(1)(0)−1(3)(−2)−0(2)(1)=1+0+4−0+6−0=11>Strategy: Use Sarrus or cofactor expansion.Solution (Sarrus):
>det1472583610>Q3: Determinant using row operationsUse row operations to simplify then compute
>1472583610=1002−3−63−6−11>.Strategy: Subtract 4×row1 from row2, 7×row1 from row3. Determinant unchanged by these operations.Solution:
>=1⋅det(−3−6−6−11)=(−3)(−11)−(−6)(−6)=33−36=−3>Now expand along column 1:
>det23410−15−200300004>Q4: Triangular determinantCompute
>A=13004−1252>.Strategy: For a lower triangular matrix, multiply diagonal entries.Solution: det=2(−1)(3)(4)=−24. Q5: Cofactor expansionCompute det(A) by expanding along column 2:
>C12=(−1)1+2M12=−det(3052)=−(6−0)=−6>.Strategy: det=∑iai2Ci2.Solution: a12=0, a22=4, a32=−1.
>C22=(+1)M22=det(1022)=2−0=2>
>C32=(−1)3+2M32=−det(1325)=−(5−6)=1>
>A=(k32k−1)>det=0(−6)+4(2)+(−1)(1)=0+8−1=7 Q6: Determinant of a productIf det(A)=3 and det(B)=−2, find det(AB) and det(2A) for A,B 3×3.Strategy: Use det(AB)=det(A)det(B) and det(cA)=cndet(A).Solution: det(AB)=3(−2)=−6. det(2A)=23⋅3=8⋅3=24. Q7: Row swap effectIf det(A)=10 and B is obtained by swapping rows 1 and 3 of A, what is det(B)?Solution: Swapping two rows changes the sign. det(B)=−10. Q8: Determinant of inverseIf A is 4×4 and det(A)=−5, find det(A−1).Solution: det(A−1)=1/det(A)=−1/5. Q9: Singular matrixFind k so that
>det102011210=1(1⋅0−1⋅1)−0+2(0⋅1−1⋅2)=1(−1)+2(−2)=−1−4=−5>is singular.Strategy: Set det(A)=0.Solution: det(A)=k(k−1)−6=k2−k−6=(k−3)(k+2)=0. So k=3 or k=−2. Q10: Volume via determinantFind the volume of the parallelepiped spanned by a=(1,0,2), b=(0,1,1), c=(2,1,0).Strategy: Volume = ∣det([abc])∣.Solution:
Volume = ∣−5∣=5.
🔗 Cross-References
- Next topic: Gaussian Elimination — using row operations and determinants to solve systems
- Week 2 (Cramer's Rule): Expresses solutions using determinants
- Week 5 (Rank-Nullity): Determinant zero ⇒ rank deficient
- Week 11 (Hessian): The Hessian's determinant determines the nature of critical points
- BSMA1001 (Maths 1): The area/volume interpretation connects to integrals Join Discord Previous1.2 Matrices IntroductionNext2.1 Gaussian Elimination