Unit 3 of 8 · about 5 hours · derive

The four subspaces, rank and solution sets

Rank tells you which outputs are reachable and which parameter changes leave outputs unchanged. These are different failure modes, even before fitting data.

You'll be able to

  • Find bases for all four fundamental subspaces and state their ambient spaces and dimensions.
  • Prove rank-nullity and the orthogonal-complement relations for a real matrix.
  • Describe every solution of and distinguish existence from identifiability of .

Covers

Column space, row space, null space and orthogonal complementsRank, invertibility, solution sets and identifiability
1

Read

In this order, only the parts listed

0 of 2 done

  1. Null spaces, solution sets and the four subspacesMIT 18.06 - Linear Algebra

    Video Lectures 6 to 8, Column space and nullspace through Solving ; Lecture 10, The four fundamental subspaces; Lecture 14, Orthogonal vectors and subspaces

    In Lecture 14, focus on row/null and column/left-null orthogonality. The norm and angle calculations belong to the next unit.

  2. Rank-nullity and orthogonal complementsMathematics for Machine Learning

    Chapter 2, section 2.7.3 (pp. 58 to 60), Theorem 2.24 on p. 60; Chapter 3, section 3.6 (pp. 79 to 80)

2

Focus on

  • For in of rank , column and left-null spaces live in with dimensions and . Row and null spaces live in with dimensions and .
  • Prove rank-nullity by extending a basis of to a domain basis; show that the images of the added vectors form a basis of .
  • Each row dotted with is a component of . This gives ; apply the same argument to for the other pair.
  • is solvable iff lies in . When solvable, its full solution set is , so unique coefficients require full column rank.
Common mistakes · 3
  • Pivot columns must be taken from the original to form a column-space basis. Row reduction preserves the row space and kernel, not the column space as a subset of .
  • A tall matrix can have a unique solution for each attainable without being surjective. Full column rank and full row rank answer different questions.
  • Numerical rank depends on a singular-value threshold. Do not confuse that decision with exact dependence in a symbolic matrix.
3

Try it yourself

Closed-book, before checking anything

By hand use . Find column basis , row basis , null basis , and left-null basis . For , obtain all solutions . Changing to makes the system inconsistent. Write the basis-extension proof of rank-nullity. Check once in NumPy with all arrays dtype=np.float64 and no random draws: matrix_rank(A) gives 2; the vector 2-norms of A@(-2,1,0), A.T@(-1,-1,1), and A@(3,0,4)-b each give 0.0, below 1e-12. The left-null vector dotted with gives approximately 1, certifying the hand inconsistency argument.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Why are the images of the added basis vectors independent in the rank-nullity proof?Answer

    A zero combination of their images puts the corresponding domain combination in . Express it in the chosen kernel basis. Independence of the extended domain basis then forces all added-vector coefficients to be zero. Finite dimension permits the basis extension; linearity moves the combination through .

  2. 2.When does a real by matrix give exactly one solution for every in ?Answer

    Existence for every requires rank ; uniqueness requires rank . Both imply , so is square and invertible.

  3. 3.Why is the full solution set , not ?Answer

    Linearity gives when . Conversely, any solution satisfies . The coefficient of is fixed at one unless ; scaling generally scales .

  4. 4.How can a left-null vector disprove solvability?Answer

    If , then for every . Thus must vanish for a solution to exist. For the worked matrix and , it is 1, a contradiction.

5

Practice

  • 18.06 Problem set 3: incompatible spaces and solution-set claims

    Problem set 3, Problem 2 (Strang 4th ed., section 3.2, #24), then Problem 10 (section 3.4, #13)

    The official solutions reproduce the statements. Attempt both before reading the solutions. Use dimensions for the first problem and compute a 2 by 2 counterexample for the minimum-length claim in the second.

You're done when

You derive all four spaces and the full solution family for the worked matrix, prove rank-nullity, and reject the incompatible-space request in Problem set 3 using dimensions rather than trial and error.

Only when you can do this without notes.

Leads to

Notes

Resources · 2 for this unit, 6 more in the section
  • MIT 18.06 - Linear AlgebraMIT OpenCourseWare · primary

    Follow lectures 1-10, 14-17, 21-22, 25, 27, 29-31 and 33 with matching problems. This is the ordered first pass.

  • Mathematics for Machine LearningDeisenroth, Faisal & Ong · reference

    Use Chapters 2-4 and §10.2 to check notation or re-derive a result. Do not treat it as a second course.

Also in this section

  • MIT 6.042J - Proof strandMIT OpenCourseWare · required

    Study textbook Chapters 1 and 3, §§4.1-4.4 and §§5.1-5.4 with matching Unit 1 problems. Leave the rest of the course.

  • MIT 18.065 - Applied matrix bridgeMIT OpenCourseWare · required

    Use lectures 3-10 after 18.06 for SVD, PCA, low-rank approximation, matrix norms and solver difficulty.

  • Introduction to Applied Linear AlgebraBoyd & Vandenberghe · support

    Sample Chapters 1-13 and the extra exercises for computational practice in fitting, least squares and pseudoinverses.

  • Essence of Linear Algebra3Blue1Brown · optional

    Open only when a geometric picture is missing; it does not replace derivation or problem solving.

  • NumPy broadcasting and matmul shape rulesNumPy Developers · reference

    Read General broadcasting rules and Broadcastable arrays, then matmul Notes for stacked matrices and one-dimensional promotion. These close the pool's array-semantics gap.

  • Fundamentals of Numerical Computation: conditioning and operation countsDriscoll & Braun · reference

    Python edition, section 2.8 through Residual and backward error for the fixed-matrix perturbation bound; section 2.5.3 for triangular-solve and LU flop counts. Use Exercise 2.8.7 for a condition-number proof, not the unseeded Hilbert experiment.