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

Image & Surjectivity

The image of a linear map is the set of all outputs it can actually produce — exactly the span of its matrix's columns. Measuring that image with the rank tells you instantly whether the map is surjective and whether a particular vector can be reached.

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.

Let A=[1224]A=\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix} and b=[36]\mathbf{b}=\begin{bmatrix} 3 \\ 6 \end{bmatrix}. True or False: b∈im⁡(T)\mathbf{b}\in\operatorname{im}(T).

Find dim⁡(im⁡T)\dim(\operatorname{im}T) for the map with matrix A=[101011112].A=\begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 1 & 1 & 2 \end{bmatrix}.

What you’ll be able to do

  • Define the image (range) of a linear map and explain why it is a subspace of the codomain.
  • Show that the image equals the span of the columns of the map's matrix, and identify the rank as its dimension.
  • Decide whether a linear map is surjective by comparing its rank to the dimension of the codomain.
  • Determine whether a given vector lies in the image by testing a linear system for consistency.

In your course

· MATH2015 · Linear Algebra & Probability
§3.1 Linear maps§4.5 The rank of a matrix
  • Theorem 3.4 (2)Surjectivity criterion
    A linear map ff is surjective if and only if im⁡(f)=Rm\operatorname{im}(f)=\mathbb{R}^m.
  • Theorem 4.5Image is the span of the columns; dim⁡im⁡=rank⁡\dim\operatorname{im}=\operatorname{rank}
1

The image: where the map can land

A linear map T:Rn→RmT:\mathbb{R}^n \to \mathbb{R}^m eats an input vector x∈Rn\mathbf{x} \in \mathbb{R}^n and returns an output vector T(x)∈RmT(\mathbf{x}) \in \mathbb{R}^m. We call Rn\mathbb{R}^n the domain (where inputs live) and Rm\mathbb{R}^m the codomain (where outputs are allowed to live).

Every such map can be written as T(x)=AxT(\mathbf{x}) = A\mathbf{x} for a unique m×nm\times n matrix AA (so AA has mm rows and nn columns).

The image (also called the range) collects every output the map can actually produce: im⁡(T)={ T(x):x∈Rn }={ Ax:x∈Rn }.\operatorname{im}(T) = \{\, T(\mathbf{x}) : \mathbf{x}\in\mathbb{R}^n \,\} = \{\, A\mathbf{x} : \mathbf{x}\in\mathbb{R}^n \,\}.

Two things to keep straight from the start:

  • The image is a subset of the codomain Rm\mathbb{R}^m, not of the domain. (Outputs live where outputs are allowed to live.)
  • Not every vector of the codomain has to be hit. The image is the part of Rm\mathbb{R}^m that genuinely gets reached.

Intuition. Think of TT as a machine. The codomain is the whole wall it could in principle paint; the image is the patch it does paint as the input ranges over everything.

2

The image is the span of the columns

Write AA in terms of its columns a1,…,an∈Rm\mathbf{a}_1,\dots,\mathbf{a}_n \in \mathbb{R}^m, and write x=(x1,…,xn)\mathbf{x}=(x_1,\dots,x_n). The key identity of matrix multiplication is Ax=x1a1+x2a2+⋯+xnan.A\mathbf{x} = x_1\mathbf{a}_1 + x_2\mathbf{a}_2 + \cdots + x_n\mathbf{a}_n. So AxA\mathbf{x} is just a linear combination of the columns, with the entries of x\mathbf{x} as the weights. As x\mathbf{x} ranges over all of Rn\mathbb{R}^n, the weights range over all possible values, so the outputs sweep out exactly the span of the columns: im⁡(T)=span⁡(a1,…,an).\operatorname{im}(T) = \operatorname{span}(\mathbf{a}_1,\dots,\mathbf{a}_n). This set is also called the column space of AA, written Col⁡(A)\operatorname{Col}(A). Because a span is always closed under addition and scalar multiplication and contains 0\mathbf{0}, the image is a subspace of Rm\mathbb{R}^m.

The rank of TT (equivalently of AA) is the dimension of this subspace: rank⁡(A)=dim⁡(im⁡(T)).\operatorname{rank}(A) = \dim\big(\operatorname{im}(T)\big). Concretely, you compute it by row-reducing AA and counting the pivot columns — the rank is the number of pivots. (A useful fact: the column rank always equals the row rank, so row reduction gives the right number either way.)

3

Surjective = the image fills the codomain

A map T:Rn→RmT:\mathbb{R}^n\to\mathbb{R}^m is surjective (or onto) if every vector of the codomain is an output — that is, for each b∈Rm\mathbf{b}\in\mathbb{R}^m there is some x\mathbf{x} with T(x)=bT(\mathbf{x})=\mathbf{b}. In symbols, surjective means im⁡(T)=Rm\operatorname{im}(T)=\mathbb{R}^m.

Since im⁡(T)\operatorname{im}(T) is always a subspace sitting inside Rm\mathbb{R}^m, a subspace equals the whole space exactly when it has the full dimension. This gives the clean test: T is surjective  ⟺  im⁡(T)=Rm  ⟺  rank⁡(A)=m,T \text{ is surjective} \iff \operatorname{im}(T)=\mathbb{R}^m \iff \operatorname{rank}(A)=m, where m=dim⁡(codomain)m=\dim(\text{codomain}).

Consequences worth memorizing:

  • To be surjective you need rank⁡(A)=m\operatorname{rank}(A)=m. But the rank can never exceed the number of columns nn, so you need n≥mn\ge m. A map with fewer inputs than the codomain dimension (n<mn<m, a 'tall' matrix) can never be surjective — there simply aren't enough columns to span Rm\mathbb{R}^m.
  • For a square matrix (n=mn=m), surjective   ⟺  \iff full rank   ⟺  \iff invertible   ⟺  \iff injective. (Surjectivity and injectivity coincide only in the square case.)
4

Is a given vector in the image?

Given a specific target b∈Rm\mathbf{b}\in\mathbb{R}^m, asking 'b∈im⁡(T)\mathbf{b}\in\operatorname{im}(T)?' is asking whether some input maps to it. Three equivalent phrasings: b∈im⁡(T)  ⟺  b is a linear combination of the columns of A  ⟺  Ax=b has a solution.\mathbf{b}\in\operatorname{im}(T) \iff \mathbf{b} \text{ is a linear combination of the columns of } A \iff A\mathbf{x}=\mathbf{b} \text{ has a solution}.

Procedure. Form the augmented matrix [ A∣b ][\,A \mid \mathbf{b}\,] and row-reduce.

  • If you ever get a row of the form [ 0 0 ⋯ 0∣c ][\,0\ 0\ \cdots\ 0 \mid c\,] with c≠0c\neq 0 (a pivot in the last column), the system is inconsistent: b∉im⁡(T)\mathbf{b}\notin\operatorname{im}(T).
  • Otherwise the system is consistent and b∈im⁡(T)\mathbf{b}\in\operatorname{im}(T); the solution(s) give the input(s) that map to b\mathbf{b}.

Shortcut when the image is a hyperplane. If im⁡(T)\operatorname{im}(T) is a plane in R3\mathbb{R}^3 (or more generally a hyperplane), it can be described by a single equation n⋅v=0\mathbf{n}\cdot\mathbf{v}=0, where the normal vector n\mathbf{n} is orthogonal to every column. Then b\mathbf{b} is in the image precisely when n⋅b=0\mathbf{n}\cdot\mathbf{b}=0 — one dot product instead of a full row reduction.

Image is a Subspace

If T:Rn→RmT:\mathbb{R}^n\to\mathbb{R}^m is linear with matrix AA, then im⁡(T)=span⁡(columns of A)\operatorname{im}(T)=\operatorname{span}(\text{columns of } A) is a subspace of the codomain Rm\mathbb{R}^m: it contains 0\mathbf{0} and is closed under vector addition and scalar multiplication.

Intuition. Outputs combine the way inputs do: T(cx+dy)=cT(x)+dT(y)T(c\mathbf{x}+d\mathbf{y})=cT(\mathbf{x})+dT(\mathbf{y}). So any combination of things the map can produce is again something the map can produce, and T(0)=0T(\mathbf{0})=\mathbf{0} is always reachable. A set built as a span is automatically a subspace.
Surjectivity Criterion (via Rank)

A linear map T:Rn→RmT:\mathbb{R}^n\to\mathbb{R}^m with matrix AA is surjective if and only if im⁡(T)=Rm\operatorname{im}(T)=\mathbb{R}^m, which holds if and only if rank⁡(A)=m=dim⁡(codomain)\operatorname{rank}(A)=m=\dim(\text{codomain}).

