Find map $f : \mathbb{R} \rightarrow \mathbb{R}$ such that inverse image $f^{-1}(${$x$}$)$ has two elements for any $x\in \mathbb{R}$.
I'm really struggling to find an example so any hints or examples would be much appreciated.
Find map $f : \mathbb{R} \rightarrow \mathbb{R}$ such that inverse image $f^{-1}(${$x$}$)$ has two elements for any $x\in \mathbb{R}$.
I'm really struggling to find an example so any hints or examples would be much appreciated.
For every $n\in\Bbb Z$, map the interval $[n,n+1)$ to itself twice over, by:
$$f(x) = \begin{cases} n+2(x-n) & \text{if } x<n+\frac12 \\ n+2(x-n-\frac12) & \text{if }x\ge n+\frac12 \end{cases} $$