18.06.23: Determinants & Permutations Lecturer: Barwick Friday, 8 April 2016 18.06.23: Determinants & Permutations So here’s an π × π matrix π΄ = ( ~π£1 β― ~π£π ) , and we have this number det(π΄) = det (~π£1 , … ,~π£π ) ∈ R that measures the signed π-dimensional volume of the parallelopiped spanned by ~π£1 , … ,~π£π . Let’s list the things we know about det(π΄). 18.06.23: Determinants & Permutations (1) Normalization. The identity matrix has determinant 1: det(πΌ) = det (π1Μ , β― , ππΜ ) = 1. (2) Multilinearity. For any real numbers π, π ∈ R, det (~π£1 , β― , π~π₯π + π ~π¦π , β― ,~π£π ) = π det (~π£1 , β― , ~π₯π , β― ,~π£π ) +π det (~π£1 , β― , ~π¦π , β― ,~π£π ) . 18.06.23: Determinants & Permutations (3) Alternation. The determinant det (~π£1 , β― , β― ,~π£π ) = 0 if any two of the ~π£π s are equal. These are the core, defining properties of det. 18.06.23: Determinants & Permutations Here are more properties, which we deduced from the three core properties above: (4) Multiplying a row or column by a number π ∈ R multiplies the determinant by that π. (5) Swapping two rows or columns in π΄ multiplies the determinant by a −1. (6) Adding a multiple of a row or column onto another row or column doesn’t change the determinant. 18.06.23: Determinants & Permutations And here are some general computational facts we extract from these properties. (8) det(π΄) ≠ 0 if and only if π΄ is invertible. (9) det(ππ) = det(π) det(π). (10) det(π΄βΊ ) = det(π΄). (Why?) (11) det diag(π1 , … , ππ ) = ∏ππ=1 ππ . (12) More generally, if π΄ is triangular, then det(π΄) is the product of the entries along the diagonal. (Why?) 18.06.23: Determinants & Permutations Let’s compute the determinant of the following matrices: 1 2 4 ( 1 3 9 ), 1 4 16 1 1 2 5 1 2 5 14 ( ), 2 5 14 42 5 14 42 132 1 1 ( 1 2 1 1 2 2 1 2 2 3 2 2 ) 3 4 1 2 5 14 2 5 5 14 ( ) 5 14 42 132 14 42 132 429 18.06.23: Determinants & Permutations I was half-joking about the last two; this is actually a neat little piece of mathematics: there’s only one sequence of integers π0 , π1 , π2 , … such that for any π ≥ 1, det(ππ+π−2 ) = det(ππ+π−1 ) = 1. These are called the Catalan numbers, and your mathematical life isn’t complete until you’ve read about them! (I was going to put a problem about these on the homework, but I thought that might be too much.) 18.06.23: Determinants & Permutations Suppose πβΆ {1, … , π} from that set to itself. {1, … , π} a permutation of {1, … , π} – i.e., a bijection One can express a permutation very compactly, by writing down the matrix ππ = ( ππ(1) ) Μ β― ππ(π) Μ called the permutation matrix corresponding to π. This is great, because matrix multiplication corresponds to composition of permutations: ππβπ = ππ ππ and πππ = πΌ. 18.06.23: Determinants & Permutations Also, these matrices are orthogonal; in fact, ππβΊ = ππ−1 = ππ−1 . 18.06.23: Determinants & Permutations Here’s a permutation matrix for π = 5: π2Μ π4Μ ( π1Μ ) = ( π3Μ ( π5Μ ) ( What’s its determinant? 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 ). 0 1 ) 18.06.23: Determinants & Permutations This is a general pattern: the determinant of a permutation matrix ππ is called the sign of the permutation π: sgn(π) β det(ππ ) In effect, it’s (−1)number of swaps in π . What’s weird about this is that you can imagine performing more or fewer swaps to get sigma. The magic of determinants is telling you that the parity of the number of swaps stays the same! Note that sgn(π) = sgn(π −1 ). (Why?) 18.06.23: Determinants & Permutations It turns out that permutations give you a formula for the determinant of any matrix π΄ = ( ~π£1 β― ~π£π ). Let’s see why. First, the π-th column ~π£π can be written as π ~π£π = ∑ ππ,π ππΜ . π=1 18.06.23: Determinants & Permutations The multilinearity of det can then be deployed: π π det(π΄) = det ( ∑ ππ(1),π ππ(1) Μ , … , ∑ ππ(π),π ππ(π) Μ ) π = π(1)=1 π π(π)=1 π Μ , … , ππ(π) Μ ) ∑ β― ∑ (∏ ππ(π),π ) det(ππ(1) π(1)=1 π(π)=1 π=1 Now all those sums can be combined into one sum. You’re summing over the set πΈπ of all maps πβΆ {1, … , π} {1, … , π}: π det(π΄) = ∑ (∏ ππ(π),π ) det(ππ(1) Μ , … , ππ(π) Μ ). π∈πΈπ π=1 18.06.23: Determinants & Permutations π det(π΄) = ∑ (∏ ππ(π),π ) det(ππ(1) Μ , … , ππ(π) Μ ). π∈πΈπ π=1 Now we use the alternatingness: if any two columns are equal, then the determinant is zero. So any summand in which πβΆ {1, … , π} {1, … , π} is not injective doesn’t appear: π det(π΄) = ∑ (∏ ππ(π),π ) det(ππ(1) Μ , … , ππ(π) Μ ), π∈π΄π π=1 where π΄π is the set of permutations of {1, … , π}. 18.06.23: Determinants & Permutations Now we have: π det(π΄) = Μ , … , ππ(π) Μ ) ∑ (∏ ππ(π),π ) det(ππ(1) π∈π΄π = π=1 π ∑ (∏ ππ(π),π ) det(ππ ) π∈π΄π π=1 π = ∑ sgn(π) (∏ ππ(π),π ) . π∈π΄π π=1 18.06.23: Determinants & Permutations π det(π΄) = ∑ sgn(π) (∏ ππ(π),π ) π∈π΄π π=1 There it is – the Leibniz formula for the determinant. Do you care? Well, if you’re trying to program a computer to compute determinants, no. Evaluating this formula involves πΊ(π! π) operations. Gaussian elimination uses π(π3 ) operations. We have a winner. On the other hand, the fact that there is a formula is vaguely reassuring. But there’s another advantage … 18.06.23: Determinants & Permutations 2 Think of the determinant as a function from Rπ R; this formula expresses 2 that function as a polynomial in π variables. That means that it’s continuous and infinitely differentiable. So this leads us to the following result: Proposition. Suppose π΄ = (ππ,π ) an invertible π × π matrix. Then there exists ′ ′ an π > 0 such that if π΄′ = (ππ,π ) is an π × π matrix such that |ππ,π − ππ,π | < π, ′ then π΄ is invertible too. That is, invertible matrices are stable under small perturbations. 18.06.23: Determinants & Permutations 2 Here’s another wacky-sounding consequence. Suppose πΏ ⊆ Rπ is a line. Then if there exists one point on πΏ that corresponds to an invertible matrix, then all but finitely many points on πΏ correspond to invertible matrices. 18.06.23: Determinants & Permutations Question. Suppose π΄ an π × π matrix. For how many real numbers π‘ ∈ R is π΄ + π‘πΌ is invertible (none, finitely many, infinitely many, all)?