Skip to content
VidiMaster it, module by module
Module 1/Linear Maps

Rank–Nullity (Linear Maps)

The Rank–Nullity Theorem says that for a linear map out of a finite-dimensional space, the dimensions of its kernel and image always add up to the dimension of the domain. This one equation lets you compute any missing count and instantly rule out impossible injective or surjective maps.

Before you start — give these a try

Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.

True or false: there exists an injective linear map T:R4→R3T:\mathbb{R}^4\to\mathbb{R}^3.

A linear map T:R2→R4T:\mathbb{R}^2\to\mathbb{R}^4 can never be surjective. Which statement best explains why?

What you’ll be able to do

  • State the Rank–Nullity Theorem precisely and identify which quantity is the nullity, the rank, and the dimension of the domain.
  • Use the theorem to compute nullity from rank (or rank from nullity) when the domain dimension is known.
  • Translate injectivity into 'nullity =0=0' and surjectivity into 'rank =dim⁡W=\dim W', and connect each to the kernel and image.
  • Decide whether a linear map between given spaces can be injective or surjective using only dimension counting.
  • Explain standard consequences, such as why R3→R2\mathbb{R}^3\to\mathbb{R}^2 cannot be injective and R2→R3\mathbb{R}^2\to\mathbb{R}^3 cannot be surjective.

In your course

· MATH2015 · Linear Algebra & Probability
§3.2 Isomorphisms (rank–nullity)
  • Theorem 3.7Rank–Nullity Theorem
    Let dim⁡U=n\dim U=n and f:U→Vf:U\to V be linear. Then dim⁡ker⁡(f)+dim⁡im⁡(f)=n\dim\ker(f)+\dim\operatorname{im}(f)=n.
  • Corollary 3.2Rn≅Rm\mathbb{R}^n\cong\mathbb{R}^m iff n=mn=m
§3.2 is marked “optional” in the notes, but Theorem 3.7 is exam-relevant.
1

The two subspaces every linear map carries

Let T:V→WT:V\to W be a linear map between vector spaces over R\mathbb{R}, with VV finite-dimensional. Two subspaces come along for free.

  • The kernel (or null space) is everything the map sends to zero: ker⁡T={ v∈V:T(v)=0W }.\ker T=\{\,v\in V : T(v)=\mathbf{0}_W\,\}. It lives inside the domain VV and is a subspace of VV. Intuitively it measures how much information the map collapses.

  • The image (or range) is everything the map actually hits: im⁡T={ T(v):v∈V }={ w∈W:∃ v∈V,  T(v)=w }.\operatorname{im} T=\{\,T(v) : v\in V\,\}=\{\,w\in W:\exists\,v\in V,\;T(v)=w\,\}. It lives inside the codomain WW and is a subspace of WW. It measures how much of WW the map reaches.

We give their dimensions short names:

  • nullity =dim⁡(ker⁡T)=\dim(\ker T) — the size of what gets squashed to 0\mathbf 0.
  • rank =dim⁡(im⁡T)=\dim(\operatorname{im} T) — the size of what gets produced.

Here dim⁡(⋅)\dim(\cdot) is the dimension (number of vectors in a basis) and 0W\mathbf 0_W is the zero vector of WW. Keep straight that the kernel is measured inside the domain and the image inside the codomain.

2

Rank–Nullity: dimension is conserved

The central fact is a kind of conservation law: the domain's dimension splits cleanly into what the map kills and what it keeps.

dim⁡(ker⁡T)+dim⁡(im⁡T)=dim⁡V,\dim(\ker T)+\dim(\operatorname{im} T)=\dim V,

or in words,

nullity+rank=dim⁡(domain).\text{nullity}+\text{rank}=\dim(\text{domain}).

Why it is believable. Pick a basis {v1,…,vk}\{v_1,\dots,v_k\} of ker⁡T\ker T (so k=k= nullity) and extend it to a basis {v1,…,vk,vk+1,…,vn}\{v_1,\dots,v_k,v_{k+1},\dots,v_n\} of all of VV (so n=dim⁡Vn=\dim V). One shows that {T(vk+1),…,T(vn)}\{T(v_{k+1}),\dots,T(v_n)\} is a basis of im⁡T\operatorname{im} T. That image basis has n−kn-k vectors, so rank =n−k=n-k, giving k+(n−k)=nk+(n-k)=n. The directions inside the kernel contribute nothing new to the image; the remaining n−kn-k directions are exactly what survives.

