# Elliptic integral

In integral calculus, elliptic integrals originally arose in connection with the problem of giving the arc length of an ellipse. They were first studied by Giulio Fagnano and Leonhard Euler (c. 1750). Modern mathematics defines an "elliptic integral" as any function f which can be expressed in the form

${\displaystyle f(x)=\int _{c}^{x}R\left(t,{\sqrt {P(t)}}\right)\,dt,}$

where R is a rational function of its two arguments, P is a polynomial of degree 3 or 4 with no repeated roots, and c is a constant.

In general, integrals in this form cannot be expressed in terms of elementary functions. Exceptions to this general rule are when P has repeated roots, or when R(x,y) contains no odd powers of y. However, with the appropriate reduction formula, every elliptic integral can be brought into a form that involves integrals over rational functions and the three Legendre canonical forms (i.e. the elliptic integrals of the first, second and third kind).

Besides the Legendre form given below, the elliptic integrals may also be expressed in Carlson symmetric form. Additional insight into the theory of the elliptic integral may be gained through the study of the Schwarz–Christoffel mapping. Historically, elliptic functions were discovered as inverse functions of elliptic integrals.

## Argument notation

Incomplete elliptic integrals are functions of two arguments; complete elliptic integrals are functions of a single argument. These arguments are expressed in a variety of different but equivalent ways (they give the same elliptic integral). Most texts adhere to a canonical naming scheme, using the following naming conventions.

For expressing one argument:

Each of the above three quantities is completely determined by any of the others (given that they are non-negative). Thus, they can be used interchangeably.

The other argument can likewise be expressed as φ, the amplitude, or as x or u, where x = sin φ = sn u and sn is one of the Jacobian elliptic functions.

Specifying the value of any one of these quantities determines the others. Note that u also depends on m. Some additional relationships involving u include

${\displaystyle \cos \varphi =\operatorname {cn} u,\quad {\textrm {and}}\quad {\sqrt {1-m\sin ^{2}\varphi }}=\operatorname {dn} u.}$

The latter is sometimes called the delta amplitude and written as Δ(φ) = dn u. Sometimes the literature also refers to the complementary parameter, the complementary modulus, or the complementary modular angle. These are further defined in the article on quarter periods.

## Incomplete elliptic integral of the first kind

The incomplete elliptic integral of the first kind F is defined as

${\displaystyle F(\varphi ,k)=F\left(\varphi \,|\,k^{2}\right)=F(\sin \varphi ;k)=\int _{0}^{\varphi }{\frac {d\theta }{\sqrt {1-k^{2}\sin ^{2}\theta }}}.}$

This is the trigonometric form of the integral; substituting t = sin θ and x = sin φ, one obtains Jacobi's form:

${\displaystyle F(x;k)=\int _{0}^{x}{\frac {dt}{\sqrt {\left(1-t^{2}\right)\left(1-k^{2}t^{2}\right)}}}.}$

Equivalently, in terms of the amplitude and modular angle one has:

${\displaystyle F(\varphi \setminus \alpha )=F(\varphi ,\sin \alpha )=\int _{0}^{\varphi }{\frac {d\theta }{\sqrt {1-(\sin \theta \sin \alpha )^{2}}}}.}$

In this notation, the use of a vertical bar as delimiter indicates that the argument following it is the "parameter" (as defined above), while the backslash indicates that it is the modular angle. The use of a semicolon implies that the argument preceding it is the sine of the amplitude:

${\displaystyle F(\varphi ,\sin \alpha )=F\left(\varphi \,|\,\sin ^{2}\alpha \right)=F(\varphi \setminus \alpha )=F(\sin \varphi ;\sin \alpha ).}$

This potentially confusing use of different argument delimiters is traditional in elliptic integrals and much of the notation is compatible with that used in the reference book by Abramowitz and Stegun and that used in the integral tables by Gradshteyn and Ryzhik.

With x = sn(u,k) one has:

${\displaystyle F(x;k)=u;}$

thus, the Jacobian elliptic functions are inverses to the elliptic integrals.

### Notational variants

