Q.Show that , given by is both one-one and onto.
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →The function swaps each odd number with the next even number and vice versa, pairing into disjoint couples . This pairing is a bijection: it is injective because no two inputs map to the same output, and surjective because every natural number appears exactly once as an output.
Why a Bijection Proof Works
The key insight is that simply exchanges each odd number with the even number immediately after it.
- If is odd, (the next even number).
- If is even, (the previous odd number).
So the function pairs up numbers like , , , … and within each pair, the two numbers swap places. This is a perfect matching — every natural number belongs to exactly one such pair, and the function just swaps the two members.
A function that is a bijection must be both one-one (injective) and onto (surjective). We’ll prove each separately.
Step-by-Step Proof
1. Proving is one-one (injective)
We need to show: if , then .
Consider two natural numbers and . Each is either odd or even. There are four cases to check.
Case 1: Both and are odd.
Then and .
If , then .
Case 2: Both and are even.
Then and .
If , then .
Case 3: is odd, is even.
Then (which is even) and (which is odd).
An even number can never equal an odd number, so . This case cannot happen if .
Case 4: is even, is odd.
Symmetric to Case 3 — is odd, is even, so they cannot be equal.
Thus the only way is when both inputs have the same parity, and then equality forces . Hence is injective.
A common mistake is to forget that an odd output and an even output can never be equal. Always check parity when dealing with piecewise functions like this.
2. Proving is onto (surjective)
We need to show: for every , there exists some such that .
Take any natural number . We consider two cases based on whether is odd or even.
Case 1: is odd.
Since is odd, is even. Let . …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.