← Module 04 / SVD & matrix tools

Lesson 04.2 · §3.13

Which part of an input survives?

Decompose inputs and outputs into the four fundamental subspaces.

In this lesson 5 ideas
  1. Split an input into visible and invisible parts
  2. Why these spaces fit together
  3. What is unique?
  4. Transfer
  5. Explore the relationship

Source scope: §3.13, PDF pages 21, 22. Numerical examples, experiments, added derivations, and practice are teaching supplements unless identified as source results.

Split an input into visible and invisible parts

For A=[1100]A=\begin{bmatrix}1&1\\0&0\end{bmatrix}, the vectors (1,1)(1,1) and (1,−1)(1,-1) are perpendicular. The first affects the output; the second vanishes. In fact (3,1)=(2,2)+(1,−1)(3,1)=(2,2)+(1,-1) and A(3,1)T=(4,0)TA(3,1)^T=(4,0)^T. Losing information means losing the second component, not losing the whole input.

Theorem 4 (Fundamental Theorem of Linear Algebra). For A∈Rm×nA\in\mathbb R^{m\times n}:

  1. null⁡(A)=range⁡(AT)⊥\operatorname{null}(A)=\operatorname{range}(A^T)^\perp.
  2. Rn=null⁡(A)⊕range⁡(AT)\mathbb R^n=\operatorname{null}(A)\oplus\operatorname{range}(A^T), an orthogonal direct sum.
  3. dim⁡range⁡(A)+dim⁡null⁡(A)=n\dim\operatorname{range}(A)+\dim\operatorname{null}(A)=n.
  4. For an SVD A=UΣVTA=U\Sigma V^T of rank rr, these are orthonormal bases:
SubspaceAmbient spaceBasis
Column space range⁡(A)\operatorname{range}(A)Rm\mathbb R^mu1,…,uru_1,\ldots,u_r
Row space range⁡(AT)\operatorname{range}(A^T)Rn\mathbb R^nv1,…,vrv_1,\ldots,v_r
Left nullspace null⁡(AT)\operatorname{null}(A^T)Rm\mathbb R^mur+1,…,umu_{r+1},\ldots,u_m
Nullspace null⁡(A)\operatorname{null}(A)Rn\mathbb R^nvr+1,…,vnv_{r+1},\ldots,v_n

An empty list is a basis for the zero subspace. The source notes that the name “Fundamental Theorem” has no universally agreed scope. Here it means these four statements. Footnote 7: part 3 alone is often called the rank–nullity theorem.

Why these spaces fit together

The source proves parts 1–3. Regard each row of AA as a column vector ai∈Rna_i\in\mathbb R^n. Then

x∈null⁡(A)  ⟺  Ax=0  ⟺  aiTx=0 for every i  ⟺  (α1a1+⋯+αmam)Tx=0 for every α1,…,αm  ⟺  vTx=0 for every v∈range⁡(AT)  ⟺  x∈range⁡(AT)⊥.\begin{aligned} x\in\operatorname{null}(A) &\iff Ax=0\\ &\iff a_i^Tx=0\text{ for every }i\\ &\iff(\alpha_1a_1+\cdots+\alpha_ma_m)^Tx=0\text{ for every }\alpha_1,\ldots,\alpha_m\\ &\iff v^Tx=0\text{ for every }v\in\operatorname{range}(A^T)\\ &\iff x\in\operatorname{range}(A^T)^\perp. \end{aligned}

The row span is the range of ATA^T because its columns are exactly these rows. This proves part 1. The finite-dimensional orthogonal-complement result gives S⊕S⊥=RnS\oplus S^\perp=\mathbb R^n with S=range⁡(AT)S=\operatorname{range}(A^T), proving part 2. Dimensions add in a direct sum. Since row rank equals column rank, part 3 follows.

Teaching supplement for part 4. Express x=Vcx=Vc. Orthogonality makes this a one-to-one change of coordinates. Ax=UΣcAx=U\Sigma c vanishes exactly when the first rr coefficients vanish; every remaining coordinate is free. Hence the last n−rn-r columns of VV span the nullspace. The nonzero images Avi=σiuiAv_i=\sigma_i u_i span the range. Apply the same argument to AT=VΣTUTA^T=V\Sigma^TU^T for the other two spaces. The source gives the table without a separate proof of this part.

What is unique?

Part 2 says every input can be written

x=ATv+w,Aw=0.x=A^Tv+w,\qquad Aw=0.

The vectors ATvA^Tv and ww are unique because they are orthogonal components. The coefficient vector vv need not be unique: adding anything in null⁡(AT)\operatorname{null}(A^T) leaves ATvA^Tv unchanged. This clarifies the source’s phrase “written uniquely.”

Apply the theorem to ATA^T to get Rm=range⁡(A)⊕null⁡(AT)\mathbb R^m=\operatorname{range}(A)\oplus\operatorname{null}(A^T) and r+dim⁡null⁡(AT)=mr+\dim\operatorname{null}(A^T)=m. Input and output decompositions live in different spaces.

Transfer

If AA is 3×53\times5 with rank two, its four subspace dimensions, in the table’s order, are 2,2,1,32,2,1,3. The two nullspaces have different dimensions because one lives in the output space and the other in the input space.

Explore the relationship

Explore it yourself

Separate the four subspaces

Change a nullspace coefficient. Does the output move?

Preparing interactive controls…

Input space R²

xy0-3-2-11234row componentnull componentx

Output space R²

xy0-3-2-11234Ax
x = (2.1213, 0.7071); row component = (1.4142, 1.4142); null component = (0.7071, -0.7071); Ax = (4, 0). Dimensions: row = column = 1; null = left null = 1.

At rank one, A = 2e₁uᵀ with u = (1,1)/√2. The row space is span(u), the nullspace is its perpendicular line, the column space is the horizontal output axis, and the left nullspace is the vertical output axis. At rank two a second term e₂vᵀ restores the lost direction; at rank zero A is zero.