Let be defined as : and . Then the function is
- Option A: neither one-one nor onto.
- Option B: one-one but not onto.
- Option C: onto but not one-one.
- Option D: both one-one and onto.
Solution
Core idea. A modulus of a function is never negative, so it cannot be onto the real numbers.
Concept refresher. A function is one-one when
forces , and onto when its range is the whole of .
Picture the situation. For , , so . For , , so . Each piece is 0 at and increases without bound away from 0.
Approach. Write the composite piecewise, then look for a repeated value and a missing value.
Step 1: Not one-one
The value is taken at , where , and at , where . So the composite is not one-one.
Step 2: Not onto
Both pieces are non-negative, so the range is and negative numbers are never taken. So it is not onto .
Answer. (A) neither one-one nor onto.
Sanity check. A horizontal line at height 1 meets the graph twice, at and at .
Why the other options are wrong
- (B) It is not one-one: and both give the value 1.
- (C) It is not onto: the composite is a modulus, so it is never negative.
- (D) It fails both tests, since positive values repeat and negative values are missed.
Key takeaway
The trap. Two monotonic pieces with overlapping values make a function many-one.
How toppers think. They sketch the two pieces and use the horizontal-line test.
Remember. Range of is