Subspaces of Rⁿ
A subspace is a flat piece of space through the origin, like a line or a plane, that you can't leave by adding or scaling its vectors. Every matrix comes with two of them: the column space, everything it can output, and the null space, everything it crushes to zero.
What the symbols mean
- Column space
Every possible output Ax.
- Null space
Every input that A sends to zero.
Explanation
A subspace is simply a line, plane or higher-dimensional flat sheet that passes through the origin. The "sub" means it's a smaller space living inside a bigger one, like a flat tabletop inside the 3D room, and it still behaves like a space of its own. Subspaces are good for describing exactly what a matrix can reach and what it throws away. The two formulas look technical, but each is one idea: (the column space, every output can produce, which is all the combinations of 's columns) and (the null space, every input that sends to zero). Two sets, one about outputs and one about inputs. That's it.
Testing a set. Ask three questions. Does it contain ? Is the sum of two members a member? Is every multiple of a member a member? Think about why lines or planes that miss the origin always fail: multiply any member by and you land on , which isn't there. There's an animation further down that shows a shifted line failing exactly this way.
Bases. You met spans and independence earlier. A basis of a subspace puts them together: an independent set that spans it, the smallest set of directions you need to reach everything.
- For : the pivot columns of itself.
- For : solve in parametric form, and take the vectors multiplying the free variables.
A common mistake. It's tempting to take the pivot columns of the echelon form as the basis for , since that's where you found the pivots. It isn't right: row operations change the columns, so the echelon form's columns usually span a different space. Use the echelon form to find which columns have pivots, then go back and take those columns from .
See it
Worked examples
Find bases for and where .
- 1
Subtracting twice row 1 from row 2 gives the echelon form . The only pivot is in column 1, so column 1 of is a basis for .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Is the line a subspace of ?
Is the line a subspace?
Give a basis vector for , (use the pivot column).
Give a basis vector for with second entry 1.
Is a subspace?
A drone can only move along combinations of its thrust directions and . Show that is in their span by finding the weights.
The hardest one here. Get it, and you've got this lesson.
Find a basis vector for , , with second entry .
Where it's used
In signal processing, the "noise subspace" and "signal subspace" are separated to clean up data; in recommender systems, user preferences are modeled as living in a low-dimensional subspace.