Finite sets play fair
For f : X → X on a finite set, one-one ⇔ onto.
Same set on both sides
f : {1, 2, 3} → {1, 2, 3}.
Can f be one-one but not onto?
What this lesson covers
The idea
For a finite set X, a function f : X → X is one-one if and only if it is onto; for an infinite set this need not be true (e.g. f(x) = 2x on N is one-one but not onto).
Same set on both sides
f : {1, 2, 3} → {1, 2, 3}.
Can f be one-one but not onto?
- Yes
- No
One-one, and then?
Make f one-one, and watch the onto badge.
Finite versus infinite
For a finite set X, a function f : X → X is one-one if and only if it is onto.
Three different images in a three-element set fill it, so one-one forces onto. Hitting all three with three arrows means no two meet, so onto forces one-one.
This is a characteristic difference between finite and infinite sets: f : N → N, f(x) = 2x is one-one but not onto.
Notes
Finite X: f : X → X is one-one ⇔ onto. Infinite sets: not so; f(x) = 2x on N is one-one but not onto.
Check yourself
f : {1, 2, 3, 4} → {1, 2, 3, 4} is onto. Then f is
f : N → N with f(1) = f(2) = 1 and f(x) = x − 1 for x > 2. Which is true?
Which example shows that one-one need not mean onto?
- also one-one — correct. Yes. On a finite set, onto forces one-one.
- not one-one. Four arrows hitting all four elements cannot have two landing together.
- maybe one-one. There is no maybe: on a finite set X → X, onto ⇔ one-one.
- One-one and onto. f(1) = f(2) = 1, so it is not one-one.
- Impossible, as onto means one-one. That holds only for finite sets. N is infinite.
- Onto but not one-one — correct. Right. Every n is f(n + 1), but f(1) = f(2). On the infinite set N, onto does not force one-one.
- f : N → N, f(x) = 2x — correct. Yes. It is one-one, but odd numbers are never hit.
- f : {1, 2, 3} → {1, 2, 3}, a one-one map. On a finite set, one-one always means onto.