Subspaces

Subtopic: Vector Spaces

A subspace is a vector space living inside a larger vector space—a subset that is itself closed under addition and scalar multiplication. Subspaces are everywhere: lines and planes through the origin in R3 R cubed, solution sets of homogeneous equations, and null spaces of matrices. Understanding subspaces is essential for decomposing spaces and characterizing linear maps.

Introduction

Imagine R3 R cubed, the space of all 3D vectors. Some subsets of R3 R cubed have special structure: a plane through the origin contains all linear combinations of two vectors in it. A line through the origin is closed under scaling and addition (of vectors along that line). These are subspaces.

But not every subset is a subspace. A plane that doesn't pass through the origin isn't closed under scalar multiplication—scaling a vector on that plane might land outside it. A sphere isn't closed under addition—add two points on a sphere and you typically land outside it.

Subspaces capture the "flat" pieces of a vector space that preserve the linear structure.

Definition

Let V V be a vector space over a field F F. A subset W⊆V W subset of or equal to V is a subspace of V V if W W is itself a vector space under the same operations.

Equivalently (and more practically), W W is a subspace if and only if:

  • W W is nonempty (typically verified by checking 0∈W 0 is a member of W)

  • W W is closed under addition: if u,v∈W u comma v is a member of W, then u+v∈W u plus v is a member of W

  • W W is closed under scalar multiplication: if v∈W v is a member of W and c∈F c is a member of F, then c⁢v∈W c v is a member of W

These three conditions are called the subspace test. You do not need to check all eight vector space axioms—they are inherited from V V.

Geometric Interpretation

In R2 R squared, the subspaces are: the zero vector alone {0} the set 0, lines through the origin, and R2 R squared itself.

In R3 R cubed, the subspaces are: {0} the set 0, lines through the origin, planes through the origin, and R3 R cubed itself.

The key geometric insight: subspaces must pass through the origin. A line or plane not through the origin fails because 0 0 is not in the set, and scaling by 0 0 must produce the zero vector.

You can visualize a subspace as a “flat slice” through the origin. In higher dimensions, subspaces are hyperplanes (of various dimensions) passing through the origin.

The Subspace Test

To prove W W is a subspace, verify these three conditions:

Step 1: Non-empty

Show that at least one element is in W W. The easiest way: show 0∈W 0 is a member of W. Since any subspace must contain the zero vector (0=0⋅v∀v) open paren 0 equals 0 times v for all v close paren, this is necessary anyway.

Step 2: Closure under addition

Take two arbitrary elements u u, v∈W v is a member of W and show that u+v∈W u plus v is a member of W.

Step 3: Closure under scalar multiplication

Take any v∈W v is a member of W and any scalar c c, and show that c⁢v∈W c v is a member of W.

If any step fails, W W is not a subspace. Provide a counterexample: specific elements that violate closure.

Worked Example

Let W={(x,y,z)∈R3:x+2⁢y−z=0} W equals the set of all open paren x comma y comma z close paren in R cubed such that x plus 2 y minus z equals 0. Is W W a subspace of R3 R cubed?

Step 1 1: Check that 0∈W 0 is a member of W

Substitute (0,0,0) open paren 0 comma 0 comma 0 close paren: 0+2⁢(0)−0=0. 0 plus 2 times 0 minus 0 equals 0 period

So the zero vector is in W W.

Step 2 2: Check closure under addition

Let u=(x1,y1,z1) u equals open paren x sub 1 comma y sub 1 comma z sub 1 close paren and v=(x2,y2,z2) v equals open paren x sub 2 comma y sub 2 comma z sub 2 close paren be in W W. Then:

x1+2⁢y1−z1=0 x sub 1 plus 2 y sub 1 minus z sub 1 equals 0
x2+2⁢y2−z2=0 x sub 2 plus 2 y sub 2 minus z sub 2 equals 0

