Given $f:R \rightarrow R$ defined by $f(x)= |x| = x$ if $x \geq 0$ and $-x$ if $x <0$:
We see that $f(-1)= |-1| = -1$, as $-1 <0$ and $f(1) = |1| = 1$ as $1 \geq 0$.
$\Rightarrow f(-1) = f(1) \rightarrow -1 \neq 1$.
Therefore, $f$ is not one-one.
Given $-1 \in R$ for $f$ to be onto, there must exist an element $x$ in R such that $f(x)=|x|=-1$
However, we know that $f(x) = |x|$ is always non-negative.
Therefore, there cannot be any element $x \in R$ such that $f(x) = |x| = -1$.
Hence $f$ is not onto.
Solution: The modulus function $f$ is neither one-one nor onto