Linear Algebra, Interactive EditionXYZ Homework Edition

⇩ Download ▾

3.3 One-to-One and Onto

A transformation can fail its job in two different ways, and it is worth having names for both before meeting a matrix that manages both at once. TT is onto when every vector of the target space is T(𝐱)T(\mathbf{x}) for some input β€” nothing is missed. TT is one-to-one when different inputs always produce different outputs β€” nothing is confused. Neither property implies the other in general, and neither is guaranteed.

Take the matrix Chapter 2 finished with, now read as a motion of ℝ3\mathbb{R}^3:

A = ( 1 2 3 0 1 1 1 1 2 ) , T ( 𝐱 ) = A 𝐱 A = \begin{pmatrix} 1 & 2 & 3 \\ 0 & 1 & 1 \\ 1 & 1 & 2 \end{pmatrix}, \qquad T(\mathbf{x}) = A\mathbf{x}

Its rank was 22 and its nullity 11, and those two numbers are about to be re-read as answers to the two questions above.

A semi-transparent tilted plane, everything the transformation can produce. A blue straight line runs through space at an angle to the plane, and a short green marker slides along it as a slider is dragged. An amber segment always runs from the green marker to one and the same amber dot lying on the plane: wherever the input slides to, the output does not move. A separate violet dot floats clearly above the plane, marking a target the transformation can never produce, because every output lies in the sheet.Explore in 3D (opens in a new tab)

A semi-transparent tilted plane, everything the transformation can produce. A blue straight line runs through space at an angle to the plane, and a short green marker slides along it as a slider is dragged. An amber segment always runs from the green marker to one and the same amber dot lying on the plane: wherever the input slides to, the output does not move. A separate violet dot floats clearly above the plane, marking a target the transformation can never produce, because every output lies in the sheet.

The plane z=xβˆ’yz = x - y is everything TT can produce. The blue line is a whole line of inputs, and the green marker slides along it as aa is dragged; an amber segment runs from the marker to where TT sends it, and it always arrives at the same amber point (1,0,1)(1, 0, 1). The violet point (0,0,1)(0, 0, 1) floats off the plane β€” a target TT cannot produce at all.

Explore the figure

  1. Look at the violet point first. It sits clear of the sheet, and since every output of TT lies in the sheet, no input whatsoever is sent there. That single missed target is enough to say TT is not onto.
  2. Drag aa from βˆ’2-2 to 22 and watch the two ends of the amber segment. The green marker travels a long way; the amber point it lands on does not move at all. Every input on the blue line has the same image.
  3. Stop at a=0a = 0. The input is (1,0,0)(1, 0, 0) and the output is (1,0,1)(1, 0, 1). Now stop at a=1a = 1: the input is (0,βˆ’1,1)(0, -1, 1), a genuinely different vector, and the output is (1,0,1)(1, 0, 1) again. Two different inputs, one output β€” TT is not one-to-one.
  4. Notice the blue line is not the amber line of the previous chapter but a parallel copy of it, shifted off the origin. Sliding along it changes the input by multiples of (βˆ’1,βˆ’1,1)(-1, -1, 1), and that is exactly the direction TT annihilates.

Both failures are one failure

Start with onto. The outputs of TT are precisely the vectors A𝐱A\mathbf{x}, which is precisely the column space β€” the same set section 2.4 called the reach. Here that is a plane, a two-dimensional slice of a three-dimensional target, so almost every vector of ℝ3\mathbb{R}^3 is missed. In general, TT is onto exactly when the column space is everything, which is exactly when rankA\operatorname{rank} A equals the number of rows.

Now one-to-one, which has a shortcut worth knowing. Suppose two inputs share an image: A𝐱1=A𝐱2A\mathbf{x}_1 = A\mathbf{x}_2. Subtracting and using linearity gives A(𝐱1βˆ’π±2)=0A(\mathbf{x}_1 - \mathbf{x}_2) = \mathbf{0}, so their difference lies in the null space. Run it backwards too: if 𝐧≠0\mathbf{n} \ne \mathbf{0} is in the null space then 𝐱\mathbf{x} and 𝐱+𝐧\mathbf{x} + \mathbf{n} are different inputs with the same image. So

T  is one-to-one ⟺ the null space is only  { 0 } ⟺ nullity A = 0 T \text{ is one-to-one} \iff \text{the null space is only } \{\mathbf{0}\} \iff \operatorname{nullity} A = 0

You never have to compare pairs of inputs; you only have to ask what gets sent to zero. Our AA has nullity 11, so it is not one-to-one, and the blue line in the figure is a picture of the failure: it is the set 𝐱0+null space\mathbf{x}_0 + \text{null space}, and every such shifted copy of the null space is a batch of inputs that TT cannot tell apart.

Here is the part that makes square matrices special. The rank theorem says rank+nullity=3\operatorname{rank} + \operatorname{nullity} = 3, the number of columns, and for a square matrix the number of rows is also 33. Onto wants rank 33; one-to-one wants nullity 00; and the theorem says those are the same condition. A square matrix is onto if and only if it is one-to-one β€” not because the two properties are similar, but because there is only one budget and both are asking for all of it.

00
One number, both failures βœ“ Computed Β· mojocas 0.1.0 βœ“ Agrees with the text One number, both failures, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.

The determinant of AA vanishes, and for a square matrix that single number decides both questions at once. A nonzero determinant would mean three independent columns, hence rank 33 and nullity 00, hence onto and one-to-one. Zero means rank at most 22, so something is missed and something is confused β€” which is what the violet point and the blue line respectively show you.

An original work of XYZ Homework, built around interactive XYZ 3D figures. Chapters 1–6 follow the topic sequence of Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL). Chapter 0's scope (its topics, their order, and the idea each figure shows) follows the Vectors chapter of Ximera's Linear Algebra: An Interactive Introduction. The prose, worked examples and figures were written for this book, which is not affiliated with or endorsed by the authors of either work. License: CC-BY-NC-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or any other accessibility standard. Every page is built against an automated accessibility gate, and our target for the published editions is WCAG 2.2 Level AA. If something is unusable, please tell us.