Show that the modulus function f : R → R, given by f (x) = | x |, is neither one-one nor onto, where |x| is x, if x is positive or 0 and | x | is —x, if. x negative.
f : R → R is given by f (x) = | x |
Different elements in R can have the same image
[∵ f (–1) = |–1| = 1, f(1) = |1| = 1]
∵ f is not one-one.
Also, Rf = set of non-negative reals ≠ R
∵ f is not onto.