WOLFRAM

gives the complete elliptic integral of the first kind TemplateBox[{m}, EllipticK].

Details

  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • EllipticK is given in terms of the incomplete elliptic integral of the first kind by TemplateBox[{m}, EllipticK]=TemplateBox[{{pi, /, 2}, m}, EllipticF].
  • EllipticK[m] has a branch cut discontinuity in the complex m plane running from to .
  • For certain special arguments, EllipticK automatically evaluates to exact values.
  • EllipticK can be evaluated to arbitrary numerical precision.
  • EllipticK automatically threads over lists.
  • EllipticK can be used with Interval and CenteredInterval objects. »

Examples

open allclose all

Basic Examples  (5)Summary of the most common use cases

Evaluate numerically:

Out[1]=1

Plot over a subset of the reals:

Out[1]=1

Plot over a subset of the complexes:

Out[1]=1

Series expansion at the origin:

Out[1]=1

Series expansion at Infinity:

Out[1]=1

Scope  (38)Survey of the scope of standard use cases

Numerical Evaluation  (5)

Evaluate to high precision:

Out[1]=1

The precision of the output tracks the precision of the input:

Out[2]=2

Evaluate numerically for complex arguments:

Out[1]=1

Evaluate EllipticK efficiently at high precision:

Out[1]=1
Out[2]=2

Compute worst-case guaranteed intervals using Interval and CenteredInterval objects:

Out[1]=1
Out[2]=2

Or compute average-case statistical intervals using Around:

Out[3]=3

Compute the elementwise values of an array:

Out[1]=1

Or compute the matrix EllipticK function using MatrixFunction:

Out[2]=2

Specific Values  (5)

Simple exact values are generated automatically:

Out[1]=1

Some exact values in terms of Gamma after applying FunctionExpand:

Out[1]=1

Find directional limiting values at branch cuts:

Out[1]=1
Out[2]=2

Value at infinity:

Out[1]=1

Find the root of the equation TemplateBox[{m}, EllipticK]=2:

Out[1]=1
Out[2]=2

Visualization  (2)

Plot EllipticK:

Out[1]=1

Plot the real part of TemplateBox[{z}, EllipticK]:

Out[1]=1

Plot the imaginary part of TemplateBox[{z}, EllipticK]:

Out[2]=2

Function Properties  (9)

EllipticK is defined for all real values less than 1:

Out[1]=1

EllipticK takes all real positive values:

Out[1]=1

EllipticK is not an analytic function:

Out[1]=1

Has both singularities and discontinuities:

Out[2]=2
Out[3]=3

EllipticK is not a meromorphic function:

Out[1]=1

EllipticK is nondecreasing on its domain:

Out[1]=1

EllipticK is injective:

Out[1]=1
Out[2]=2

EllipticK is not surjective:

Out[1]=1
Out[2]=2

EllipticK is non-negative on its domain:

Out[1]=1

EllipticK is convex on its domain:

Out[1]=1

Differentiation  (3)

First derivative:

Out[1]=1

Higher derivatives:

Out[1]=1
Out[2]=2

Formula for the ^(th) derivative:

Out[1]=1

Integration  (3)

Indefinite integral of EllipticK:

Out[1]=1

Definite integral over an interval lying on the branch cut:

Out[1]=1

More integrals:

Out[1]=1
Out[2]=2

Series Expansions  (3)

Taylor expansion for EllipticK:

Out[1]=1

Plot the first three approximations for EllipticK around :

Out[8]=8

Series expansions at branch points:

Out[1]=1

EllipticK can be applied to power series:

Out[1]=1

Integral Transforms  (3)

Compute the Laplace transform using LaplaceTransform:

Out[1]=1

MellinTransform:

Out[1]=1

HankelTransform:

Out[1]=1

Function Representations  (5)

Relation to other elliptic integrals:

Out[1]=1
Out[2]=2

Relation to the LegendreP:

Out[1]=1

Represent in terms of MeijerG using MeijerGReduce:

Out[1]=1
Out[2]=2

EllipticK can be represented as a DifferentialRoot:

Out[1]=1

TraditionalForm formatting:

Applications  (7)Sample problems that can be solved with this function

Small-angle approximation to the period of a pendulum:

Out[1]=1

Plot the period versus the initial angle:

Out[2]=2

Vector potential due to a circular current flow, in cylindrical coordinates:

The components of the magnetic field:

Out[2]=2
Out[3]=3

Plot the magnitude of the magnetic field:

Out[4]=4

Resistance between the origin and the point in an infinite 3D lattice of unit resistors:

Out[2]=2

Energy for the Onsager solution of the Ising model:

Plot of the specific heat:

Out[2]=2

Find the critical temperature:

Out[3]=3

Calculate a singular value:

Out[1]=1
Out[2]=2

Current flow in a rectangular conducting sheet with voltage applied at a pair of opposite corners:

Plot the flow lines with bounds defined via EllipticK:

Out[2]=2

Construct lowpass elliptic filter for analog signal:

Compute filter ripple parameters and associate elliptic function parameter:

Use elliptic degree equation to find the ratio of the pass and the stop frequencies:

Out[3]=3

Compute corresponding stop frequency and elliptic parameters:

Out[4]=4

Compute ripple locations and poles and zeros of the transfer function:

Compute poles of the transfer function:

Assemble the transfer function:

Out[8]=8

Compare with the result of EllipticFilterModel:

Out[10]=10

Properties & Relations  (4)Properties of the function, and connections to other functions

This shows the branch cuts of the EllipticK function:

Out[1]=1

Numerically find a root of a transcendental equation:

Out[1]=1

Solve a differential equation:

Out[1]=1

EllipticK is a particular case of various mathematical functions:

Out[1]=1

Possible Issues  (3)Common pitfalls and unexpected behavior

Machine-precision evaluation can result in numerically inaccurate answers near branch cuts:

Out[1]=1
Out[2]=2

The defining integral converges only under additional conditions:

Out[1]=1

Different argument conventions exist that result in modified results:

Out[1]=1

Neat Examples  (2)Surprising or curious use cases

Probability that a random walker in a 3D cubic lattice returns to the origin:

Out[1]=1

Carry out a modeling run of 1000 walks and count how many it returns to the origin:

Out[3]=3

Compare with the expected count at :

Out[4]=4

Riemann surface of TemplateBox[{m}, EllipticK]:

Out[1]=1
Wolfram Research (1988), EllipticK, Wolfram Language function, https://reference.wolfram.com/language/ref/EllipticK.html (updated 2022).
Wolfram Research (1988), EllipticK, Wolfram Language function, https://reference.wolfram.com/language/ref/EllipticK.html (updated 2022).

Text

Wolfram Research (1988), EllipticK, Wolfram Language function, https://reference.wolfram.com/language/ref/EllipticK.html (updated 2022).

Wolfram Research (1988), EllipticK, Wolfram Language function, https://reference.wolfram.com/language/ref/EllipticK.html (updated 2022).

CMS

Wolfram Language. 1988. "EllipticK." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/EllipticK.html.

Wolfram Language. 1988. "EllipticK." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/EllipticK.html.

APA

Wolfram Language. (1988). EllipticK. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EllipticK.html

Wolfram Language. (1988). EllipticK. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EllipticK.html

BibTeX

@misc{reference.wolfram_2025_elliptick, author="Wolfram Research", title="{EllipticK}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/EllipticK.html}", note=[Accessed: 26-March-2025 ]}

@misc{reference.wolfram_2025_elliptick, author="Wolfram Research", title="{EllipticK}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/EllipticK.html}", note=[Accessed: 26-March-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_elliptick, organization={Wolfram Research}, title={EllipticK}, year={2022}, url={https://reference.wolfram.com/language/ref/EllipticK.html}, note=[Accessed: 26-March-2025 ]}

@online{reference.wolfram_2025_elliptick, organization={Wolfram Research}, title={EllipticK}, year={2022}, url={https://reference.wolfram.com/language/ref/EllipticK.html}, note=[Accessed: 26-March-2025 ]}