Determinants are a bit tricky to discuss in a first linear algebra course, so we will just talk about how to compute them and some properties.
Consider an n×n matrix A. Geometrically, we can imagine that A transforms the unit cube (which has "volume" 1) into a "parallelpiped" determiend by the columns of A. The determinant is signed "volume" of this "parallelpiped", or rather the signed "volume"-scaling factor of a matrix.
Thus intuitively, we should have det(In)=1 and more generally:
Determinant of triangular matrices
We say a matrix is triangular if all its values above (or below) the diagonal are 0. If A is triangular, then det(A)=a11⋯ann,
which is the product of the diagonal entries of A.
If we want to compute the determinant of a general matrix A, then we should try to make it triangular (via Gaussian elimination). So we need to know how the row operations in Gaussian elimination affect the determinant.
Row operations and determinants.
Row swap: if we swap two rows of a matrix, then the determinant changes by a factor of −1. More specifically,det(swap two rows of A)=−1det(A)Geometrically, swapping rows reflects the transformed unit cube across some hyperplane (preserves volume, changes sign).
Adding a multiple of one row to another row: if we do a row operation like Rj←Rj+cRi, then the determinant doesn't change. More specifically,det(add multiple of row to another A)=det(A)Geometrically, we are shearing the transformed unit cube (preserves volume and sign).
Scaling a row: if we scale a row by a scalar k, then the determinant gets scaled by k. More specifically, det(scale row of A by k)=kdet(A)Geometrically, we are stretching (and possibly reflecting) the transformed unit cube in one direction which scales the volume with the same proportion and possibly switches the sign.
These three facts give us a way to compute the determinant of a matrix from its rref(A). In particular:
Determinant and RREF
Suppose in the process of computing rref(A), we do s row swaps and r (nonzero) row scalings k1,…,kr. Then we have that det(rref(A))=(−1)sk1⋯krdet(A)or ratherdet(A)=(−1)sk1⋯kr1det(rref(A))
Other conventions
The textbook will state that det(A)=(−1)sk1⋯krdet(rref(A))
This is true when in the process of Gaussian elimination, we divded rows by k1,…kr. Be careful that you know if you are dividing rows or multiplying rows!
We have some easy consequences of this fact:
Invertibility and determinant
A is invertible if and only if rref(A)=In if and only if det(rref(A))=1 if and only if det(A)=0.
Inverse and determinant
If A has inverse A−1, then det(A−1)=det(A)1
Determine invertibility
For what value(s) of k is A=1241kk200k
invertible.
Solution: If we use the Gaussian elimination method, then we can find that A is invertible when k=0,2, but it is a little tedious. Is there a way we can compute this determinant faster?.
Computing Determinant with Cofactor Expansion
Let A be some n×n matrix. The i,jth cofactor of A is Cij=(−1)i+jdet(A without ith row and jth column)Then for any row i, we havedet(A)=j=1∑nAijCij and for any row j, we have det(A)=i=1∑nAijCij
When to use Cofactor Expansion?
Notice that if a row or column of A has a lot of zeros, then many of the terms in the cofactor expansion will be 0, so it makes the determinant calculation faster.
Let's revisit this example:
Determine invertibility
For what value(s) of k is A=1241kk200k
invertible.
Solution: If we do Cofactor expansion down the last row, we have det(A)=0(−1)1+3det(24kk2)+0(−1)2+3det(141k2)+k(−1)3+3det(121k)=k(k−2) Thus, A is invertible if and only if det(A)=0 if and only if k=0,2.