Intuition. The image is a subspace living inside Rm\mathbb{R}^m. A subspace of Rm\mathbb{R}^m is the whole space exactly when its dimension is mm. Since the rank is that dimension, full rank (equal to the codomain's dimension) is precisely what it takes to reach everything.
Membership Test for the Image

For b∈Rm\mathbf{b}\in\mathbb{R}^m, we have b∈im⁡(T)\mathbf{b}\in\operatorname{im}(T) if and only if the linear system Ax=bA\mathbf{x}=\mathbf{b} is consistent, i.e. the augmented matrix [ A∣b ][\,A\mid\mathbf{b}\,] has no pivot in its last column.

Intuition. Saying b\mathbf{b} is an output means some input x\mathbf{x} produces it, i.e. Ax=bA\mathbf{x}=\mathbf{b} can be solved. Row reduction detects unsolvability as the contradictory row 0=c0=c with c≠0c\neq 0.

Worked examples

Example 1

Let T:R3→R3T:\mathbb{R}^3\to\mathbb{R}^3 be given by T(x)=AxT(\mathbf{x})=A\mathbf{x} with A=[121011132].A=\begin{bmatrix} 1 & 2 & 1 \\ 0 & 1 & 1 \\ 1 & 3 & 2 \end{bmatrix}. (a) Find rank⁡(A)=dim⁡(im⁡T)\operatorname{rank}(A)=\dim(\operatorname{im}T). (b) Is TT surjective? (c) Is b=[325]\mathbf{b}=\begin{bmatrix}3\\2\\5\end{bmatrix} in the image? What about b′=[111]\mathbf{b}'=\begin{bmatrix}1\\1\\1\end{bmatrix}?

  1. 1

    Set up. Here AA is 3×33\times 3, so the domain is R3\mathbb{R}^3 and the codomain is R3\mathbb{R}^3 (dimension m=3m=3). The image is the span of the three columns a1=(1,0,1)\mathbf{a}_1=(1,0,1), a2=(2,1,3)\mathbf{a}_2=(2,1,3), a3=(1,1,2)\mathbf{a}_3=(1,1,2), and lives in the codomain R3\mathbb{R}^3.

  2. 2

    (a) Find the rank by row reduction. Start with the rows R1=(1,2,1)R_1=(1,2,1), R2=(0,1,1)R_2=(0,1,1), R3=(1,3,2)R_3=(1,3,2). Replace R3→R3−R1=(0,1,1)R_3\to R_3-R_1=(0,1,1). Now R3=(0,1,1)R_3=(0,1,1) is identical to R2R_2, so R3→R3−R2=(0,0,0)R_3\to R_3-R_2=(0,0,0). We are left with two nonzero rows, with pivots in columns 1 and 2. Therefore rank⁡(A)=2\operatorname{rank}(A)=2, so dim⁡(im⁡T)=2\dim(\operatorname{im}T)=2: the image is a plane through the origin in R3\mathbb{R}^3.

  3. 3

    (b) Surjective? Apply the criterion rank⁡(A)=dim⁡(codomain)\operatorname{rank}(A)=\dim(\text{codomain}). Here rank⁡(A)=2\operatorname{rank}(A)=2 but dim⁡(codomain)=3\dim(\text{codomain})=3. Since 2≠32\neq 3, the image does not fill R3\mathbb{R}^3, so TT is not surjective.

  4. 4

    (c) Is b=(3,2,5)\mathbf{b}=(3,2,5) in the image? Row-reduce the augmented matrix [A∣b][A\mid\mathbf{b}] with rows (1,2,1∣3)(1,2,1\mid 3), (0,1,1∣2)(0,1,1\mid 2), (1,3,2∣5)(1,3,2\mid 5). Do R3→R3−R1=(0,1,1∣2)R_3\to R_3-R_1=(0,1,1\mid 2), then R3→R3−R2=(0,0,0∣0)R_3\to R_3-R_2=(0,0,0\mid 0). The last row is 0=00=0: no pivot in the last column, so the system is consistent and b∈im⁡(T)\mathbf{b}\in\operatorname{im}(T). Solving gives, e.g., x=(−1,2,0)\mathbf{x}=(-1,2,0); check: −1 a1+2 a2=(−1,0,−1)+(4,2,6)=(3,2,5)=b-1\,\mathbf{a}_1+2\,\mathbf{a}_2=(-1,0,-1)+(4,2,6)=(3,2,5)=\mathbf{b}.

  5. 5

    Contrast with b′=(1,1,1)\mathbf{b}'=(1,1,1). A quick route: every column satisfies v1+v2−v3=0v_1+v_2-v_3=0 (for instance a1:1+0−1=0\mathbf{a}_1:1+0-1=0), so the image is exactly the plane {v:v1+v2−v3=0}\{\mathbf{v}: v_1+v_2-v_3=0\} with normal n=(1,1,−1)\mathbf{n}=(1,1,-1). Test b′\mathbf{b}': 1+1−1=1≠01+1-1=1\neq 0, so b′∉im⁡(T)\mathbf{b}'\notin\operatorname{im}(T). (The same conclusion falls out of row-reducing [A∣b′][A\mid\mathbf{b}'], which produces the contradictory row 0=10=1.)

Answer. (a) rank⁡(A)=dim⁡(im⁡T)=2\operatorname{rank}(A)=\dim(\operatorname{im}T)=2. (b) Not surjective, since 2<32<3. (c) b=(3,2,5)\mathbf{b}=(3,2,5) is in the image (e.g. x=(−1,2,0)\mathbf{x}=(-1,2,0)); b′=(1,1,1)\mathbf{b}'=(1,1,1) is not, since 1+1−1≠01+1-1\neq 0.
Example 2

Let T:R2→R3T:\mathbb{R}^2\to\mathbb{R}^3 be given by the matrix A=[112132].A=\begin{bmatrix} 1 & 1 \\ 2 & 1 \\ 3 & 2 \end{bmatrix}. Find the rank and decide whether TT is surjective.