2. If $\displaystyle f(x)=y$ then $\displaystyle f^{-1}(y)=x$.
Then $\displaystyle f(x)=f(f^{-1}(y))=y$.