The Four Fundamental Subspaces
Every m by n matrix comes with four subspaces — the column space and null space we know, plus the row space and the left null space. Strang locates each one, gives its dimension in terms of the rank r, and shows how one row reduction produces a basis for all four. The lecture opens by correcting an error from lecture nine and closes by promoting matrices themselves to vectors.
An error corrected: the rows know about the columns
Strang opens by fixing “the blackboard with that awful error” from lecture nine. He had wanted three vectors that form a basis for , started with and — independent — and knew that , their sum, wouldn’t do. So “in my innocence” he wrote , figuring that if lies in the plane of the first two, then probably sticks a little bit out of it.
After class a student told him: that third vector is not independent. And she didn’t hunt for the combination that produces it. She looked at the matrix with those three columns,
and saw two identical rows. A square matrix with two equal rows is not invertible — its rows are obviously dependent, and that forces its columns to be dependent too. The row space of this matrix is only two-dimensional, so the rank is two, so only two columns can be independent.
The four subspaces
Here they are — “really the heart of this approach to linear algebra.” For an matrix :
- The column space — all combinations of the columns.
- The null space — all solutions of .
- The row space — all combinations of the rows.
- The null space of , written — the fourth guy.
Where do the four spaces live? Vectors in have components (they’re solutions ), so is in — and so is the row space, since rows of have components. Columns have components, so is in — and so is . Two subspaces sit in , two in . Strang draws his famous picture: row space and null space on the side, column space and left null space on the side. (He notices the fourth space “is already getting second-class citizen treatment and it doesn’t deserve it.”)
To understand these spaces means answering two questions for each: how do you construct a basis, and what is the dimension? The dimension is just a number, so it has a real short answer — and Strang can’t resist giving all four short answers first.
The dimensions: r, r, n − r, m − r
Where do these come from?
Column space: a basis is the pivot columns — the pivot columns of the original , not of . There are of them; the rank counts them.
Null space: a basis is the special solutions, one for each free variable — set that free variable to , the other free variables to , and solve for the pivot variables. There are free variables, so . And that’s just restating the count of variables: variables, pivot variables, free ones — .
Left null space: “it’s got to be .” Why? Because ” is just as good a matrix as .” It happens to be , so it has columns, hence variables in ; its rank is also , leaving free variables. Same rule, applied to the transpose.
That leaves the row space’s dimension — and its basis — to be earned, which is the next job.
A basis for the row space
You could find the row space basis by transposing , row-reducing , and taking its pivot columns — but that means doing all that elimination over again. The work already done on ought to reveal it. Take the matrix from last lecture:
Now, a warning first. The column space changed: is certainly in and certainly not in . Row operations do not preserve the column space. But they do preserve the row space — every operation replaced a row by a combination of rows, so at every step you stay inside the row space of . And the steps reverse: undoing the subtractions writes the original rows as combinations of the rows of . Same row space, both directions.
So a basis for the row space of is sitting in : the first rows of . Here, and . Not the first rows of — sometimes that works, but not necessarily. They’re in the row space, there are of them, and they’re visibly independent (look at the identity sitting in the pivot columns). In fact this is the best basis: “if the columns of the identity matrix are the best basis for , the rows of this matrix are the best basis for the row space” — as clean as it can be made.
The left null space, and the matrix E
For this same example, and , so the left null space should be -dimensional: there is one combination of the three rows of that produces the zero row. (For the null space you combine columns to get the zero column; for the left null space you combine rows to get the zero row.) But the special-solutions trick reads off , not — the left null space “is not jumping out at me here.” The trick is to keep a record of the elimination steps.
Remember Gauss–Jordan, where you tack the identity onto a square invertible matrix? Do the same for rectangular : row-reduce the long matrix , with the identity, all the way to
All the row reduction amounts to multiplying on the left by one matrix — some product of elementary matrices. That something took to , so that something was , and therefore
In chapter two, when was square and invertible, was , and meant . For a rectangular there’s no inverse, but there is still an .
Review of all four: the row space and null space are in , dimensions adding to ; the column space and left null space are in , dimensions adding to .
A new vector space: matrices as “vectors”
In the last minutes, Strang pushes to a new type of vector space. Every space so far has been a subspace of some . Now take = all matrices, and call the matrices themselves the “vectors.” Is that allowed? Yes — because they obey the rules. You can add two matrices; you can multiply a matrix by a scalar like ; you can take combinations like three of one matrix minus five of another; there’s a zero matrix that changes nothing when added. All eight vector-space rules are easily satisfied. The fact that you can also multiply two matrices is irrelevant — “I’m not interested in for now.”
Subspaces of : all upper triangular matrices; all symmetric matrices. The intersection of two subspaces is a subspace, and here the intersection — symmetric and upper triangular — is the diagonal matrices , smaller than both. “Smaller” can now be made precise by dimension. For , Strang produces a basis of three matrices:
— three independent diagonal matrices whose combinations give every diagonal matrix. So . The idea of basis and dimension stretches from to matrix space without changing at all.
Problems
Work these before revealing the solutions — each one uses only the four-subspace machinery from the lecture.
Find the dimension of, and a basis for, each of the four fundamental subspaces of
Show solution
Row reduce: subtract of row 1 from row 2 to get . One pivot, so , with , .
Column space (): the pivot column of , basis .
Row space (): the first rows of , basis .
Null space (): free variables . Special solutions: gives ; gives . Those two are a basis.
Left null space (): the combination of rows giving the zero row is of row 1 plus row 2, so a basis is . Check: . ✓
Without finding any explicit combination, show that the three vectors
are dependent — use the student’s argument from the start of the lecture.
Show solution
Put the vectors as the columns of a matrix:
Rows 1 and 2 are identical, so the rows are dependent and the row space has dimension at most . The row space and column space have the same dimension , so while there are columns. Three columns in a space of dimension at most two must be dependent — no combination needed.
Row reduce
to . Give a basis for the row space of from , and then exhibit one vector that is in the column space of but not in the column space of .
Show solution
Subtract of row 1 from row 2, and row 1 from row 3:
(exchange rows 2 and 3, then subtract of the new row 2 from row 1). Rank .
Row space basis — the first two rows of : and . Row operations preserved the row space, so these span the row space of too.
Column spaces differ: every column of has third component , so lies in the plane . But column 1 of , namely , has third component — it is in and cannot be in .
For
row reduce to , verify , and read off a basis for .
Show solution
Start with and eliminate. Subtract row 1 from row 2, and of row 1 from row 3:
Subtract row 2 from row 3:
is already reduced (row 1 has a above the second pivot). Check : row 2 of is ✓; row 3 is ✓. So .
Rank , so . The zero row of came from the last row of , so a basis for the left null space is : indeed row 3 of equals row 1 plus row 2.
In the vector space of all matrices, find the dimension of the subspace of upper triangular matrices and of the subspace of symmetric matrices, by producing a basis for each. Check that has the dimension found in lecture.
Show solution
Upper triangular: a upper triangular matrix has free entries — three on the diagonal, three above. A basis is the six matrices with a single in one of those positions and zeros elsewhere. Any upper triangular matrix is a unique combination of them, so .
Symmetric: a symmetric matrix is determined by its diagonal ( entries) and the entries above the diagonal ( entries) — the below-diagonal entries are copies. A basis: three matrices with a single on the diagonal, plus three matrices with a in position and in position for each pair . So .
Intersection: a matrix in is symmetric with zeros below the diagonal, hence zeros above too — it is diagonal. The three single-entry diagonal matrices are a basis, so , matching the lecture’s answer for the diagonal matrices .