If $f$ is continuous from $ [0,1]$ to itself and $f(0)=0$, $f(1)=1$ and $f(f(x))=x$ then show that $f(x)=x$ for every $ x $ in the domain of function.
I'd like to prove this statement, my idea goes like below:
Suppose that the converse of the statement holds. then without loss of generality, assume that there exists some $c$ in $[0,1]$ such that $d=f(c)>c$. By symmetry, $f(d)=f(f(c))<f(c)=d$. And $f$ is bijective because $f$ has an inverse function in this domain. So $f$ should be strictly increasing function. But on $[c,d]$, $f$ is decreasing. This is a contradiction.
So it should be that $f(x)=x$ on $[0,1]$.
Is this argument right? And I'd like to know another argument which prove this statement. Thank you for your answer in advance :)
Partial solution(Not a solid proof, rather a thought):
$f(f(x))=x$ implies that $f$ is the inverse of itself i.e. its symmetrical about $y=x$.
And as it has a inverse it must be bijective i.e. one-one and onto.
As $f(0)=0$ and $f(1)=1$ and it's continuous on $[0,1]$.
$y=x$, which is your proof