Let $f:\mathbb{R}\to\mathbb{R}$ be defined as $f(x)=|x|$. How to prove that $f$ is not surjective?
I need some help with this exercise.
Suppose $f$ is surjective. Be $a\in\mathbb{R}$ , $\exists\;b\in\mathbb{R} $ such that $f(b)=a$, well. i consider two cases.
Case 1: $b>0$, then $f(b)=b=a$
Case 2: $b<0$, then $f(b)=-b=a\Rightarrow b=-a$ Okay, in this case i have a problem because i didnt see the contradiction, can someone help me?