Skip to content
VidiMaster it, module by module
Module 1/Linear Maps

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 Ax=0Ax=0 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 A=[111123].A=\begin{bmatrix} 1 & 1 & 1 \\ 1 & 2 & 3 \end{bmatrix}. Its kernel is a line through the origin. Find the vector in ker⁡(A)\ker(A) whose third component equals 11 (write it as (x,y,z)(x,y,z)).

Find the nullity of A=[123456789].A=\begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}.

What you’ll be able to do

  • Define the kernel ker⁡(T)\ker(T) of a linear map and recognize it as the null space of the map's matrix.
  • Explain why ker⁡(T)\ker(T) is always a subspace of the domain.
  • Compute ker⁡(T)\ker(T) and its dimension (the nullity) by solving the homogeneous system Av=0Av=0.
  • Decide whether a linear map is injective using the criterion ker⁡(T)={0}\ker(T)=\{0\}.
  • Produce an explicit basis for the kernel of a small matrix.

In your course

· MATH2015 · Linear Algebra & Probability
§3.1 Linear maps
  • Definition 3.3Kernel ker⁡(f)\ker(f) and image im⁡(f)\operatorname{im}(f)
  • Theorem 3.3ker⁡(f)\ker(f) and im⁡(f)\operatorname{im}(f) are subspaces
  • Theorem 3.4 (1)Injectivity criterion
    A linear map ff is injective if and only if ker⁡(f)={0}\ker(f)=\{\mathbf 0\}.
1

Intuition: what the kernel measures

A linear map T:V→WT:V\to W is a rule that takes a vector vv from the domain VV and returns a vector T(v)T(v) in the codomain WW, respecting addition and scalar multiplication. Think of TT as a machine that transforms vectors.

Some vectors survive the transformation as something nonzero. Others get crushed to the zero vector 0W0_W. The kernel is the collection of all the inputs that get crushed:

ker⁡(T)={ v∈V:T(v)=0W }.\ker(T)=\{\,v\in V : T(v)=0_W\,\}.

  • vv is a vector in the domain VV.
  • 0W0_W is the zero vector of the codomain WW.
  • ker⁡(T)\ker(T) is read "kernel of TT."

Why care? Because the kernel is exactly the information TT throws away. If two different inputs uu and vv land on the same output (T(u)=T(v)T(u)=T(v)), then their difference is crushed: T(u−v)=T(u)−T(v)=0T(u-v)=T(u)-T(v)=0, so u−v∈ker⁡(T)u-v\in\ker(T). A big kernel means lots of inputs collide; a kernel containing only 00 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 TT is linear, T(0V)=0WT(0_V)=0_W. So ker⁡(T)\ker(T) is never empty — the only question is whether it contains anything besides 00.

2

Formal definition and the null space

When the map is given by a matrix, the kernel has a very concrete description. Suppose T:Rn→RmT:\mathbb{R}^n\to\mathbb{R}^m is defined by

T(x)=Ax,T(x)=Ax,

where AA is an m×nm\times n matrix (it has mm rows and nn columns) and x∈Rnx\in\mathbb{R}^n. Then

ker⁡(T)={ x∈Rn:Ax=0 }.\ker(T)=\{\,x\in\mathbb{R}^n : Ax=0\,\}.

This set has its own name in matrix language: the null space of AA, written Null⁡(A)\operatorname{Null}(A). So for a matrix map,

  ker⁡(T)=Null⁡(A)={x:Ax=0}.  \boxed{\;\ker(T)=\operatorname{Null}(A)=\{x : Ax=0\}.\;}

Finding the kernel is therefore nothing more than solving the homogeneous linear system Ax=0Ax=0. 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:

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

Intuitively, the nullity counts how many independent directions get crushed to zero. When you row-reduce AA, the nullity equals the number of free variables (equivalently, the number of columns without a pivot).

3

The kernel is a subspace

A nonempty subset SS 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 TT is the reason.

Let u,v∈ker⁡(T)u,v\in\ker(T) (so T(u)=0T(u)=0 and T(v)=0T(v)=0) and let cc be any scalar.

  • Contains zero: T(0V)=0WT(0_V)=0_W, so 0V∈ker⁡(T)0_V\in\ker(T).
  • Closed under addition: T(u+v)=T(u)+T(v)=0+0=0T(u+v)=T(u)+T(v)=0+0=0, so u+v∈ker⁡(T)u+v\in\ker(T).
  • Closed under scalar multiplication: T(cu)=c T(u)=c⋅0=0T(cu)=c\,T(u)=c\cdot 0=0, so cu∈ker⁡(T)cu\in\ker(T).

Therefore ker⁡(T)\ker(T) is a subspace of the domain VV. Two useful consequences:

  1. It makes sense to talk about a basis of the kernel and its dimension (the nullity).
  2. 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 {0}\{0\}.
4

Injectivity, nullity, and computing the kernel

A map TT is injective (one-to-one) if distinct inputs always give distinct outputs: T(u)=T(v)  ⟹  u=vT(u)=T(v)\implies u=v. The kernel detects this instantly.

Injectivity criterion. For a linear map TT,

T is injective  ⟺  ker⁡(T)={0}  ⟺  nullity⁡(T)=0.T\text{ is injective} \iff \ker(T)=\{0\} \iff \operatorname{nullity}(T)=0.

