Column Space and Nullspace
The start of the chapter that is really the center of linear algebra. After pinning down what makes a set of vectors a subspace, Strang builds the two subspaces attached to every matrix. The column space of A holds every b for which Ax = b is solvable; the nullspace holds every x that solves Ax = 0. One subspace is built from vectors you are given, the other from equations the vectors must satisfy.
Subspaces: the two requirements
We’re at the start of chapter three, “which is really getting to the center of linear algebra.” First, the recap from lecture five. A vector space is a bunch of vectors where you can add any two vectors and stay in the space, and multiply any vector by any constant and stay in the space. Combine the two requirements into one: all linear combinations stay in the space.
The whole space certainly qualifies. But Strang is after subspaces — some vectors inside that still make up a vector space of their own. “It’s a vector space inside a vector space.” The examples:
- A plane through the origin. Add two vectors in the plane, the sum stays in the plane; multiply by , still in the plane.
- A line through the origin. Same checks pass.
- The zero vector alone. Yes — absolutely a subspace.
Every subspace has to contain the zero vector; a plane or line that misses the origin fails immediately.
Unions and intersections
Call the plane and the line (with not lying in ). Two quiz questions probe whether the requirements have sunk in.
Is — all vectors in or or both — a subspace? No. Because you can’t add. Take one vector from the plane and one from the line and add them: normally you land off somewhere else, outside the union. The addition requirement fails.
Is a subspace? For this picture the intersection is only the zero vector — which is a subspace. And the answer stays yes in general:
The column space of A
Now the first of today’s two stars. Take the matrix
Which space does it live in? The columns have four components — they’re vectors in , because is 4 by 3. So is a subspace of . And how big is it? Does combining three vectors fill all of four-dimensional space? The class’s feeling — no — happens to be right. It’s a smaller space. How much smaller is the real question, and it’s coming.
The connection to Ax = b
Behind the abstract definition there is a purpose: to understand . Written out,
Does this have a solution for every ? No — four equations, only three unknowns. As Strang puts it, “anybody is going to say, no you dope, you can’t usually solve four equations with only three unknowns.” But sometimes you can, and which right-hand sides allow it is the question for today — the one that gets two question marks on the board.
Partial answers first. always works: take all the ‘s zero. ? That’s the first column, so solves it by inspection. ? That’s the second column: . In fact the easy way to generate good right-hand sides is backwards — think of an first and see what turns out to be.
That’s why we care about the column space: “it’s the central guy. It says when we can solve.”
The nullspace
Now a completely different subspace, from the same matrix. It contains not right-hand sides but solutions — and the only in sight is all zeroes.
The official machinery for finding nullspaces is elimination, coming next lecture. But the beauty of a small example is that you can see it by eye. One solution needs no looking at the matrix at all: , since times the zero vector is certainly zero. Another? You’re hunting for a combination of the columns that gives zero — and since column three is column one plus column two, take . Another: . Might as well take them all:
The perfect description: gives the zero vector automatically, gives the solution we found, and every multiple like or is in there too. Drawn, it’s a line through the origin in , going both ways.
Are we entitled to the word “space”? Strang never uses it without the two requirements holding, so check them. If and , is ? Yes — the distributive law of matrix multiplication splits it into . (A law we’re using without proving: “we only live so long, we just skip that proof.”) And ? The scalar moves outside: . It checks. The solutions to always form a subspace.
When the right-hand side isn’t zero
To see the point of all this, change the right-hand side: solve . That’s a very special — it’s in the column space — so solutions exist. Do they form a subspace? No. The zero vector is not a solution, so we never even got started: no subspace without .
What do the solutions look like instead? One solution is . Another is : minus the second column plus the third is the first column. There’s a whole bunch of solutions — and the picture is a line that does not pass through the origin. Subspaces have to go through the origin; if you’re looking at ‘s, they’d better solve .
Problems
Work these with the lecture’s tools: inspection, the two subspace requirements, and the solvability criterion.
Let and be two different lines through the origin in . Is a subspace? Is a subspace? Justify each answer from the two requirements.
Show solution
Intersection: two different lines through the origin meet only at , and the zero vector alone is a subspace — so yes. (In general, any intersection of subspaces is a subspace.)
Union: no. Take a nonzero on and a nonzero on . Their sum lies on neither line (if it were on , then would be on too — contradiction). The addition requirement fails, so the union is not a subspace.
Let
The column space is a subspace of which ? Can a column be thrown away without changing ? What is the dimension of ?
Show solution
The columns have four components, so is a subspace of .
Column three is the sum of columns one and two: . So every combination that uses column three can be rewritten using only columns one and two — throw column three away and is unchanged.
Columns one and two are not multiples of each other, so each contributes a new direction. is a two-dimensional subspace (a plane) inside .
For the matrix of Problem 6.2, decide by inspection whether is solvable for each right-hand side, and give a solution when it is:
Show solution
is solvable exactly when is in the column space.
is column two itself: solvable, with .
is column one plus column two (it equals column three): solvable, with — or .
: a combination has first two components and . Matching forces and . The third component is then , but has third component . No solution — is not in .
Find the nullspace of
without elimination, and describe it geometrically.
Show solution
Look for a combination of the columns giving zero. Column three is column one plus column two: . So solves , and so does every multiple:
Since columns one and two are independent (not multiples of each other), no further directions of solutions exist. Geometrically is a line through the origin in , running both ways through .
Suppose and the equation has solutions. Show in two different ways that the set of solutions is not a subspace: once using the zero vector, and once using addition.
Show solution
Zero vector: every subspace contains . But , so the zero vector is not a solution. The solution set misses the origin — not a subspace.
Addition: take two solutions and , so and . By the distributive law, . The sum of two solutions is not a solution, so the set is not closed under addition.
(The picture: the solutions form a line or plane parallel to the nullspace but shifted off the origin.)