Skip to content

Chapter 18. Subspaces

A subspace is a subset of a vector space that is itself a vector space under the same operations. Subspaces are among the most important objects in linear algebra because many problems reduce to understanding smaller vector spaces inside larger ones.

Lines through the origin, planes through the origin, solution spaces of homogeneous systems, null spaces, column spaces, and eigenspaces are all examples of subspaces.

The concept of subspace formalizes the idea of a linear part of a vector space.

18.1 Definition of a Subspace

Let VV be a vector space over a field FF. A subset WVW \subseteq V is called a subspace of VV if WW is itself a vector space under the same addition and scalar multiplication operations as VV.

The operations are inherited from the ambient space. No new operations are introduced.

For WW to be a subspace, every vector operation performed inside WW must remain inside WW.

18.2 Subspace Test

The vector space axioms do not need to be checked one by one. A simpler criterion exists.

A nonempty subset WVW \subseteq V is a subspace if and only if:

  1. u+vWu + v \in W whenever u,vWu, v \in W,
  2. cvWcv \in W whenever cFc \in F and vWv \in W.

These conditions are called closure under addition and closure under scalar multiplication.

Since the subset already lies inside a vector space, the remaining vector space axioms are inherited automatically.

The condition that WW is nonempty is essential. Without it, the empty set would satisfy the closure conditions vacuously.

18.3 The Zero Vector

Every subspace contains the zero vector.

To see this, let vWv \in W. Since WW is closed under scalar multiplication,

0vW. 0v \in W.

But

0v=0. 0v = 0.

Therefore

0W. 0 \in W.

This gives a fast test for rejecting candidate subspaces. If a set does not contain the zero vector, then it cannot be a subspace.

For example,

S={(x,y)R2:x+y=1} S = \{(x,y) \in \mathbb{R}^2 : x + y = 1\}

is not a subspace because

(0,0)S. (0,0) \notin S.

18.4 Geometric Interpretation

In R2\mathbb{R}^2, the subspaces are:

SubspaceDimension
{0}\{0\}0
Any line through the origin1
R2\mathbb{R}^22

In R3\mathbb{R}^3, the subspaces are:

SubspaceDimension
{0}\{0\}0
Lines through the origin1
Planes through the origin2
R3\mathbb{R}^33

The phrase “through the origin” is critical. A translated line or plane is generally not a subspace because it does not contain the zero vector.

For example,

{(x,y):y=2x} \{(x,y) : y = 2x\}

is a subspace of R2\mathbb{R}^2, but

{(x,y):y=2x+1} \{(x,y) : y = 2x + 1\}

is not.

18.5 Examples of Subspaces

Consider the subset

W={[xyz]R3:x+y+z=0}. W = \left\{ \begin{bmatrix} x \\ y \\ z \end{bmatrix} \in \mathbb{R}^3 : x + y + z = 0 \right\}.

We verify the subspace conditions.

First, the zero vector belongs to WW because

0+0+0=0. 0 + 0 + 0 = 0.

Next, let

u=[x1y1z1],v=[x2y2z2] u = \begin{bmatrix} x_1 \\ y_1 \\ z_1 \end{bmatrix}, \qquad v = \begin{bmatrix} x_2 \\ y_2 \\ z_2 \end{bmatrix}

be vectors in WW. Then

x1+y1+z1=0 x_1 + y_1 + z_1 = 0

and

x2+y2+z2=0. x_2 + y_2 + z_2 = 0.

Their sum satisfies

(x1+x2)+(y1+y2)+(z1+z2)=(x1+y1+z1)+(x2+y2+z2)=0. (x_1+x_2) + (y_1+y_2) + (z_1+z_2) = (x_1+y_1+z_1) + (x_2+y_2+z_2) = 0.

Thus u+vWu+v \in W.

Finally, let cRc \in \mathbb{R}. Then

c(x+y+z)=c0=0, c(x+y+z) = c \cdot 0 = 0,

so

cuW. cu \in W.

Therefore WW is a subspace of R3\mathbb{R}^3.

Geometrically, this subspace is a plane through the origin.

18.6 Non-Examples

Many sets fail the subspace conditions in subtle ways.

Example 1

Consider

S={[xy]:xy=0}. S = \left\{ \begin{bmatrix} x \\ y \end{bmatrix} : xy = 0 \right\}.