Why: if T(u)=T(v)T(u)=T(v) then T(u−v)=0T(u-v)=0, so u−v∈ker⁡(T)u-v\in\ker(T). If the only kernel vector is 00, then u−v=0u-v=0, i.e. u=vu=v — injective. Conversely, if some w≠0w\neq0 lies in the kernel, then T(w)=0=T(0)T(w)=0=T(0) with w≠0w\neq0, so TT is not injective.

How to compute the kernel and decide injectivity for T(x)=AxT(x)=Ax:

  1. Form the homogeneous system Ax=0Ax=0.
  2. Row-reduce AA to reduced row echelon form.
  3. Identify pivot columns and free variables (non-pivot columns).
  4. 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.
  5. The nullity is the number of free variables. If it is 00 (a pivot in every column), TT is injective; otherwise it is not.

A quick shortcut from Rank–Nullity. Since rank⁡(T)+nullity⁡(T)=dim⁡(V)=n\operatorname{rank}(T)+\operatorname{nullity}(T)=\dim(V)=n, an injective map needs rank⁡(T)=n\operatorname{rank}(T)=n. This forces n≤mn\le m: a map from a bigger space to a smaller one (like R3→R2\mathbb{R}^3\to\mathbb{R}^2) can never be injective, because the nullity is at least n−m>0n-m>0.

Definition of the Kernel (Null Space)

For a linear map T:V→WT:V\to W, the kernel is ker⁡(T)={v∈V:T(v)=0W}\ker(T)=\{v\in V: T(v)=0_W\}. When T(x)=AxT(x)=Ax for an m×nm\times n matrix AA, this equals the null space Null⁡(A)={x∈Rn:Ax=0}\operatorname{Null}(A)=\{x\in\mathbb{R}^n : Ax=0\}.

Intuition. The kernel is everything the map sends to zero — the information TT destroys. For a matrix, finding it just means solving the homogeneous system Ax=0Ax=0.
The Kernel is a Subspace

If T:V→WT:V\to W is linear, then ker⁡(T)\ker(T) is a subspace of the domain VV: it contains 0V0_V, and it is closed under vector addition and scalar multiplication.

Intuition. Linearity does all the work: if TT crushes uu and vv to zero, it also crushes u+vu+v and every scalar multiple cucu to zero. So the kernel is always a flat through the origin, with a well-defined dimension (the nullity).
Injectivity Criterion

A linear map T:V→WT:V\to W is injective if and only if ker⁡(T)={0}\ker(T)=\{0\}, equivalently if and only if nullity⁡(T)=0\operatorname{nullity}(T)=0.

Intuition. Two inputs collide exactly when their difference is in the kernel. If the kernel holds only the zero vector, no two distinct inputs can collide, so the map is one-to-one.

Worked examples

Example 1

Let T:R3→R2T:\mathbb{R}^3\to\mathbb{R}^2 be defined by T(x)=AxT(x)=Ax, where A=[123012].A=\begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 2 \end{bmatrix}. Find a basis for ker⁡(T)\ker(T), compute the nullity, and determine whether TT is injective.

  1. 1

    Set up the homogeneous system. The kernel is the set of x=(x,y,z)x=(x,y,z) with Ax=0Ax=0. Writing out the rows gives the two equations x+2y+3z=0andy+2z=0.x+2y+3z=0 \qquad\text{and}\qquad y+2z=0.

  2. 2

    Spot the pivots and the free variable. The matrix is already in row echelon form: there is a leading 11 (pivot) in column 1 and a pivot in column 2, but column 3 has no pivot. So xx and yy are pivot variables and zz is a free variable — set z=tz=t for a parameter tt.

  3. 3

    Back-substitute. From the second equation, y=−2z=−2ty=-2z=-2t. Substitute into the first equation: x=−2y−3z=−2(−2t)−3t=4t−3t=tx=-2y-3z=-2(-2t)-3t=4t-3t=t. So x=tx=t.

  4. 4

    Write the general solution. Every kernel vector has the form (x,y,z)=(t, −2t, t)=t[1−21].(x,y,z)=(t,\,-2t,\,t)=t\begin{bmatrix}1\\-2\\1\end{bmatrix}. The single vector (1,−2,1)(1,-2,1) generates the whole kernel.

  5. 5

    Read off a basis and the nullity. A basis for ker⁡(T)\ker(T) is {(1,−2,1)}\{(1,-2,1)\}, so nullity⁡(T)=1\operatorname{nullity}(T)=1. (Check: A(1,−2,1)=(1−4+3,  −2+2)=(0,0)A(1,-2,1)=(1-4+3,\;-2+2)=(0,0). ✓)

  6. 6

    Decide injectivity. Since nullity⁡(T)=1≠0\operatorname{nullity}(T)=1\neq0, the kernel is larger than {0}\{0\}, so TT is not injective. Concretely, T(1,−2,1)=0=T(0,0,0)T(1,-2,1)=0=T(0,0,0) gives two distinct inputs with the same output.

Answer. Basis of the kernel: {(1,−2,1)}\{(1,-2,1)\}; nullity⁡(T)=1\operatorname{nullity}(T)=1; TT is not injective.
Example 2

Let T:R2→R3T:\mathbb{R}^2\to\mathbb{R}^3 be defined by T(x)=AxT(x)=Ax, where A=[211113].A=\begin{bmatrix} 2 & 1 \\ 1 & 1 \\ 1 & 3 \end{bmatrix}. Find the nullity and decide whether TT is injective.