Solution (source code)

= Solution

Assume $T\eta=\eta T$, and let $(A,a)$ be an <algebra for a monad>. Its unit identity gives $a\eta_A=1_A$. <Naturality> of $\eta$ at $a:TA\to A$, followed by the assumed equality, gives
$$
\eta_Aa=Ta\,\eta_{TA}=Ta\,T\eta_A=T(a\eta_A)=1_{TA}.
$$
Thus \b[every algebra action is invertible], with its inverse prescribed by the unit:
$$
\boxed{a^{-1}=\eta_A.}
$$