Four Fundamental Subspaces Calculator
Explore the four fundamental subspaces of a matrix: column space, row space, null space, and left null space. These subspaces describe the structure of a matrix and are connected through the rank-nullity theorem.
A
Learn About Four Fundamental Subspaces
The Fundamental Theorem of Linear Algebra, formulated by Gilbert Strang, establishes that every matrix $\mathbf{A} \in \mathbb{R}^{m \times n}$ of rank $r$ decomposes the domain $\mathbb{R}^n$ and codomain $\mathbb{R}^m$ into four fundamental vector subspaces.
These subspaces completely characterize the geometry, kernel, and solvability of the linear mapping $T(\mathbf{x}) = \mathbf{A}\mathbf{x}$.
The Four Subspaces and Their Dimensions
Spanned by the columns of $\mathbf{A}$, representing the image (range) of the transformation.
- Column Space ($\operatorname{Col}(\mathbf{A}) \subseteq \mathbb{R}^m$):
- $\dim(\operatorname{Col}(\mathbf{A})) = r = \operatorname{rank}(\mathbf{A})$. Basis: Pivot columns of original $\mathbf{A}$.
Spanned by the rows of $\mathbf{A}$, equivalent to $\operatorname{Col}(\mathbf{A}^T)$.
- Row Space ($\operatorname{Row}(\mathbf{A}) \subseteq \mathbb{R}^n$):
- $\dim(\operatorname{Row}(\mathbf{A})) = r = \operatorname{rank}(\mathbf{A})$. Basis: Non-zero rows of $\operatorname{RREF}(\mathbf{A})$.
Kernel of $\mathbf{A}$, consisting of all vectors satisfying $\mathbf{A}\mathbf{x} = \mathbf{0}_m$.
- Null Space ($\operatorname{Null}(\mathbf{A}) \subseteq \mathbb{R}^n$):
- $\dim(\operatorname{Null}(\mathbf{A})) = n - r = \operatorname{nullity}(\mathbf{A})$. Basis: Solutions to $\mathbf{A}\mathbf{x} = \mathbf{0}$.
Kernel of the transpose, satisfying $\mathbf{A}^T\mathbf{y} = \mathbf{0}_n$ (or $\mathbf{y}^T\mathbf{A} = \mathbf{0}^T$).
- Left Null Space ($\operatorname{Null}(\mathbf{A}^T) \subseteq \mathbb{R}^m$):
- $\dim(\operatorname{Null}(\mathbf{A}^T)) = m - r$. Basis: Solutions to $\mathbf{A}^T\mathbf{y} = \mathbf{0}$.
Orthogonality and Direct Sums
The four subspaces form perpendicular pairs in their respective ambient spaces:
- In the Domain $\mathbb{R}^n$:
Every vector in $\mathbb{R}^n$ splits uniquely into row-space and null-space components: $\mathbf{x} = \mathbf{x}_r + \mathbf{x}_n$.
- In the Codomain $\mathbb{R}^m$:
By Fredholm's alternative, $\mathbf{A}\mathbf{x} = \mathbf{b}$ has a solution if and only if $\mathbf{b} \perp \operatorname{Null}(\mathbf{A}^T)$.
Worked Numerical Example
Analyze the four fundamental subspaces for:
- Row Reduction:
- Column Space ($\operatorname{Col}(\mathbf{A})$):
Pivot column 1 of $\mathbf{A}$:
- Row Space ($\operatorname{Row}(\mathbf{A})$):
Non-zero row 1 of $\operatorname{RREF}(\mathbf{A})$:
- Null Space ($\operatorname{Null}(\mathbf{A})$):
$x_1 + 2x_2 = 0 \implies x_1 = -2x_2$. Set $x_2 = t$:
Orthogonality: $\begin{bmatrix} 1 & 2 \end{bmatrix} \begin{bmatrix} -2 \\ 1 \end{bmatrix} = -2 + 2 = 0$.
- Left Null Space ($\operatorname{Null}(\mathbf{A}^T)$):
Orthogonality: $\begin{bmatrix} 1 & 3 \end{bmatrix} \begin{bmatrix} -3 \\ 1 \end{bmatrix} = -3 + 3 = 0$.
Why is the left null space called "left"?
Transposing $\mathbf{A}^T\mathbf{y} = \mathbf{0}$ yields $\mathbf{y}^T\mathbf{A} = \mathbf{0}^T$. Here, row vector $\mathbf{y}^T$ multiplies $\mathbf{A}$ from the left to yield the zero vector, contrasting with $\mathbf{A}\mathbf{x} = \mathbf{0}$ where $\mathbf{x}$ multiplies from the right.
How does the Rank-Nullity Theorem apply to both spaces?
It applies twice: once in the domain $\mathbb{R}^n$ ($\dim(\operatorname{Row}) + \dim(\operatorname{Null}) = r + (n-r) = n$) and once in the codomain $\mathbb{R}^m$ applied to $\mathbf{A}^T$ ($\dim(\operatorname{Col}) + \dim(\operatorname{Null}^T) = r + (m-r) = m$).
What does orthogonal complementarity mean geometrically?
Orthogonal complements meet only at the zero vector ($\operatorname{Row}(\mathbf{A}) \cap \operatorname{Null}(\mathbf{A}) = \{\mathbf{0}\}$) and together fill the entire space ($\operatorname{Row}(\mathbf{A}) \oplus \operatorname{Null}(\mathbf{A}) = \mathbb{R}^n$). Every vector has a unique perpendicular decomposition across the two subspaces.
How do the four subspaces relate to SVD?
The SVD $\mathbf{A} = \mathbf{U}\mathbf{\Sigma}\mathbf{V}^T$ provides orthonormal bases for all four subspaces simultaneously. The first $r$ columns of $\mathbf{V}$ span $\operatorname{Row}(\mathbf{A})$, the last $n-r$ columns span $\operatorname{Null}(\mathbf{A})$, the first $r$ columns of $\mathbf{U}$ span $\operatorname{Col}(\mathbf{A})$, and the remaining $m-r$ columns span $\operatorname{Null}(\mathbf{A}^T)$.
- Strang's "Big Picture": Professor Gilbert Strang developed the famous "Big Picture of Linear Algebra" diagram illustrating the four subspaces as two perpendicular pairs, showing that $\mathbf{A}$ acts as an invertible isomorphism between $\operatorname{Row}(\mathbf{A})$ and $\operatorname{Col}(\mathbf{A})$.
- Fredholm Alternative: In functional analysis, the relation $\operatorname{Col}(\mathbf{A}) = (\operatorname{Null}(\mathbf{A}^T))^\perp$ is known as Fredholm's alternative: for any $\mathbf{b}$, either $\mathbf{A}\mathbf{x} = \mathbf{b}$ has a solution, or there exists $\mathbf{y}$ with $\mathbf{A}^T\mathbf{y} = \mathbf{0}$ and $\mathbf{y}^T\mathbf{b} \ne 0$.