This lecture has two jobs: to correct an error from the last lecture, and to complete the picture of the four subspaces that come with every matrix (transcript, p. 1). It continues independence, basis and dimension.
Correcting Lecture 9#
Last time Strang added to and , expecting a basis of (transcript, p. 1). After class a student pointed out that it is not: the matrix with these three columns is not invertible, because it has two equal rows (pp. 1–2). Its rows are dependent, so its row space is only two-dimensional, its rank is 2, and so only two of its columns can be independent (p. 2). The rows say something about the columns, which this lecture makes precise (pp. 2, 8).
The four subspaces#
For an matrix (transcript, pp. 3–5):
- the column space , all combinations of the columns;
- the nullspace , all solutions of ;
- the row space, all combinations of the rows. To keep column vectors, transpose: it is the column space of , written (pp. 3–4);
- the left nullspace , the nullspace of (p. 4).
The rows span the row space; they are a basis only if they are independent (p. 3). Where do the spaces live? Solutions of and rows of have components, columns of have (p. 5):
In words
C( capital A ^ capital T ) and capital N ( capital A ) lie in R to the power n; C( capital A ) and capital N ( capital A ^ capital T ) lie in R to the power m
Understanding a space means having a basis and its dimension for each of the four (p. 6).
Their dimensions#
The short answers first (transcript, pp. 6–10). For rank :
In words
dim C( capital A ) equals r, dim C( capital A ^ capital T ) equals r, dim capital N ( capital A ) equals n minus r, dim capital N ( capital A ^ capital T ) equals m minus r
The row space and the column space have the same dimension, a wonderful fact (p. 8). It explains the correction: the rows of the Lecture 9 matrix plainly span only a plane, so the column space does too (p. 8). In the dimensions add up, , just as variables split into pivot and free ones (p. 10). The same rule applied to , which has columns, gives for the left nullspace (p. 10).
Bases#
Column space (transcript, p. 7): the pivot columns of (the original , not ).
Nullspace (pp. 9–10): the special solutions, one for each of the free variables.
Row space (pp. 11–15). The example from last time:
In words
capital A equals 1 2 3 1; 1 1 2 1; 1 2 3 1 goes to 1 2 3 1; 0 minus 1 minus 1 0; 0 0 0 0 goes to capital R equals 1 0 1 1; 0 1 1 0; 0 0 0 0
Subtract row 1 from rows 2 and 3, multiply row 2 by , and subtract 2 of it from row 1 (pp. 11–12). The column space changed: is in but not in , whose columns all end in 0 (p. 12). But the row space did not: every step replaced a row by a combination of rows, so the rows of lie in the row space of ; and reversing the steps writes the rows of as combinations of the rows of (pp. 12–15). So the first rows of are a basis, the cleanest possible one (pp. 13–14):
In words
C( capital A ^ capital T ) equals C( capital R ^ capital T ), basis (1, 0, 1, 1), (0, 1, 1, 0)
There are of them, they are independent (each has a 1 where the others have 0), and they span: the dimension is (p. 14). The first rows of itself would not always do (p. 13).
Left nullspace (pp. 15–21). It holds the with . Transposing puts on the left, as a row (pp. 15–16):
In words
capital A ^ capital T y equals 0 which gives y^ capital T capital A equals 0^ capital T
So holds the combinations of the rows that give the zero row (p. 20). does not show them directly; the steps from to do. Run Gauss–Jordan on , with of size (pp. 16–18):
In words
capital A capital I goes to capital R E, E capital A equals capital R
records all the row operations. When is square and invertible, and so , as in chapter two (p. 18). For the example (pp. 19–20):
In words
E equals minus 1 2 0; 1 minus 1 0; minus 1 0 1, E capital A equals capital R
Here , so the left nullspace is a line. The last row of produced the zero row of , so is a basis: times row 1 plus row 3 is zero, which could be seen from the start (p. 20). Strang shows this on the example; in general the last rows of , the ones that produce the zero rows of , are a basis for , found without starting over on (p. 21).
A new vector space: matrices#
All matrices form a vector space : its "vectors" are matrices, which can be added and multiplied by numbers, with a zero matrix, and the eight rules hold (transcript, pp. 21–22). That matrices can also be multiplied together does not matter here (p. 22). Subspaces of include the upper triangular matrices and the symmetric matrices; their intersection, symmetric with zeros below the diagonal, is the diagonal matrices (pp. 22–23). The diagonal matrices have dimension 3: three diagonal matrices, each with one nonzero entry in a different diagonal position, are a basis (p. 24). The other dimensions are left for next time (p. 23).
All four subspaces of your own
Find bases and dimensions of the four subspaces of .
Row reduce, keeping E
Subtract 2 times row 1 from row 2 and 3 times row 1 from row 3: both become . Subtract the new row 2 from row 3: zero. So , rank , pivot columns 1 and 3. Doing the same to gives last row of equal to .
The four bases
: columns 1 and 3 of , and ; dimension 2. : and ; dimension 2. : special solutions and ; dimension . : ; dimension . Check: .
Check the counts
and .
Summary#
- Four subspaces: and in ; and in .
- Dimensions , , , : row rank equals column rank.
- Bases: pivot columns of ; first rows of ; special solutions; last rows of , where .
- Row operations keep the row space and nullspace, and change the column space.
- Matrices themselves form vector spaces, with subspaces such as the diagonal matrices (dimension 3 for ).