There are still other conventions for the notation of elliptic integrals employed in the literature. The notation with interchanged arguments, F(k,φ), is often encountered; and similarly E(k,φ) for the integral of the second kind. Abramowitz and Stegun substitute the integral of the first kind, F(φ,k), for the argument φ in their definition of the integrals of the second and third kinds, unless this argument is followed by a backslash: i.e. E(F(φ,k) | k2) for E(φ | k2). Moreover, their complete integrals employ the parameter k2 as argument in place of the modulus k, i.e. K(k2) rather than K(k). And the integral of the third kind defined by Gradshteyn and Ryzhik, Π(φ,n,k), puts the amplitude φ first and not the "characteristic" n.

Thus one must be careful with the notation when using these functions, because various reputable references and software packages use different conventions in the definitions of the elliptic functions. For example, some references, and Wolfram's Mathematica software and Wolfram Alpha, define the complete elliptic integral of the first kind in terms of the parameter m, instead of the elliptic modulus k.

${\displaystyle K(m)=\int _{0}^{\tfrac {\pi }{2}}{\frac {d\theta }{\sqrt {1-m\sin ^{2}\theta }}}}$

## Incomplete elliptic integral of the second kind

The incomplete elliptic integral of the second kind E in trigonometric form is

${\displaystyle E(\varphi ,k)=E(\varphi \,|\,k^{2})=E(\sin \varphi ;k)=\int _{0}^{\varphi }{\sqrt {1-k^{2}\sin ^{2}\theta }}\,d\theta .}$

Substituting t = sin θ and x = sin φ, one obtains Jacobi's form:

${\displaystyle E(x;k)=\int _{0}^{x}{\frac {\sqrt {1-k^{2}t^{2}}}{\sqrt {1-t^{2}}}}\,dt.}$

Equivalently, in terms of the amplitude and modular angle:

${\displaystyle E(\varphi \setminus \alpha )=E(\varphi ,\sin \alpha )=\int _{0}^{\varphi }{\sqrt {1-(\sin \theta \sin \alpha )^{2}}}\,d\theta .}$

Relations with the Jacobi elliptic functions include

${\displaystyle E{\big (}\operatorname {sn} (u;k);k{\big )}=\int _{0}^{u}\operatorname {dn} ^{2}(w;k)\,dw=u-k^{2}\int _{0}^{u}\operatorname {sn} ^{2}(w;k)\,dw=(1-k^{2})u+k^{2}\int _{0}^{u}\operatorname {cn} ^{2}(w;k)\,dw.}$

The meridian arc length from the equator to latitude φ is written in terms of E:

${\displaystyle m(\varphi )=a\left(E(\varphi ,e)+{\frac {d^{2}}{d\varphi ^{2}}}E(\varphi ,e)\right),}$

where a is the semi-major axis, and e is the eccentricity.

## Incomplete elliptic integral of the third kind

The incomplete elliptic integral of the third kind Π is

${\displaystyle \Pi (n;\varphi \setminus \alpha )=\int _{0}^{\varphi }{\frac {1}{1-n\sin ^{2}\theta }}{\frac {d\theta }{\sqrt {1-(\sin \theta \sin \alpha )^{2}}}}}$

or

${\displaystyle \Pi (n;\varphi \,|\,m)=\int _{0}^{\sin \varphi }{\frac {1}{1-nt^{2}}}{\frac {dt}{\sqrt {\left(1-mt^{2}\right)\left(1-t^{2}\right)}}}.}$

The number n is called the characteristic and can take on any value, independently of the other arguments. Note though that the value Π(1; π/2 | m) is infinite, for any m.

A relation with the Jacobian elliptic functions is

${\displaystyle \Pi {\bigl (}n;\,\operatorname {am} (u;k);\,k{\bigr )}=\int _{0}^{u}{\frac {dw}{1-n\,\operatorname {sn} ^{2}(w;k)}}.}$

The meridian arc length from the equator to latitude φ is also related to a special case of Π:

${\displaystyle m(\varphi )=a\left(1-e^{2}\right)\Pi \left(e^{2};\varphi \,|\,e^{2}\right).}$

