- A subspace contains the zero vector and is closed under addition and scaling: sums and multiples stay inside.
- Lines and planes through the origin are subspaces. Those that miss the origin are not.
- In the plane there are only three kinds: the origin alone, a line through the origin, or the whole plane. Any two vectors in different directions already reach the whole plane.
- The column space C(A) from lesson 1 is a subspace.
- This lesson is about four subspaces that every matrix carries.
The three rules
A set S of vectors is a subspace when three things hold:
- The zero vector is in S.
- If v and w are in S, so is v + w.
- If v is in S, so is cv for every number c.
In short: every combination cv + dw of vectors in S stays in S. Mathematicians say S is closed under adding and scaling: you can't get out by doing those two things.
Stretching stays on the line
Take the line y = x/2 through the origin. The vector v = 21 is on it, since 1 = 2/2. Stretch it by any number and it stays on the line:
Adding stays on the line
Now add two vectors that are both on the line, say 21 and −4−2:
Any mix of them lands on the same line. That line passes all three tests, so it is a subspace.
Yes and no in the plane
- Yes: the line y = 2x. 12 + 24 = 36, and 6 = 2·3 ✓. Sums and multiples of its points stay on it.
- No: the line y = 2x + 1. It misses the origin. Also 01 and 13 are on it, but their sum 14 is not, since 2·1 + 1 = 3, not 4.
- No: the first quadrant (x ≥ 0, y ≥ 0). 12 is in it, but −1·12 = −1−2 is not.
- No: the two axes together. 10 and 01 are in the set, but their sum 11 is not.
So in the plane only three things pass: the origin alone, a line through the origin, and the whole plane. Why nothing else? If a subspace holds one nonzero vector, it holds all its multiples: a whole line. If it also holds a vector pointing in a different direction, then combinations of those two already reach every point of the plane (lesson 1, slide 1). So it is the origin, one line, or everything.
Keep reading with the full course
Finish lesson 4 and you will be able to: write down every solution of Ax = b, not just one.
Still locked here:
- The rest of this explanation
- 4 more examples with step-by-step solutions
- Five extra members-only problems with worked solutions
$20 once, lifetime access. Lessons 1 to 3 stay free.
Examples
Example 1 · A line through the origin
All xy with y = 3x.
Show solutionHide solution
A subspace.

Questions and comments
Stuck on something, or found a mistake? Ask here and I'll answer. You sign in with GitHub.