Kernel

Basis
Last updated: Tags: Linear Algebra

When a linear map sends a vector to zero, it is effectively erasing it — compressing it into nothing. The kernel collects all such vectors and reveals exactly how much “information” a map destroys. Understanding the kernel tells you whether a map can be inverted, and it gives the structure of the solution set of a linear system.

Definition

For a linear map T:VWT: V \to W, the kernel (also called the null space) of TT is the set of all inputs that TT sends to zero:

ker(T){vV:T(v)=0W}.\ker(T) \coloneqq \{v \in V : T(v) = \mathbf{0}_W\}.

The kernel lives in the domain VV. It is always non-empty, because T(0V)=0WT(\mathbf{0}_V) = \mathbf{0}_W by linearity, so 0Vker(T)\mathbf{0}_V \in \ker(T) in every case.

The kernel is a subspace

Claim: ker(T)\ker(T) is a linear subspace of VV.

Proof: We already know 0Vker(T)\mathbf{0}_V \in \ker(T), so ker(T)\ker(T) is non-empty. Now take any u,vker(T)u, v \in \ker(T) and any c,dFc, d \in F. By linearity of TT:

T(cu+dv)=cT(u)+dT(v)=c0W+d0W=0W.T(cu + dv) = c\,T(u) + d\,T(v) = c \cdot \mathbf{0}_W + d \cdot \mathbf{0}_W = \mathbf{0}_W.

So cu+dvker(T)cu + dv \in \ker(T). By the subspace criterion, ker(T)\ker(T) is a subspace. \square

The kernel of a matrix

For a matrix AMm,n(F)A \in M_{m,n}(F), the associated linear map is TA(x)=AxT_A(x) = Ax (as defined in Linear Map). Its kernel is

ker(A){xFn:Ax=0},\ker(A) \coloneqq \{x \in F^n : Ax = \mathbf{0}\},

which is exactly the solution set of the homogeneous system Ax=0Ax = \mathbf{0} introduced in Linear Equations.

Computing the kernel

To find ker(A)\ker(A), apply Gauss-Jordan elimination to AA itself (not the augmented matrix — since the right-hand side is 0\mathbf{0}, it stays 0\mathbf{0} throughout). In the RREF of AA:

  • Variables corresponding to pivot columns are basic variables; express them in terms of the free variables.
  • Variables corresponding to free columns are free variables; assign each a parameter (t1,t2,t_1, t_2, \ldots).

Write the general solution as a linear combination of vectors (one for each free variable). Those vectors form a basis of ker(A)\ker(A).

Worked example

Find ker(A)\ker(A) for

A=(123246).A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \end{pmatrix}.

Apply Gauss-Jordan: R2R22R1R_2 \leftarrow R_2 - 2R_1 gives

(123000).\begin{pmatrix} 1 & 2 & 3 \\ 0 & 0 & 0 \end{pmatrix}.

This is already RREF. Column 1 is the only pivot column; columns 2 and 3 are free. Set x2=sx_2 = s and x3=tx_3 = t freely. Then x1=2s3tx_1 = -2s - 3t. The general solution is:

x=s(210)+t(301),s,tF.x = s \begin{pmatrix} -2 \\ 1 \\ 0 \end{pmatrix} + t \begin{pmatrix} -3 \\ 0 \\ 1 \end{pmatrix}, \qquad s, t \in F.

So ker(A)=span ⁣{(2,1,0),(3,0,1)}\ker(A) = \text{span}\!\left\{ (-2, 1, 0)^\top,\, (-3, 0, 1)^\top \right\}, a two-dimensional subspace of F3F^3.

Injectivity

The kernel characterizes exactly when TT fails to be injective (one-to-one).

Theorem: T:VWT: V \to W is injective     \iff ker(T)={0V}\ker(T) = \{\mathbf{0}_V\}.

Proof: (\Rightarrow) If TT is injective and T(v)=0W=T(0V)T(v) = \mathbf{0}_W = T(\mathbf{0}_V), then v=0Vv = \mathbf{0}_V. (\Leftarrow) Suppose ker(T)={0V}\ker(T) = \{\mathbf{0}_V\} and T(u)=T(v)T(u) = T(v). Then T(uv)=T(u)T(v)=0WT(u - v) = T(u) - T(v) = \mathbf{0}_W, so uvker(T)={0V}u - v \in \ker(T) = \{\mathbf{0}_V\}, giving u=vu = v. \square

Intuitively: a map is injective precisely when nothing “collides” at zero (or anywhere else). If the kernel is bigger than {0V}\{\mathbf{0}_V\}, then multiple distinct inputs land at the same output, and TT cannot be inverted.

For a matrix AMn,n(F)A \in M_{n,n}(F) (square), injectivity is equivalent to the homogeneous system Ax=0Ax = \mathbf{0} having only the trivial solution — i.e., every column of AA is a pivot column in its RREF.

Nullity

The nullity of TT is the dimension of its kernel:

nullity(T)dim(ker(T)).\text{nullity}(T) \coloneqq \dim(\ker(T)).

For the example above, nullity(A)=2\text{nullity}(A) = 2. The nullity counts how many “dimensions of freedom” are in the kernel — how many linearly independent directions get collapsed to zero by TT.

The relationship between nullity and the rank of TT (the dimension of the image) is made precise in the Rank-Nullity Theorem.

Summary

  • The kernel of T:VWT: V \to W is ker(T)={vV:T(v)=0W}\ker(T) = \{v \in V : T(v) = \mathbf{0}_W\}, always a subspace of VV.
  • For a matrix AA, the kernel is the solution set of the homogeneous system Ax=0Ax = \mathbf{0}.
  • Computing ker(A)\ker(A): reduce AA to RREF, assign parameters to free variables, and write the solution as a linear combination of basis vectors.
  • TT is injective if and only if ker(T)={0V}\ker(T) = \{\mathbf{0}_V\}.
  • The nullity is dim(ker(T))\dim(\ker(T)); it counts the dimensions that get collapsed to zero.