We check whether u+v=(x1+x2,y1+y2,z1+z2) u plus v equals open paren x sub 1 plus x sub 2 comma y sub 1 plus y sub 2 comma z sub 1 plus z sub 2 close paren
satisfies the defining equation:(x1+x2)+2⁢(y1+y2)−(z1+z2)=(x1+2⁢y1−z1)+(x2+2⁢y2−z2)=0+0=0 open paren x sub 1 plus x sub 2 close paren plus 2 times open paren y sub 1 plus y sub 2 close paren minus open paren z sub 1 plus z sub 2 close paren equals open paren x sub 1 plus 2 y sub 1 minus z sub 1 close paren plus open paren x sub 2 plus 2 y sub 2 minus z sub 2 close paren equals 0 plus 0 equals 0

Step 3 3: Check closure under scalar multiplication

Let v=(x,y,z)∈W v equals open paren x comma y comma z close paren is a member of W and let c c be any scalar. Then x+2⁢y−z=0 x plus 2 y minus z equals 0.

Check whether c⁢v=(c⁢x,c⁢y,c⁢z) c v equals open paren c x comma c y comma c z close paren is in W W: c⁢x+2⁢(c⁢y)−c⁢z=c⁢(x+2⁢y−z)=c⁡(0)=0 c x plus 2 times c y minus c z equals c times open paren x plus 2 y minus z close paren equals c of 0 equals 0

All three conditions hold, so W W is a subspace of R3 R cubed.

Geometrically, W W is a plane through the origin (solutions to a homogeneous linear equation).

Non-Example

Let W={(x,y)∈R2:x+y=1} W equals the set of all open paren x comma y close paren in R squared such that x plus y equals 1. Is this a subspace?

Check if 0∈W 0 is a member of W: 0+0=0≠1 0 plus 0 equals 0 is not equal to 1. The zero vector is not in W W.

W W is NOT a subspace. Geometrically, it is a line that does not pass through the origin.

Important Subspaces

Null Space (Kernel)

For a matrix A A, the null space is Null⁡(A)={x:A⁢x=0} Null of A equals the set of all x such that A x equals 0. This is always a subspace (the solution set of a homogeneous system).

Column Space (Range)

For a matrix A A, the column space is Col⁡(A)={A⁢x:x∈Rn} Col of A equals the set of all A x such that x is a member of R to the n-th power — all possible outputs of the linear map. This is a subspace of the codomain.

Span

Given vectors v1,…,vk v sub 1 comma dot dot dot comma v sub k, their span is all linear combinations c1⁢v1+⋯+ck⁢vk c sub 1 v sub 1 plus dot dot dot plus c sub k v sub k.
The span is always a subspace — the smallest subspace containing those vectors.

Properties of Subspaces

  • Every vector space V V has at least two subspaces: {0} the set 0 (the trivial subspace) and V V itself.

  • The intersection of subspaces is a subspace. If W1 W sub 1 and W2 W sub 2 are subspaces of V V, then W1∩W2 W sub 1 intersection W sub 2 is also a subspace.

  • The union of subspaces is generally NOT a subspace (unless one contains the other).

  • The sum of subspaces W1+W2={w1+w2:w1∈W1,w2∈W2} W sub 1 plus W sub 2 equals open brace w sub 1 plus w sub 2 colon w sub 1 is a member of W sub 1 comma w sub 2 is a member of W sub 2 close brace is a subspace.

Applications and Connections

In solving linear systems A⁢x=b A x equals b, the solution set is either empty (no solution), a single point (unique solution), or a subspace translated by a particular solution (infinitely many solutions of the form x=xp+Null⁡(A) x equals x sub p plus Null of A).

In machine learning, PCA finds subspaces that capture the most variance in data.

In quantum mechanics, possible states of a system form a subspace of the full Hilbert space, constrained by physical conditions.

The dimension of a subspace becomes crucial for the rank–nullity theorem and for understanding linear transformations.

Summary

A subspace is a subset of a vector space that is itself a vector space under the same operations. To verify: check that 0 0 is in the set, and the set is closed under addition and scalar multiplication. Key examples include null spaces, column spaces, and spans. Subspaces must pass through the origin—sets defined by non-homogeneous equations, like x+y=1 x plus y equals 1, are not subspaces.