Question
Check whether the function defined by is (a) one-one (injective) and (b) onto (surjective).
Solution — Step by Step
One-one (Injective): A function is one-one if distinct inputs give distinct outputs. Formally: for all domain.
Equivalently: if , then .
Onto (Surjective): A function is onto if every element of the codomain is the image of at least one element from . Formally: For every , there exists such that .
Take :
So either OR .
Since is possible (e.g., ), we can have with .
Counterexample: and . So two different inputs (2 and -2) give the same output (4).
Conclusion: is NOT one-one (not injective).
We need to check if every real number can be written as for some real .
Consider (a negative real number). Is there any such that ?
There is no real solution — the square of any real number is non-negative. So for all .
This means no negative number is in the range of . The range of is , but the codomain is (which includes negative numbers).
Since range codomain, the function is NOT onto.
Conclusion: is NOT onto (not surjective) as a function from to .
, :
- NOT one-one: Because (two distinct inputs map to the same output)
- NOT onto: Because negative real numbers (like ) have no pre-image in under
Therefore, is neither injective nor surjective as a function from to .
Why This Works
The issue with injectivity: is an even function — . Any even function that maps both positive and negative values in the domain will fail the one-one test because symmetric inputs give the same output.
The issue with surjectivity: the codomain is (all real numbers), but the function only produces non-negative values. The range is . A function is onto only when range = codomain.
Key insight: The same function with a DIFFERENT codomain can be onto. If we define , then IS onto (every non-negative number is a square of some real number).
Similarly, , is both one-one AND onto — it becomes a bijection.
Alternative Method — Graph Analysis
The horizontal line test:
-
One-one test: If any horizontal line crosses the graph more than once → not one-one.
-
The graph of (parabola) has a horizontal line at crossing at and → not one-one. ✓
-
Onto test: If there exists a horizontal line (for codomain) that doesn’t cross the graph → not onto.
-
For , the horizontal line is entirely below the parabola — no intersection → not onto. ✓
CBSE Class 12 and JEE Main both test this “check injectivity/surjectivity” question type. Always: (1) find a counterexample for “not one-one,” (2) find a value of with no -preimage for “not onto.” A concrete counterexample with specific numbers always earns full marks.
Common Mistake
Students sometimes say ” is one-one because ” — showing that two specific values give different outputs doesn’t prove one-one. One-one requires ALL pairs of distinct inputs to give distinct outputs. You only need ONE counterexample (like ) to disprove it. For proofs, find the counterexample; don’t just verify specific cases.