This page will document useful transformations of elliptic functions and relations among them, along with their derivations. These can be applied to simplifications of analytic formulae or numerical evaluations.

Inverse Jacobi Elliptic Functions

Integrable Cases and Addition Formulae

Transformations of Jacobi Elliptic Functions

Jacobi Elliptic Functions of Fixed Period

Quasi-Period of the Complex Jacobi Amplitude Function

Basic derivatives of Jacobi elliptic functions and relations among them:

$\begin{array}{l}\frac{d}{du}snu=cnudnu\\ \frac{d}{du}cnu=-snudnu\\ \frac{d}{du}dnu=-msnucnu\end{array}\phantom{\rule{3em}{0ex}}\begin{array}{r}{sn}^{2}u+{cn}^{2}u=1\\ {dn}^{2}u+m{sn}^{2}u=1\end{array}$

It is well known that the incomplete elliptic integral of the first kind is inverted by the Jacobi sine function. This is demonstrated by rewriting the derivative of that function with the relations:

$\begin{array}{c}\frac{d}{du}snu=\sqrt{1-{sn}^{2}u}\sqrt{1-m{sn}^{2}u}\\ x=snu\phantom{\rule{1em}{0ex}}\to \phantom{\rule{1em}{0ex}}u=\int \frac{dx}{\sqrt{(1-{x}^{2})(1-m{x}^{2})}}\end{array}$

Since the result of the integral is the argument of the elliptic function, it and the elliptic function are inverses of each other. This provides an integral representation of the inverse Jacobi sine function:

${sn}^{-1}\left(x\right|m)=\underset{0}{\overset{x}{\int}}\frac{dx}{\sqrt{(1-{x}^{2})(1-m{x}^{2})}}$

The same process can be carried out for the remaining eleven Jacobi elliptic functions, giving an integral representation of each. Limits of integration are chosen to keep the functions real for suitable choices of argument.

${cn}^{-1}\left(x\right|m)=\underset{x}{\overset{1}{\int}}\frac{dx}{\sqrt{(1-{x}^{2})(1-m+m{x}^{2})}}$

${dn}^{-1}\left(x\right|m)=\underset{x}{\overset{1}{\int}}\frac{dx}{\sqrt{(1-{x}^{2})(m-1+{x}^{2})}}$

${ns}^{-1}\left(x\right|m)=\underset{x}{\overset{\infty}{\int}}\frac{dx}{\sqrt{({x}^{2}-1)({x}^{2}-m)}}$

${nc}^{-1}\left(x\right|m)=\underset{1}{\overset{x}{\int}}\frac{dx}{\sqrt{({x}^{2}-1)[m+(1-m\left){x}^{2}\right]}}$

${nd}^{-1}\left(x\right|m)=\underset{1}{\overset{x}{\int}}\frac{dx}{\sqrt{({x}^{2}-1)[1+(m-1\left){x}^{2}\right]}}$

${sc}^{-1}\left(x\right|m)=\underset{0}{\overset{x}{\int}}\frac{dx}{\sqrt{(1+{x}^{2})[1+(1-m\left){x}^{2}\right]}}$

${sd}^{-1}\left(x\right|m)=\underset{0}{\overset{x}{\int}}\frac{dx}{\sqrt{(1+m{x}^{2})[1+(m-1\left){x}^{2}\right]}}$

${cs}^{-1}\left(x\right|m)=\underset{x}{\overset{\infty}{\int}}\frac{dx}{\sqrt{(1+{x}^{2})(1-m+{x}^{2})}}$

${cd}^{-1}\left(x\right|m)=\underset{x}{\overset{1}{\int}}\frac{dx}{\sqrt{(1-{x}^{2})(1-m{x}^{2})}}$

${ds}^{-1}\left(x\right|m)=\underset{x}{\overset{\infty}{\int}}\frac{dx}{\sqrt{(m+{x}^{2})(m-1+{x}^{2})}}$

${dc}^{-1}\left(x\right|m)=\underset{1}{\overset{x}{\int}}\frac{dx}{\sqrt{({x}^{2}-1)({x}^{2}-m)}}$

It is rather remarkable that all of these inverse functions have similar integral forms, all of which are incomplete elliptical integrals of the first kind or their complex continuations.

Consider cases for which the differential equation

