I am wondering what is the class of functions $f: \mathbb{R}\rightarrow\mathbb{R}$ such that $f(f(x))=f(x)$?
I think it should be:
- Constant Value functions
- the identity function
- absolute value function $|x|$
But I don't know if this is right or how to show it rigorously.
Any suggestions?
Assuming $f^{-1}$ exists, $$f(f(x))=f(x)\\ \implies f^{-1}(f(f(x)))=f^{-1}(f(x))\\ \implies \boxed{f(x)=x}$$ This is the identity function, or, the inclusion map acting on $\mathbb{R}^1$.