Tutorials › Linear Algebra › Computing Kernels and Images from Formulas

Linear Maps Between Vector Spaces · Tutorial 407 of 1000

Computing Kernels and Images from Formulas

Use equations and coordinate matrices to find kernels and give precise descriptions of all outputs in the image.

Intermediate 10 min read

What You'll Learn

  • Translate a formula for a linear map into equations for its kernel.
  • Parameterize every solution of the kernel equations.
  • Describe the image both as attainable outputs and as a span.
  • Use the images of a domain basis to build a coordinate description of the image.
  • Check kernel and image calculations by substitution.
  • Avoid confusing column space with the row space after row reduction.

From a Formula to a Kernel and an Image

A formula for a linear map gives a direct way to ask two different questions. Which inputs produce the zero vector? Which outputs can the map produce at all? The first question asks for the kernel; the second asks for the image. To answer them, we translate the formula into equations, solve those equations, and describe the resulting sets precisely.

Throughout, the spaces in the examples are finite-dimensional real vector spaces. For a linear map \(T:V\to W\), the kernel and image are the sets

$$ \ker T=\{\mathbf{v}\in V:T(\mathbf{v})=\mathbf{0}\}, \qquad \operatorname{im}T=\{T(\mathbf{v}):\mathbf{v}\in V\}. $$

To compute the kernel, set every output coordinate equal to zero and solve for the input coordinates. To compute the image, write the output coordinates in terms of the input coordinates, then describe exactly which output vectors arise. Giving only a collection of sample outputs is not enough: the description must show that every stated output is attainable and that no other outputs are attainable.

Definition: If \(\mathcal{B}=(\mathbf{b}_1,\dots,\mathbf{b}_n)\) is a basis of \(V\), every \(\mathbf{v}\in V\) has a unique expression \(\mathbf{v}=c_1\mathbf{b}_1+\cdots+c_n\mathbf{b}_n\). The column \(\mathbf{c}=(c_1,\dots,c_n)^{\top}\) is its coordinate vector \([\mathbf{v}]_{\mathcal{B}}\). If \(\mathcal{C}\) is a basis of \(W\), the matrix of \(T\) in these bases has as its \(j\)th column the coordinate vector \([T(\mathbf{b}_j)]_{\mathcal{C}}\).

When the formula is already given in standard coordinates, we can read off this matrix directly. If \(\mathbf{A}\) is the matrix of \(T\), then the output coordinate column is \(\mathbf{A}\mathbf{c}\). This turns the kernel question into the homogeneous system \(\mathbf{A}\mathbf{c}=\mathbf{0}\). For the image, each output is a linear combination of the columns of \(\mathbf{A}\), with the input coordinates as its coefficients.

Why the Coordinate Method Works

Proposition: Let \(T:V\to W\) be a linear map between finite-dimensional real vector spaces, and choose bases \(\mathcal{B}\) of \(V\) and \(\mathcal{C}\) of \(W\). Let \(\mathbf{A}=[T]_{\mathcal{C}\leftarrow\mathcal{B}}\). Then \(\mathbf{v}\in\ker T\) exactly when \([\mathbf{v}]_{\mathcal{B}}\) solves \(\mathbf{A}\mathbf{c}=\mathbf{0}\). Also, \(\operatorname{im}T\) is the span of the vectors \(T(\mathbf{b}_1),\dots,T(\mathbf{b}_n)\).

Proof. Write \(\mathbf{v}=c_1\mathbf{b}_1+\cdots+c_n\mathbf{b}_n\), so \(\mathbf{c}=[\mathbf{v}]_{\mathcal{B}}\). By linearity, \(T(\mathbf{v})=c_1T(\mathbf{b}_1)+\cdots+c_nT(\mathbf{b}_n)\). The columns of \(\mathbf{A}\) are the \(\mathcal{C}\)-coordinates of these vectors, so the \(\mathcal{C}\)-coordinate vector of \(T(\mathbf{v})\) is \(\mathbf{A}\mathbf{c}\). A vector is zero exactly when its coordinate vector is zero. Thus \(T(\mathbf{v})=\mathbf{0}\) exactly when \(\mathbf{A}\mathbf{c}=\mathbf{0}\). For the image, every output has the form \(T(\mathbf{v})=c_1T(\mathbf{b}_1)+\cdots+c_nT(\mathbf{b}_n)\), so it belongs to the stated span. Conversely, any linear combination \(c_1T(\mathbf{b}_1)+\cdots+c_nT(\mathbf{b}_n)\) equals \(T(c_1\mathbf{b}_1+\cdots+c_n\mathbf{b}_n)\), so it is an output. Both inclusions hold, proving the image description. \(\square\)

