Exercise 1.2 · Q6: A function from {1, 2, 3} to {4, 5, 6, 7}
Let , and let be a function from to . Show that is one-one.
, , .
The distinct elements 1, 2, 3 have distinct images: , , . So .
Hence is one-one.
Want the reason behind every step, the basics and the checks?
Here the function is given as a list of ordered pairs: means , and so on. On a finite set, "one-one" can be checked completely by inspection: the domain has only three elements, so there are only three pairs of different inputs, and we can look at every one. The three images are all different, so no two inputs share an output, and is one-one.
- Given
- , , and .
- To show
- is one-one: distinct elements of have distinct images.
- Plan
- (1) Read off and confirm is a function from to . (2) List every pair of distinct inputs and compare their images. (3) Conclude. (4) As a side remark, see why is not onto, and why that does not matter here.
Basics you need
A function from to can be written as a set of pairs with , . The pair means . For this to be a function, every element of must appear as a first entry exactly once. Basics: what a function is
is the set of all ordered pairs with and . A function from to is a particular subset of . Basics: sets, ordered pairs and A × B
is one-one if the images of distinct elements are distinct: , or equivalently (Definition 5). Basics: one-one and onto
From 3 elements, the number of ways to choose 2 different ones (order not mattering) is . So there are exactly three pairs of distinct inputs to check. Basics: counting choices
Solution
Read off the function and check it is a function from to
Each ordered pair in says :
Each element of appears as a first entry exactly once, and every second entry belongs to . So really is a function from to , as the question says.
Before testing a property of a function, make sure you are reading it correctly. The first entry of each pair is the input and the second is the output. Checking that every input occurs exactly once confirms that gives each element of one and only one image; checking that the outputs lie in confirms that is a legitimate codomain.A function is a set of ordered pairs in which each element of the domain is a first entry exactly once (Basic 1). Basics: what a function isCompare the images of every pair of distinct inputs
There are only three pairs of different inputs (Basic 4). We check all of them:
Inputs Images Different? ✓ ✓ ✓ In every case, distinct inputs have distinct images.
The arrow diagram of . Each element of receives at most one arrow, which is exactly what one-one means. The element 7 receives none, so is not onto, but the question does not ask about onto. Definition 5 is a "for all" statement: every pair of distinct inputs must have distinct images. On an infinite domain we would need an algebraic argument. Here the domain is finite and tiny, so we can do something even more convincing: check every single pair. Because the list of pairs is complete, the check is a full proof, not just evidence.One-one: distinct elements of the domain have distinct images (Definition 5). Checking all cases of a finite list proves a "for all" statement about that list. Basics: proving and disprovingConclude
The three images are pairwise different, so no two elements of share an image. Hence is one-one.
A quick way to say the same thing: has 3 elements, and the set of images also has 3 elements. If two inputs had shared an image, there would be fewer than 3 distinct images.
The counting argument is a useful shortcut for finite sets: a function on a finite set is one-one exactly when the number of distinct images equals the number of elements in the domain. Both arguments say the same thing; the table makes every comparison visible.A side remark: is not onto, and that is fine
The element is not a second entry of any pair in , so no element of maps to 7. So is not onto, and therefore not bijective. The question only asks us to show one-one, and that is what we have proved.
In fact no function from to can be onto: three inputs can produce at most three distinct images, but has four elements.
This remark guards against a common confusion. "One-one" is about inputs not colliding; "onto" is about outputs not being missed. They are independent properties, and here one holds while the other fails. The textbook's Examples 13 and 14 show that for a function from a finite set to itself the two come together, but and here are different sets of different sizes, so that result does not apply.Onto: every element of the codomain is the image of some element of the domain (Definition 6). Basics: one-one and onto
, , . All three pairs of distinct inputs have distinct images (, , ), so is one-one, as required. (It is not onto, since has no preimage, but the question does not ask about that.)
Count: the domain has 3 elements and the set of images also has 3 elements, so no image is repeated ✓. For contrast, the set is also a function from to , but it has only 2 distinct images, because ; it is not one-one.
- Reading the pairs backwards. In the input is 1 and the output is 4, not the other way round.
- Thinking an unused element of spoils one-one. The element 7 having no arrow affects onto, not one-one.
- Checking only one pair of inputs. One-one is about every pair. On a finite set, check them all (here, three).
- Calling bijective. It is one-one but not onto, so it is not bijective.
- For a function given as ordered pairs, one-one means no second entry is repeated.
- On a finite domain, a "for all" property can be proved by checking every case.
- One-one and onto are separate questions; a function from a 3-element set to a 4-element set can be one-one but can never be onto.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| A function as a set of ordered pairs, each domain element a first entry once | Step 1 | Class XI; recalled at the start of Sections 1.1 and 1.3 |
| , , | Steps 1, 2 | Read off from the given pairs |
| Definition of one-one | Steps 2, 3 | Definition 5, Section 1.3 (Lesson: types of functions) |
| Definition of onto | Step 4 | Definition 6, Section 1.3 |
| pairs of distinct inputs | Step 2 | Counting choices |
| Finite set to itself: one-one ⇔ onto (not applicable here) | Step 4 remark | Examples 13, 14 and the Remark after them |
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 →