6.2 Kernel and Range
What a linear map destroys and what it can reach: the kernel $\ker T$ (everything sent to $\mathbf{0}$) and the range $\operatorname{range}T$ (every possible output), tied together by $\dim\ker T+\dim\operatorname{range}T=\dim V$.
A camera turns the three-dimensional world into a flat picture. That is (approximately) a linear map from $\mathbb{R}^3$ to $\mathbb{R}^2$, and it is easy to see what it loses: every point along the same line of sight lands on the same pixel, so a single photograph cannot tell a small nearby object from a large distant one. It is just as natural to ask what the camera can produce: can every possible image be obtained?
For any linear transformation these are the two central questions. What is lost? — the vectors that are sent to $\mathbf{0}$ form the kernel, and the map is one-to-one exactly when nothing non-zero is lost. What can be reached? — the set of all outputs forms the range, and the map is onto when everything can be reached. For matrix maps these are old friends from Section 5.4: the null space and the column space. And they are linked by one of the most useful counting facts in the subject, the rank–nullity theorem.
Kernel and Range
- The kernel of $T$ is the set of vectors in $V$ that $T$ sends to zero: $$\ker T=\{\mathbf{v}\in V:\ T(\mathbf{v})=\mathbf{0}\}.$$
- The range (or image) of $T$ is the set of all outputs: $$\operatorname{range}T=\{T(\mathbf{v}):\ \mathbf{v}\in V\}=\{\mathbf{w}\in W:\ \mathbf{w}=T(\mathbf{v})\text{ for some }\mathbf{v}\in V\}.$$
For a matrix transformation $T(\mathbf{x})=A\mathbf{x}$, the equation $T(\mathbf{x})=\mathbf{0}$ is the homogeneous system $A\mathbf{x}=\mathbf{0}$, and an output $A\mathbf{x}=x_1\mathbf{a}_1+\cdots+x_n\mathbf{a}_n$ is a combination of the columns $\mathbf{a}_j$ of $A$. So nothing new needs to be learned:
- Row reduce $A$ to reduced echelon form and mark the pivot columns.
- Kernel: solve $A\mathbf{x}=\mathbf{0}$; write the general solution in terms of the free variables. The vectors multiplying the free variables form a basis of $\ker T$ (there is one per free variable).
- Range: the pivot columns of the original matrix $A$ (not of its echelon form) form a basis of $\operatorname{range}T$.
- Check: multiply $A$ by each kernel basis vector — you must get $\mathbf{0}$ — and confirm (number of free variables) + (number of pivots) $=n$.
One-to-One and Onto
- one-to-one (injective) if different inputs always give different outputs: $T(\mathbf{u})=T(\mathbf{v})$ implies $\mathbf{u}=\mathbf{v}$;
- onto (surjective) if every vector of $W$ is an output: $\operatorname{range}T=W$.
For a general function, checking one-to-one means comparing every pair of inputs. For a linear map it is enough to look at what is sent to $\mathbf{0}$:
For a matrix map, Theorem 6.6 and Theorem 6.5 turn both properties into statements about pivots, which we read off from an echelon form.
Let $A$ be an $m\times n$ matrix and $T(\mathbf{x})=A\mathbf{x}$, $T:\mathbb{R}^n\to\mathbb{R}^m$.
- $T$ is one-to-one $\iff$ $A\mathbf{x}=\mathbf{0}$ has only the trivial solution $\iff$ the columns of $A$ are linearly independent $\iff$ there is a pivot in every column $\iff\operatorname{rank}A=n$.
- $T$ is onto $\iff$ $A\mathbf{x}=\mathbf{b}$ is consistent for every $\mathbf{b}$ in $\mathbb{R}^m$ $\iff$ the columns of $A$ span $\mathbb{R}^m$ $\iff$ there is a pivot in every row $\iff\operatorname{rank}A=m$.
A matrix has at most one pivot per row and per column, so $\operatorname{rank}A\le\min(m,n)$.
Wide matrices ($n\gt m$, more inputs than outputs) are never one-to-one: there are too few pivots to fill every column, so a free variable — and a non-zero kernel — must exist. Tall matrices ($m\gt n$) are never onto: $n$ columns cannot span the bigger space $\mathbb{R}^m$. Only a square matrix can be both.
And keep the two spaces apart: the kernel lives in the domain $\mathbb{R}^n$, the range in the codomain $\mathbb{R}^m$. In Example 3(a) a kernel vector would have $2$ entries, a range vector $3$.
The Rank–Nullity Theorem
In Examples 1 and 2 the dimension of what is lost plus the dimension of what is reached equals the dimension of the domain. Every input dimension is either "crushed" into the kernel or "survives" into the range.
Isomorphisms
A linear map that is both one-to-one and onto loses nothing and reaches everything; it can be undone. Such a map shows that two vector spaces are "the same space with different names for the vectors".
- If $T:V\to W$ is an isomorphism, then $T^{-1}:W\to V$ is also linear (and an isomorphism).
- If $\dim V=\dim W=n$ is finite, a linear map $T:V\to W$ is one-to-one $\iff$ it is onto $\iff$ it is an isomorphism. (By rank–nullity: nullity $0$ $\iff$ rank $n$.)
- For an $n\times n$ matrix $A$, $T(\mathbf{x})=A\mathbf{x}$ is an isomorphism of $\mathbb{R}^n$ $\iff$ $A$ is invertible $\iff$ $\det A\ne0$, and then $T^{-1}(\mathbf{y})=A^{-1}\mathbf{y}$.
This is why so much of linear algebra can be done with columns of numbers: $P_n\cong\mathbb{R}^{n+1}$ via $a_0+a_1t+\cdots+a_nt^n\mapsto(a_0,a_1,\dots,a_n)$, and $M_{m\times n}\cong\mathbb{R}^{mn}$ by listing the entries. Questions about independence, spanning and bases can be translated into $\mathbb{R}^n$, answered by row reduction, and translated back — an isomorphism preserves all of them.
$P_3$ and $M_{2\times2}$ are isomorphic (both have dimension $4$), but a polynomial is not a matrix. "Isomorphic" means that the vector-space structure — addition and scaling — matches perfectly under some one-to-one correspondence. Also, an isomorphism is about the map: $\mathbb{R}^2\cong\mathbb{R}^2$, yet the projection $\begin{bmatrix}1&0\\0&0\end{bmatrix}$ is not an isomorphism.
Exercises
- 1 $A=\begin{bmatrix}1&2\\3&6\end{bmatrix}$
- 2 $A=\begin{bmatrix}1&0&-1\\0&1&2\end{bmatrix}$
- 3 $A=\begin{bmatrix}1&2\\0&1\\2&1\end{bmatrix}$ (also give an equation of the range)
- 4 $A=\begin{bmatrix}1&-1&2\\-2&2&-4\end{bmatrix}$
- 5 $A=\begin{bmatrix}1&2&1\\2&4&3\\3&6&4\end{bmatrix}$ (also give an equation of the range)
- 6 $A=\begin{bmatrix}1&1&0&2\\0&1&1&1\\1&2&1&3\end{bmatrix}$
- 7 For the map in part 6, decide whether $(3,1,5)$ and $(2,3,5)$ are in $\operatorname{range}T$; for any that is, find an $\mathbf{x}$ with $A\mathbf{x}$ equal to it.
- 1 $A=\begin{bmatrix}1&2\\3&4\end{bmatrix}$
- 2 $A=\begin{bmatrix}1&2\\2&4\end{bmatrix}$
- 3 $A=\begin{bmatrix}1&0\\0&1\\1&1\end{bmatrix}$
- 4 $A=\begin{bmatrix}1&2&3\\0&1&4\end{bmatrix}$
- 5 $A=\begin{bmatrix}1&2&3\\2&4&6\end{bmatrix}$
- 6 $A=\begin{bmatrix}1&0&1\\0&1&1\\1&1&0\end{bmatrix}$
- 7 Any linear map $T:\mathbb{R}^5\to\mathbb{R}^2$ (one-to-one is the question)
- 8 $T:P_2\to\mathbb{R}^2$, $T(p)=\big(p(0),\ p(1)\big)$; also find $\ker T$.
- 1 $T:\mathbb{R}^6\to\mathbb{R}^4$ is linear with rank $4$. Find its nullity. Is $T$ onto?
- 2 $T:\mathbb{R}^4\to\mathbb{R}^6$ is linear with $\ker T=\{\mathbf{0}\}$. Find its rank. Is $T$ onto?
- 3 $T:M_{2\times2}\to\mathbb{R}$, $T(A)=\operatorname{tr}A$. Find a basis of $\ker T$ and the range; check rank–nullity.
- 4 (uses calculus) $D:P_3\to P_3$, $D(p)=p^{\prime}$. Find $\ker D$ and $\operatorname{range}D$, and check rank–nullity.
- 5 $T:M_{2\times2}\to M_{2\times2}$, $T(A)=A+A^{T}$. Find $\ker T$ and $\operatorname{range}T$ (compare Example 4).
- 6 $T:\mathbb{R}^3\to\mathbb{R}^3$, $T(\mathbf{x})=\mathbf{x}\times\mathbf{e}_3$ (cross product with $(0,0,1)$). Find the standard matrix, $\ker T$ and $\operatorname{range}T$.
- 7 Explain why no linear $T:\mathbb{R}^3\to\mathbb{R}^3$ can have $\ker T=\operatorname{range}T$, and give an example of a linear $T:\mathbb{R}^4\to\mathbb{R}^4$ with $\ker T=\operatorname{range}T$.
- 8 A $5\times7$ matrix $A$ has rank $4$. Find $\dim\operatorname{Nul}A$ and $\dim\operatorname{Col}A$, and say whether $\mathbf{x}\mapsto A\mathbf{x}$ is one-to-one or onto.
- 1 Show that $T(x,y)=(3x+y,\ 5x+2y)$ is an isomorphism of $\mathbb{R}^2$ and find a formula for $T^{-1}$.
- 2 Which pairs are isomorphic? (a) $\mathbb{R}^4$ and $M_{2\times2}$; (b) $P_3$ and $\mathbb{R}^4$; (c) $P_2$ and $M_{2\times2}$; (d) $\mathbb{R}^6$ and $M_{2\times3}$.
- 3 Use the isomorphism $P_2\cong\mathbb{R}^3$ to decide whether $1+2t$, $3-t+t^2$, $5+3t+t^2$ are linearly independent in $P_2$.
- 4 Coding. Letters are numbered $A=1,\dots,Z=26$ and a message is sent in pairs $\mathbf{x}$ as $\mathbf{y}=A\mathbf{x}$ with $A=\begin{bmatrix}2&3\\1&2\end{bmatrix}$. (a) Encode the word HI. (b) Decode the received pair $(63,37)$. (c) Why must the coding map be one-to-one?
- 5 Imaging. A simple camera model sends a point $(x,y,z)$ to the image point $(x,y)$. Find the kernel and range of this map, check rank–nullity, and explain in words why one photograph cannot determine depth.
- 6 Proof. Let $T:V\to W$ be a one-to-one linear map and $\{\mathbf{v}_1,\dots,\mathbf{v}_k\}$ linearly independent in $V$. Prove that $\{T(\mathbf{v}_1),\dots,T(\mathbf{v}_k)\}$ is linearly independent in $W$.
Research question. How many measurements does a scanner need before an image is uniquely determined — and which images are invisible to it?
Why it matters. CT scanners in hospitals do not photograph the inside of the body; they measure sums of tissue density along many lines (projections) and reconstruct the image by solving a linear system. The measurement map is linear, and its kernel consists of exactly the "ghost" images that produce all-zero measurements and so can never be seen. Engineers design scanning patterns so that this kernel is as small as possible.
What to do.
- Model a tiny $2\times2$ image $X=\begin{bmatrix}a&b\\c&d\end{bmatrix}$ of densities. The scanner measures the two row sums and the two column sums. Write this map $T:M_{2\times2}\to\mathbb{R}^4$ as a $4\times4$ matrix acting on $(a,b,c,d)$.
- Row reduce to find $\operatorname{rank}T$ and a basis of $\ker T$. Describe the "ghost" image in words.
- Verify that $X_1=\begin{bmatrix}5&3\\2&6\end{bmatrix}$ and $X_2=\begin{bmatrix}7&1\\0&8\end{bmatrix}$ give identical measurements, and explain using $X_2-X_1$.
- Add one diagonal measurement $a+d$. Show that the new map $M_{2\times2}\to\mathbb{R}^5$ is one-to-one.
- For a $3\times3$ image with row and column sums only (6 measurements of 9 unknowns), use rank–nullity to find the smallest possible dimension of the kernel; then compute the actual rank.
Tools: Pencil and paper; a matrix calculator or Python (sympy) for step 5.
Hand in: A one-page note with your matrix, the kernel, the two look-alike images, and a sentence explaining why real scanners take projections from many angles.
Going further. Read about the Radon transform and the 1979 Nobel Prize in Physiology or Medicine (Cormack and Hounsfield). The same "kernel = invisible" idea appears in seismic imaging of the Earth and in electrical impedance tomography.
🧪 Self-check quiz
Q1. For $T(\mathbf{x})=A\mathbf{x}$, the kernel $\ker T$ is
Q2. $T:\mathbb{R}^5\to\mathbb{R}^3$ is linear and onto. Then $\dim\ker T=$
Q3. A linear map $T:V\to W$ is one-to-one exactly when
Q4. A $4\times3$ matrix $A$ has $3$ pivots. The map $\mathbf{x}\mapsto A\mathbf{x}$ is
Q5. Which space is isomorphic to $P_3$?