Skip to content
Worked Examples · Example 9

Q.Prove that the function f:R→Rf: \mathbb{R} \to \mathbb{R}, given by f(x)=2xf(x) = 2x, is one-one and onto.

Puducherry CbseNCERTSubjective· 3mImportance★★★★★
36% · 37/104 Questions
✓ Free question
Figure 1.3
Figure 1.3

A function is one-one if each output comes from exactly one input, and onto if every real number is an output. For f(x)=2xf(x)=2x, we prove one-one by showing f(a)=f(b)⇒a=bf(a)=f(b) \Rightarrow a=b, and onto by showing for any y∈Ry \in \mathbb{R}, there exists x=y/2x = y/2 such that f(x)=yf(x)=y. Hence ff is both one-one and onto (bijective).

The idea is simple: a function is a rule that pairs inputs with outputs. "One-one" (injective) means no two different inputs share the same output — think of it as each output having a unique "parent". "Onto" (surjective) means every possible output in the codomain actually gets used — nothing is left out. For f(x)=2xf(x)=2x, the rule is just doubling. Doubling is reversible: if you know the output, you can always halve it to get back the input. That reversibility is the heart of both properties.

Let's walk through the proof step by step.

  1. Proving one-one (injective)

    We need to show: if f(a)=f(b)f(a) = f(b), then a=ba = b.

    Assume f(a)=f(b)f(a) = f(b). That means 2a=2b2a = 2b.

    Divide both sides by 2 (which is allowed since 2≠02 \neq 0), and we get a=ba = b.

    That's it — the implication holds for any a,b∈Ra, b \in \mathbb{R}. So ff is one-one.

    Tip

    The key move is that multiplying by 2 is an invertible operation. If the function were f(x)=x2f(x)=x^2, we couldn't divide both sides so cleanly because a2=b2a^2=b^2 doesn't force a=ba=b (e.g., a=2,b=−2a=2, b=-2). The linearity and non-zero coefficient make this trivial.

  2. Proving onto (surjective)

    We need to show: for every y∈Ry \in \mathbb{R} (the codomain), there exists some x∈Rx \in \mathbb{R} (the domain) such that f(x)=yf(x) = y.

    Given any real number yy, we want 2x=y2x = y. Solve for xx: x=y/2x = y/2.

    Since yy is real, y/2y/2 is also real — so xx lies in the domain R\mathbb{R}.

    Check: f(x)=2⋅(y/2)=yf(x) = 2 \cdot (y/2) = y. So for every yy, we've found a pre-image x=y/2x = y/2. Hence ff is onto.

    Watch out

    A common mistake is to think "onto" means the function covers all outputs it can produce — but that's not the definition. Onto means every element of the codomain (here R\mathbb{R}) is hit, not just the range. For f(x)=2xf(x)=2x, the range is indeed all of R\mathbb{R}, so it's onto. But for f(x)=x2f(x)=x^2 with codomain R\mathbb{R}, negative numbers are never outputs — so it's not onto.

  3. Conclusion

    Since ff is both one-one and onto, it is a bijection. The function f(x)=2xf(x)=2x is a simple linear map with slope 2 and intercept 0 — it's a straight line through the origin. Every horizontal line y=cy=c cuts the graph exactly once (one-one), and every horizontal line does cut it (onto). That geometric intuition matches the algebraic proof.

✓Final answer

The function f(x)=2xf(x)=2x is both one-one and onto, i.e., it is a bijection from R\mathbb{R} to R\mathbb{R}.

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.