I'm looking for any ideas as to a function which maps $\mathbb{R} \to (-\infty, 0]$.
I considered $-|x|$ but realised that is not injective.
I'm looking for any ideas as to a function which maps $\mathbb{R} \to (-\infty, 0]$.
I considered $-|x|$ but realised that is not injective.
The exponential function $e^x$ maps $\mathbb{R}$ injectively into $(0, \infty)$. Can you adjust this function in some way?
Also very handy for such kind of questions is the function $x\mapsto\arctan x$. It maps $\mathbf R$ injectively into the open interval $(-\frac\pi2,\frac\pi2)$. Left composing with $x\mapsto ax+b$, for some real numbers $a$ and $b$ with $a\neq0$, allows you to map $\mathbf R$ injectively into whatever small subset of $\mathbf R$ that contains an open interval!