The second half of the course turns to square matrices, and the determinant is needed for eigenvalues. Instead of a big formula, the determinant is defined by three properties: det I = 1; exchanging two rows reverses the sign (so a permutation has determinant ±1); and the determinant is linear in each row separately, with the other rows fixed: a factor t in one row comes out, and a sum in one row splits the determinant into two. (It is not true that det(A + B) = det A + det B.) From these follow: two equal rows give 0; subtracting a multiple of one row from another leaves the determinant unchanged, so elimination does not change it; a row of zeros gives 0; a triangular matrix has determinant d₁d₂⋯dₙ, the product of its diagonal; and det A = 0 exactly when A is singular. So the determinant is ± the product of the pivots, the way software computes it; for 2 × 2 the pivots a and d − (c/a)b give ad − bc. Two more properties: det AB = (det A)(det B), so det A⁻¹ = 1/det A and det A² = (det A)², while doubling gives det 2A = 2ⁿ det A (from property 3), like a volume; and det Aᵀ = det A, so every row property holds for columns too.
Every square matrix has a number, detA or ∣A∣, that packs in as much information as one number can; above all, A is invertible exactly when detA=0 (transcript, p. 1). Rather than a big formula, start with three properties (pp. 1–4):
A permutation matrix comes from I by row exchanges, so its determinant is +1 or −1 for an even or odd number of exchanges (pp. 2–3). For 2×2matrices the familiar formula det=ad−bc will check every property (p. 3). Property 3 is the key (pp. 3–4):
The determinant is a linear function of one row when all the other rows stay the same (p. 4). Strang stresses that this is notdet(A+B)=detA+detB, where all rows change at once (pp. 4–5). Linearity holds for every row, not only the first: exchange the row to the top, use property 3, and exchange back (p. 5).
4. Two equal rows give det=0 (pp. 5–6). Exchanging the two equal rows leaves the matrix the same, yet property 2 says the sign changes; a number equal to its own negative is 0. This matches the fact that such a matrix has rank below n (p. 6).
5. Elimination does not change the determinant (pp. 7–8). Subtract ℓ times row i from row k. By property 3 the determinant splits into the original one plus −ℓ times a determinant with two equal rows, which is 0 by property 4 (p. 8):
Property 5 for 2 × 2
ac−ℓabd−ℓb=acbd−ℓaabb=acbd
In words
a b; c minus ell a d minus ell b equals a b; c d minus ell a b; a b equals a b; c d
6. A row of zeros gives det=0 (pp. 8–10): take t=0 in property 3. (Strang first multiplies the zero row by 5, then agrees with a student that t=0 is simpler; he refers to it as rule 3B, but it is the factor rule 3A, pp. 9–10.)
If no d is zero, elimination upwards removes everything off the diagonal (property 5); factoring each di out of its row (property 3) leaves I, whose determinant is 1 (property 1) (pp. 11–12). This is how MATLAB or any reasonable software computes a determinant: eliminate, then multiply the pivots, with a minus sign for an odd number of row exchanges (p. 11).
8. detA=0 exactly when A is singular (pp. 12–13). A singularmatrix reaches a row of zeros (property 6); an invertible one has a full set of nonzero pivots, whose product is not zero (p. 13). The 2×2 case from the pivots (p. 14):
Two by two from the pivots
acbd=a0bd−acb=a(d−acb)=ad−bc
In words
a b; c d equals a b; 0 d minus c over a, times b equals a the quantity d minus c over a, times b, equals a d minus b c
the determinant of capital A to the power minus 1 equals 1 over the quantity the determinant of capital A, the determinant of capital A squared equals ( the determinant of capital A ) squared
For the diagonalmatrix with entries 2 and 3, the inverse has entries 21 and 31: determinants 6 and 61 (p. 16). Doubling a matrix is a different matter: by property 3, a factor 2 comes out of every row (pp. 17–18):
Doubling the matrix (property 3)
det2A=2ndetA
In words
the determinant of 2 capital A equals 2 to the power n the determinant of capital A
so 2n, not 2: like doubling the sides of a box, which multiplies its volume by 8 in three dimensions (p. 18). The formula for A−1 fails exactly when detA=0, where A−1 does not exist (p. 18).
So everything said about rows holds for columns: a zero column gives 0, exchanging two columns reverses the sign (pp. 18–19). Proof for the usual case A=LU: detA=detLdetU and detAT=detUTdetLT by property 9. L and LT are triangular with ones on the diagonal, so their determinants are 1, and U and UT have the same diagonal (pp. 19–20).
A hidden fact (pp. 20–21). Property 2 would contradict itself if the same permutation could be reached by seven exchanges and also by ten. It cannot: every permutation is either odd or even, so the determinant is well defined by properties 1 to 3 (pp. 20–21).
Worked example
Determinants by the properties
For A=24−2152371 find detA by elimination, then det2A, detA−1, detAT, and the determinant after exchanging rows 1 and 2.
Elimination
Row 2 minus 2 row 1: (0,3,1). Row 3 plus row 1: (0,3,4). Then row 3 minus row 2: (0,0,3). No exchanges, pivots 2, 3, 3: detA=18. (Check by the 3×3 formula: 2(5−14)−(4+14)+3(8+10)=18.)
The other determinants
det2A=23⋅18=144; detA−1=181; detAT=18; one exchange gives −18.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
The factorization A = LU of a matrix into a lower triangular L, which records the elimination steps, times the upper triangular U it produces. Explained in Factorization into A = LU.
A matrix made by reordering the rows of the identity matrix; multiplying by it reorders the rows of another matrix the same way. Explained in Elimination with matrices.
Of a square matrix or operator: having an inverse that undoes it; for a matrix this happens exactly when its determinant is not zero. Explained in The geometry of linear equations.
A square matrix with only zeros below its diagonal (upper triangular) or only zeros above it (lower triangular). Explained in Elimination with matrices.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
Of a square matrix: having no inverse, because its determinant is zero and some nonzero vector is sent to zero. Explained in The geometry of linear equations.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
True or correctly applicable under the stated conditions.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).