Cofactor Matrix
Cofactor Cᵢⱼ = (−1)^(i+j) det(Mᵢⱼ), where Mᵢⱼ is the minor (submatrix with row i, col j removed). The adjugate is the transpose of the cofactor matrix; A⁻¹ = adj(A)/det(A).
Why This Mathematical Concept Matters
Why: Cofactors build the adjugate for matrix inverse. Used in Cramer's rule and determinant expansion.
How: For each (i,j), remove row i and col j to get Mᵢⱼ. Cᵢⱼ = (−1)^(i+j) det(Mᵢⱼ). Sign pattern alternates like a checkerboard.
- ●adj(A) = (cof(A))ᵀ.
- ●A·adj(A) = det(A)·I.
- ●Sign: + − + − … (checkerboard).
Quick Examples — Click to Load
Matrix A (3×3)
| 0 | 0 | 0 |
| 0 | 0 | 0 |
| 0 | 0 | 0 |
| 0 | 0 | 0 |
| 0 | 0 | 0 |
| 0 | 0 | 0 |
Cofactor Element Distribution (Bar)
Sign Distribution (Doughnut)
Calculation Steps
⚠️For educational and informational purposes only. Verify with a qualified professional.
🧮 Fascinating Math Facts
det(A) = Σⱼ a₁ⱼ C₁ⱼ (expand row 1)
adj(AB) = adj(B) adj(A)
Key Takeaways
- • Cofactor Cij = (-1)i+j × det(Mij), Mij = minor (submatrix without row i, col j).
- • Cofactor matrix: replace each element by its cofactor.
- • adj(A) = (cof(A))ᵀ — adjugate is transpose of cofactor matrix.
- • Laplace expansion: det(A) = Σ aij Cij along any row or column.
- • Sign pattern: checkerboard + − + − from (1,1).
Did You Know?
How It Works
For each element (i,j): remove row i and column j to get minor Mij, compute det(Mij), multiply by (-1)i+j. Place result at (i,j) in cofactor matrix.
C_ij = (-1)^(i+j) × det(M_ij)
adj(A) = (cof(A))ᵀ
Expert Tips
2×2 Shortcut
[[a,b],[c,d]] → cof = [[d,-c],[-b,a]].
Sign Pattern
Checkerboard: + − + − from top-left.
Row/Column Expansion
Pick row/col with most zeros for fewer ops.
To Adjoint
Transpose cofactor matrix → adjugate.
Comparison Table
| Feature | This Calculator | NumPy | Manual |
|---|---|---|---|
| Minor + Cofactor steps | ✅ | ❌ | ⚠️ |
| Bar & Doughnut charts | ✅ | ❌ | ❌ |
| 8 preset examples | ✅ | ❌ | ❌ |
| Step-by-step | ✅ | ❌ | ⚠️ |
FAQ
What is the cofactor?
C_ij = (-1)^(i+j) × det(M_ij), M_ij = minor (submatrix).
What is the minor?
Determinant of submatrix with row i and column j removed.
Sign pattern?
Checkerboard: + at (1,1), − at (1,2), etc.
Relation to adjugate?
adj(A) = transpose of cofactor matrix.
Relation to inverse?
A⁻¹ = adj(A)/det(A) = (cof(A))ᵀ/det(A).
Zero matrix cofactor?
All cofactors are 0.
Identity matrix cofactor?
cof(I) = I for any size.
Laplace expansion?
det(A) = Σ a_ij C_ij along any row i (or column j).
Stats
Sources
- • Gilbert Strang, Linear Algebra and Its Applications
- • Khan Academy: khanacademy.org
- • MIT 18.06: ocw.mit.edu
- • Wolfram MathWorld: mathworld.wolfram.com
- • Horn & Johnson, Matrix Analysis
- • 3Blue1Brown: 3blue1brown.com
Disclaimer: For educational purposes. Uses JavaScript floating-point. Verify critical calculations independently.