Skip to content
Question of 104

Q.Consider the function f(x) = {x, x ≤ 2; x − 1, x > 2} defined on set of natural numbers ℕ. Check whether f(x) is one-one and onto.

Kerala DhseKerala DHSE Plus Two Board 2026Subjective· 3mImportance★★★★★
0% · 0/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 →

Compute a few values to spot a repeated output (kills one-one), then show every natural number in the codomain is hit by some input (confirms onto).

f:N→Nf:\mathbb N\to\mathbb N, f(x)={x,x≤2x−1,x>2f(x)=\begin{cases}x, & x\le 2\\x-1, & x>2\end{cases}.

Compute the first several values: f(1)=1f(1)=1, f(2)=2f(2)=2, f(3)=3−1=2f(3)=3-1=2, f(4)=4−1=3f(4)=4-1=3, f(5)=5−1=4,…f(5)=5-1=4,\ldots

One-one (injective)? We see f(2)=2f(2)=2 and f(3)=2f(3)=2, i.e. f(2)=f(3)f(2)=f(3) even though 2≠32\ne3. Two different inputs give the same output, so f is NOT one-one.

Onto (surjective)? We need every m∈Nm\in\mathbb N (the codomain) to be f(x)f(x) for some x∈Nx\in\mathbb N.

  • m=1m=1: f(1)=1f(1)=1. ✓
  • m=2m=2: f(2)=2f(2)=2. ✓ …

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.