How you actually use it. The equation has three slots, and knowing any two gives the third: nullity=dim⁡V−rank,rank=dim⁡V−nullity.\text{nullity}=\dim V-\text{rank},\qquad \text{rank}=\dim V-\text{nullity}. For a map given by an m×nm\times n matrix AA (a map Rn→Rm\mathbb{R}^n\to\mathbb{R}^m), the rank is the number of pivots after row reduction and the nullity is the number of free columns, and these always sum to nn, the number of columns.

3

Reading injectivity and surjectivity off dimensions

The theorem turns two qualitative questions — is TT one-to-one? onto? — into arithmetic.

Injective   ⟺  \iff trivial kernel. A linear map is injective (one-to-one) exactly when ker⁡T={0}\ker T=\{\mathbf 0\}, i.e. when nullity=0.\text{nullity}=0. (Reason: if T(u)=T(v)T(u)=T(v) then T(u−v)=0T(u-v)=\mathbf 0, so u−v∈ker⁡Tu-v\in\ker T; the kernel being trivial forces u=vu=v.)

Surjective   ⟺  \iff full image. A linear map is surjective (onto) exactly when im⁡T=W\operatorname{im} T=W, i.e. when rank=dim⁡W.\text{rank}=\dim W.

Now combine these with Rank–Nullity. Because rank ≤dim⁡W\le\dim W always, and rank =dim⁡V−nullity≤dim⁡V=\dim V-\text{nullity}\le\dim V:

  • If dim⁡V>dim⁡W\dim V>\dim W, then nullity =dim⁡V−rank≥dim⁡V−dim⁡W>0=\dim V-\text{rank}\ge \dim V-\dim W>0, so TT cannot be injective. (Too big a domain must collapse something.)
  • If dim⁡V<dim⁡W\dim V<\dim W, then rank ≤dim⁡V<dim⁡W\le\dim V<\dim W, so TT cannot be surjective. (Too small a domain cannot fill the codomain.)

These are counting arguments only — no formulas for TT needed.

4

Consequences and the square case

The two bounds above produce the classic quick verdicts.

  • T:R3→R2T:\mathbb{R}^3\to\mathbb{R}^2 can never be injective. Here dim⁡V=3>2=dim⁡W\dim V=3>2=\dim W, so rank ≤2\le 2 and nullity =3−rank≥1>0=3-\text{rank}\ge 1>0. The kernel is nontrivial, so some nonzero vector maps to 0\mathbf 0.
  • T:R2→R3T:\mathbb{R}^2\to\mathbb{R}^3 can never be surjective. Here rank ≤dim⁡V=2<3=dim⁡W\le\dim V=2<3=\dim W, so the image is a proper subspace (at most a plane) of R3\mathbb{R}^3.

The square case T:V→VT:V\to V with dim⁡V=n\dim V=n. Rank–Nullity reads rank ++ nullity =n=n. So T injective  ⟺  nullity=0  ⟺  rank=n  ⟺  T surjective.T\text{ injective}\iff\text{nullity}=0\iff\text{rank}=n\iff T\text{ surjective}. For a linear operator on a finite-dimensional space, injective, surjective, and bijective are all the same condition. (This fails for infinite-dimensional spaces: the shift map (x1,x2,… )↦(0,x1,x2,… )(x_1,x_2,\dots)\mapsto(0,x_1,x_2,\dots) is injective but not surjective.)

Rank–Nullity Theorem

Let T:V→WT:V\to W be a linear map with VV finite-dimensional. Then dim⁡(ker⁡T)+dim⁡(im⁡T)=dim⁡V\dim(\ker T)+\dim(\operatorname{im} T)=\dim V; equivalently, nullity(T)+rank(T)=dim⁡V\text{nullity}(T)+\text{rank}(T)=\dim V.