$\frac{dx}{\sqrt{f\left(x\right)}}=\frac{dy}{\sqrt{f\left(y\right)}}$

is readily integrable, leading to an addition formula for functions inverting an integral. Start with a solution of the form

$g(x,y)[x\sqrt{f\left(y\right)}-y\sqrt{f\left(x\right)}]$

and form its differential:

$\begin{array}{l}g[\sqrt{f\left(y\right)}dx-\sqrt{f\left(x\right)}dy+\frac{x{f}^{\prime}\left(y\right)}{2\sqrt{f\left(y\right)}}dy-\frac{y{f}^{\prime}\left(x\right)}{2\sqrt{f\left(x\right)}}dx]\\ \phantom{\rule{4em}{0ex}}+[x\sqrt{f\left(y\right)}-y\sqrt{f\left(x\right)}][{g}_{x}dx+{g}_{y}dy]\\ \phantom{\rule{2em}{0ex}}=g\sqrt{f\left(x\right)f\left(y\right)}[\frac{dx}{\sqrt{f\left(x\right)}}-\frac{dy}{\sqrt{f\left(y\right)}}]\\ \phantom{\rule{4em}{0ex}}+\frac{dx}{\sqrt{f\left(x\right)}}[{g}_{x}x\sqrt{f\left(x\right)f\left(y\right)}-{g}_{x}yf\left(x\right)-\frac{y}{2}g{f}^{\prime}\left(x\right)]\\ \phantom{\rule{4em}{0ex}}-\frac{dy}{\sqrt{f\left(y\right)}}[{g}_{y}y\sqrt{f\left(x\right)f\left(y\right)}-{g}_{y}xf\left(y\right)-\frac{x}{2}g{f}^{\prime}\left(y\right)]\end{array}$

The first bracketed term is zero by construction. The first term in each of the two other brackets can be made equal by choosing the overall function multiplier to have the dependence

$g(x,y)=g\left(xy\right)$

under which the differential becomes

$\begin{array}{l}[g+{g}^{\prime}xy]\sqrt{f\left(x\right)f\left(y\right)}[\frac{dx}{\sqrt{f\left(x\right)}}-\frac{dy}{\sqrt{f\left(y\right)}}]\\ \phantom{\rule{2em}{0ex}}-\frac{dx}{\sqrt{f\left(x\right)}}[{g}^{\prime}{y}^{2}f\left(x\right)+\frac{y}{2}g{f}^{\prime}\left(x\right)]\\ \phantom{\rule{2em}{0ex}}+\frac{dy}{\sqrt{f\left(y\right)}}[{g}^{\prime}{x}^{2}f\left(y\right)+\frac{x}{2}g{f}^{\prime}\left(y\right)]\end{array}$

where the prime on *g* represents a derivative with respect to its entire argument. If the last two bracketed quantities can be made equal,

${g}^{\prime}{y}^{2}f\left(x\right)+\frac{y}{2}g{f}^{\prime}\left(x\right)=h(x,y)={g}^{\prime}{x}^{2}f\left(y\right)+\frac{x}{2}g{f}^{\prime}\left(y\right)$

then the differential becomes

$[g+{g}^{\prime}xy-h]\sqrt{f\left(x\right)f\left(y\right)}[\frac{dx}{\sqrt{f\left(x\right)}}-\frac{dy}{\sqrt{f\left(y\right)}}]$

and an integrable solution will have been found that is a constant linking the function under the radical at two different argument values. The condition for equality can be written

$\frac{{g}^{\prime}}{g}=\frac{1}{2}\frac{y{f}^{\prime}\left(x\right)-x{f}^{\prime}\left(y\right)}{{x}^{2}f\left(y\right)-{y}^{2}f\left(x\right)}$

so that whenever the right-hand combination can be written as a function of the product *xy* the differential equation is exactly integrable.

For explicit solutions, start with the motivating case $f\left(x\right)=1-{x}^{2}$ , for which

$\frac{{g}^{\prime}}{g}=0\phantom{\rule{2em}{0ex}}\to \phantom{\rule{2em}{0ex}}g\left(xy\right)=1$

The solution in this case to the differential equation is

$x\sqrt{1-{y}^{2}}-y\sqrt{1-{x}^{2}}=c$

Direct integration of the differential equation gives