This set contains vectors lying on the coordinate axes.

Take

u=[10],v=[01]. u = \begin{bmatrix} 1 \\ 0 \end{bmatrix}, \qquad v = \begin{bmatrix} 0 \\ 1 \end{bmatrix}.

Both belong to SS, but

u+v=[11]S, u+v = \begin{bmatrix} 1 \\ 1 \end{bmatrix} \notin S,

since

110. 1 \cdot 1 \neq 0.

Thus SS is not closed under addition.

Example 2

Consider

T={[xy]:x0}. T = \left\{ \begin{bmatrix} x \\ y \end{bmatrix} : x \geq 0 \right\}.

The vector

[10]T, \begin{bmatrix} 1 \\ 0 \end{bmatrix} \in T,

but

1[10]=[10]T. -1 \begin{bmatrix} 1 \\ 0 \end{bmatrix} = \begin{bmatrix} -1 \\ 0 \end{bmatrix} \notin T.

Thus TT is not closed under scalar multiplication.

18.7 Trivial Subspaces

Every vector space VV has at least two subspaces:

SubspaceDescription
{0}\{0\}Zero subspace
VVWhole space

These are called the trivial subspaces.

The zero subspace contains only the zero vector. Its dimension is zero.

The whole space is always a subspace of itself.

18.8 Solution Spaces of Homogeneous Systems

One of the most important sources of subspaces comes from homogeneous linear equations.

Consider the system

Ax=0. Ax = 0.

The set of all solutions is called the null space or kernel of AA.

If uu and vv satisfy

Au=0 Au = 0

and

Av=0, Av = 0,

then

A(u+v)=Au+Av=0+0=0. A(u+v) = Au + Av = 0 + 0 = 0.

Thus the solution set is closed under addition.

Similarly,

A(cv)=cAv=c0=0, A(cv) = cAv = c0 = 0,

so the solution set is closed under scalar multiplication.

Therefore the solution set is a subspace.

This fact is fundamental. Linear equations naturally produce vector spaces.

18.9 Column Space

Let AA be an m×nm \times n matrix with columns

a1,a2,,an. a_1, a_2, \ldots, a_n.

The column space of AA is the set of all linear combinations of the columns:

Col(A)=span(a1,,an). \operatorname{Col}(A) = \operatorname{span}(a_1,\ldots,a_n).

Since spans are subspaces, the column space is a subspace of Rm\mathbb{R}^m.

The column space describes every vector that can be written as

Ax. Ax.

Thus the equation

Ax=b Ax = b

has a solution exactly when

bCol(A). b \in \operatorname{Col}(A).

The column space measures the range of the linear transformation defined by AA.

18.10 Row Space

The row space of a matrix is the span of its row vectors.

If

A=[r1r2rm], A = \begin{bmatrix} r_1 \\ r_2 \\ \vdots \\ r_m \end{bmatrix},

then

Row(A)=span(r1,,rm). \operatorname{Row}(A) = \operatorname{span}(r_1,\ldots,r_m).

The row space is a subspace of Rn\mathbb{R}^n.

Row space and column space are closely related. Later chapters show that they always have the same dimension.

18.11 Null Space

The null space of a matrix AA is

Null(A)={x:Ax=0}. \operatorname{Null}(A) = \{x : Ax = 0\}.

This is a subspace of Rn\mathbb{R}^n.

The null space measures directions collapsed by the transformation xAxx \mapsto Ax.

If the null space contains only the zero vector, then the transformation is injective.

If the null space contains nonzero vectors, then information is lost under the transformation.

18.12 Span as a Subspace

Every span is a subspace.

Let

W=span(v1,,vk). W = \operatorname{span}(v_1,\ldots,v_k).

By definition, every vector in WW has the form

c1v1++ckvk. c_1v_1 + \cdots + c_kv_k.

If

u=a1v1++akvk u = a_1v_1 + \cdots + a_kv_k

and

v=b1v1++bkvk, v = b_1v_1 + \cdots + b_kv_k,

then

u+v=(a1+b1)v1++(ak+bk)vk. u+v = (a_1+b_1)v_1 + \cdots + (a_k+b_k)v_k.

Thus u+vWu+v \in W.

Similarly,

cu=(ca1)v1++(cak)vk, cu = (ca_1)v_1 + \cdots + (ca_k)v_k,

