Letwhere and . Then the function is
- Option A: neither one-one nor onto.
- Option B: onto.
- Option C: both one-one and onto.
- Option D: one-one.
Solution
Core idea. A function built from moduli is written out on each part of its domain before it is tested.
Concept refresher. A function is one-one when
forces , and onto when its range is the whole of .
Picture the situation. For , , which is positive, so . At , and , so . For , and , so .
Approach. Write the function piece by piece, then test for repeated values and for missing values.
Step 1: Not one-one
Every in gives , so many inputs share one value and is not one-one.
Step 2: Not onto
The values are 0, and the numbers for , which fill . So the range is , which is not all of .
Answer. (A) neither one-one nor onto.
Sanity check. With : , and , so the largest value is 1, not 2.
Why the other options are wrong
- (B) It is not onto: values between and , and between and 0, are never taken.
- (C) It fails both tests: all positive inputs give 0, and the value is never taken.
- (D) It is not one-one, since every in gives the same value 0.
Key takeaway
The trap. A single point of the domain can carry a value that no other point has.
How toppers think. They sketch the three pieces to see the range at a glance.
Remember. Range of :