Maths WorkshopMaths problems with full solutions
Exercise 1058Linear algebra › Matrices and linear systemsL1Added 3 Nov 2026

Rank-nullity theorem

#rank-nullity#kernel#image

Statement

Let AA be an m×nm \times n matrix representing a linear map f:Rn→Rmf: \mathbb{R}^n \to \mathbb{R}^m. Show that
dim⁡(ker⁡A)+rank⁡(A)=n.\dim(\ker A) + \operatorname{rank}(A) = n.

Hint

Choose a basis of ker⁡A\ker A, extend it to a basis of Rn\mathbb{R}^n, and show that the images of the added vectors form a basis of Im⁡A\operatorname{Im} A.

Show solutionHide solution

Solution

Basis of the kernel. Let (u1,…,uk)(u_1,\ldots,u_k) be a basis of ker⁡A\ker A. Extend it to a basis (u1,…,uk,v1,…,vn−k)(u_1,\ldots,u_k,v_1,\ldots,v_{n-k}) of Rn\mathbb{R}^n.

Images of the vjv_j. The vectors Av1,…,Avn−kA v_1,\ldots,A v_{n-k} span Im⁡A\operatorname{Im} A: indeed, any vector in Rn\mathbb{R}^n is a combination of the uiu_i and the vjv_j, and the uiu_i are killed by AA.

Independence. Suppose ∑jαjAvj=0\sum_j \alpha_j A v_j = 0. Then A(∑jαjvj)=0A(\sum_j \alpha_j v_j) = 0, so ∑jαjvj∈ker⁡A\sum_j \alpha_j v_j \in \ker A. Since the vjv_j are linearly independent from the uiu_i, this forces αj=0\alpha_j = 0 for all jj.

Conclusion. The AvjA v_j form a basis of Im⁡A\operatorname{Im} A, so rank⁡(A)=n−k=n−dim⁡(ker⁡A)\operatorname{rank}(A) = n - k = n - \dim(\ker A), i.e. dim⁡(ker⁡A)+rank⁡(A)=n\dim(\ker A) + \operatorname{rank}(A) = n.