Skip to content
Worked Examples · Example 8

Q.Show that the function f:N→Nf: \mathbb{N} \to \mathbb{N}, given by f(x)=2xf(x) = 2x, is one-one but not onto.

Puducherry CbseNCERTSubjective· 3mImportance★★★★★
35% · 36/104 Questions
✓ Free question

A function is one-one (injective) if different inputs always give different outputs. Here, f(x)=2xf(x)=2x maps each natural number to a distinct even number, so it is one-one. It is not onto (surjective) because odd natural numbers like 11 have no preimage — the range is only the even numbers, not all of N\mathbb{N}.


The core idea is simple: we need to check two properties of the function f:N→Nf: \mathbb{N} \to \mathbb{N} defined by f(x)=2xf(x) = 2x.

One-one (injective) means: if f(a)=f(b)f(a) = f(b), then a=ba = b. In other words, no two different inputs produce the same output.

Onto (surjective) means: every element in the codomain N\mathbb{N} must be the image of some input. That is, for every y∈Ny \in \mathbb{N}, there exists some x∈Nx \in \mathbb{N} such that f(x)=yf(x) = y.

Let’s test both.


  1. Proving ff is one-one.

    Suppose f(a)=f(b)f(a) = f(b) for some a,b∈Na, b \in \mathbb{N}.

    Then 2a=2b2a = 2b. Dividing both sides by 22 (which is valid in N\mathbb{N}), we get a=ba = b.

    So the condition holds: equal outputs force equal inputs. Hence ff is injective.

    Tip

    The key here is that multiplication by 22 is a strictly increasing operation on N\mathbb{N}. If a≠ba \neq b, then 2a≠2b2a \neq 2b automatically. So one-oneness is immediate from the monotonicity.

  2. Proving ff is NOT onto.

    The codomain is N={1,2,3,4,5,… }\mathbb{N} = \{1, 2, 3, 4, 5, \dots\}.

    The range of ff is {2,4,6,8,… }\{2, 4, 6, 8, \dots\} — all even natural numbers.

    Consider y=1y = 1. Is there any x∈Nx \in \mathbb{N} such that 2x=12x = 1?

    Solving gives x=12x = \frac{1}{2}, which is not a natural number.

    So 11 has no preimage. Similarly, every odd number (3,5,7,…3, 5, 7, \dots) is missing from the range.

    Since there exists at least one element in N\mathbb{N} (in fact, infinitely many) that is not the image of any input, ff is not onto.

    Watch out

    A 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.

  3. Visualising the result.

    Think of N\mathbb{N} as two interleaved sets: odds and evens.

    ff 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 xxOutput f(x)=2xf(x)=2x
    12
    24
    36
    48
    510
    ……

    Notice: 1,3,5,7,…1, 3, 5, 7, \dots never appear in the output column.


✓Final answer

The function f(x)=2xf(x)=2x 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.