Let $f:\mathbb{R} \to \mathbb{R}$ be a function. Determine whether or not f is injective and surjective where $f(x)=|x|$
So if i'm right, it is not injective and it is not surjective. For a proof, i'll do a counter example:
injective counter example: let $x=-1$ and $x=1,$ you will get $y=1$ meaning two x is mapped to one in the codomain.
surjective counter example: there is no $x$ which lets you obtain $y=-1$
anyone can verify?