$\begin{array}{c}\underset{0}{\overset{x}{\int}}\frac{dt}{\sqrt{1-{t}^{2}}}-\underset{0}{\overset{y}{\int}}\frac{dt}{\sqrt{1-{t}^{2}}}=\underset{0}{\overset{c}{\int}}\frac{dt}{\sqrt{1-{t}^{2}}}\\ \\ {sin}^{-1}x-{sin}^{-1}y={sin}^{-1}c\end{array}$

and taking a sine of both sides reproduces the solution. Replacing the variables in the solution with functions that invert the integrals

$x=sinu\phantom{\rule{5em}{0ex}}y=sinv$

the solution to the differential equation becomes

$sinucosv-sinvcosu=c=sin(u-v)$

so that the solution to the differential equation represents the addition formula for the sine function, albeit with one negative angle.

Next consider the historically interesting case $f\left(x\right)=1-{x}^{4}$ that arose in the context of arc length on a lemniscate. The condition for an integrable solution is

$\frac{{g}^{\prime}}{g}=-\frac{2xy}{1+{x}^{2}{y}^{2}}\phantom{\rule{2em}{0ex}}\to \phantom{\rule{2em}{0ex}}g\left(xy\right)=\frac{1}{1+{x}^{2}{y}^{2}}$

so that the solution to the differential equation is

$\frac{x\sqrt{1-{y}^{4}}-y\sqrt{1-{x}^{4}}}{1+{x}^{2}{y}^{2}}=c$

This is one way to express what is known as Euler’s algebraic addition theorem for elliptic integrals.

Recognizing that the integrals in this case are inverted by Jacobi elliptic functions with $m=-1$ ,

$x=sn\left(u\right|-1)\phantom{\rule{5em}{0ex}}y=sn\left(v\right|-1)$

this solution represents the addition formula for those functions:

$\frac{snucnvdnv-snvcnudnu}{1+{sn}^{2}u{sn}^{2}v}=sn(u-v)$

The final easily integrable case is $f\left(x\right)=(1-{x}^{2})(1-m{x}^{2})$ for elliptic integrals of the first kind. The condition for integrability is

$\frac{{g}^{\prime}}{g}=\frac{2mxy}{1-m{x}^{2}{y}^{2}}\phantom{\rule{2em}{0ex}}\to \phantom{\rule{2em}{0ex}}g\left(xy\right)=\frac{1}{1-m{x}^{2}{y}^{2}}$

so that the solution to the differential equation is

$\frac{x\sqrt{(1-{y}^{2})(1-m{y}^{2})}-y\sqrt{(1-{x}^{2})(1-m{x}^{2})}}{1-m{x}^{2}{y}^{2}}=c$

Since the integrals in this case are inverted by Jacobi elliptic functions of arbitrary parameter,

$x=sn\left(u\right|m)\phantom{\rule{5em}{0ex}}y=sn\left(v\right|m)$

this solution represents the general addition formula for Jacobi elliptic functions:

$\frac{snucnvdnv-snvcnudnu}{1-m{sn}^{2}u{sn}^{2}v}=sn(u-v)$

This is by far a simpler and more direct derivation of the addition formula for Jacobi elliptic functions than the one given in Whittaker and Watson!

Having a general condition for testing the integrability of the differential equation, at least for a solution of the given form, it is straightforward to examine other rational expressions for possible integrability. Unfortunately there do not appear to be any other such simple expressions. In particular the rational expression defining elliptic integrals of the second kind is not integrable in this form.

Here is a nice historical overview by Jose Barrios for some context to this section.

Begin with the relationship between the Jacobi elliptic sine and an elliptic integral of the first kind in Legendre normal form:

$x=sn\left(u\right|m)\phantom{\rule{1em}{0ex}}\leftrightarrow \phantom{\rule{1em}{0ex}}u=\underset{0}{\overset{x}{\int}}\frac{dx}{\sqrt{(1-{x}^{2})(1-m{x}^{2})}}$

If the elliptic sine is given an additional multiplicative factor of the square root of the parameter,

$\sqrt{m}sn\left(u\right|m)=\sqrt{m}x\equiv y$

then the integral statement becomes

$u=\frac{1}{\sqrt{m}}\underset{0}{\overset{y}{\int}}\frac{dy}{\sqrt{(1-{\displaystyle \frac{{y}^{2}}{m}})(1-{y}^{2})}}$

