Jacobi elliptic sine (source code)

= Jacobi elliptic sine
{c}
{title2=$\operatorname{sn}(u,k)$}

Near zero, the Jacobi elliptic sine is the inverse of the <elliptic integral of the first kind>:
$$
u=\int_0^z\frac{dt}{\sqrt{(1-t^2)(1-k^2t^2)}},\qquad z=\operatorname{sn}(u,k).
$$
Choose both square roots with value one at zero. The inverse then has $\operatorname{sn}(0,k)=0$ and derivative one there. Differentiation yields
$$
(\partial_u\operatorname{sn})^2=(1-\operatorname{sn}^2)(1-k^2\operatorname{sn}^2).
$$
For nondegenerate modulus $k\notin\{0,1,-1\}$, continuation gives a meromorphic doubly periodic <elliptic function>.

The excluded limits are meaningful: $\operatorname{sn}(u,0)=\sin u$ and $\operatorname{sn}(u,1)=\tanh u$. Their inverse integrals and differential equations verify these identities. These elementary limiting functions are not doubly periodic elliptic functions, so the nondegeneracy qualification cannot be dropped.<NIST Digital Library of Mathematical Functions>[§22.5(ii), Tables22.5.3–22.5.4, limiting modulus values]{ref}

For real $0<k<1$, its periods are generated by $4K(k)$ and $2iK'(k)$, where $K'(k)=K(\sqrt{1-k^2})$. The limiting loss of a period is another way to understand degeneration to trigonometric or hyperbolic functions.