In mathematics, the kernel of a linear map, also known as the null space or nullspace, is the set of all vectors in the domain that are mapped to the zero vector in the codomain. More formally, given a linear map L: V → W between two vector spaces V and W, the kernel of L is defined as:
ker(L) = { v ∈ V | L(v) = 0 } = L⁻¹(0)
where 0 denotes the zero vector in W.
Properties
The kernel of a linear map is always a linear subspace of the domain V. Two elements of V have the same image in W if and only if their difference lies in the kernel of L:
L(v₁) = L(v₂) ⇔ L(v₁ − v₂) = 0
By the first isomorphism theorem, the image of L is isomorphic to the quotient space V / ker(L). In finite-dimensional vector spaces, this gives the rank–nullity theorem:
dim(ker L) + dim(im L) = dim(V)
Here, the rank is the dimension of the image, and the nullity is the dimension of the kernel.
Representation as Matrix Multiplication
For a linear map represented by an m × n matrix A with coefficients in a field K (typically ℝ or ℂ), the kernel consists of all column vectors x ∈ Kⁿ satisfying Ax = 0. This is equivalent to a homogeneous system of linear equations:
a₁₁x₁ + a₁₂x₂ + ... + a₁ₙxₙ = 0
a₂₁x₁ + a₂₂x₂ + ... + a₂ₙxₙ = 0
⋮
aₘ₁x₁ + aₘ₂x₂ + ... + aₘₙxₙ = 0
The kernel of A is the orthogonal complement of the row space of A—a vector x lies in the kernel if and only if it is perpendicular to every row vector of A.
Row Space and Left Null Space
The four fundamental subspaces associated with a matrix A are:
- The kernel (null space) of A
- The row space (coimage) of A
- The column space (image) of A
- The left null space (cokernel) of A, consisting of vectors x such that xᵀA = 0ᵀ (equivalent to the kernel of Aᵀ)
Nonhomogeneous Systems
The kernel also characterizes the solution set of a nonhomogeneous system Ax = b. If u and v are two solutions, their difference lies in the kernel of A. Therefore, any solution can be expressed as the sum of a particular solution v and an arbitrary element of the kernel:
{ v + x | Av = b and x ∈ Null(A) }
Geometrically, the solution set is a translation of the kernel.
Generalization to Modules
The notion of kernel extends to homomorphisms of modules (generalizations of vector spaces where scalars come from a ring rather than a field). In this context, the kernel is a submodule of the domain, though the concepts of rank and nullity do not necessarily apply.
In Functional Analysis
If V and W are topological vector spaces and W is finite-dimensional, a linear operator L: V → W is continuous if and only if its kernel is a closed subspace of V.
Computation
The kernel of a matrix can be computed using Gaussian elimination (or Bareiss algorithm for exact integer coefficients) to obtain a column echelon form of the augmented matrix. For floating-point matrices, specialized algorithms from numerical linear algebra (e.g., those in the LAPACK library) are required due to rounding errors and conditioning issues.
Etymology
The term "kernel" (from Old English cyrnel, meaning "seed" or "core") was adopted in linear algebra to describe the essential "core" of vectors that map to zero, analogous to the origin being the center of a Euclidean space.