Exercise 1.2 · Q8: is bijective
Let and be sets. Show that such that is bijective function.
One-one: Let with . Then
Thus is one-one.
Onto: Let . Then and . Thus is onto.
Hence is bijective.
Want the reason behind every step, the basics and the checks?
The function simply swaps the two entries of an ordered pair. Everything follows from one fact: two ordered pairs are equal exactly when their first entries are equal and their second entries are equal. Using it, equal outputs force equal inputs (one-one), and any pair in comes from the pair in (onto). Swapping twice gets you back where you started, which is the intuition for why nothing is lost or missed.
- Given
- Arbitrary sets and , and the rule for every .
- To show
- is bijective: one-one and onto.
- Plan
- (1) Check that maps into . (2) One-one: assume and compare entries. (3) Onto: for an arbitrary element of , write down a preimage and check it. (4) Conclude, and note the inverse.
Basics you need
: first entry from , second from . Order matters, so and are usually different sets. For example, with , : but . Basics: sets, ordered pairs and A × B
if and only if and . This is the only tool the proof needs.
One-one: for all in the domain (Definition 5). Onto: every element of the codomain is of something in the domain (Definition 6). Basics: one-one and onto
Because and are arbitrary sets, we cannot list elements. We name arbitrary elements () and argue only from the definitions. Basics: proving and disproving
Solution
Check that maps into
Take any element of the domain; it has the form with and . Its image has first entry and second entry , so . Each input pair gives exactly one output pair, so is a function from to .
The domain and codomain are different sets, so it is worth confirming that the swapped pair lands in the right one. It does, precisely because the entries are swapped: what came from is now first, as requires.consists of pairs whose first entry is in and second entry is in (Basic 1). Basics: sets, ordered pairs and A × BOne-one: equal swapped pairs come from equal pairs
Let and be any two elements of with . Then
So equal images force equal inputs: is one-one.
The input of is a whole pair, so "" in the definition of one-one becomes "". We use the equality rule for ordered pairs twice: first to break the equal outputs into equal entries, then to reassemble those entries into equal inputs. The entries are the same; only their positions differ.if and only if and (Basic 2). One-one: equal images imply equal inputs (Definition 5).Onto: every pair in is a swapped pair
Take an arbitrary element of the codomain . It has the form with and . Choose the input . Since and , this input lies in the domain , and
So every element of is the image of some element of : is onto.
To prove onto we start from an arbitrary element of the codomain and produce a preimage. The natural guess is to swap back. We then confirm two things: the guess is in the domain (its first entry is in and its second entry is in ), and applying to it really gives the element we started with.Onto: for every in the codomain, find in the domain with , and check that lies in the domain (Definition 6). Basics: one-one and ontoConclude, and see it on a small example
is one-one (Step 2) and onto (Step 3), so is bijective.
For a concrete picture, take and . Then and each have elements, and pairs them off one to one:
The six outputs are all different (one-one), and they are all six elements of (onto).
The inverse is the swap in the other direction, , . Indeed and .
The general proof in Steps 2 and 3 covers every possible and , including infinite ones; the table is only an illustration. The remark about gives a second way to see the result: a function that has a two-sided inverse is a bijection (Section 1.4). Swapping is undone by swapping back.Bijective = one-one and onto (Definition 7); a function is invertible exactly when it is bijective. Lesson: invertible functions
is one-one, because gives and , so . It is onto, because any equals with . Hence is a bijective function from to , with inverse .
With and , list all 6 images of : , , , , , . That is 6 distinct pairs, equal to the whole of , which has elements ✓. Applying and then the swap back to, say, gives and then again ✓.
- Treating and as the same set. They are different unless (or one of them is empty); that is why the codomain must be .
- Proving the result with a single example. and are arbitrary, so the proof must use arbitrary elements. A table for particular sets only illustrates.
- Mixing up which entry belongs to which set. In the onto step, the preimage of is , with first.
- Forgetting that the inputs are pairs. One-one must conclude , not just one of the two entry equalities.
- Equality of ordered pairs (entry by entry) is the tool for any function whose inputs or outputs are pairs.
- When and are arbitrary sets, prove properties with arbitrary elements, using only definitions.
- A function that can be undone by another function (here, swapping back) is a bijection.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Cartesian product ; for finite sets | Steps 1, 4 | Class XI, Relations and Functions (Basics: sets, ordered pairs and A × B) |
| and | Step 2 | Definition of ordered pairs (Class XI) |
| Definitions of one-one, onto, bijective | Steps 2–4 | Definitions 5, 6, 7, Section 1.3 (Lesson: types of functions) |
| A function with a two-sided inverse is bijective | Step 4 remark | Definition 9 and Section 1.4 (Lesson: invertible functions) |
| The six-pair table | Step 4, Check | Brute-force recomputed in the site's verification script |
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 →