Linear Maps, Kernel and Image (the Rank-Nullity Theorem)
A linear map is a function between vector spaces that respects the only structure vector spaces have: addition and scalar multiplication. This chapter develops the two subspaces every linear map carries with it — the kernel (what collapses to zero) and the image (what is actually reached) — and proves the single theorem that relates their sizes to the size of the domain: the rank-nullity theorem. This is arguably the most-used theorem in the entire course.
Have to hand: basis, dimension, and the exchange lemma (Chapter 3); comfort with the "extend a basis" technique.
1. Linear Maps
Definition. Let V,W be vector spaces over the same field F. A function T:V→W is a linear map (or linear transformation) if for all u,v∈V and a∈F:
- T(u+v)=T(u)+T(v) (additivity);
- T(av)=aT(v) (homogeneity).
Equivalently, a single condition: T(au+bv)=aT(u)+bT(v) for all scalars a,b and vectors u,v (take a=b=1 for additivity, b=0 for homogeneity, and conversely combine the two).
Immediate consequence. T(0V)=0W for any linear map. Proof: T(0V)=T(0⋅0V)=0⋅T(0V)=0W, using homogeneity and the Chapter 1 theorem 0⋅w=0. (So a map with T(0)=0 — e.g. T(x)=x+1 — is never linear, however simple it looks.)
Examples. T:R3→R2, T(x,y,z)=(x+y,2z) is linear (check both conditions directly on components). T:Pn(R)→Pn−1(R), T(p)=p′ (differentiation) is linear, by the sum and constant-multiple rules of calculus. T(x,y)=(x2,y) is not linear: T(1,0)+T(1,0)=(1,0)+(1,0)=(2,0), but T(2,0)=(4,0)=(2,0), so additivity fails.
Theorem (linear maps are determined by their action on a basis). Let v1,…,vn be a basis of V, and let w1,…,wn∈W be arbitrary vectors. Then there exists a unique linear map T:V→W with T(vi)=wi for every i.
Proof. Existence. Every v∈V has a unique representation v=a1v1+⋯+anvn (Chapter 3). Define T(v):=a1w1+⋯+anwn. This is well-defined precisely because the ai are unique. Linearity: if v=∑aivi, v′=∑ai′vi, then v+v′=∑(ai+ai′)vi (uniqueness of coordinates of a sum, since this is a representation and representations are unique), so T(v+v′)=∑(ai+ai′)wi=∑aiwi+∑ai′wi=T(v)+T(v′); homogeneity is similar.
Uniqueness. If T,T′ both satisfy T(vi)=T′(vi)=wi, then for any v=∑aivi, linearity forces T(v)=∑aiT(vi)=∑aiwi=∑aiT′(vi)=T′(v), so T=T′. ■
This theorem is the reason a linear map can be fully specified by a finite table of data (its values on a basis) — and is exactly why a linear map between finite-dimensional spaces can be recorded as a matrix (Chapter 5).
2. Kernel and Image
Definition. For a linear map T:V→W: the kernel is kerT:={v∈V:T(v)=0W}; the image is imT:={T(v):v∈V}⊆W.
Proposition. kerT is a subspace of V, and imT is a subspace of W.
Proof. Kernel. 0V∈kerT since T(0V)=0W. If u,v∈kerT and a,b∈F, then T(au+bv)=aT(u)+bT(v)=a⋅0+b⋅0=0, so au+bv∈kerT: closed under linear combinations, hence a subspace (Chapter 2's combined test).
Image. 0W=T(0V)∈imT. If w1=T(v1),w2=T(v2)∈imT and a,b∈F, then aw1+bw2=aT(v1)+bT(v2)=T(av1+bv2)∈imT, since av1+bv2∈V. ■
The kernel is exactly the (homogeneous) solution set of "T(v)=0" met already in Chapter 2 and 3's examples — this chapter identifies that solution set as the kernel of a specific linear map, explaining why it was always a subspace.
3. Injectivity and the Kernel
Theorem. T is injective if and only if kerT={0}.
Proof. (⇒) If T is injective and v∈kerT, then T(v)=0=T(0), so injectivity forces v=0.
(⇐) Suppose kerT={0} and T(u)=T(v). Then T(u−v)=T(u)−T(v)=0 (using linearity: T(u)+T(−v)=T(u)−T(v), since T(−v)=T((−1)v)=(−1)T(v)=−T(v)), so u−v∈kerT={0}, giving u=v. ■
This is one of the most useful facts in the course: to check injectivity of a linear map, you never need to compare two arbitrary potentially-different inputs — it suffices to solve the single equation T(v)=0 and check only the trivial solution occurs.
4. The Rank-Nullity Theorem
Definition. For T:V→W with V finite-dimensional, the rank is rank(T):=dim(imT) and the nullity is nullity(T):=dim(kerT).
Theorem (Rank-Nullity). If V is finite-dimensional and T:V→W is linear, then
dimV=rank(T)+nullity(T).
Proof. Let u1,…,uk be a basis of kerT (a subspace of the finite-dimensional V, hence finite-dimensional itself, Chapter 3). Extend it to a basis u1,…,uk,v1,…,vm of V (extension theorem, Chapter 3), so dimV=k+m. It remains to show rank(T)=m, i.e. that T(v1),…,T(vm) is a basis of imT.
Spans imT. Any w=T(v)∈imT has v=∑i=1kaiui+∑j=1mbjvj (basis representation), so w=T(v)=∑aiT(ui)+∑bjT(vj)=∑bjT(vj), since T(ui)=0 (ui∈kerT). So T(v1),…,T(vm) spans imT.
Independent. Suppose ∑j=1mcjT(vj)=0. By linearity, T(∑cjvj)=0, so ∑cjvj∈kerT, hence ∑cjvj=∑diui for some scalars di (basis of the kernel). Rearranging, ∑cjvj−∑diui=0; but u1,…,uk,v1,…,vm is independent (it's a basis of V), so every coefficient is 0 — in particular every cj=0.
So T(v1),…,T(vm) is a basis of imT, giving rank(T)=m=dimV−k=dimV−nullity(T). ■
Worked example. T:R3→R2, T(x,y,z)=(x+y,y+z). Find kerT: x+y=0,y+z=0⇒x=−y,z=−y, so kerT={(−y,y,−y):y∈R}=span((−1,1,−1)), giving nullity(T)=1. By rank-nullity, rank(T)=3−1=2; since imT⊆R2 and dimR2=2, the equality case of Chapter 3's subspace proposition gives imT=R2 — T is surjective, confirmed without checking a single output vector by hand.
5. Consequences for Injectivity and Surjectivity
Corollary. If dimV>dimW, no linear map T:V→W can be injective.
Proof. rank(T)=dim(imT)≤dimW (subspace dimension bound, Chapter 3). By rank-nullity, nullity(T)=dimV−rank(T)≥dimV−dimW>0, so kerT={0}, and T is not injective by Section 3. ■
Corollary. If dimV<dimW, no linear map T:V→W can be surjective.
Proof. rank(T)≤dimV<dimW (rank-nullity gives rank(T)=dimV−nullity(T)≤dimV), so imT is a proper subspace of W (strictly smaller dimension), hence imT=W. ■
Corollary. If dimV=dimW (both finite), then T is injective if and only if it is surjective.
Proof. T injective ⟺ nullity(T)=0 ⟺ rank(T)=dimV=dimW (rank-nullity) ⟺ imT=W (equality case, Chapter 3) ⟺ T surjective. ■
This last corollary is used constantly: for a square linear system or a map between equal-dimensional spaces, injectivity and surjectivity are not independent properties to check — proving one gives the other for free.
Common Exam Pitfalls
- Checking additivity and homogeneity on only specific numbers. Linearity must hold for all u,v,a; a map can satisfy it for particular values while failing in general (T(0)=0 is necessary but never sufficient to prove linearity).
- Confusing kernel (a subset of the domain V) with image (a subset of the codomain W). They live in different spaces whenever V=W, and rank-nullity relates their dimensions, not the sets themselves.
- Forgetting kerT={0} only shows injectivity, not surjectivity, and vice versa — the two are linked only via rank-nullity and only when dimV=dimW.
- Misapplying rank-nullity to infinite-dimensional domains. The theorem as proved here requires V finite-dimensional (so that a basis of the kernel can be extended to a finite basis of V).
- Assuming any n-vectors-to-n-vectors map between equal dimensions is automatically bijective. It is only guaranteed if it is already known to be linear — the equivalence of injective/surjective is a theorem about linear maps specifically, not an arbitrary function.
- Sign or arithmetic slips when solving T(v)=0 for the kernel. Since nullity is read off this computation, an error here corrupts the rank-nullity count entirely; always double-check by substituting the kernel basis back into T.
Summary
- Linear map: T(au+bv)=aT(u)+bT(v) for all scalars and vectors; forces T(0)=0.
- A linear map is completely and uniquely determined by its values on a basis of the domain.
- Kernel kerT={v:T(v)=0} and image imT={T(v)} are always subspaces (of V and W respectively).
- Injective ⟺kerT={0} — reduces checking injectivity to solving one equation.
- Rank-nullity theorem: dimV=rank(T)+nullity(T), proved by extending a kernel basis to a basis of V and showing the extension maps to a basis of the image.
- Consequences: dimV>dimW⇒ never injective; dimV<dimW⇒ never surjective; dimV=dimW⇒ injective ⟺ surjective.