Let
\(t_0\) be an element of
\(T\text{,}\) and let
\(s_0=g(t_0)\text{.}\) Applying
\(f\) to both sides of the last equation, we have
\(f(s_0)=f(g(t_0))\text{.}\) Because
\(f\of
g=\One_T\text{,}\) the last expression simplifies to
\(\One_T(t_0)=t_0\text{.}\) This shows that the preimage of
\(t_0\) under
\(f\) has at least one element, namely
\(s_0\text{.}\) Because
\(t_0\) was an arbitrary choice, we conclude that every element in
\(T\) has at least one element in its preimage under
\(f\text{.}\) Therefore
\(f\) is surjective.