Skip to content
Worked Examples · Example 13

Q.Show that an onto function f:{1,2,3}→{1,2,3}f: \{1, 2, 3\} \to \{1, 2, 3\} is always one-one.

Tripura TbseTextbookSubjective· 3mImportance★★★★★est
39% · 41/104 Questions
🔒 Locked · start free trial →

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 →

An onto function from a finite set to itself must be one-one because the domain and codomain have the same size — if it’s onto, every element in the codomain is used exactly once, leaving no room for two domain elements to map to the same output.

Why This Works — The Intuition

Think of a function as a matching between two sets of three labelled balls. If the function is onto (surjective), every ball in the codomain {1,2,3}\{1,2,3\} gets hit at least once. Since the domain also has exactly three balls, the only way to cover all three targets is to hit each one exactly once. If any target were hit twice, some other target would be left untouched — violating onto-ness. That “exactly once” property is precisely what it means to be one-one (injective).

This is a special case of a general fact: for finite sets of equal size, onto ⇔ one‑one. The proof below makes this precise.


Step‑by‑Step Proof

1. State what we know.

We have f:A→Af: A \to A where A={1,2,3}A = \{1,2,3\}.

  • ff is onto: for every y∈Ay \in A, there exists some x∈Ax \in A with f(x)=yf(x) = y.
  • ∣A∣=3|A| = 3 (the size of the set).

2. Count the images.

Because ff is onto, the image set f(A)f(A) must be the whole codomain AA. So ∣f(A)∣=3|f(A)| = 3.

3. Relate domain size to image size.

For any function from a finite set XX to a set YY, the number of elements in the image cannot exceed the number of elements in the domain:

∣f(X)∣≤∣X∣.|f(X)| \le |X|.

Here ∣f(A)∣=3|f(A)| = 3 and ∣A∣=3|A| = 3, so the inequality is actually an equality: ∣f(A)∣=∣A∣|f(A)| = |A|.

4. Interpret the equality.

The only way a function from a finite set to itself can have ∣f(A)∣=∣A∣|f(A)| = |A| is if no two domain elements map to the same codomain element. Why?

  • Suppose two different elements x1≠x2x_1 \neq x_2 in AA satisfy f(x1)=f(x2)f(x_1) = f(x_2). Then the image set would have at most ∣A∣−1|A|-1 distinct values, because one output is “shared”.
  • Since we already know the image has exactly 33 distinct values, sharing cannot happen. Hence ff is one‑one. …

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.