## Complete elliptic integral of the first kind

Plot of the complete elliptic integral of the first kind K(k)

Elliptic Integrals are said to be 'complete' when the amplitude φ = π/2 and therefore x = 1. The complete elliptic integral of the first kind K may thus be defined as

${\displaystyle K(k)=\int _{0}^{\tfrac {\pi }{2}}{\frac {d\theta }{\sqrt {1-k^{2}\sin ^{2}\theta }}}=\int _{0}^{1}{\frac {dt}{\sqrt {\left(1-t^{2}\right)\left(1-k^{2}t^{2}\right)}}},}$

or more compactly in terms of the incomplete integral of the first kind as

${\displaystyle K(k)=F\left({\tfrac {\pi }{2}},k\right)=F\left({\tfrac {\pi }{2}}\,|\,k^{2}\right)=F(1;k).}$

It can be expressed as a power series

${\displaystyle K(k)={\frac {\pi }{2}}\sum _{n=0}^{\infty }\left({\frac {(2n)!}{2^{2n}(n!)^{2}}}\right)^{2}k^{2n}={\frac {\pi }{2}}\sum _{n=0}^{\infty }{\bigl (}P_{2n}(0){\bigr )}^{2}k^{2n},}$

where Pn is the Legendre polynomials, which is equivalent to

${\displaystyle K(k)={\frac {\pi }{2}}\left(1+\left({\frac {1}{2}}\right)^{2}k^{2}+\left({\frac {1\cdot 3}{2\cdot 4}}\right)^{2}k^{4}+\cdots +\left({\frac {\left(2n-1\right)!!}{\left(2n\right)!!}}\right)^{2}k^{2n}+\cdots \right),}$

where n!! denotes the double factorial. In terms of the Gauss hypergeometric function, the complete elliptic integral of the first kind can be expressed as

${\displaystyle K(k)={\tfrac {\pi }{2}}\,{}_{2}F_{1}\left({\tfrac {1}{2}},{\tfrac {1}{2}};1;k^{2}\right).}$

The complete elliptic integral of the first kind is sometimes called the quarter period. It can be computed very efficiently in terms of the arithmetic–geometric mean:

${\displaystyle K(k)={\frac {\frac {\pi }{2}}{\operatorname {agm} \left(1,{\sqrt {1-k^{2}}}\right)}}.}$

See Carlson (2010, 19.8) for details.

### Relation to Jacobi theta function

The relation to Jacobi's theta function is given by

${\displaystyle K(k)={\frac {\pi }{2}}\theta _{3}^{2}(q),}$

where the nome q is

${\displaystyle q(k)=\exp \left(-\pi {\frac {K\left({\sqrt {1-k^{2}}}\right)}{K(k)}}\right).}$

### Asymptotic expressions

${\displaystyle K\left(k^{2}\right)\approx {\frac {\pi }{2}}+{\frac {\pi }{8}}{\frac {k^{2}}{1-k^{2}}}-{\frac {\pi }{16}}{\frac {k^{4}}{1-k^{2}}}}$

This approximation has a relative precision better than 3×10−4 for k < 1/2. Keeping only the first two terms is correct to 0.01 precision for k < 1/2.[citation needed]

### Differential equation

The differential equation for the elliptic integral of the first kind is

${\displaystyle {\frac {d}{dk}}\left(k\left(1-k^{2}\right){\frac {dK(k)}{dk}}\right)=kK(k)}$

A second solution to this equation is K(1 − k2). This solution satisfies the relation

${\displaystyle {\frac {d}{dk}}K(k)={\frac {E(k)}{k\left(1-k^{2}\right)}}-{\frac {K(k)}{k}}}$.

## Complete elliptic integral of the second kind

Plot of the complete elliptic integral of the second kind ${\displaystyle E(k)}$

The complete elliptic integral of the second kind E is defined as

${\displaystyle E(k)=\int _{0}^{\tfrac {\pi }{2}}{\sqrt {1-k^{2}\sin ^{2}\theta }}\,d\theta =\int _{0}^{1}{\frac {\sqrt {1-k^{2}t^{2}}}{\sqrt {1-t^{2}}}}\,dt,}$

