18.06.11: ‘Nullspace’ Lecturer: Barwick Monday 29 February 2016 18.06.11: ‘Nullspace’ Take some vectors ๐ฃ1โ , … , ๐ฃ๐โ ∈ ๐ and make them into the columns of an ๐ × ๐ matrix ๐ด = ( ๐ฃ1โ ๐ฃ2โ โฏ ๐ฃ๐โ ) . Multiplication by ๐ด is a map ๐๐ด โถ R๐ ๐ that carries ๐๐ฬ to ๐ฃ๐โ . (1) The vectors ๐ฃ1โ , … , ๐ฃ๐โ ∈ ๐ are linearly independent if and only if ๐๐ด is injective. (2) The vectors ๐ฃ1โ , … , ๐ฃ๐โ span ๐ if and only if ๐๐ด is surjective. (3) The vectors ๐ฃ1โ , … , ๐ฃ๐โ are a basis of ๐ if and only if ๐๐ด is bijective. 18.06.11: ‘Nullspace’ Let’s see why this works. First, let’s unpack what the injectivity of ๐๐ด would mean. It’s this condition for any ๐ฅ,โ ๐ฆโ ∈ R๐ : if ๐ด๐ฅโ = ๐ด๐ฆ,โ then ๐ฅโ = ๐ฆ.โ Defining ๐งโ โ ๐ฅโ − ๐ฆ,โ we see that we want to show that if ๐ด๐งโ = 0,โ then ๐งโ = 0.โ (In other words, we’re saying that the kernel of ๐ด consists of just the zero vector!) 18.06.11: ‘Nullspace’ Now ๐ด๐งโ is a linear combination of the column vectors ๐ฃ1โ , … , ๐ฃ๐โ with coefficients given by the components of ๐ง.โ So the injectivity of ๐๐ด is equivalent to the following: ๐ if ∑ ๐ง๐ ๐ฃ๐โ = 0,โ then ๐ง1 = โฏ = ๐ง๐ = 0. ๐=1 That’s exactly what it means for ๐ฃ1โ , … , ๐ฃ๐โ to be linearly independent. 18.06.11: ‘Nullspace’ Now let’s unpack what the surjectivity of ๐๐ด would mean. It’s the condition that for any vector ๐คโ ∈ ๐, there exists a vector ๐ฅโ ∈ R๐ such that ๐คโ = ๐ด๐ฅ.โ In other words, for any vector ๐คโ ∈ ๐, there exist numbers ๐ฅ1 , … , ๐ฅ๐ such that ๐ ๐คโ = ∑ ๐ฅ๐ ๐ฃ๐โ . ๐=1 That’s exactly what it means for ๐ฃ1โ , … , ๐ฃ๐โ to span the subspace ๐. 18.06.11: ‘Nullspace’ So we’ve proved our result: if ๐ด = ( ๐ฃ1โ ๐ฃ2โ โฏ ๐ฃ๐โ ) , then (1) ๐ฃ1โ , … , ๐ฃ๐โ ∈ ๐ are linearly independent if and only if ๐๐ด is injective. (2) ๐ฃ1โ , … , ๐ฃ๐โ span ๐ if and only if ๐๐ด is surjective. (3) ๐ฃ1โ , … , ๐ฃ๐โ are a basis of ๐ if and only if ๐๐ด is bijective. 18.06.11: ‘Nullspace’ Now back to our motivating example: we’ve been given a system of linear equations 0โ = ๐ด๐ฅ,โ where ๐ด is an ๐ × ๐ matrix. To solve this equation is to find a basis for the kernel – aka nullspace – of ๐ด. In other words, the objective is to find a list of linearly independent solutions ๐ฃ1โ , … , ๐ฃ๐โ such that any other solution can be written as a linear combination of these! The dimension of ker(๐ด) – sometimes called the nullity of ๐ด – is the number ๐. 18.06.11: ‘Nullspace’ There are two good ways of extracting a basis of the kernel. There’s a way using row operations, and a way using column operations. You’ve been using these for a while already, but here’s the way I think of these … Suppose we can apply some row operations: ( ๐ด ๐ต ) ( ๐ถ ๐ท ). Here, ๐ด and ๐ถ are ๐ × ๐ matrices, and ๐ต and ๐ท are ๐ × ๐ matrices. What this really means is that there’s an invertible ๐ × ๐ matrix ๐ such that ๐๐ด = ๐ถ and ๐๐ต = ๐ท. (And it turns out that any ๐ can be built this way!) That’s why it works to solve equations: if in the end ๐ถ = ๐ผ, then ๐ = ๐ด−1 , and ๐ท = ๐ด−1 ๐ต. 18.06.11: ‘Nullspace’ So you can use row operations to whittle your favorite matrix down, and then solve. This is nice because it’s so familiar. Let’s do a few examples together as a team. First, how about −3 6 −1 1 −7 ๐ด = ( 1 −2 2 3 −1 ) ? 2 −4 5 8 −4 18.06.11: ‘Nullspace’ One more: 2 2 −1 0 1 −1 −1 2 −3 1 ๐ด=( ) 1 1 −2 0 −1 0 0 1 1 1 18.06.11: ‘Nullspace’ Column operations work exactly dual to row operations. (Just think of transposing, doing row operations, and transposing back!) So suppose we can apply some column operations: ( ๐ด ) ๐ต ( ๐ถ ). ๐ท Here, ๐ด and ๐ถ are ๐ × ๐ matrices, and ๐ต and ๐ท are ๐ × ๐ matrices. What this really means is that there’s an invertible ๐ × ๐ matrix ๐ such that ๐ด๐ = ๐ถ and ๐ต๐ = ๐ท. (And it turns out that any ๐ can be built this way!) 18.06.11: ‘Nullspace’ Why is that a good idea? Well, we’re looking for vectors such that ๐ด๐ฅโ = 0.โ So if we take ๐ด ( ) ๐ผ where ๐ผ is the ๐ × ๐ identity matrix, then we can start using column operations to get it to some ๐ถ ( ) ๐ท So ๐ด๐ท = ๐ถ. So if ๐ถ has a column of zeroes, then the corresponding column of ๐ท will be a vector in the kernel. Furthermore, if you get ๐ถ into column echelon form, then the nonzero column vectors of ๐ท lying under the zero columns of ๐ถ form a basis of ker(๐ด). 18.06.11: ‘Nullspace’ Let’s do this one again: 2 2 −1 0 1 −1 −1 2 −3 1 ๐ด=( ) 1 1 −2 0 −1 0 0 1 1 1 18.06.11: ‘Nullspace’ Another: 1 0 ๐ด=( 0 0 0 1 0 0 3 5 0 0 0 2 −8 0 −1 4 ) 1 7 −9 0 0 0