Recently on this answer to one of my questions user farruhota replied that
Alternatively, note the property of inverse function: $$f(f^{-1}(x))=f^{-1}(f(x))=x$$ Hence: $$f(f(x))=x \iff f(x)=f^{-1}(x)$$
How is $f(f(x))=x \iff f(x)=f^{-1}(x)$ derived from the equation $f(f^{-1}(x))=f^{-1}(f(x))=x$?
Is this "$f(f^{-1}(x))=f^{-1}(f(x))=x$" thing only valid when the function is $f(f(x))=x$?
Thanks,
Max0815
Suppose $f: X \to X$ has an inverse $f^{-1}: X \to X$ (in particular, $f$ is a bijection)
If $f(f(x)) = x$, apply $f^{-1}$ to get $f(x) = f^{-1}(x)$.
If $f(x) = f^{-1}(x)$ apply $f$ to get $f(f(x)) = x$. Very simple.