Consider \(f:\{1,2,3\}\to\{a,b,c\}\) given by \(f(1)=a\), \(f(2)=b\) and \(f(3)=c\). Find \(f^{-1}\) and show that \((f^{-1})^{-1}=f\).
Show solutionHide solution
Let \(A=\{1,2,3\}\) and \(B=\{a,b,c\}\). The function \(f:A\to B\) is given by
\[f(1)=a,\qquad f(2)=b,\qquad f(3)=c.\]Since each element of \(B\) is the image of exactly one element of \(A\), \(f\) is one-one and onto, hence invertible.
Finding \(f^{-1}\). The inverse function reverses the arrows: if \(f(x)=y\), then \(f^{-1}(y)=x\). Therefore
\[f^{-1}(a)=1,\qquad f^{-1}(b)=2,\qquad f^{-1}(c)=3.\]Thus \(f^{-1}:\{a,b,c\}\to\{1,2,3\}\) is given by
\[f^{-1}=\{(a,1),\,(b,2),\,(c,3)\}.\]Showing \((f^{-1})^{-1}=f\). Now apply the same rule to \(f^{-1}\). Since \(f^{-1}(a)=1\), \(f^{-1}(b)=2\), \(f^{-1}(c)=3\), reversing these gives
\[(f^{-1})^{-1}(1)=a,\qquad (f^{-1})^{-1}(2)=b,\qquad (f^{-1})^{-1}(3)=c.\]These are exactly the values defining \(f\). Hence, as ordered-pair sets,
\[(f^{-1})^{-1}=\{(1,a),\,(2,b),\,(3,c)\}=f.\]Therefore \((f^{-1})^{-1}=f\), as required.