Let C be the set of complex numbers. Prove that the mapping f:C→R given by f(z)=|z|, ∀z∈C, is neither one-one nor onto.
The mapping f:C→R is given byf(z)=|z|,∀z∈C
Now, f(1)=|1|=1f(−1)=|−1|=1f(1)=f(−1)
Clearly, f is not one-one.
Also, f(z) is not onto as there is no pre-image for any negative element of R under the mapping f(z).