so cuWcu \in W.

Therefore WW is a subspace.

In fact, the span of a set is the smallest subspace containing that set.

18.13 Intersection of Subspaces

If UU and WW are subspaces of VV, then

UW U \cap W

is also a subspace of VV.

To prove this, let u,vUWu,v \in U \cap W. Then both vectors belong to both subspaces.

Since each subspace is closed under addition,

u+vU u+v \in U

and

u+vW. u+v \in W.

Therefore

u+vUW. u+v \in U \cap W.

The same argument works for scalar multiplication.

Thus intersections preserve subspace structure.

18.14 Sum of Subspaces

Let UU and WW be subspaces of VV. Their sum is

U+W={u+w:uU, wW}. U + W = \{u+w : u \in U,\ w \in W\}.

The sum is also a subspace of VV.

This construction combines two vector spaces into a larger one.

For example, in R3\mathbb{R}^3, if UU is the xyxy-plane and WW is the zz-axis, then

U+W=R3. U + W = \mathbb{R}^3.

18.15 Direct Sums

A sum

V=U+W V = U + W

is called a direct sum if every vector in VV can be written uniquely as

v=u+w, v = u + w,

where

uU,wW. u \in U, \qquad w \in W.

This happens exactly when

UW={0}. U \cap W = \{0\}.

Direct sums decompose vector spaces into independent pieces.

The notation is

V=UW. V = U \oplus W.

This idea becomes important in eigenspaces, invariant subspaces, and canonical forms.

18.16 Subspaces Generated by Equations

Subspaces often arise as solution sets of linear equations.

For example,

x2y+3z=0 x - 2y + 3z = 0

defines a subspace of R3\mathbb{R}^3.

But

x2y+3z=5 x - 2y + 3z = 5

does not.

The reason is that homogeneous equations preserve the origin, while nonhomogeneous equations shift the solution set away from the origin.

The first equation defines a plane through the origin. The second defines a translated plane.

18.17 Finite-Dimensional Subspaces

Every subspace of a finite-dimensional vector space is finite-dimensional.

If

WRn, W \subseteq \mathbb{R}^n,

then

dim(W)n. \dim(W) \leq n.

A line through the origin in R3\mathbb{R}^3 has dimension 11. A plane through the origin has dimension 22.

No subspace of R3\mathbb{R}^3 can have dimension greater than 33.

This fact later leads to the dimension theorem.

18.18 Polynomial Subspaces

Consider the set

W={p(x)P3:p(1)=0}. W = \{p(x) \in P_3 : p(1)=0\}.

This is a subspace of P3P_3.

If

p(1)=0 p(1)=0

and

q(1)=0, q(1)=0,

then

(p+q)(1)=p(1)+q(1)=0. (p+q)(1)=p(1)+q(1)=0.

Also,

(cp)(1)=cp(1)=0. (cp)(1)=cp(1)=0.

Thus the subspace conditions hold.

Every polynomial satisfying p(1)=0p(1)=0 has the factor

x1. x-1.

Therefore

W=span(x1, x(x1), x2(x1)). W = \operatorname{span}(x-1,\ x(x-1),\ x^2(x-1)).

This subspace has dimension 33.

18.19 Function Subspaces

Function spaces contain many important subspaces.

The set of continuous functions on an interval forms a subspace of the space of all functions.

The set of differentiable functions forms another subspace.

The set of solutions of a linear differential equation also forms a subspace.

For example, the solutions of

y+y=0 y'' + y = 0

form the subspace

span(cosx, sinx). \operatorname{span}(\cos x,\ \sin x).

This connection between differential equations and vector spaces is fundamental in analysis and physics.

18.20 Summary

A subspace is a subset of a vector space that remains closed under vector addition and scalar multiplication.

The key ideas are:

ConceptMeaning
SubspaceA vector space inside another vector space
ClosureOperations stay inside the set
Zero vectorMust belong to every subspace
SpanSmallest subspace containing given vectors
Null spaceSolutions of Ax=0Ax=0
Column spaceSpan of matrix columns
Row spaceSpan of matrix rows
Sum of subspacesCombination of vector spaces
Direct sumUnique decomposition into subspaces

Subspaces organize vector spaces into smaller linear pieces. Much of linear algebra studies how these pieces interact, combine, and decompose under linear transformations.