The machinery for computing and reasoning about the scaling factor of space.
In our last lesson, we developed a deep geometric intuition for the determinant. We know it's the scaling factor of a transformation. Now, it's time to build the machinery to compute this magical number for any square matrix.
We'll start with the simple cases and build up to a general, powerful formula. Then, we'll uncover the properties that let us reason about determinants without always resorting to heavy computation.
The 2x2 Case: The Formula We Already Know
For a 2x2 matrix, the formula is simple and is the one we discovered geometrically.
A=[acbd]⟹det(A)=ad−bc
This formula represents the signed area of the parallelogram formed by the transformed basis vectors [a,c] and [b,d].
Example:
A=[32−14]
det(A)=(3)(4)−(−1)(2)=12−(−2)=14. This transformation scales area by a factor of 14 and preserves orientation.
The 3x3 Case: Introducing Cofactor Expansion
This method breaks down the determinant of an `n x n` matrix into a combination of determinants of smaller `(n-1) x (n-1)` matrices.
For a general 3x3 matrix expanded along the first row, the formula is:
det(A)=a⋅C11+b⋅C12+c⋅C13
The Cij terms are **cofactors**, where Cij=(−1)i+j⋅det(Mij). Mij is the **minor**, the smaller matrix left when you delete row `i` and column `j`. The (−1)i+j term creates a checkerboard pattern of signs:
+−+−+−+−+
Putting it all together:
det(A)=aehfi−bdgfi+cdgeh
=a(ei−fh)−b(di−fg)+c(dh−eg)
Practical Tip
Always choose to expand along the row or column with the most zeros! This minimizes the number of cofactors you need to calculate.
Key Properties of the Determinant
1. Identity Matrix:det(I)=1. (The "do-nothing" transformation has a scaling factor of 1).
2. Row Swaps: Swapping two rows flips the sign of the determinant.
3. Row Replacement: Adding a multiple of one row to another does not change the determinant. This is why Gaussian elimination is so useful!
4. Triangular Matrix: The determinant is the product of the diagonal entries.
5. Invertibility:A is invertible if and only if det(A)=0.
6. Multiplicative Property:det(AB)=det(A)⋅det(B). The scaling factor of composed transformations is the product of their individual scaling factors.
7. Inverse:det(A−1)=1/det(A).
8. Transpose:det(AT)=det(A).
A Smarter Way to Calculate
Brute-force cofactor expansion is very slow for large matrices. The most efficient way to calculate a determinant is to combine row operations with the triangular matrix property.
To find det(A) for A=211432654:
Use row operations to get to REF, keeping track of changes.
Factor 2 from R1: det(A)=2⋅det(111232354)
R2→R2−R1 and R3→R3−R1 (no change to determinant).
The matrix becomes upper triangular: U=100210321. Its determinant is the product of the diagonals: 1×1×1=1.
The final determinant is det(A)=2×1=2. This is far faster than a full cofactor expansion.
**Up Next in Module 4:** Armed with the power of the determinant, we are ready to tackle the central topic of the second half of linear algebra: **Eigenvalues and Eigenvectors**.