The proposition gives two complementary procedures. For the kernel, solve the homogeneous system and convert each solution coordinate column back into a vector of \(V\). For the image, use the outputs of a basis of the domain as generators. These procedures do not require the map to be one-to-one or onto, and neither conclusion should be assumed before doing the calculation.

Solving for the Kernel

Worked Example: A Kernel in \(\mathbb{R}^3\)

Let \(T:\mathbb{R}^3\to\mathbb{R}^2\) be given by \(T(x,y,z)=(x+2y-z,\;2x+4y-2z)\). Find \(\ker T\).

An input belongs to the kernel exactly when both output coordinates are zero. The equations are \(x+2y-z=0\) and \(2x+4y-2z=0\). The second equation is twice the first, as the row reduction confirms:

$$ \begin{bmatrix}1&2&-1\\2&4&-2\end{bmatrix} \sim \begin{bmatrix}1&2&-1\\0&0&0\end{bmatrix} \quad (R_2\to R_2-2R_1). $$

Thus the only constraint is \(x+2y-z=0\). Choose \(y=s\) and \(z=t\) freely. Then \(x=-2s+t\), and every kernel vector has the form

$$ (x,y,z)=(-2s+t,s,t) =s(-2,1,0)+t(1,0,1). $$

Therefore \(\ker T=\operatorname{span}\{(-2,1,0),(1,0,1)\}\). Check: for \((-2,1,0)\), the output coordinates are \(-2+2-0=0\) and \(-4+4-0=0\). For \((1,0,1)\), they are \(1+0-1=0\) and \(2+0-2=0\). Since the equation \(x+2y-z=0\) was solved with arbitrary \(s\) and \(t\), the parameterization includes every kernel vector, not only the two checked generators.

Free parameters are not extra restrictions: they record the choices that remain after solving the equations. To establish a kernel description, it is useful to verify both directions. First, substitute a proposed general vector into the formula and confirm its image is zero. Then explain why solving the equations forces every kernel vector to have that form.

Describing Every Attainable Output

Proposition: Let \(T:V\to W\) be linear, and let \(\mathcal{B}=(\mathbf{b}_1,\dots,\mathbf{b}_n)\) be a basis of the finite-dimensional space \(V\). Then \(\operatorname{im}T=\operatorname{span}\{T(\mathbf{b}_1),\dots,T(\mathbf{b}_n)\}\).

Proof. If \(\mathbf{w}\in\operatorname{im}T\), then \(\mathbf{w}=T(\mathbf{v})\) for some \(\mathbf{v}\in V\). Since \(\mathcal{B}\) is a basis, \(\mathbf{v}=\sum_{j=1}^n c_j\mathbf{b}_j\) for scalars \(c_j\). Linearity gives \(\mathbf{w}=\sum_{j=1}^n c_jT(\mathbf{b}_j)\), so \(\mathbf{w}\) belongs to the span. In the other direction, take any vector \(\sum_{j=1}^n c_jT(\mathbf{b}_j)\) in that span. Linearity gives \(\sum_{j=1}^n c_jT(\mathbf{b}_j)=T(\sum_{j=1}^n c_j\mathbf{b}_j)\), which is an output of \(T\). Therefore the two sets are equal. \(\square\)

Sometimes the span description is already the clearest answer. In other cases, it is helpful to eliminate the input parameters and give equations that outputs must satisfy. The next example does both, and checks that the equations describe exactly the attainable set.

Worked Example: An Image as a Plane in \(\mathbb{R}^3\)

Define \(S:\mathbb{R}^2\to\mathbb{R}^3\) by \(S(s,t)=(s+t,\;2s-t,\;3s)\). Describe \(\operatorname{im}S\).

Write a general output as \((a,b,c)\). The formula says \(a=s+t\), \(b=2s-t\), and \(c=3s\). Adding the first two equations eliminates \(t\): \(a+b=3s=c\). Thus every output satisfies \(a+b=c\).