or more compactly in terms of the incomplete integral of the second kind E(φ,k) as

${\displaystyle E(k)=E\left({\tfrac {\pi }{2}},k\right)=E(1;k).}$

For an ellipse with semi-major axis a and semi-minor axis b and eccentricity e = 1 − b2/a2, the complete elliptic integral of the second kind E(e) is equal to one quarter of the circumference c of the ellipse measured in units of the semi-major axis a. In other words:

${\displaystyle c=4aE(e).}$

The complete elliptic integral of the second kind can be expressed as a power series

${\displaystyle E(k)={\frac {\pi }{2}}\sum _{n=0}^{\infty }\left({\frac {(2n)!}{2^{2n}(n!)^{2}}}\right)^{2}{\frac {k^{2n}}{1-2n}},}$

which is equivalent to

${\displaystyle E(k)={\frac {\pi }{2}}\left(1-\left({\frac {1}{2}}\right)^{2}{\frac {k^{2}}{1}}-\left({\frac {1\cdot 3}{2\cdot 4}}\right)^{2}{\frac {k^{4}}{3}}-\cdots -\left({\frac {(2n-1)!!}{(2n)!!}}\right)^{2}{\frac {k^{2n}}{2n-1}}-\cdots \right).}$

In terms of the Gauss hypergeometric function, the complete elliptic integral of the second kind can be expressed as

${\displaystyle E(k)={\tfrac {\pi }{2}}\,{}_{2}F_{1}\left({\tfrac {1}{2}},-{\tfrac {1}{2}};1;k^{2}\right).}$

The complete elliptic integral of the second kind can also be computed very efficiently using the arithmetic–geometric mean (Carlson 2010, 19.8).

### Derivative and differential equation

${\displaystyle {\frac {dE(k)}{dk}}={\frac {E(k)-K(k)}{k}}}$
${\displaystyle \left(k^{2}-1\right){\frac {d}{dk}}\left(k\;{\frac {dE(k)}{dk}}\right)=kE(k)}$

A second solution to this equation is E(1 − k2) − K(1 − k2).

## Complete elliptic integral of the third kind

Plot of the complete elliptic integral of the third kind ${\displaystyle \Pi (n,k)}$ with several fixed values of ${\displaystyle n}$

The complete elliptic integral of the third kind Π can be defined as

${\displaystyle \Pi (n,k)=\int _{0}^{\tfrac {\pi }{2}}{\frac {d\theta }{\left(1-n\sin ^{2}\theta \right){\sqrt {1-k^{2}\sin ^{2}\theta }}}}.}$

Note that sometimes the elliptic integral of the third kind is defined with an inverse sign for the characteristic n,

${\displaystyle \Pi '(n,k)=\int _{0}^{\tfrac {\pi }{2}}{\frac {d\theta }{\left(1+n\sin ^{2}\theta \right){\sqrt {1-k^{2}\sin ^{2}\theta }}}}.}$

Just like the complete elliptic integrals of the first and second kind, the complete elliptic integral of the third kind can be computed very efficiently using the arithmetic-geometric mean (Carlson 2010, 19.8).

### Partial derivatives

${\displaystyle {\frac {\partial \Pi (n,k)}{\partial n}}={\frac {1}{2\left(k^{2}-n\right)(n-1)}}\left(E(k)+{\frac {1}{n}}\left(k^{2}-n\right)K(k)+{\frac {1}{n}}\left(n^{2}-k^{2}\right)\Pi (n,k)\right)}$
${\displaystyle {\frac {\partial \Pi (n,k)}{\partial k}}={\frac {k}{n-k^{2}}}\left({\frac {E(k)}{k^{2}-1}}+\Pi (n,k)\right)}$

## Functional relations

${\displaystyle K(k)E\left({\sqrt {1-k^{2}}}\right)+E(k)K\left({\sqrt {1-k^{2}}}\right)-K(k)K\left({\sqrt {1-k^{2}}}\right)={\frac {\pi }{2}}.}$