Example 14: One-one on {1, 2, 3} forces onto
Show that a one-one function must be onto.
Since is one-one, are three different elements of .
So the range is a subset of with three elements, that is
Hence the range of is its codomain, so is onto.
Want the reason behind every step, the basics and the checks?
Three different things placed in three slots fill every slot. Because is one-one, the images are three different elements of the codomain. But the codomain has only three elements, so these three images must be all of them. Every element of the codomain is therefore an image, which is exactly what onto means. This is the converse of Example 13.
- Given
- A function that is one-one.
- To show
- is onto: each of 1, 2, 3 is the image of some input.
- Plan
- (1) Use one-one to show the three images are pairwise different. (2) Show that three different elements of must be all of . (3) Conclude that the range equals the codomain. (4) Confirm by listing all six one-one functions, and contrast with infinite sets.
Basics you need
Definition 5 says the images of distinct elements are distinct: if then . This is the contrapositive of , so the two forms say the same thing. Basics: one-one and onto
The range of on is . is onto exactly when this equals the codomain. Basics: what a function is
If and has 3 elements, then . (If left out some element, it would sit inside a 2-element set and could have at most 2 elements.) Basics: sets, ordered pairs and A × B
The number of ways to give three different images from is . Basics: counting choices
Solution
One-one makes the three images different
The inputs are pairwise distinct: , , . Since is one-one, distinct inputs have distinct images, so
So are three different elements of the codomain.
We use one-one in its "distinct inputs give distinct images" form, which is how Definition 5 first states it. Applying it to each of the three pairs of inputs gives all three inequalities. Nothing about which one-one function is was used, so this holds for every one-one on .The contrapositive of "" is "". A statement and its contrapositive are always equivalent. Basics: proving and disprovingThree different elements of are all of it
Let , the range of . Every image lies in the codomain, so . By Step 1, has exactly three elements.
Suppose some were missing from . Then would be contained in with removed, a set of only two elements, so would have at most two elements. That contradicts having three. So no element is missing:
This is the textbook's sentence "three elements of must be taken to 3 different elements of the co-domain", with the final counting step written out. The intuition is seating three people on three chairs with no two sharing a chair: no chair can be left empty.A subset of a finite set with the same number of elements as the set is the whole set. This is the step that fails for infinite sets (see Step 4).Conclude: is onto
Step 2 says the range of is the whole codomain . Equivalently, every equals for some . So is onto.
By the Remark after Definition 6, onto means range = codomain, which is exactly what Step 2 established. Since was an arbitrary one-one function, every one-one is onto. Combined with Example 13, such a function is one-one if and only if it is onto, and in that case it is bijective.is onto if and only if Range of = .Confirm by listing all one-one functions, and compare with
A one-one has 3 choices for , then 2 for (it must differ from ), then 1 for : functions. All six are drawn below, and in each one every output receives exactly one arrow, so each is onto.
The six one-one functions from to itself, labelled by their images . In every diagram each element on the right receives exactly one arrow: each one-one function is also onto. For an infinite set the conclusion can fail. In Example 8, from to is one-one, yet the range misses every odd number. Step 2 has no analogue there: a subset of can be "as large as" (infinite) without being all of .
Listing all six functions confirms the proof completely for this small set. The comparison with is the point of the textbook's Remark after this example: for every finite set , a function is one-one exactly when it is onto, and this "characteristic difference between a finite and an infinite set" is why Examples 8 and 10 exist.For a finite set with elements, a one-one has different images in an -element set, so by the same counting it is onto. Basics: counting choices
Because is one-one, are three different elements of ; a 3-element subset of a 3-element set is the whole set, so the range is and is onto. There are exactly 6 such functions, and all 6 are bijections.
Go through all functions from to itself: exactly 6 are one-one, and every one of those 6 has range . Take one of them, : the images are different, and together they are . ✓ Now break one-one, say instead: the images give range , and 2 is missed.
- Stopping at "the images are different". That is one-one restated. The proof needs the second step: three different elements inside a three-element set fill it.
- Proving it for one example. Showing that is onto does not cover the other five one-one functions. The argument must use an arbitrary one-one .
- Applying the result to infinite sets. On , one-one does not imply onto (Example 8).
- Using sets of different sizes. A one-one is never onto: two images cannot fill three slots. The argument needs domain and codomain of the same finite size.
- On a finite set , for : one-one onto bijective. Proving either property proves both.
- The finite case rests on counting: different images in an -element set must be all of it.
- On infinite sets the two properties are independent: Example 8 is one-one but not onto, Example 10 is onto but not one-one.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| One-one: images of distinct elements are distinct | Step 1 | Definition 5, Section 1.3 (Lesson: types of functions) |
| Statement contrapositive | Step 1 | Logic |
| A 3-element subset of a 3-element set is the whole set | Step 2 | Counting elements of finite sets |
| Onto range = codomain | Step 3 | Definition 6 and the Remark after it, Section 1.3 |
| 6 one-one functions on , out of 27 | Step 4 | Multiplication principle (Lesson: counting functions and relations) |
| Finite : one-one onto; false for infinite sets | Step 4 | Remark after Example 14, Section 1.3 |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →