Linear Maps, Matrices, Rank, and the Null Space
How matrices represent linear transformations, and the rank-nullity theorem that governs solvability of linear systems.
Leads to: Eigenvalues (4.3) study maps from a space to itself; least squares (4.5) lives in the column space.
Learning Objectives
Click a status chip to cycle: Not started → In progress → Studied → Practiced → Needs review → Mastered.
- Define a linear map and represent it by a matrix in chosen bases.
- Compute the null space (kernel) and column space (range) of a matrix.
- State and apply the rank-nullity theorem.
- Relate rank, invertibility, and the solvability of \(Ax=b\).
Key Vocabulary
- Linear map
- A function \(T:V\to W\) with \(T(u+v)=Tu+Tv\) and \(T(cv)=cTv\).
- Matrix representation
- The array whose columns are the images \(T v_j\) of a basis, written in the target basis.
- Null space
- The kernel \(\ker T=\{v:Tv=0\}\); its dimension is the nullity.
- Column space
- The range \(\operatorname{col}(A)=\{Ax\}\); its dimension is the rank.
- Rank
- The dimension of the column space, equal to the dimension of the row space.
- Invertible map
- A bijective linear map; for square \(A\) equivalent to full rank and trivial null space.
Intuition & Motivation
Maps become matrices
Fix a basis \((v_1,\dots,v_n)\) of the domain and \((w_1,\dots,w_m)\) of the target. A linear map \(T\) is determined by where it sends the basis vectors; the coordinates of \(Tv_j\) form the \(j\)-th column of its matrix \(A\). Then \(T x\) in coordinates is just \(Ax\).
The null space \(\ker A=\{x:Ax=0\}\) and column space \(\operatorname{col}(A)=\{Ax\}\) are subspaces. Their dimensions are the nullity and the rank.
Rank, invertibility, and solving \(Ax=b\)
The system \(Ax=b\) is solvable iff \(b\in\operatorname{col}(A)\). When solvable, the full solution set is a shifted copy of the null space: one particular solution plus \(\ker A\). For square \(A\), the following are equivalent: \(A\) invertible; \(\operatorname{rank}A=n\); \(\ker A=\{0\}\); \(\det A\neq 0\).
Interactive: how a matrix warps the plane
Drag the entries of the \(2\times2\) matrix and watch the unit square transform. When the columns become parallel the square collapses to a segment - rank drops to 1, the null space becomes nontrivial, and the map is no longer invertible.
- Confusing the null space (in the domain) with the column space (in the target).
- Reading rank off the number of rows or columns rather than the number of pivots.
- Assuming \(Ax=b\) always has a solution; it needs \(b\in\operatorname{col}(A)\).
- Forgetting that a nontrivial null space means solutions are non-unique (a whole coset).
- Row-reduce once: pivots give the rank, free columns give a null-space basis, both in one pass.
- For a data matrix of asset returns, rank = number of independent factors; a low rank signals redundant/collinear assets.
- Invertibility is an all-or-nothing property equivalent to full rank, trivial kernel, and nonzero determinant.
Practice this in the Euler Lab
Computational problems that exercise exactly this technique. Each opens in the Euler Lab with a Python workbench, a progressive hint ladder, and answer checking. Tier A/B run at full scale in the browser.
Warm-up:
#16 Power Digit Sum (1%, tier A) #30 Digit Fifth Powers (2%, tier A) #52 Permuted Multiples (2%, tier A) #33 Digit Cancelling Fractions (3%, tier A)
Applied:
#345 Matrix Sum (17%, tier B) #932 $2025$ (17%, tier B) #315 Digital Root Clocks (18%, tier B)
Challenge:
#666 Polymorphic Bacteria (41%, tier C) #157 Base-10 Diophantine Reciprocal (42%, tier C)
148 Project Euler problems in total are mapped to this lesson. Open the Euler Lab to filter them all.
Knowledge Check
Practical Exercise
Let \(A=\begin{bmatrix}1&1&2\\1&2&3\\2&3&5\end{bmatrix}\). Find \(\operatorname{rank}A\), a basis for \(\ker A\), and state whether \(A\) is invertible.
Row-reduce: \(R_2\to R_2-R_1,\ R_3\to R_3-2R_1\) gives rows \((1,1,2),(0,1,1),(0,1,1)\); then \(R_3\to R_3-R_2\) gives a zero row. Two pivots, so \(\operatorname{rank}A=2\).
Back-substitute the reduced system \(x_1+x_2+2x_3=0,\ x_2+x_3=0\): \(x_2=-x_3\), \(x_1=-x_2-2x_3=-x_3\). So \(x=x_3(-1,-1,1)\) and \(\ker A=\operatorname{span}\{(-1,-1,1)\}\), nullity 1.
Since the rank is \(2\lt 3\) (equivalently the kernel is nontrivial and the third row is the sum of the first two), \(A\) is not invertible. Check: \(2+1=3=n\).
Lesson Summary
Formula Sheet Additions
Retrieval Practice
Close the lesson and answer from memory before checking. This is deliberate, effortful recall - the single highest-yield study action.
A: For A:R^n→R^m, dim(ker A) + rank A = n (the number of columns).
A: Solvable iff b is in the column space; unique iff the null space is trivial (full column rank).
Completion Checklist
- I can explain the core ideas in my own words
- I worked the derivations/examples by hand
- I completed the interactive workbench(es)
- I passed the knowledge check
Source References
This lesson synthesizes and paraphrases concepts from the sources below. No copyrighted text, problem sets, or solutions are reproduced. Return to the originals for full depth.
- Linear Algebra Done Right (Sheldon Axler, 4th ed., 2024) current - Ch. 3 - Ch. 3: linear maps, null space, range, and the fundamental theorem (rank-nullity).
- Numerical Linear Algebra (Trefethen & Bau, SIAM, 1997) foundational - Lec. 1-4 - Lec. 1-4: matrices as operators, range, rank, and the four fundamental subspaces.