Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Kernel, image and rank

The subspaces of inputs sent to zero and outputs that can occur, together with their dimensions.

Every linear map has two associated subspaces: the kernel, which holds the inputs sent to 00 and the image, which holds the outputs that occur. This page defines both, shows they are subspaces and introduces their dimensions, nullity and rank.

Inputs that disappear

[DEFINITION]

Linear map

Let VV and WW be vector spaces over the same field FF. A function T:V→WT:V\to W is a linear map if

T(u+v)=T(u)+T(v)for all u,v∈V,T(u+v)=T(u)+T(v)\qquad\text{for all }u,v\in V, T(ωu)=ωT(u)for all ω∈F, u∈V.T(\omega u)=\omega T(u)\qquad\text{for all }\omega\in F,\ u\in V.
[DEFINITION]

Subspace

Let VV be a vector space over FF. A subset S⊆VS\subseteq V is a subspace of VV when it is a vector space over the same field FF and uses the addition and scalar multiplication inherited from VV. A proper subspace is a subspace that is not equal to VV.

[DEFINITION]

Kernel

If T:V→WT:V\to W is a linear map, its kernel is

ker⁡(T)={u∈V:T(u)=0}.\ker(T)=\{u\in V:T(u)=0\}.

The same set is also called the null space. If A∈Fm×nA\in\mathbb F^{m\times n} is regarded as the map Fn→Fm\mathbb F^n\to\mathbb F^m, then

ker⁡(A)={x∈Fn:Ax=0}.\ker(A)=\{x\in\mathbb F^n:Ax=0\}.

The kernel lies in the domain because it records which inputs are sent to the zero vector. For the dot-product map Tu(x)=u⋅xT_u(x)=u\cdot x with u≠0u\ne0, the kernel is the subspace of vectors orthogonal to uu.

[EXAMPLE]

Kernel of a matrix

For

A=(22203−3),A= \begin{pmatrix} 2&2&2\\ 0&3&-3 \end{pmatrix},

let x=(x1,x2,x3)Tx=(x_1,x_2,x_3)^T. Solving Ax=0Ax=0 gives

2x1+2x2+2x3=0,3x2−3x3=0.2x_1+2x_2+2x_3=0, \qquad 3x_2-3x_3=0.

Thus x2=x3x_2=x_3 and x1=−2x3x_1=-2x_3. Writing x3=λx_3=\lambda gives

ker⁡(A)={λ(−211):λ∈R}=span⁡{(−211)}.\ker(A) = \left\{ \lambda \begin{pmatrix} -2\\1\\1 \end{pmatrix} :\lambda\in\mathbb R \right\} = \operatorname{span} \left\{ \begin{pmatrix} -2\\1\\1 \end{pmatrix} \right\}.

[routine]

  1. [1]:Kernel
[THEOREM]

The kernel is a subspace

If T:V→WT:V\to W is a linear map, then ker⁡(T)\ker(T) is a subspace of VV.

[PROOF]

Linearity gives T(0)=0T(0)=0, so 0∈ker⁡(T)0\in\ker(T). If u1,u2∈ker⁡(T)u_1,u_2\in\ker(T), then

T(u1+u2)=T(u1)+T(u2)=0+0=0,T(u_1+u_2)=T(u_1)+T(u_2)=0+0=0,

so u1+u2∈ker⁡(T)u_1+u_2\in\ker(T). If u∈ker⁡(T)u\in\ker(T) and λ\lambda is a scalar, then

T(λu)=λT(u)=λ0=0,T(\lambda u)=\lambda T(u)=\lambda 0=0,

so λu∈ker⁡(T)\lambda u\in\ker(T). The subspace test now applies.

[DEFINITION]

Nullity

The nullity of a linear map TT is

nullity⁡(T)=dim⁡ker⁡(T).\operatorname{nullity}(T)=\dim\ker(T).

For a matrix AA, the nullity is

nullity⁡(A)=dim⁡ker⁡(A).\operatorname{nullity}(A)=\dim\ker(A).

