Q.Show that the function , given by , is one-one but not onto.
A function is one-one (injective) if different inputs always give different outputs. Here, maps each natural number to a distinct even number, so it is one-one. It is not onto (surjective) because odd natural numbers like have no preimage — the range is only the even numbers, not all of .
The core idea is simple: we need to check two properties of the function defined by .
One-one (injective) means: if , then . In other words, no two different inputs produce the same output.
Onto (surjective) means: every element in the codomain must be the image of some input. That is, for every , there exists some such that .
Let’s test both.
-
Proving is one-one.
Suppose for some .
Then . Dividing both sides by (which is valid in ), we get .
So the condition holds: equal outputs force equal inputs. Hence is injective.
TipThe key here is that multiplication by is a strictly increasing operation on . If , then automatically. So one-oneness is immediate from the monotonicity.
-
Proving is NOT onto.
The codomain is .
The range of is — all even natural numbers.
Consider . Is there any such that ?
Solving gives , which is not a natural number.
So has no preimage. Similarly, every odd number () is missing from the range.
Since there exists at least one element in (in fact, infinitely many) that is not the image of any input, is not onto.
Watch outA common mistake is to think "onto" means the function covers all numbers it can produce. But onto is about covering the entire codomain, not just the range. Here the codomain is all naturals, but the range is only evens — so it fails.
-
Visualising the result.
Think of as two interleaved sets: odds and evens.
sends every natural to an even number, but never to an odd.
So the evens get "hit" exactly once each (one-one), but the odds are completely untouched (not onto).
Input Output 1 2 2 4 3 6 4 8 5 10 … … Notice: never appear in the output column.
The function is one-one but not onto, because different inputs give different outputs, but odd natural numbers have no preimage.
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.