Moving the initial factor over to the left-hand side leads to an inverse elliptic function with an altered argument and inverted parameter. One thus has the equivalence

$\sqrt{m}sn\left(u\right|m)=sn\left(\sqrt{m}u\right|\frac{1}{m})$

The relationships with the other basic elliptic functions are again

${sn}^{2}u+{cn}^{2}u=1\phantom{\rule{5em}{0ex}}{dn}^{2}u+m{sn}^{2}u=1$

Squaring both sides of the equivalence, replacing the elliptic sine on the left-hand side with the elliptic cosine, rearranging and keeping track of the relevant parameter of the elliptic sine from the right-hand side, one can easily produce the equivalence

$cn\left(u\right|m)=dn\left(\sqrt{m}u\right|\frac{1}{m})$

Repeating the process but replacing the elliptic sine on the left-hand side with the delta amplitude leads to

$dn\left(u\right|m)=cn\left(\sqrt{m}u\right|\frac{1}{m})$

Taking inverses and ratios of these three equivalences allows one to deduce similar equivalences for the remaining Jacobi elliptic function combinations.

The Jacobi elliptic functions of a real variable have periods proportional to complete elliptic integrals of the first kind,

$\begin{array}{l}sn[t+4K(m),m]=sn(t,m)\\ cn[t+4K(m),m]=cn(t,m)\\ dn[t+2K(m),m]=dn(t,m)\end{array}$

where the elliptic parameter has been written explicitly for the elliptic functions. If one is trying to match an elliptic function to an unknown function with a given period different from these periods, then a frequency multiplying the first argument is generally necessary. This alters the resulting function in a nonlinear fashion, unlike the corresponding change to a circular function, even though the function retains its period in terms of elliptic integrals.

The alteration can be understood by comparing two elliptic functions for different frequencies and parameters:

$\begin{array}{l}sn[{\omega}_{1}t+4K({m}_{1}),{m}_{1}]=sn\left[{\omega}_{1}\right(t+\frac{4K\left({m}_{1}\right)}{{\omega}_{1}}),{m}_{1}]\\ sn[{\omega}_{2}t+4K({m}_{2}),{m}_{2}]=sn\left[{\omega}_{2}\right(t+\frac{4K\left({m}_{2}\right)}{{\omega}_{2}}),{m}_{2}]\end{array}$

In order for these two functions to have the same period, the quantities added to the independent variable must be equal:

$\frac{K\left({m}_{1}\right)}{{\omega}_{1}}=\frac{K\left({m}_{2}\right)}{{\omega}_{2}}$

Starting from one frequency and parameter and specifying a new frequency, the parameter that maintains the original fixed period is given by

$K\left({m}_{2}\right)=\frac{{\omega}_{2}}{{\omega}_{1}}K\left({m}_{1}\right)\phantom{\rule{2em}{0ex}}\to \phantom{\rule{2em}{0ex}}{m}_{2}={K}^{-1}\left[\frac{{\omega}_{2}}{{\omega}_{1}}K\left({m}_{1}\right)\right]$

While the Jacobi elliptic sine formally inverts an elliptic integral of the first kind, in practice the inversion must be done with numerical root finding for the simple reason that the elliptic function itself depends on the parameter to be determined.

The technique can be graphically illustrated with a Jacobi elliptic sine constrained to a period of 2π:

Alternately, starting from an elliptic parameter of zero with the frequency corresponding to the known fixed period, changes to the elliptic parameter can be accommodated by adjusting the frequency to

${\omega}_{2}=\frac{K\left({m}_{2}\right)}{K\left({m}_{1}\right)}{\omega}_{1}$

which can again be graphically illustrated with a Jacobi elliptic sine constrained to a period of 2π:

Plotting the function $sn[\frac{K\left(m\right)}{K\left(0\right)}t,m]$ along with a sine function and allowing variation of the elliptic parameter, both positive and negative, nicely illustrates the analytic relationship between the two functions:

The behavior of this last graphic for negative values of the parameter indicates that there is an interesting way to generalize the circular function behavior

$sin(t+\frac{\pi}{2})=cost$

to Jacobi elliptic functions with fixed period. Consider the relationship