Nullity counts the independent input directions that are lost completely. For a matrix, it is the dimension of the solution subspace of Ax=0Ax=0: the number of free parameters after Gaussian elimination and back substitution, or the number of non-pivot columns in a row-echelon form. In the kernel-of-a-matrix example above, the single spanning vector is a basis for the kernel, so nullity⁡(A)=1\operatorname{nullity}(A)=1.

[PROPOSITION]

Column independence and nullity

The columns of a matrix AA are linearly independent if and only if nullity⁡(A)=0\operatorname{nullity}(A)=0.

A linear dependence among the columns is exactly a non-trivial solution of Ax=0Ax=0. Thus the columns are independent precisely when the kernel contains only the zero vector.

Outputs that can occur

[DEFINITION]

Image

If T:V→WT:V\to W is a linear map, its image is

im⁡(T)={u∈W:u=T(v) for some v∈V}.\operatorname{im}(T)=\{u\in W:u=T(v)\text{ for some }v\in V\}.

The same set is also called the range. If A∈Fm×nA\in\mathbb F^{m\times n} is regarded as the map Fn→Fm\mathbb F^n\to\mathbb F^m, then

im⁡(A)={u∈Fm:u=Ax for some x∈Fn},\operatorname{im}(A)=\{u\in\mathbb F^m:u=Ax\text{ for some }x\in\mathbb F^n\},

which is the column space of AA.

The image lies in the codomain because it collects the outputs that can occur. For the dot-product map Tu(x)=u⋅xT_u(x)=u\cdot x with u≠0u\ne0, every real number occurs: for α∈R\alpha\in\mathbb R,

Tu(αu⋅uu)=α.T_u\left(\frac{\alpha}{u\cdot u}u\right)=\alpha.
[EXAMPLE]

Image of a matrix

For the matrix

A=(22203−3),A= \begin{pmatrix} 2&2&2\\ 0&3&-3 \end{pmatrix},

the image is the span of its columns. The first two columns,

(20),(23),\begin{pmatrix}2\\0\end{pmatrix}, \qquad \begin{pmatrix}2\\3\end{pmatrix},

are linearly independent: if c1(2,0)T+c2(2,3)T=0c_1(2,0)^T+c_2(2,3)^T=0, the second coordinate gives c2=0c_2=0 and then the first gives c1=0c_1=0. They therefore form a basis for R2\mathbb R^2. Hence

im⁡(A)=R2.\operatorname{im}(A)=\mathbb R^2.

[routine]

  1. [1]:Image
[THEOREM]

The image is a subspace

If T:V→WT:V\to W is a linear map, then im⁡(T)\operatorname{im}(T) is a subspace of WW.

[PROOF]

The image contains 00 because T(0)=0T(0)=0. If w1,w2∈im⁡(T)w_1,w_2\in\operatorname{im}(T), write w1=T(v1)w_1=T(v_1) and w2=T(v2)w_2=T(v_2). Then

w1+w2=T(v1)+T(v2)=T(v1+v2),w_1+w_2=T(v_1)+T(v_2)=T(v_1+v_2),

so w1+w2∈im⁡(T)w_1+w_2\in\operatorname{im}(T). If w=T(v)w=T(v), then

λw=λT(v)=T(λv),\lambda w=\lambda T(v)=T(\lambda v),

so λw∈im⁡(T)\lambda w\in\operatorname{im}(T). The subspace test now applies.

[DEFINITION]

Rank

The rank of a linear map TT is

rank⁡(T)=dim⁡im⁡(T).\operatorname{rank}(T)=\dim\operatorname{im}(T).

For a matrix AA, the rank is

rank⁡(A)=dim⁡im⁡(A).\operatorname{rank}(A)=\dim\operatorname{im}(A).

For a matrix, rank is also the maximum number of linearly independent columns, or the number of pivot columns in a row-echelon form. In the image-of-a-matrix example above, the two displayed columns form a basis of the image, so rank⁡(A)=2\operatorname{rank}(A)=2.

“Pivot columns” refers to positions in the echelon form. When row operations have been used, take the columns in those positions from the original matrix to obtain a basis for the image.

The kernel and image can lie in different spaces: for T:V→WT:V\to W, the kernel is a subspace of the domain VV and the image is a subspace of the codomain WW. Nullity measures the first and rank the second. Rank-nullity relates both to the dimension of the domain.

On this page