The function \(\mathrm{f}\) is defined by
\[\mathrm{f}:x\mapsto\frac{ax+k}{x-a},\quad x\in\mathbb{R},\ x\ne a\]
where \(a\) and \(k\) are constants.
Describe fully a sequence of transformations which transforms the curve \(y=\frac1x\) onto the curve \(y=\mathrm{f}(x)\).[4]
Find \(\mathrm{f}^{-1}(x)\).[2]
Hence, or otherwise, find \(\mathrm{f}^{2}(x)\).[1]
Find \(\mathrm{f}^{2023}(1)\) in terms of \(a\) and \(k\).[2]