Maths WorkshopMaths problems with full solutions
Exercise 126Linear algebra › Linear mapsL1Added 3 Nov 2026

Rank-nullity theorem on an example

#rank-nullity#rank#kernel dimension

Statement

Let f:R4→R3f:\mathbb{R}^4\to\mathbb{R}^3 be the linear map with matrix
A=(123124630001).A = \begin{pmatrix} 1 & 2 & 3 & 1 \\ 2 & 4 & 6 & 3 \\ 0 & 0 & 0 & 1 \end{pmatrix}.
Compute rank⁡(f)\operatorname{rank}(f) and dim⁡ker⁡f\dim\ker f independently, and check the rank-nullity theorem.

Hint

Row-reduce AA to find the rank, and solve Ax=0Ax=0 directly to find the kernel.

Show solutionHide solution

Solution

Rank. R2←R2−2R1R_2\leftarrow R_2-2R_1:
(123100010001).\begin{pmatrix} 1 & 2 & 3 & 1 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 1 \end{pmatrix}.
R3←R3−R2R_3\leftarrow R_3-R_2:
(123100010000).\begin{pmatrix} 1 & 2 & 3 & 1 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 \end{pmatrix}.
There are two nonzero rows, so rank⁡(f)=2\operatorname{rank}(f)=2. (Consistently, the columns c2=2c1c_2=2c_1 and c3=3c1c_3=3c_1 are redundant, while c1=(1,2,0)Tc_1=(1,2,0)^T and c4=(1,3,1)Tc_4=(1,3,1)^T are not proportional, so Im⁡f=span⁡(c1,c4)\operatorname{Im} f=\operatorname{span}(c_1,c_4) has dimension 22.)

Kernel. The reduced system is x4=0x_4=0 and x1+2x2+3x3+x4=0x_1+2x_2+3x_3+x_4=0, i.e. x4=0x_4=0 and x1=−2x2−3x3x_1=-2x_2-3x_3. Therefore
ker⁡f={(−2s−3t, s, t, 0):s,t∈R}=span⁡((−2,1,0,0), (−3,0,1,0)).\ker f=\{(-2s-3t,\ s,\ t,\ 0): s,t\in\mathbb{R}\}=\operatorname{span}\big((-2,1,0,0),\,(-3,0,1,0)\big).
These two vectors are independent (look at the 2nd and 3rd coordinates), so dim⁡ker⁡f=2\dim\ker f=2.

Conclusion. rank⁡(f)=2\operatorname{rank}(f)=2 and dim⁡ker⁡f=2\dim\ker f=2, and 2+2=4=dim⁡R42+2=4=\dim\mathbb{R}^4: the rank-nullity theorem is verified on this example.