Mathwords logoMathwords

Kernel — Definition, Formula & Examples

The kernel of a linear transformation is the set of all input vectors that get mapped to the zero vector. For a matrix AA, the kernel is the set of all vectors x\mathbf{x} satisfying Ax=0A\mathbf{x} = \mathbf{0}.

Given a linear transformation T:VWT: V \to W between vector spaces, the kernel of TT is defined as ker(T)={vVT(v)=0}\ker(T) = \{\mathbf{v} \in V \mid T(\mathbf{v}) = \mathbf{0}\}. For an m×nm \times n matrix AA, this coincides with the null space Null(A)={xRnAx=0}\text{Null}(A) = \{\mathbf{x} \in \mathbb{R}^n \mid A\mathbf{x} = \mathbf{0}\}, which is always a subspace of Rn\mathbb{R}^n.

Key Formula

ker(A)={xRnAx=0}\ker(A) = \{\mathbf{x} \in \mathbb{R}^n \mid A\mathbf{x} = \mathbf{0}\}
Where:
  • AA = An m × n matrix
  • x\mathbf{x} = A vector in ℝⁿ
  • 0\mathbf{0} = The zero vector in ℝᵐ

How It Works

To find the kernel of a matrix AA, set up the homogeneous system Ax=0A\mathbf{x} = \mathbf{0} and row-reduce the augmented matrix [A0][A \mid \mathbf{0}] to reduced row echelon form. Free variables in the solution correspond to basis vectors of the kernel. The dimension of the kernel is called the nullity of AA. By the Rank-Nullity Theorem, rank(A)+nullity(A)=n\text{rank}(A) + \text{nullity}(A) = n, where nn is the number of columns.

Worked Example

Problem: Find the kernel of the matrix A=(121242)A = \begin{pmatrix} 1 & 2 & 1 \\ 2 & 4 & 2 \end{pmatrix}.
Step 1: Set up the homogeneous system and row-reduce.
(121242)R22R1(121000)\begin{pmatrix} 1 & 2 & 1 \\ 2 & 4 & 2 \end{pmatrix} \xrightarrow{R_2 - 2R_1} \begin{pmatrix} 1 & 2 & 1 \\ 0 & 0 & 0 \end{pmatrix}
Step 2: Read off the solution. With x2=sx_2 = s and x3=tx_3 = t as free variables, the first equation gives x1=2stx_1 = -2s - t.
x=s(210)+t(101),s,tR\mathbf{x} = s\begin{pmatrix} -2 \\ 1 \\ 0 \end{pmatrix} + t\begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix}, \quad s, t \in \mathbb{R}
Answer: The kernel is a 2-dimensional subspace of R3\mathbb{R}^3 spanned by {(2,1,0)T,(1,0,1)T}\{(-2, 1, 0)^T,\, (-1, 0, 1)^T\}. The nullity is 2.

Why It Matters

The kernel tells you exactly when a linear system has non-unique solutions and measures how much information a transformation loses. In differential equations, the kernel of a differential operator gives the space of homogeneous solutions. Understanding the kernel is also essential in data science applications like principal component analysis and least-squares fitting.

Common Mistakes

Mistake: Confusing the kernel with the set of outputs (image/column space) of the transformation.
Correction: The kernel lives in the domain (input space) and consists of vectors mapped to zero. The image lives in the codomain and consists of all possible outputs.