Lesson 113 — Kernel and Image
Kernel, image (range), rank, and nullity. Rank-nullity theorem. The two structures tied to every linear transformation answer 'who dies?' and 'how far do we reach?'
Used in: 3º year advanced HS (Brazil) · German Lineare Algebra Leistungskurs · Singapore H2 Mathematics · MIT 18.06 Linear Algebra
The rank-nullity theorem says that the dimension of the domain equals the sum of the dimension of what "dies" under (the kernel) and the dimension of what is reachable (the image). It is the most central result in applied linear algebra.
Rigorous notation, full derivation, hypotheses
Definitions and central theorem
Kernel and image
"The null space of , denoted , is the set ." — Beezer, A First Course in Linear Algebra, §KER
"The range of , denoted , is the set ." — Beezer, A First Course in Linear Algebra, §RNG
The four fundamental subspaces
For with rank :
Strang's four fundamental subspaces. Rank r appears twice; nullity n−r and m−r fill the orthogonal complement.
Characterizations of injectivity and surjectivity
Worked examples
Exercise list
40 exercises · 10 with worked solution (25%)
- Ex. 113.1Application
Definition of kernel of a linear transformation :
Show solution
The kernel of is the set of all domain vectors mapped to the zero vector of the codomain: . It is always a subspace of .Show step-by-step (with the why)
- Recall that is linear, so always — the zero vector belongs to the kernel.
- The kernel may contain vectors other than (when is not injective).
- The image is the set of output vectors: — a different definition.
- Ex. 113.2ApplicationAnswer key
Definition of image (range) of a linear transformation :
Show solution
The image (range) of is the set of all codomain vectors that are actually reached: . It is a subspace of . - Ex. 113.3Application
If and , then the nullity and rank of are:
Show solution
Nullity is and rank is . By the rank-nullity theorem: nullity + rank = . If (nullity 0), then rank = . - Ex. 113.4ApplicationAnswer key
Nullity and rank of a linear transformation are defined as:
Show solution
Nullity of is the dimension of the kernel: . Rank of is the dimension of the image: . Together they sum to . - Ex. 113.5Application
The Rank-Nullity Theorem for with finite states:
Show solution
The Rank-Nullity Theorem: for linear with finite, . The sum is always , the domain — not the codomain.Show step-by-step (with the why)
- Recall: nullity counts dimensions "lost" in the kernel; rank counts dimensions "surviving" in the image.
- Together they cover all the dimension of the domain: nothing is created, nothing is destroyed except the kernel.
- Counter-example to fix ideas: if with rank 2, then nullity = 3, since .
- Ex. 113.6Application
For viewed as a transformation , the rank and nullity are: (Ans: rank 1, nullity 2)
Show solution
Row-reducing : the second row is twice the first, so it becomes zero. There is only 1 pivot, so rank = 1 and nullity = . Confirmation: .Show step-by-step (with the why)
- Row-reduce : gives a zero row.
- 1 pivot in column 1. Rank = 1.
- Nullity = 3 - 1 = 2 (two free variables: and ).
- Ex. 113.7Application
Projection , . Kernel and nullity:
Show solution
The projection maps to zero exactly when and : — the -axis. Nullity = 1.Show step-by-step (with the why)
- Solve : requires , , free.
- . Nullity = 1.
- Rank = . Image = -plane. Confirms: .
- Ex. 113.8ApplicationAnswer key
Continuing the previous exercise: image and rank of the projection :
Show solution
The projection reaches exactly vectors of the form : the -plane. A basis is . Rank = 2. - Ex. 113.9Application
, . Kernel and its dimension: (Ans: plane , dim 2)
Show solution
defines a plane in . Kernel basis: . Nullity = 2. Rank = 1 (image = all of ). Confirms: .Show step-by-step (with the why)
- Solve : free variables ; .
- Setting : vector . Setting : vector .
- Kernel basis: , dimension 2.
- Ex. 113.10Application
with matrix . Rank, nullity, injectivity, surjectivity:
Show solution
Row-reducing: zeros the third row. 2 pivots: rank = 2, nullity = . Not injective (nullity greater than 0); not surjective (rank 2 less than 3 = codomain dimension). - Ex. 113.11Understanding
A linear transformation is injective if and only if:
Show solution
is injective when . Equivalently: . If any nonzero vector goes to zero, there exist two distinct vectors with the same image.Show step-by-step (with the why)
- Direction 1. Suppose is injective. If , then . Thus .
- Direction 2. Suppose . If , then , so , hence .
- Ex. 113.12UnderstandingAnswer key
A linear transformation is surjective if and only if:
Show solution
is surjective when every has a preimage: with . It is equivalent to , i.e., rank . - Ex. 113.13Application
, . Is injective?
Show solution
. Solve : system , . Adding: , so ; then . Trivial kernel — injective.Show step-by-step (with the why)
- Solve and : adding gives ; subtracting gives .
- — trivial. is injective.
- Since is injective with domain and codomain of the same dimension, it is also surjective (bijective).
- Ex. 113.14Application
linear arbitrary. Can be injective?
Show solution
. By the rank-nullity theorem: nullity + rank = 3, but rank . Thus nullity . Therefore and is not injective. - Ex. 113.15Application
linear arbitrary. Can be surjective?
Show solution
. Rank . Thus has dimension at most 2, which cannot cover . can never be surjective. - Ex. 113.16Understanding
If (equal finite), then for linear:
Show solution
When : nullity + rank = and rank . Injective means nullity = 0, hence rank = — surjective. The equivalence holds only with equal finite dimensions. - Ex. 113.17Application
given by the identity matrix . Classification:
Show solution
Matrix (identity): . Kernel = (injective). Image = (surjective). Bijective. - Ex. 113.18ApplicationAnswer key
, for all (zero transformation). Classification:
Show solution
Zero transformation for all : (nullity = ) and (rank = 0). Not injective (except if ) and not surjective (except if ). - Ex. 113.19Application
with matrix . Rank and surjectivity:
Show solution
Matrix : row-reducing, 2 pivots. Rank = 2 = . Surjective. Nullity = : not injective.Show step-by-step (with the why)
- Row-reduce : already in row-echelon form, 2 pivots (columns 1 and 2).
- Rank = 2 = codomain dimension : surjective.
- Nullity = : has dimension 1, so not injective.
- Ex. 113.20Understanding
The kernel of any linear transformation is always:
Show solution
is linear, so . Therefore always — the kernel is never empty. When is injective, (trivial, but not empty). - Ex. 113.21Application
For , find a basis for : (Ans: dim 2)
Show solution
Row-reducing : pivot in column 1. Free variables: . From the row-reduced form: . Setting : . Setting : .Show step-by-step (with the why)
- Row-reduce : gives a zero row.
- Row-echelon form: . 1 pivot, free variables .
- . For each free variable set to 1 (others 0): basis vectors of the kernel.
- Ex. 113.22Application
Continuing: for , a basis for is:
Show solution
The pivot column (column 1 in row-echelon form) corresponds to column 1 of original : . Basis of image: , dimension 1. Verification: (nullity + rank = columns of ). But has 3 columns: . ✓ - Ex. 113.23Application
Projection , . Bases of kernel and image:
Show solution
Projection . Kernel: , free — basis . Image: vectors of the form — basis . - Ex. 113.24Application
Integration , . Kernel and image:
Show solution
Integration from to . If then the integral polynomial is identically zero, so . Trivial kernel. Image: polynomials with zero constant term, span , rank 3. - Ex. 113.25ApplicationAnswer key
Differentiation , . Kernel, image, nullity, rank:
Show solution
Differentiation . Polynomials whose derivative is zero are constants: , nullity 1. : image = , rank 3. Verifies: . ✓Show step-by-step (with the why)
- is constant. Kernel basis: .
- Apply to basis : .
- Image = , dim 3.
- Ex. 113.26Application
. Rank, nullity, and basis of :
Show solution
Row-reducing : , give 2 pivots in columns 1 and 2. Rank = 2, nullity = 1. Free variable: . From RREF: ... solve correctly: , . Kernel basis: .Show step-by-step (with the why)
- Row-reduce .
- : second row becomes .
- : third row becomes . Then : zero row.
- 2 pivots: rank 2. Free variable . , . Basis vector: .
- Ex. 113.27ApplicationAnswer key
Continuing: basis of for :
Show solution
The pivot columns of are in positions 1 and 2 (from the row-echelon form). The image basis uses these columns from original : and . - Ex. 113.28ModelingAnswer key
, . Basis of : (Ans: nullity 2)
Show solution
. Solve and : . Free variables: . Basis vectors: and . Nullity = 2, rank = 2. - Ex. 113.29ApplicationAnswer key
For an invertible matrix of order , the kernel of the transformation has:
Show solution
Invertible matrix (): implies . Thus . Nullity = 0. By rank-nullity: rank = . is bijective. - Ex. 113.30Application
. Nullity, rank, and image of :
Show solution
Row-reducing: zeros second row; zeros third row. 1 pivot: rank = 1. Nullity = . Image: pivot column of original = .Show step-by-step (with the why)
- : all rows equal.
- Row reduction eliminates rows 2 and 3. 1 pivot, rank = 1.
- Nullity = . Image = .
- Ex. 113.31Modeling
The system has a particular solution . The general solution is:
Show solution
When has solution and , the general solution is with . Since . The kernel parameterizes the infinitely many solutions.Show step-by-step (with the why)
- If satisfies and , then : any is a solution.
- Conversely, if , then , so .
- Conclusion: the solution set is the affine subspace .
- Ex. 113.32Modeling
The linear system has a solution if and only if:
Show solution
has a solution is a linear combination of columns of . Uniqueness depends on ; existence depends on . - Ex. 113.33Modeling
, . The system :
Show solution
Row-reducing : 1 pivot, rank = 1. Image = . Vector is not a multiple of . No solution. - Ex. 113.34Modeling
Evaluation , . Kernel of :
Show solution
Evaluation , . Kernel: polynomials with . Example: all are in the kernel. Infinite dimension. - Ex. 113.35Modeling
A matrix of order with rank satisfies:
Show solution
If is with rank , by rank-nullity: nullity = . Thus contains nonzero vectors. The homogeneous system has nontrivial solutions. - Ex. 113.36Challenge
For and linear, the rank of the composition satisfies:
Show solution
, so rank rank . Also where has dim = rank , so rank rank . Hence the min. - Ex. 113.37Challenge
For composition , nullity satisfies:
Show solution
: if , then . Thus nullity nullity . - Ex. 113.38Challenge
For square , rank implies that is not invertible?
Show solution
For square : invertible rank = nullity = 0 . If rank : nullity , has nontrivial solution . If were invertible: — contradiction. - Ex. 113.39ProofAnswer key
Prove that is a subspace of for any linear transformation :
Show solution
Verification of three axioms: (1) , so ; (2) if , , so ; (3) if and , .Show step-by-step (with the why)
- Zero. (linearity) .
- Sum. .
- Scalar. .
- Ex. 113.40Proof
Prove that is a subspace of for any linear transformation :
Show solution
(1) . (2) . (3) . All three axioms are satisfied.
Sources for this lesson
- A First Course in Linear Algebra — Robert A. Beezer · 3rd ed. · EN · GNU FDL · §KER, §RNG, §ILT, §SLT, §RNNM, §PSPHS, §IVLT, §LT. Primary source for exercises.
- Linear Algebra — Jim Hefferon · 4th ed. · EN · CC-BY-SA · ch. 3, §II. Secondary source for modeling exercises, composition, and examples of polynomial spaces.
- Linear Algebra Done Right — Sheldon Axler · 4th ed. · EN · CC-BY-NC · §3D. Abstract perspective without determinants (reference for the 7 doors).