To check that this condition is sufficient, suppose \(a+b=c\). Set \(s=c/3\) and \(t=a-c/3\). Then the first output coordinate is \(s+t=c/3+a-c/3=a\). The second is \(2s-t=2c/3-(a-c/3)=c-a=b\), using \(a+b=c\). The third is \(3s=c\). Hence \((a,b,c)\) is attained, and

$$ \operatorname{im}S=\{(a,b,c)\in\mathbb{R}^3:a+b=c\}. $$

Equivalently, evaluating \(S\) on the standard basis vectors gives \(S(1,0)=(1,2,3)\) and \(S(0,1)=(1,-1,0)\), so \(\operatorname{im}S=\operatorname{span}\{(1,2,3),(1,-1,0)\}\). Check: the general combination \(s(1,2,3)+t(1,-1,0)\) is \((s+t,2s-t,3s)\), whose first coordinate plus second is \(3s\), its third coordinate. This agrees with the equation description.

A Map Defined on Matrices

Worked Example: Kernel and Image of a Matrix Formula

Let \(U:\mathbb{R}^{2\times2}\to\mathbb{R}^2\) be defined by \(U\left(\begin{bmatrix}a&b\\c&d\end{bmatrix}\right)=(a+d,\;b+c)\). Find its kernel and image.

For the kernel, set both output coordinates equal to zero. The equations are \(a+d=0\) and \(b+c=0\), so \(d=-a\) and \(c=-b\). Therefore

$$ \ker U= \left\{ \begin{bmatrix}a&b\\-b&-a\end{bmatrix} :a,b\in\mathbb{R} \right\} = \operatorname{span}\left\{ \begin{bmatrix}1&0\\0&-1\end{bmatrix}, \begin{bmatrix}0&1\\-1&0\end{bmatrix} \right\}. $$

For the image, let \((u,v)\in\mathbb{R}^2\) be any proposed output. Choose the input matrix \(\begin{bmatrix}u&v\\0&0\end{bmatrix}\). Its output is \((u+0,v+0)=(u,v)\), so every vector in \(\mathbb{R}^2\) is attained and \(\operatorname{im}U=\mathbb{R}^2\).

Checks: applying \(U\) to \(\begin{bmatrix}a&b\\-b&-a\end{bmatrix}\) gives \((a-a,b-b)=(0,0)\). For the proposed preimage of \((u,v)\), direct substitution gives \(U\left(\begin{bmatrix}u&v\\0&0\end{bmatrix}\right)=(u+0,v+0)=(u,v)\). Thus both descriptions follow from the defining formula.

Common Pitfall: Row Reduction Does Not Preserve the Image

When finding a kernel, row reduction is appropriate because reversible row operations preserve the solutions of a homogeneous system. But row operations generally change the columns, so the columns of the reduced matrix should not be used as the original map's output vectors.

For a concrete example, consider the map with matrix \(\mathbf{A}=\begin{bmatrix}1&0\\0&1\\1&1\end{bmatrix}\), from \(\mathbb{R}^2\) to \(\mathbb{R}^3\). The columns of \(\mathbf{A}\) are \((1,0,1)\) and \((0,1,1)\), so its image is their span. A mistaken calculation might row-reduce and then take the nonzero rows, \((1,0)\) and \((0,1)\), as generators for the image. Those rows are vectors in \(\mathbb{R}^2\), not \(\mathbb{R}^3\), so they cannot describe outputs of this map.

The correction is to use the original columns for the image, or derive the output formula directly. For input \((x,y)\), the output is \((x,y,x+y)\). Hence the image is \(\{(a,b,c)\in\mathbb{R}^3:c=a+b\}\). Every such vector is attained by choosing input \((a,b)\), and every output has the required equation. Row reduction may help solve for the kernel, but the image belongs to the codomain and must be described there.

Check Your Understanding

For each problem, state the full set you obtain and verify it from the defining formula.

  1. For \(T(x,y)=(x-y,\;2x-2y)\), find \(\ker T\).
  2. For \(S(s,t)=(s+2t,\;3s+t)\), describe the image as a span of vectors obtained from the standard basis.
  3. For \(P(x,y,z)=(x+y,\;y+z)\), describe every attainable output in \(\mathbb{R}^2\).
  4. For \(Q\left(\begin{bmatrix}a&b\\c&d\end{bmatrix}\right)=(a-b,\;c+d)\), find the kernel.
  5. Explain why row-reducing a matrix is valid for solving its homogeneous system, but its reduced columns need not describe the original map's image.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon