Kernel & Injectivity
The kernel of a linear map collects every input that gets sent to zero, and its size tells you instantly whether the map is injective. Learn to compute it by solving and to read off injectivity from its dimension.
Before you start — give these a try
Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.
Consider Its kernel is a line through the origin. Find the vector in whose third component equals (write it as ).
Find the nullity of
What you’ll be able to do
- Define the kernel of a linear map and recognize it as the null space of the map's matrix.
- Explain why is always a subspace of the domain.
- Compute and its dimension (the nullity) by solving the homogeneous system .
- Decide whether a linear map is injective using the criterion .
- Produce an explicit basis for the kernel of a small matrix.
In your course
· MATH2015 · Linear Algebra & Probability- Definition 3.3Kernel and image
- Theorem 3.3 and are subspaces
- Theorem 3.4 (1)Injectivity criterionA linear map is injective if and only if .
Intuition: what the kernel measures
A linear map is a rule that takes a vector from the domain and returns a vector in the codomain , respecting addition and scalar multiplication. Think of as a machine that transforms vectors.
Some vectors survive the transformation as something nonzero. Others get crushed to the zero vector . The kernel is the collection of all the inputs that get crushed:
- is a vector in the domain .
- is the zero vector of the codomain .
- is read "kernel of ."
Why care? Because the kernel is exactly the information throws away. If two different inputs and land on the same output (), then their difference is crushed: , so . A big kernel means lots of inputs collide; a kernel containing only means no two distinct inputs ever collide. That single idea is the whole story of injectivity, which we make precise below.
The zero vector is always in the kernel: because is linear, . So is never empty — the only question is whether it contains anything besides .
Formal definition and the null space
When the map is given by a matrix, the kernel has a very concrete description. Suppose is defined by
where is an matrix (it has rows and columns) and . Then
This set has its own name in matrix language: the null space of , written . So for a matrix map,
Finding the kernel is therefore nothing more than solving the homogeneous linear system . Every solution vector is a kernel vector, and vice versa.
Nullity. Because the kernel is a subspace (next section), it has a dimension. We call it the nullity:
Intuitively, the nullity counts how many independent directions get crushed to zero. When you row-reduce , the nullity equals the number of free variables (equivalently, the number of columns without a pivot).
The kernel is a subspace
A nonempty subset of a vector space is a subspace if it contains the zero vector and is closed under addition and scalar multiplication. The kernel passes all three tests, and linearity of is the reason.
Let (so and ) and let be any scalar.
- Contains zero: , so .
- Closed under addition: , so .
- Closed under scalar multiplication: , so .
Therefore is a subspace of the domain . Two useful consequences:
- It makes sense to talk about a basis of the kernel and its dimension (the nullity).
- The kernel is never just a stray collection of points — it is always a line, a plane, a higher-dimensional flat through the origin, or the single point .
Injectivity, nullity, and computing the kernel
A map is injective (one-to-one) if distinct inputs always give distinct outputs: . The kernel detects this instantly.
Injectivity criterion. For a linear map ,
Why: if then , so . If the only kernel vector is , then , i.e. — injective. Conversely, if some lies in the kernel, then with , so is not injective.
How to compute the kernel and decide injectivity for :
- Form the homogeneous system .
- Row-reduce to reduced row echelon form.
- Identify pivot columns and free variables (non-pivot columns).
- Solve for each pivot variable in terms of the free variables, then write the general solution as a linear combination; the vectors multiplying the free parameters form a basis of the kernel.
- The nullity is the number of free variables. If it is (a pivot in every column), is injective; otherwise it is not.
A quick shortcut from Rank–Nullity. Since , an injective map needs . This forces : a map from a bigger space to a smaller one (like ) can never be injective, because the nullity is at least .
For a linear map , the kernel is . When for an matrix , this equals the null space .
If is linear, then is a subspace of the domain : it contains , and it is closed under vector addition and scalar multiplication.
A linear map is injective if and only if , equivalently if and only if .
Worked examples
Let be defined by , where Find a basis for , compute the nullity, and determine whether is injective.
- 1
Set up the homogeneous system. The kernel is the set of with . Writing out the rows gives the two equations
- 2
Spot the pivots and the free variable. The matrix is already in row echelon form: there is a leading (pivot) in column 1 and a pivot in column 2, but column 3 has no pivot. So and are pivot variables and is a free variable — set for a parameter .
- 3
Back-substitute. From the second equation, . Substitute into the first equation: . So .
- 4
Write the general solution. Every kernel vector has the form The single vector generates the whole kernel.
- 5
Read off a basis and the nullity. A basis for is , so . (Check: . ✓)
- 6
Decide injectivity. Since , the kernel is larger than , so is not injective. Concretely, gives two distinct inputs with the same output.
Let be defined by , where Find the nullity and decide whether is injective.