How the kernel and image of a linear map record lost and reached directions, why rank plus nullity equals the input dimension, and what this says about injective and surjective maps, fibers and compositions.
The linear map that sends (x,y,z) to (x+z,y+z) gives the same output (4,5) for the inputs (1,2,3) and (2,3,2), where each tuple stands for a column vector. Three input numbers go in and only two come out, so some information is lost, but it is lost along a definite direction. This lesson names the inputs a map sends to zero and the outputs it can reach, and proves that their dimensions always add up to the dimension of the input space. The kernel, the image and that count together decide when a map can be one-to-one or onto, describe the full solution set of a linear system, and limit what can happen when maps are composed.
Key terms
Kernel
Definition Let T:Rn→Rm be a linear map. The kernel of T is the set of inputs that T sends to the zero vector,
kerT={x∈Rn∣T(x)=0}.
It is a subspace of the input space Rn. It contains 0 because T(0)=0, and if u and v lie in it, then T(au+bv)=aT(u)+bT(v)=0 for all real a and b. Its dimension dimkerT is the nullity of T. When T(x)=Ax for a real m×n matrix A, the kernel is the null space, kerT=NullA.
In plain words The kernel collects the input directions the map cannot see. Moving an input along a kernel vector never changes its output.
Example Let T(x)=Ax with
A=[100111],
so that T(x,y,z)=(x+z,y+z). The kernel is the solution set of x+z=0 and y+z=0. With z=t free, both x and y equal −t, so
kerT=span{h},h=−1−11,
and the nullity is 1. The two inputs from the opening differ by (2,3,2)−(1,2,3)=(1,1,−1)=−h, which lies in the kernel. That is why their outputs agree.
Image
Definition The image of a linear map T:Rn→Rm is the set of outputs it actually reaches,
imT={T(x)∣x∈Rn}.
It is a subspace of the codomain Rm, since 0=T(0) is reached and a combination aT(u)+bT(v)=T(au+bv) of reached outputs is reached again. Its dimension is the rank of T, written rankT. For T(x)=Ax the image is the column space, imT=ColA, so rankT=rankA. The codomain is the declared output space, and the image can be a proper subspace of it.
In plain words The image is everything the map can produce. The codomain is only the space where its outputs are allowed to live.
Example For the matrix A above every pair (a,b) is reached, because T(a,b,0)=(a,b). So imT=R2 and rankT=2. Compare the transpose, which sends R2 to R3,
C=A⊤=101011,C[ab]=aba+b.
Its image is the plane of vectors in R3 whose third entry is the sum of the first two. That plane has dimension 2, so it is not all of R3. The vector (1,2,0), for instance, is never reached.
Rank-nullity theorem
Definition Let T:Rn→Rm be a linear map. Then
rankT+dimkerT=n,
the dimension of the input space. For a real m×n matrix A this reads rankA+dimNullA=n. The same statement, with the same proof, holds for a linear map from any finite-dimensional vector space, with n replaced by the dimension of that space.
The proof uses an adapted basis. Choose a basis u1,…,uk of kerT and extend it to a basis u1,…,uk,v1,…,vn−k of Rn, which is always possible in finite dimension. The vectors T(v1),…,T(vn−k) span imT, because writing any x in the full basis and applying T removes every ui term. They are also independent. If d1T(v1)+⋯+dn−kT(vn−k)=0, then d1v1+⋯+dn−kvn−k lies in kerT, so it equals some combination of the ui, and independence of the full basis forces every dj to be 0. Hence rankT=n−k. In elimination terms, an m×n matrix with r pivot columns has rank r and n−r free variables, one kernel basis vector for each.
In plain words The n directions of an adapted basis split into those lost in the kernel and those that survive as independent output directions, and none is counted twice. The total is the input dimension n, not the output dimension m.
Example For T(x,y,z)=(x+z,y+z) the rank is 2 and the nullity is 1, and 2+1=3. An adapted basis shows the split. Take the kernel vector h=(−1,−1,1) together with e1 and e2. Every input decomposes as
xyz=zh+(x+z)e1+(y+z)e2.
Applying T removes the h term and leaves (x+z)T(e1)+(y+z)T(e2), where T(e1)=(1,0) and T(e2)=(0,1) form a basis of the image.
Injective and surjective maps
Definition A map T:Rn→Rm is injective, or one-to-one, if T(x)=T(y) implies x=y. A linear map is injective exactly when kerT={0}. If the kernel is {0} and T(x)=T(y), then T(x−y)=0, so x=y. If some nonzero k lies in the kernel, then k and 0 have the same output.
The map is surjective onto Rm, or onto, if every b in Rm equals T(x) for some x. That means imT=Rm, or equivalently rankT=m. By rank-nullity, a linear T is injective exactly when rankT=n. Since the rank is at most m and at most n, an injective linear map needs n≤m and a surjective one needs n≥m. When n=m, injective and surjective are equivalent, because each one says that the rank equals n.
In plain words Injective means the map loses nothing, so no two inputs collide. Surjective means it misses nothing in the stated codomain. The first is a question about the kernel, the second a question about the image.
Example The map T(x)=Ax from R3 to R2 above is surjective but not injective, since every pair is reached and the nonzero vector h goes to 0. The transpose C, as a map from R2 to R3, is injective, since C(a,b)=0 forces a=b=0, but it is not surjective. Both have rank 2. Their nullities are 1 and 0 because their input dimensions are 3 and 2. No linear map from R4 to R2 can be injective, since its rank is at most 2 and so its nullity is at least 4−2=2. Such a map can still be surjective.
Fiber of a linear map
Definition Let T:Rn→Rm be linear and let b be a vector in Rm. The fiber of T over b is the set of inputs with output b,
{x∈Rn∣T(x)=b},
which is the solution set of T(x)=b. It is empty when b is not in imT. If xp is any one vector in it, then the fiber is the translated kernel
xp+kerT={xp+k∣k∈kerT}.
Every such vector is a solution, since T(xp+k)=b+0=b. Conversely, any solution x satisfies T(x−xp)=b−b=0, so x−xp lies in the kernel. The fiber over 0 is the kernel itself. A fiber over b=0 is not a subspace, because it does not contain 0.
In plain words All the inputs that share one output form a parallel copy of the kernel, shifted by any one of those inputs. Every nonempty fiber has the same shape and dimension as the kernel, and only the fiber over zero passes through the origin.
Example For T(x,y,z)=(x+z,y+z) and b=(4,5), one solution is xp=(4,5,0). The fiber is the line of all vectors
450+t−1−11=4−t5−tt
with t real. The opening inputs (1,2,3) and (2,3,2) are the points with t=3 and t=2. The line misses the origin, as it must, since the origin goes to (0,0).
Rank of a composition
Definition Let T:Rn→Rm and S:Rm→Rp be linear, so that S can receive the outputs of T and the composition S∘T is defined. Then
kerT⊆ker(S∘T),rank(S∘T)≤min(rankS,rankT).
The first statement holds because T(k)=0 gives S(T(k))=S(0)=0. For the rank, every output of S∘T lies in imS, so rank(S∘T)≤rankS. If w1,…,wr is a basis of imT, then every output S(T(x)) is a combination of S(w1),…,S(wr), so rank(S∘T)≤r=rankT. In matrix form, rank(MA)≤min(rankM,rankA) whenever the product MA is defined.
In plain words A later map cannot bring back a direction that an earlier map has already lost. At best it keeps every direction that is left, and it may lose more.
Example Follow T(x,y,z)=(x+z,y+z) by S(a,b)=a−b. Then (S∘T)(x,y,z)=(x+z)−(y+z)=x−y, and in matrices
[1−1][100111]=[1−10].
The composition has rank 1, below rankT=2. Its kernel is the plane x=y, spanned by (1,1,0) and (0,0,1), and this plane contains kerT, since h=(−1,−1,1) has equal first and second entries.
Check yourself
Let T(x)=Ax with the matrix below. Find a basis of kerT, the rank and the nullity, and decide whether T is injective or surjective.
A=[1224−1−2]Show the answer
The second row is twice the first, so the kernel is the solution set of x+2y−z=0. With y=s and z=t free, x=−2s+t, so
xyz=s−210+t101.
The vectors (−2,1,0) and (1,0,1) form a basis of the kernel, and the nullity is 2. Every column is a multiple of (1,2), so the image is the line spanned by (1,2) and the rank is 1. The count 1+2=3 agrees with rank-nullity. The map is not injective, because its kernel is not {0}, and not surjective, because its rank 1 is less than 2.
A linear map T:R5→R3 has a kernel of dimension 2. Is T surjective? Can S∘T be injective for some linear map S:R3→R5?
Show the answer
Rank-nullity uses the input dimension, so rankT=5−2=3. That equals the dimension of the codomain R3, so T is surjective. Subtracting the nullity from the output dimension, which would give 3−2=1, is the common mistake here. The composition can never be injective, whatever S is, because kerT⊆ker(S∘T) and kerT already has dimension 2.
For the matrix of question 1, describe the fiber over (3,6) and explain why the fiber over (3,5) is empty.
Show the answer
Over (3,6) the second equation is twice the first, so only x+2y−z=3 remains. One solution is (3,0,0), and the fiber is the translated kernel
300+s−210+t101
with s and t real, a plane parallel to the kernel that does not pass through the origin. Over (3,5) the first equation says x+2y−z=3, and the second then requires 2⋅3=5, which is false. In other words, the vector (3,5) is not a multiple of (1,2), so it is not in the image and nothing maps to it.
May we count page visits to understand which courses and learning features are useful? Cloudflare collects visit and performance statistics, without your account details or answers. Your choice does not affect access. Details