← mapVector Spaces

Subspaces

⚗ Dr. Möbius, from the lab

Verifying all ten axioms for every set you meet would be a special kind of hell, and I fucking refuse to live there. Today I hand you a shortcut so sharp it's almost cheating: to check whether a subset is a vector space, you don't check ten axioms — you check three conditions, and the other seven come free. But there's a price, and the price is a rule with no mercy: through the origin, or you're out.

THE BIG IDEA

A subspace is a subset of a vector space that is itself a vector space — and a three-condition test (contains 0, closed under addition, closed under scaling) is enough to certify one.

The whole idea: a space living inside a space

We built vector spaces from ten axioms in the Vector Spaces node. Now a natural question: if VV is a vector space and WW is a subset of it (WVW \subseteq V), when is WW itself a vector space under the operations it inherits from VV? When it is, we call WW a subspace of VV.

A plane through the origin inside R3\mathbb{R}^3 feels like it should be a little 2D vector space living inside the big one. It is. A line through the origin too. The set {0}\{\mathbf{0}\} on its own — also a subspace. But a plane that misses the origin? We proved last node that anything missing 0\mathbf{0} is dead on arrival. So the geometry is going to be unforgiving.

The three-condition test

Here's the shortcut. WVW \subseteq V is a subspace if and only if:

  1. 0W\mathbf{0} \in W (it contains the zero vector — equivalently, WW is nonempty).
  2. Closed under addition: if u,wWu, w \in W then u+wWu + w \in W.
  3. Closed under scalar multiplication: if wWw \in W and cRc \in \mathbb{R} then cwWcw \in W.

Three checks. That's it. Stop looking for a catch — there isn't one. The two closure conditions are the same as axioms 1–2 from last node; condition 1 just pins down that we haven't accidentally described the empty set.

Why three conditions buy you all ten

This is the part textbooks wave away with a footnote and hope you don't notice, and Dr. Möbius absolutely does not wave. Why is the test enough?

Because the other seven axioms are inherited for free. Commutativity (u+w=w+uu+w = w+u), associativity, the scalar laws (7–10) — these are universal statements: they say "for all elements, such-and-such equation holds." If they hold for all elements of the big space VV, they automatically hold for all elements of the smaller set WVW \subseteq V, since every element of WW is also an element of VV. You can't break a "for all" law by looking at fewer things.

The only axioms that could fail on a subset are the existence axioms — does 0\mathbf{0} live in WW (axiom 5)? Does each ww have its inverse w-w in WW (axiom 6)? — plus closure (1–2), which is the risk that the operations escape the subset. Condition 1 handles the zero. Conditions 2–3 handle closure. And the inverse? It comes free from condition 3: w=(1)w-w = (-1)w (proved last node!), and condition 3 with c=1c = -1 guarantees (1)wW(-1)w \in W. So the three conditions cover every axiom that could possibly fail. Argued once, trusted forever.

The geometry of R3\mathbb{R}^3: a complete census

For R3\mathbb{R}^3 the subspaces are exactly four flavors, and you should be able to recite them cold:

  • {0}\{\mathbf{0}\} — the zero subspace. Dimension 00.
  • Lines through the origin. Dimension 11.
  • Planes through the origin. Dimension 22.
  • All of R3\mathbb{R}^3. Dimension 33.

That's the complete list. No others exist — not an infinite helix, not a sphere, not any curved shit. And the iron law uniting them: every subspace contains the origin. A line that doesn't pass through 0\mathbf{0}? Not a subspace — scale any of its points by 00 and you'd need 0\mathbf{0} inside, but it isn't. Through the origin or it's out. Tattoo it.

The null space is born

Now we cash this in on something from the Matrices stratum, and it's genuinely beautiful — the kind of thing that makes you feel guilty for not seeing it sooner. Take a matrix AA (say m×nm \times n) and look at all solutions of the homogeneous system Ax=0A\mathbf{x} = \mathbf{0}: N(A)={xRn:Ax=0}.N(A) = \{\mathbf{x} \in \mathbb{R}^n : A\mathbf{x} = \mathbf{0}\}.

Theorem. N(A)N(A) is a subspace of Rn\mathbb{R}^n.

