📚 Linear Algebra, Interactive 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. T is onto when every vector of the target space is T(𝐱) for some input β€” nothing is missed. T 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:

A = ( 1 2 3 0 1 1 1 1 2 ) , T ( 𝐱 ) = A 𝐱

Its rank was 2 and its nullity 1, 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 thick green marker slides along it as a slider is dragged. From the green marker a dashed amber arrow always points 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)
The plane z=xβˆ’y is everything T can produce. The blue line is a whole line of inputs, and the green marker slides along it as a is dragged; the dashed amber arrow shows where T sends the marker, and it always arrives at the same amber point (1,0,1). The violet point (0,0,1) floats off the plane β€” a target T 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 T lies in the sheet, no input whatsoever is sent there. That single missed target is enough to say T is not onto.
  2. Drag a from βˆ’2 to 2 and watch the two ends of the dashed arrow. 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=0. The input is (1,0,0) and the output is (1,0,1). Now stop at a=1: the input is (0,βˆ’1,1), a genuinely different vector, and the output is (1,0,1) again. Two different inputs, one output β€” T 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), and that is exactly the direction T annihilates.

Both failures are one failure

Start with onto. The outputs of T are precisely the vectors A𝐱, 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 is missed. In general, T is onto exactly when the column space is everything, which is exactly when rankA equals the number of rows.

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

T  is one-to-one ⟺ the null space is only  { 0 } ⟺ nullity A = 0

You never have to compare pairs of inputs; you only have to ask what gets sent to zero. Our A has nullity 1, 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, and every such shifted copy of the null space is a batch of inputs that T cannot tell apart.

Here is the part that makes square matrices special. The rank theorem says rank+nullity=3, the number of columns, and for a square matrix the number of rows is also 3. Onto wants rank 3; one-to-one wants nullity 0; 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.

0
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 A vanishes, and for a square matrix that single number decides both questions at once. A nonzero determinant would mean three independent columns, hence rank 3 and nullity 0, hence onto and one-to-one. Zero means rank at most 2, 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. Its chapter sequence is aligned to Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL); this work is original, copies nothing from it, and is not affiliated with or endorsed by its authors. License: CC-BY-NC-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.