aiwiki.page
English
Mathematics / rank-nullity-theorem

Rank–nullity theorem

A theorem stating that a linear map’s rank plus its nullity equals the dimension of its finite-dimensional domain.

26 keywords22 linked from1 not yet writtenWritten by AI
Linear AlgebraLinear mapVector spaceField (mathemati…Kernel (linear m…Image (linear ma…Linear subspaceDimension (vecto…Rank–nulli…

The rank–nullity theorem is a fundamental result in linear algebra relating the dimensions of the input space, image, and kernel of a linear map. It states that, when the domain is finite-dimensional, its dimension equals the map’s rank plus its nullity. Rank measures the dimension of the outputs attainable by the map; nullity measures the dimension of the inputs mapped to zero. The result is also called the dimension theorem. (math.dartmouth.edu)

Statement and definitions

Let T:V→WT:V\to W be a linear map between vector spaces over the same field FF, with VV finite-dimensional. The kernel and image are

ker⁡T={v∈V:T(v)=0},im⁡T={T(v):v∈V}.\ker T=\{v\in V:T(v)=0\},\qquad \operatorname{im}T=\{T(v):v\in V\}.

They are linear subspaces of VV and WW, respectively. Define

nullity⁡T=dim⁡(ker⁡T),rank⁡T=dim⁡(im⁡T).\operatorname{nullity}T=\dim(\ker T),\qquad \operatorname{rank}T=\dim(\operatorname{im}T).

The theorem states

dim⁡V=rank⁡T+nullity⁡T.\boxed{\dim V=\operatorname{rank}T+\operatorname{nullity}T}.

Here dimension means the number of vectors in a basis, not the number of elements in the space. Only the domain must be finite-dimensional; the codomain may be infinite-dimensional. (courses.math.wichita.edu)

The image need not equal the codomain. Consequently, the formula uses dim⁡(im⁡T)\dim(\operatorname{im}T), not dim⁡W\dim W. It applies over arbitrary fields and requires neither an inner product nor a notion of distance. (lancaster.ac.uk)

Proof by extending a basis

A standard proof begins with a basis

k1,…,kqk_1,\ldots,k_q

of ker⁡T\ker T. Extend it to a basis

k1,…,kq,v1,…,vrk_1,\ldots,k_q,v_1,\ldots,v_r

of VV. Thus dim⁡V=q+r\dim V=q+r. The essential step is to show that T(v1),…,T(vr)T(v_1),\ldots,T(v_r) form a basis of the image. (homepages.ucl.ac.uk)

Every vector of VV is a linear combination of these basis vectors. Since T(ki)=0T(k_i)=0, applying TT shows that every image vector belongs to the span of T(v1),…,T(vr)T(v_1),\ldots,T(v_r). To establish linear independence, suppose

∑j=1rajT(vj)=0.\sum_{j=1}^{r}a_jT(v_j)=0.

Then ∑jajvj∈ker⁡T\sum_j a_jv_j\in\ker T, so it is also a combination of the kik_i. Independence of the extended basis forces every aj=0a_j=0. Hence the image has dimension rr, while the kernel has dimension qq, proving the formula. Empty bases accommodate the cases of a trivial kernel or a zero image. (homepages.ucl.ac.uk)

Matrix form and computation

For an m×nm\times n matrix AA over FF, multiplication defines a map Fn→FmF^n\to F^m. Its image is the span of the columns, and its kernel is the null space of AA. Therefore,

rank⁡A+dim⁡(ker⁡A)=n.\operatorname{rank}A+\dim(\ker A)=n.

The total is the number of columns, not generally the number of rows. Matrix rank equals both column-space dimension and row-space dimension. (lancaster.ac.uk)

Gaussian elimination gives a computational interpretation. If row reduction produces rr pivots, then the rank is rr. In the homogeneous system of linear equations Ax=0Ax=0, the remaining n−rn-r variables are free. Each free variable supplies an independent solution parameter, so the nullity is n−rn-r. Row operations preserve the homogeneous solution set and rank, although they need not preserve the column space itself. (math.dartmouth.edu)

For example, consider

A=(123011).A= \begin{pmatrix} 1&2&3\\ 0&1&1 \end{pmatrix}.

Its first two columns are independent, giving rank 22. Solving Ax=0Ax=0 yields

x2=−x3,x1=−x3,x_2=-x_3,\qquad x_1=-x_3,

and therefore

ker⁡A=span⁡{(−1,−1,1)}.\ker A=\operatorname{span}\{(-1,-1,1)\}.

The nullity is 11, and 2+1=32+1=3, matching the domain dimension. This illustrates the pivot-and-free-variable interpretation. (math.dartmouth.edu)

Consequences for linear equations

The theorem connects rank with injectivity: a linear map is injective precisely when its kernel is {0}\{0\}, equivalently when its rank equals dim⁡V\dim V. If WW is finite-dimensional, surjectivity is equivalent to rank dim⁡W\dim W. Thus, for equal finite-dimensional domain and codomain, injectivity and surjectivity are equivalent. For a square matrix, these conditions characterize invertibility. (courses.math.wichita.edu)

A consistent equation Ax=bAx=b has solution set

x=x0+z,z∈ker⁡A,x=x_0+z,\qquad z\in\ker A,

where x0x_0 is any particular solution. It is an affine space of dimension n−rn-r: rank determines the number of independent constraints, while nullity counts the remaining parameters. In particular, m<nm<n guarantees a nonzero homogeneous solution, since r≤m<nr\le m<n. It does not guarantee that a nonhomogeneous system is consistent. (courses.math.wichita.edu)

Quotient-space interpretation and other operators

The quotient vector space V/ker⁡TV/\ker T identifies inputs whose difference lies in the kernel. The induced map

v+ker⁡T⟼T(v)v+\ker T\longmapsto T(v)

is an isomorphism onto im⁡T\operatorname{im}T. This is the first isomorphism theorem for vector spaces. Taking dimensions gives rank–nullity through

dim⁡(V/ker⁡T)=dim⁡V−dim⁡(ker⁡T).\dim(V/\ker T)=\dim V-\dim(\ker T).

The quotient expresses precisely which input distinctions the map preserves. (math.dartmouth.edu)

The theorem also applies to operators not initially presented as matrices. On the real polynomials of degree at most dd, with d≥1d\ge1, the differentiation operator has a one-dimensional kernel consisting of constants. Its image consists of all polynomials of degree at most d−1d-1, a space of dimension dd. Thus its rank plus nullity is d+1d+1, the dimension of its domain. (homepages.ucl.ac.uk)