Skip to content
Worked Examples · Example 11

Q.Show that the function f:R→Rf: \mathbb{R} \to \mathbb{R}, defined as f(x)=x2f(x) = x^2, is neither one-one nor onto.

Odisha ChseTextbookSubjective· 3mImportance★★★★★est
38% · 39/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 →
Figure 1.4
Figure 1.4

The function f(x)=x2f(x) = x^2 fails to be one-one because two different inputs (like xx and −x-x) give the same output, and it fails to be onto because negative numbers in the codomain R\mathbb{R} have no preimage in the domain.

Why this approach works

The question asks us to check two properties: injectivity (one-one) and surjectivity (onto). For a function to be one-one, each output must come from exactly one input. For it to be onto, every possible output in the codomain must actually be produced by some input. The square function is the classic counterexample for both — it's symmetric (so not one-one) and never negative (so not onto). Let's verify each property step by step.


1. Checking one-one (injectivity)

A function f:A→Bf: A \to B is one-one if f(x1)=f(x2)f(x_1) = f(x_2) implies x1=x2x_1 = x_2 for all x1,x2x_1, x_2 in the domain.

Take x1=2x_1 = 2 and x2=−2x_2 = -2. Then:

f(2)=22=4,f(−2)=(−2)2=4f(2) = 2^2 = 4, \quad f(-2) = (-2)^2 = 4

So f(2)=f(−2)f(2) = f(-2) but 2≠−22 \neq -2. This directly violates the definition.

Watch out

A common mistake is to think that x2=y2x^2 = y^2 implies x=yx = y. It actually implies x=±yx = \pm y, so the function is not one-one unless the domain is restricted to non-negative numbers.

Thus ff is not one-one.


2. Checking onto (surjectivity)

A function f:A→Bf: A \to B is onto if for every y∈By \in B, there exists some x∈Ax \in A such that f(x)=yf(x) = y.

Here the codomain is R\mathbb{R}, the set of all real numbers. But f(x)=x2f(x) = x^2 is always non-negative:

x2≥0for all x∈Rx^2 \geq 0 \quad \text{for all } x \in \mathbb{R}

So any negative number, say y=−1y = -1, has no preimage. There is no real xx such that x2=−1x^2 = -1. …

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.