Proof. Run the three-condition test.

  1. A0=0A\mathbf{0} = \mathbf{0}, so 0N(A)\mathbf{0} \in N(A). (Zero vector is always a solution of a homogeneous system.) ✓
  2. Let x,yN(A)\mathbf{x}, \mathbf{y} \in N(A), so Ax=0A\mathbf{x} = \mathbf{0} and Ay=0A\mathbf{y} = \mathbf{0}. By linearity of matrix multiplication (Matrices stratum), A(x+y)=Ax+Ay=0+0=0A(\mathbf{x} + \mathbf{y}) = A\mathbf{x} + A\mathbf{y} = \mathbf{0} + \mathbf{0} = \mathbf{0}, so x+yN(A)\mathbf{x} + \mathbf{y} \in N(A). ✓
  3. Let xN(A)\mathbf{x} \in N(A), cRc \in \mathbb{R}. Then A(cx)=c(Ax)=c0=0A(c\mathbf{x}) = c(A\mathbf{x}) = c\mathbf{0} = \mathbf{0}, so cxN(A)c\mathbf{x} \in N(A). ✓

All three hold, so N(A)N(A) is a subspace. \blacksquare This set is so important it gets a name you'll use forever: the null space (or kernel) of AA.

And the impostor: Ax=bA\mathbf{x} = \mathbf{b} with b0\mathbf{b} \ne \mathbf{0}

Watch the same idea fail the instant we make it inhomogeneous. The solution set of Ax=bA\mathbf{x} = \mathbf{b} with b0\mathbf{b} \ne \mathbf{0} is not a subspace — not even close.

Why? Condition 1 already dies: A0=0bA\mathbf{0} = \mathbf{0} \ne \mathbf{b}, so 0\mathbf{0} is not a solution. No zero vector, not a subspace — first question asked, exam over. (You can also kill it with closure: if Ax=bA\mathbf{x} = \mathbf{b} then A(2x)=2bbA(2\mathbf{x}) = 2\mathbf{b} \ne \mathbf{b}.) Geometrically it's a plane or line shifted off the origin — an "affine" set, the parallel copy of N(A)N(A) pushed away from home. Same shape, wrong neighborhood.

Intersections yes, unions no

Two final structural facts. If UU and WW are subspaces of VV, then:

  • UWU \cap W is always a subspace. (Anything in both is closed under the operations in both — three-condition test passes trivially. The intersection of the xyxy-plane and the xzxz-plane is the xx-axis: a line through the origin. Still a subspace.)
  • UWU \cup W is usually NOT. Counterexample: in R2\mathbb{R}^2, let UU be the xx-axis and WW the yy-axis. Both are subspaces. But (1,0)U(1,0) \in U and (0,1)W(0,1) \in W are both in the union, while their sum (1,1)(1,1) is on neither axis — closure under addition fails. The union of two lines isn't a plane; it's a sad X that breaks the moment you add across the arms.

Remember the Set Theory stratum, where \cap and \cup behaved so symmetrically? Here the symmetry shatters — algebra doesn't give a damn about set-theory aesthetics. Subspaces care about algebraic structure, not just membership. Intersection preserves it; union smashes it into rubble.

🔬 SPECIMENS (worked examples)

Worked example 1 — a plane through the origin, certified by the three-condition test

Show that W={(x,y,z)R3:x+2yz=0}W = \{(x, y, z) \in \mathbb{R}^3 : x + 2y - z = 0\} is a subspace of R3\mathbb{R}^3.

Run the three-condition test.

1. Zero vector. Does (0,0,0)(0,0,0) satisfy the equation? 0+2(0)0=00 + 2(0) - 0 = 0. ✓ So 0W\mathbf{0} \in W.

2. Closed under addition. Take (x1,y1,z1)(x_1,y_1,z_1) and (x2,y2,z2)(x_2,y_2,z_2) in WW, so x1+2y1z1=0x_1 + 2y_1 - z_1 = 0 and x2+2y2z2=0x_2 + 2y_2 - z_2 = 0. Their sum is (x1+x2,y1+y2,z1+z2)(x_1+x_2,\, y_1+y_2,\, z_1+z_2), and (x1+x2)+2(y1+y2)(z1+z2)=(x1+2y1z1)+(x2+2y2z2)=0+0=0.(x_1+x_2) + 2(y_1+y_2) - (z_1+z_2) = (x_1+2y_1-z_1) + (x_2+2y_2-z_2) = 0 + 0 = 0. So the sum is in WW. ✓

3. Closed under scaling. For cRc \in \mathbb{R} and (x,y,z)W(x,y,z) \in W: cx+2(cy)cz=c(x+2yz)=c0=0cx + 2(cy) - cz = c(x + 2y - z) = c\cdot 0 = 0. So c(x,y,z)Wc(x,y,z) \in W. ✓

All three hold — WW is a subspace, specifically a plane through the origin (dimension 22). The key was that the defining equation is homogeneous (right-hand side 00): that's exactly what makes everything line up to 00.

Worked example 2 — the null space of a concrete matrix