Intuition. The dimension of the domain is conserved: it splits into the directions the map collapses to zero (the kernel) and the directions that survive to span the image. Extend a basis of the kernel to a basis of VV; the images of the extra basis vectors form a basis of the image, so the counts must add to dim⁡V\dim V.
Kernel Criterion for Injectivity

A linear map T:V→WT:V\to W is injective if and only if ker⁡T={0}\ker T=\{\mathbf 0\}, i.e. if and only if dim⁡(ker⁡T)=0\dim(\ker T)=0.

Intuition. Linearity means T(u)=T(v)T(u)=T(v) is the same as T(u−v)=0T(u-v)=\mathbf 0. So collisions happen exactly when some nonzero vector lands on 0\mathbf 0. No such vector (trivial kernel) means no collisions.
Injective = Surjective for Operators on a Finite-Dimensional Space

If VV is finite-dimensional and T:V→VT:V\to V is linear, then TT is injective   ⟺  \iff TT is surjective   ⟺  \iff TT is bijective.

Intuition. By Rank–Nullity with domain and codomain both VV: rank ++ nullity =dim⁡V=\dim V. Nullity =0=0 (injective) is the same arithmetic as rank =dim⁡V=\dim V (surjective), so one forces the other.

Worked examples

Example 1

Let T:R3→R2T:\mathbb{R}^3\to\mathbb{R}^2 be given by the matrix A=[12−124−2]A=\begin{bmatrix} 1 & 2 & -1 \\ 2 & 4 & -2 \end{bmatrix}. Find the rank and nullity of TT, verify the Rank–Nullity Theorem, and state whether TT is injective and/or surjective.

  1. 1

    First identify the spaces. The matrix is 2×32\times 3, so it sends a vector in R3\mathbb{R}^3 (three columns, three inputs) to a vector in R2\mathbb{R}^2 (two rows). Thus V=R3V=\mathbb{R}^3, W=R2W=\mathbb{R}^2, and dim⁡V=3\dim V=3.

  2. 2

    Find the rank by row reducing AA. Subtract 2×(row 1)2\times(\text{row }1) from row 22: [12−124−2]→[12−1000].\begin{bmatrix} 1 & 2 & -1 \\ 2 & 4 & -2 \end{bmatrix}\to\begin{bmatrix} 1 & 2 & -1 \\ 0 & 0 & 0 \end{bmatrix}. There is exactly one pivot (in column 11), so rank⁡(T)=dim⁡(im⁡T)=1\operatorname{rank}(T)=\dim(\operatorname{im} T)=1.

  3. 3

    Find the nullity with Rank–Nullity: nullity=dim⁡V−rank=3−1=2.\text{nullity}=\dim V-\text{rank}=3-1=2. (Check directly: the reduced system is x1+2x2−x3=0x_1+2x_2-x_3=0, with x2,x3x_2,x_3 free — two free variables, so a 2-dimensional kernel.)

  4. 4

    Verify the theorem: dim⁡(ker⁡T)+dim⁡(im⁡T)=2+1=3=dim⁡V.\dim(\ker T)+\dim(\operatorname{im} T)=2+1=3=\dim V. The equation holds.

  5. 5

    Decide injectivity: injective requires nullity =0=0, but here nullity =2≠0=2\ne 0, so TT is not injective. Decide surjectivity: surjective requires rank =dim⁡W=2=\dim W=2, but here rank =1<2=1<2, so TT is not surjective.

Answer. rank⁡(T)=1\operatorname{rank}(T)=1, nullity(T)=2\text{nullity}(T)=2; they sum to 3=dim⁡R33=\dim\mathbb{R}^3, confirming Rank–Nullity. TT is neither injective nor surjective.
Example 2

A linear map T:R4→R6T:\mathbb{R}^4\to\mathbb{R}^6 has rank 44. Find its nullity, and determine whether TT is injective and whether it is surjective.

Example 3

Show, using dimension counting alone, that no linear map T:R5→R3T:\mathbb{R}^5\to\mathbb{R}^3 can be injective.