Cofactor Expansion Interactive Visualizer
Run the Cofactor Expansion Visualizer Fullscreen
Edit the MicroSim with the p5.js editor
About This MicroSim
This visualization demonstrates cofactor expansion (Laplace expansion), a general method for computing determinants of any square matrix.
Key concepts:
- Minor \(M_{ij}\): Determinant of submatrix after removing row \(i\) and column \(j\)
- Cofactor \(C_{ij} = (-1)^{i+j} M_{ij}\): Minor with alternating sign
- Expansion: \(\det(A) = \sum_j a_{ij} \cdot C_{ij}\)
The sign pattern follows a checkerboard: + for even \((i+j)\), - for odd \((i+j)\).
How to Use
- Step through: Click "Step" to see each cofactor computed
- Play animation: Click "Play" to auto-advance through all steps
- Change expansion row: Select which row to expand along
- Toggle sign pattern: Show/hide the checkerboard sign display
Embedding
1 | |
Lesson Plan
Learning Objectives
Students will be able to:
- Identify minors and cofactors of matrix entries
- Apply the cofactor expansion formula along any row
- Understand why expansion along any row gives the same determinant
Suggested Activities
- Compare rows: Expand along different rows and verify same result
- Efficiency analysis: Which row would be most efficient if some entries are zero?
- Recursive thinking: How would you extend this to 4×4 matrices?
Assessment Questions
- For a 3×3 matrix, how many 2×2 determinants must be computed?
- Why does the sign alternate in a checkerboard pattern?
- If row 2 of a matrix is [0, 5, 0], which cofactor expansion would be most efficient?
References
- Chapter 5: Determinants and Matrix Properties - Cofactor Expansion section
- Linear Algebra Learning Graph