4.5.44 · D4Linear Algebra (Full)

Exercises — Subspaces — four fundamental subspaces of a matrix

2,108 words10 min readBack to topic

Before we start, one reminder of the vocabulary, all in plain words:

The picture above is the "big cross" you will refer back to: two perpendicular pieces in the input plane, two perpendicular pieces in the output plane, glued by the machine .


Level 1 — Recognition

Goal: name which space, count its dimension, say which space it lives in. No heavy computation.

L1.1

is with rank . Give all four dimensions and say for each whether it lives in or .

Recall Solution L1.1

WHAT/WHY: dimensions come straight from the dimension formulas with , , .

  • , lives in output space .
  • , lives in input space .
  • , lives in input space .
  • , lives in output space . Check the sums: input pieces ✓; output pieces ✓.

L1.2

True or false, with a one-line reason: "For any matrix, the null space and the column space have the same dimension."

Recall Solution L1.2

False. and ; these are equal only when , i.e. . In general they differ (they even live in different spaces vs ). The correct "same dimension" pairing is row space and column space, both .


Level 2 — Application

Goal: actually compute a basis for a subspace by row reduction. Uses RREF and Pivots.

L2.1

For find a basis for and , and state their dimensions.

Recall Solution L2.1

Step 1 — Row reduce (WHY: pivots reveal rank and free variables). : . Clear above pivot 2: : . Pivots in columns and , so . Step 2 — Column space (WHY: pivot columns of the original span ). . Two independent vectors in , so , . Step 3 — Null space (WHY: free variable = column 2). From RREF: and . Free : . Special solution . , . Sanity: ✓.

L2.2

For find bases for , , and (the row space).

Recall Solution L2.2

Step 1 — Row reduce. , : . One pivot, (). Column space: pivot is column 1 , a line in , . Row space: the nonzero RREF row , a line in , . Null space: , free . , . Orthogonality check (input space ): row dotted with null ✓ — exactly the perpendicularity from Orthogonal Complements.


Level 3 — Analysis

Goal: reason about solvability, left null space, and orthogonality together.

L3.1

Let . (a) Find a basis for the left null space . (b) For which right-hand sides is solvable? Give the condition as equations on .

Recall Solution L3.1

Observe (WHY first): rows are — row 2 equals row 1, row 3 equals row 1. So . (a) Left null space. , equivalently the combinations of rows giving zero. We need where all rows are multiples of : One equation, unknowns two free directions, ✓. Free : ; . . (b) Solvability. By Solving Ax=b, is solvable . So dot with each basis vector of and set to zero: and , i.e. . Read-off: must be a multiple of — which is exactly the single column direction, as expected for rank .

L3.2

is and you are told . What is ? What is ? Is solvable for every ?

Recall Solution L3.2

Rank: (full column rank). Left null space: . This is nonzero, so there are forbidden output directions. Solvable for every ? No — , so the column space is a 3-plane inside . Only the lying in that 3-plane (equivalently ) are reachable. This is the setting where Least Squares & Projections steps in to find the best approximate answer.


Level 4 — Synthesis

Goal: assemble multiple facts, use orthogonality both ways, verify with the figure.

L4.1

Let . (a) Give bases for all four subspaces. (b) Verify in by an explicit dot product. (c) Decompose as (piece in ) + (piece in ) — you only need to confirm the direction split, not compute the projection numbers.

Recall Solution L4.1

Step 1 — Reduce. , : ; then : ; clear up: . Two pivots, (). Column space: pivot columns of original : , a plane in , . Row space: , . Null space: , . Left null space: . Solve read across columns of : and . Subtract: ; then . Take : . . (b) Perpendicular check. Dot the left-null vector with each column: ✓; ✓. So the line is the normal to the plane — see the figure below. (c) Direction split of . Since and they are perpendicular, splits uniquely as with (a combination of ) and a multiple of . The mere existence of this clean split is the Fundamental Theorem, Part 2 — the machinery behind Least Squares & Projections.


Level 5 — Mastery

Goal: reverse-engineer. Build matrices with prescribed subspaces, or prove a general fact.

L5.1

Construct a matrix whose column space is the line and whose null space is the plane . Verify all four dimensions.

Recall Solution L5.1

Plan (WHY): column space span of one vector means every column is a multiple of , so for some row vector (a rank-1 matrix). The null space is then all with . We must pick so that equals the given plane — i.e. is the normal to that plane. Find (WHY: normal ⟂ both plane directions): need and : and . Assemble: Verify. Columns all : , ✓. , whose solution space is exactly , ✓. ; . Sums both sides ✓.

L5.2

Prove: for any matrix , (hence and have the same rank). Use only the four-subspace facts.

Recall Solution L5.2

Strategy: show the null spaces match, , then convert via orthogonal complements. Step 1 — : if then . Immediate. Step 2 — (the clever half): suppose . Dot with : WHY this works: is a sum of squares; it is zero only when the vector itself is zero — that is the one fact that pins down. So , both subspaces of . Step 3 — flip to row spaces. In , the row space is the orthogonal complement of the null space: . Since is symmetric, its row space equals its column space, and: Consequence: . ∎ This is the exact fact that makes the normal equations solvable in Least Squares & Projections.


Recall One-line self-test before you leave

Cover the answers. Dimension of for rank ? ::: . Left null space lives in which space and is perpendicular to what? ::: , perpendicular to . solvable condition in terms of ? ::: (equivalently ). Rank of versus rank of ? ::: Equal.


Connections

  • Rank of a Matrix — every dimension above is , , or .
  • Rank–Nullity Theorem — the running "sums = and " checks.
  • Orthogonal Complements — the perpendicular splits in L4 and L5.
  • Solving Ax=b — solvability conditions in L3.
  • RREF and Pivots — the reduction engine behind every L2 computation.
  • Least Squares & Projections — why L4.1(c) and L5.2 matter.