Linear AlgebraLinear Transformations

One-to-One and Onto

Pivots in every column mean one-to-one; in every row mean onto.

Not started Jump to practice

Two natural questions about a linear map $T: \mathbb{R}^n \to \mathbb{R}^m$: does it ever send two different inputs to the same output, and does it reach every vector in $\mathbb{R}^m$? Both answers come from the pivots, just like existence and uniqueness for systems.

$T$ is one-to-one if each $\mathbf{b}$ in $\mathbb{R}^m$ is the image of at most one $\mathbf{x}$. $T$ is onto $\mathbb{R}^m$ if each $\mathbf{b}$ is the image of at least one $\mathbf{x}$.

Key idea

For $T(\mathbf{x}) = A\mathbf{x}$: $T$ is one-to-one exactly when $A$ has a pivot in every column (the columns are independent); $T$ is onto exactly when $A$ has a pivot in every row (the columns span $\mathbb{R}^m$).

Why it works

One-to-one needs only one check: $T(\mathbf{x}) = \mathbf{0}$ has only the solution $\mathbf{0}$. Indeed, if $T(\mathbf{u}) = T(\mathbf{v})$, then by linearity $T(\mathbf{u} - \mathbf{v}) = \mathbf{0}$; if only $\mathbf{0}$ maps to $\mathbf{0}$, then $\mathbf{u} - \mathbf{v} = \mathbf{0}$, so $\mathbf{u} = \mathbf{v}$. And "only the trivial solution" means no free variables: a pivot in every column. Onto means $A\mathbf{x} = \mathbf{b}$ is consistent for every $\mathbf{b}$, which (from span) means a pivot in every row.

Worked example: A map into a bigger space

$T(\mathbf{x}) = A\mathbf{x}$ with $A = \begin{bmatrix} 1 & 2 \\ 0 & 1 \\ 2 & 3 \end{bmatrix}$. Is $T$ one-to-one? Onto $\mathbb{R}^3$?
  1. Row reduce: $R_3 \to R_3 - 2R_1$ gives $(0, -1)$; $R_3 \to R_3 + R_2$ gives $(0, 0)$. Echelon form: $\begin{bmatrix} 1 & 2 \\ 0 & 1 \\ 0 & 0 \end{bmatrix}$.
  2. Pivots in both columns: one-to-one.
  3. Row 3 has no pivot: not onto. The range is a plane in $\mathbb{R}^3$ (spanned by the two columns).

Answer: One-to-one, not onto.

Worked example: A map into a smaller space

$T(x_1, x_2, x_3)$ $= (x_1 - x_3,\ x_2 + 2x_3)$. One-to-one? Onto $\mathbb{R}^2$?
  1. Standard matrix: $\begin{bmatrix} 1 & 0 & -1 \\ 0 & 1 & 2 \end{bmatrix}$, already in echelon form.
  2. Pivots in both rows: onto.
  3. Column 3 has no pivot: not one-to-one. For example, $T(1, -2, 1)$ $= (0, 0)$ $= T(0, 0, 0)$.

Answer: Onto, not one-to-one.

What the shape alone allows.
Size of AOne-to-one possible?Onto possible?
$m > n$ (tall)YesNo: at most $n < m$ pivots
$m < n$ (wide)No: at most $m < n$ pivotsYes
$m = n$ (square)YesYes, and then both hold together
This matrix squashes the plane onto a line. Many vectors land on the same point (not one-to-one), and points off the line are never reached (not onto).

A practical way to think about it: a one-to-one map loses no information, since you can always tell which input produced an output. An onto map leaves nothing out, since every possible output really occurs. A map from a smaller space into a bigger one can be one-to-one but never onto; a map from a bigger space onto a smaller one can be onto but never one-to-one, because it must merge some inputs.

For a square matrix the two properties come together: by the Invertible Matrix Theorem, $T$ is one-to-one exactly when it is onto, exactly when $A$ is invertible.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 3 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • Margalit and Rabinoff, Interactive Linear Algebra (Georgia Tech), §3.2 One-to-one and Onto Transformations
  • MIT OpenCourseWare 18.06 Linear Algebra (Gilbert Strang, Spring 2010), Lecture 30: Linear Transformations and Their Matrices
@teddyrookbook GitHub