Let A=(123246)A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \end{pmatrix}. Describe N(A)={x:Ax=0}N(A) = \{\mathbf{x} : A\mathbf{x} = \mathbf{0}\} and confirm it's a subspace by exhibiting two solutions and their sum.

Row 2 is twice row 1, so the system Ax=0A\mathbf{x} = \mathbf{0} reduces to the single equation x1+2x2+3x3=0.x_1 + 2x_2 + 3x_3 = 0. This is one homogeneous equation in three unknowns — two free variables, so N(A)N(A) is a plane through the origin in R3\mathbb{R}^3.

Two solutions: take x2=1,x3=0x1=2x_2 = 1, x_3 = 0 \Rightarrow x_1 = -2, giving u=(2,1,0)\mathbf{u} = (-2, 1, 0). Take x2=0,x3=1x1=3x_2 = 0, x_3 = 1 \Rightarrow x_1 = -3, giving v=(3,0,1)\mathbf{v} = (-3, 0, 1). Check Au=0A\mathbf{u} = \mathbf{0}: 2+2+0=0-2 + 2 + 0 = 0. ✓ And AvA\mathbf{v}: 3+0+3=0-3 + 0 + 3 = 0. ✓

Their sum u+v=(5,1,1)\mathbf{u} + \mathbf{v} = (-5, 1, 1): plug in, 5+2+3=0-5 + 2 + 3 = 0. ✓ Still a solution — exactly as the subspace theorem promised. The null space swallows sums and scalings of its members, every time, because it's defined by a homogeneous condition.

Worked example 3 — the union trap: two perfect subspaces that destroy each other

In R2\mathbb{R}^2, let UU be the xx-axis and WW the line y=xy = x. Both are subspaces (lines through the origin). Is UWU \cup W a subspace? Prove your answer.

No — and the trap is that UWU \cup W does contain 0\mathbf{0} and is closed under scaling (scaling a point on either line keeps it on that line). Two of three conditions pass, which lulls you. The killer is closure under addition.

Pick u=(1,0)U\mathbf{u} = (1, 0) \in U (on the xx-axis) and w=(1,1)W\mathbf{w} = (1, 1) \in W (on y=xy=x). Both are in UWU \cup W. Their sum: u+w=(2,1).\mathbf{u} + \mathbf{w} = (2, 1). Is (2,1)(2,1) on the xx-axis? No, y=10y = 1 \ne 0. Is it on y=xy = x? No, 121 \ne 2. So (2,1)UW(2,1) \notin U \cup Wclosure under addition fails, and one failure is fatal. The union of two distinct lines through the origin is never a subspace; you'd have to fill in the whole plane between them, which is the span (next node), not the union.

☠ KNOWN HAZARDS

  • Forgetting to check 0W\mathbf{0} \in W. It's the fastest disqualifier and the most common skip. If the zero vector isn't in, stop — it's not a subspace, no matter how nice the rest looks. Don't even check the other two conditions. Just stop.

  • Thinking a set "through the origin" is automatically a subspace. Containing 0\mathbf{0} is necessary, not sufficient. A pair of crossed lines passes through 0\mathbf{0} yet fails closure under addition. You still need all three conditions.

  • Believing unions of subspaces are subspaces. Almost never. Adding a vector from one piece to a vector from the other lands you outside both. Intersections are safe; unions are a trap for the overconfident.

  • Treating Ax=bA\mathbf{x}=\mathbf{b} (b0\mathbf{b}\ne\mathbf{0}) like the null space. Its solution set is a shifted copy of N(A)N(A) — same shape, off the origin, and therefore not a subspace. These are fundamentally different objects even though they look similar.

TL;DR

  • A subspace of VV is a subset that is itself a vector space. Certify one with the three-condition test: contains 0\mathbf{0}, closed under ++, closed under scalar \cdot.

  • The test suffices because the seven "for all" axioms are inherited from VV automatically, and the inverse comes free as w=(1)w-w = (-1)w via condition 3.

  • The subspaces of R3\mathbb{R}^3 are exactly {0}\{\mathbf{0}\}, lines through 0\mathbf{0}, planes through 0\mathbf{0}, and all of R3\mathbb{R}^3. Through the origin or it's out.

  • N(A)={x:Ax=0}N(A) = \{\mathbf{x} : A\mathbf{x} = \mathbf{0}\}, the null space, is always a subspace. The solution set of Ax=bA\mathbf{x} = \mathbf{b} with b0\mathbf{b}\ne\mathbf{0} is not (it misses 0\mathbf{0}).

  • Intersections of subspaces are subspaces; unions usually are not (the two axes in R2\mathbb{R}^2 fail closure under addition).

unlocks