\[\operatorname{am}\left(x,k\right)=x-k^{2}\frac{x^{3}}{3!}+k^{2}\left(4+k^{2}%
\right)\frac{x^{5}}{5!}+O\left(x^{7}\right).\]