Suppose that $f:[0,1]\rightarrow [0,1]$ is a continuous function such that $f(f(x))=x$ for all $x\in [0,1]$.
We know f is one to one and onto. Morover, it has a fixed point.
If we assume further that $f$ is strictly decreasing, we conclude that $f(0)=1, f(1)=0$, do these conditions imply that $f(x)=1-x$ for all $x$?
I think the above information is not sufficient to claim that f is of this form. However, I was not able to construct another function satisfying the given properties, for example, by partitioning the domain into pairs $\{a,b\}$ where $f(a)=b$ and $f(b)=a$.
Please help. Thanks alot.
$x \mapsto 1-x$ is certainly not the only example. Another one is $$x \mapsto 1 - \sqrt{2x-x^2}$$