Key idea of this section
For T : V → W linear with dim V finite, dim V = dim ker T + dim im T (nullity + rank)
Kernel and image
For a linear map T : V → W, the kernel ker T = {v ∈ V : T(v) = 0} is a subspace of V, and the image im T = {T(v) : v ∈ V} is a subspace of W. Their dimensions are the nullity and the rank of T. The kernel measures failure of injectivity: T(x) = T(y) if and only if x − y ∈ ker T, so T is injective exactly when ker T = {0}. The full solution set of T(x) = w, when non-empty, is x₀ + ker T for any particular solution x₀. This is the abstract form of the familiar statement that the general solution of a linear system or linear differential equation is "particular solution plus general homogeneous solution".
Theorem 3.1 (Rank–nullity)
Let V be finite-dimensional and T : V → W linear. Then dim V = dim ker T + dim im T.
Proof. Choose a basis u₁, …, uₖ of ker T and extend it (Theorem 2.2) to a basis u₁, …, uₖ, v₁, …, vᵣ of V, so dim V = k + r. We claim that T(v₁), …, T(vᵣ) is a basis of im T, which gives rank T = r. Spanning: any w ∈ im T is w = T(Σaᵢuᵢ + Σbⱼvⱼ) = ΣbⱼT(vⱼ), since T(uᵢ) = 0. Independence: if ΣbⱼT(vⱼ) = 0, then T(Σbⱼvⱼ) = 0, so Σbⱼvⱼ ∈ ker T and Σbⱼvⱼ = Σaᵢuᵢ for some aᵢ. Then Σaᵢuᵢ − Σbⱼvⱼ = 0 is a dependence among basis vectors of V, forcing all bⱼ = 0. ∎
An equivalent formulation is the first isomorphism theorem: T induces an isomorphism V/ker T ≅ im T, and dim(V/U) = dim V − dim U for any subspace U.
Corollaries
- 1.If dim V = dim W < ∞, then T is injective ⇔ T is surjective ⇔ T is bijective.
- 2.If dim V > dim W, then T has a nontrivial kernel: a homogeneous system with more unknowns than equations has a nonzero solution.
- 3.If dim V < dim W, then T is not surjective.
- 4.For matrices, rank(AB) ≤ min(rank A, rank B) (Problem 22), and Sylvester's inequality rank A + rank B − n ≤ rank(AB) holds for A of size m × n and B of size n × p (Problem 23).
Corollary 1 is false in infinite dimensions: on the space of all polynomials, multiplication by x is injective but not surjective, and differentiation is surjective but not injective (Problem 59). Fredholm theory recovers a version of the statement for compact perturbations of the identity on Banach spaces: for such an operator I − K, injectivity and surjectivity are again equivalent (the Fredholm alternative).
Row rank equals column rank
For a real m × n matrix A, the column rank is the dimension of the column space im A ⊆ ℝᵐ, and the row rank is the dimension of the row space R ⊆ ℝⁿ spanned by the rows. A vector x lies in ker A exactly when it is orthogonal to every row, so ker A = R⊥. Since dim R + dim R⊥ = n, rank–nullity gives column rank = n − dim ker A = n − dim R⊥ = dim R. Hence the two ranks agree. (Over an arbitrary field the same argument works with the annihilator of Lesson 5 in place of the orthogonal complement.)
Worked example. Consider the matrix A shown below.
A = [ 1 2 3 ]
[ 2 4 6 ]
[ 1 1 1 ]
The second row is twice the first, and the third is not a multiple of the first, so rank A = 2 and nullity = 3 − 2 = 1. To find the kernel, solve x + 2y + 3z = 0 and x + y + z = 0. Subtracting gives y + 2z = 0, so y = −2z and then x = −y − z = z. Hence ker A = span{(1, −2, 1)}. Check: 1 − 4 + 3 = 0, 2 − 8 + 6 = 0 and 1 − 2 + 1 = 0.
A second example: differentiation D : Pₙ → Pₙ has kernel the constants (dimension 1) and image Pₙ₋₁ (dimension n), and indeed n + 1 = 1 + n.
Exercise
- (a)Let T : P₃ → ℝ² be T(p) = (p(0), p(1)). Find the rank and nullity of T and a basis of ker T.
- (b)A is a 5 × 7 matrix. What is the smallest possible nullity of A?
- (c)For n ≥ 2, find the rank of the n × n matrix with entries aᵢⱼ = i + j.
Show solution
Answers: (a) T is surjective (p = a + (b − a)x hits (a, b)), so rank 2 and nullity 4 − 2 = 2; a basis of the kernel is x² − x, x³ − x, since these vanish at 0 and 1 and are independent. (b) rank ≤ 5, so nullity = 7 − rank ≥ 2, and nullity 2 occurs when rank A = 5. (c) Row i equals i·(1, 1, …, 1) + (1, 2, …, n), so every row lies in the span of two independent vectors, and rows 1 and 2 are independent; the rank is 2.