$sn[\frac{K\left(n\right)}{K\left(0\right)}(t+\frac{\pi}{2}),n]\stackrel{?}{=}cn[\frac{K\left(m\right)}{K\left(0\right)}t,m]$

Numerical rooting finding for some nontrivial argument, say $t=\frac{\pi}{4}$ , indicates that one can indeed locate values for the elliptic parameters that make the two functions equivalent. This is demonstrated by the following interactive graphic:

The default red line is a Jacobi sine function with
$n=0$ ,
*i.e.* a regular sine function. Checking the box locates the value of *n*, shown rounded to eight decimal places, that makes the two functions equivalent. Note that this value is negative relative to the other elliptic parameter.

Evaluating both sides of the relationship under consideration with a CAS, for example Mathematica, and equating their leading terms gives

$K\left(m\right)=\sqrt{1-n}\phantom{\rule{.3em}{0ex}}K\left(n\right)$

as the analytic relationship connecting the two Jacobi elliptic functions with fixed period. The right-hand side can be rewritten using an identity for negative parameter,

$\sqrt{1-n}\phantom{\rule{.3em}{0ex}}K\left(n\right)=K\left(\frac{n}{n-1}\right)$

which explains why so many simple rational values turn up in the numerical evaluations of the interactive graphic.

To understand this quantity, begin with those of the elliptic integrals. For all of these integrals, the sine function only appears squared. As a result adding a real value of $\pi $ to the argument of the integral of the first kind leads to an additional multiple of the corresponding complete integral,

$\begin{array}{l}F(\phi +\pi |m)=\underset{0}{\overset{\phi +\pi}{\int}}\frac{d\phi}{\sqrt{1-m{sin}^{2}\phi}}\\ \phantom{F(\phi +\pi |m)}=K\left(m\right)+\underset{\frac{\pi}{2}}{\overset{\pi}{\int}}\frac{d\phi}{\sqrt{1-m{sin}^{2}\phi}}+\underset{\pi}{\overset{\phi +\pi}{\int}}\frac{d\phi}{\sqrt{1-m{sin}^{2}\phi}}\\ F(\phi +\pi |m)=2K\left(m\right)+F\left(\phi \right|m)\end{array}$

where the variable of integration is replaced with $\pi -\phi $ in the second intermediate term and by $\phi -\pi $ in the third. Repeated application gives the general rule

$F(\phi +\pi p|m)=F\left(\phi \right|m)+2pK\left(m\right)$

for integral *p*. The rules for integrals of the second and third kind are mutatis mutandis identical:

$E(\phi +\pi p|m)=E\left(\phi \right|m)+2pE\left(m\right)$

$\mathrm{\Pi}(\phi +\pi p|m)=\mathrm{\Pi}(n,\phi |m)+2p\mathrm{\Pi}\left(n\right|m)$

These rules can be interpreted to hold over the entire complex plane for both the argument and the parameter.

The Jacobi amplitude function is defined as the inverse of the elliptic integral of the first kind:

$u=\underset{0}{\overset{\phi}{\int}}\frac{d\phi}{\sqrt{1-m{sin}^{2}\phi}}\phantom{\rule{1em}{0ex}}\to \phantom{\rule{1em}{0ex}}\phi =am(u,m)$

Adding twice the complete integral to each side of this equation, reversing the calculation above, gives

$u+2K\left(m\right)=\underset{0}{\overset{\phi +\pi}{\int}}\frac{d\phi}{\sqrt{1-m{sin}^{2}\phi}}$

so that for values of the elliptic parameter that keep the complete elliptic integral real, once can apply this repeatedly for the rule

$am[u+2pK(m\left)\right|m]=am\left(u\right|m)+\pi p$

While this looks as simple to apply as the rules for elliptic integrals, in practice there are some catches. The Jacobi elliptic functions have an second period in $iK(1-m)$ . When evaluating the amplitude function as the inverse sine of a Jacobi elliptic sine, any real part of this second period will change the overall sign of the inverse sine, but does not alter the result otherwise. Additionally, any imaginary part of the elliptic parameter negates the entire rule, so that only the inverse sine is then necessary.

These last comments are partly explained by §3.1 of this online reference. They are stated here to document how the function is evaluated in Math. This is at least how the function appears to be evaluted in Mathematica.

*Uploaded 2020.04.02*
analyticphysics.com