Complete Elliptic Integral of the Second Kind E(k) Calculator

Complete Elliptic Integral of the Second Kind E(k) Calculator

Growing AI Skill PRO

Enter Calculation

Dimensionless, domain -1 ≤ k ≤ 1

Formula

E(k)=∫0π/21−k2sin2θdθE(\text{k}) = \int_{0}^{\pi/2} \sqrt{1 - \text{k}^{2}\,\sin^{2}\theta}\; d\theta
Usage stats

Advertisement

Results

Complete Elliptic Integral E(k)
1.566861942022
dimensionless
Method Arithmetic-Geometric Mean (AGM)
Range 1 ≤ E(k) ≤ π/2

Report an error on this page

What is the complete elliptic integral of the second kind?

The complete elliptic integral of the second kind, written \(E(k)\), is the special function defined by the integral of the square root of (1 minus k-squared times sine-squared theta) from 0 to pi/2. It shows up whenever you need the exact perimeter of an ellipse, the arc length of a sine wave, the period of a large-amplitude pendulum, or stress-intensity factors for elliptical cracks. The input \(k\) is called the modulus and must lie between -1 and 1.

$$E(\text{k}) = \int_{0}^{\pi/2} \sqrt{1 - \text{k}^{2}\,\sin^{2}\theta}\; d\theta$$
Quarter ellipse with semi-axes a and b, arc length highlighted
\(E(k)\) gives the arc length of a quarter ellipse, its key geometric meaning.

How to use this calculator

Enter the modulus \(k\) (a dimensionless number from -1 to 1) and read off \(E(k)\). Because the integrand depends only on k-squared, the result is symmetric: \(E(-k) = E(k)\). The function decreases smoothly from \(E(0) = \pi/2\) down to \(E(1) = 1\). Note this tool takes the modulus \(k\) directly, not the parameter \(m = k^2\) used by some references.

The formula explained

We evaluate \(E(k)\) with the arithmetic-geometric mean (AGM), which converges quadratically. Set \(a_0 = 1\), \(b_0 = \sqrt{1 - k^2}\), \(c_0 = k\). Each step computes \(a = (a+b)/2\), \(b = \sqrt{a\cdot b}\), and \(c = (a-b)/2\) until \(c\) is negligible. Then \(K(k) = \pi / (2\cdot a_N)\) is the first-kind integral, and \(E(k) = K(k)\cdot(1 - \tfrac{1}{2}\cdot\sum 2^n \cdot c_n^2)\). This avoids slowly converging power series and is accurate to machine precision in only a handful of iterations.

Advertisement
Shaded area under the integrand curve from 0 to pi/2
\(E(k)\) equals the area under the integrand from 0 to π/2.

Worked example

For \(k = 0.1\), \(m = 0.01\). The AGM gives \(a_N \approx 0.997492\) and the c-squared sum \(S \approx 0.01001256\), so \(K \approx 1.5747456\) and \(E = K(1 - 0.5\cdot S) \approx 1.566862\). This matches the series approximation $$E(k) \approx \frac{\pi}{2}\left(1 - \tfrac{1}{4}k^2 - \tfrac{3}{64}k^4\right).$$

Reference Values of E(k) for Common Moduli

The table lists the complete elliptic integral of the second kind, \(E(k)=\int_0^{\pi/2}\sqrt{1-k^2\sin^2\theta}\,d\theta\), for common moduli \(k\). The matching parameter is \(m=k^2\). E(k) is even in k, so E(−k) = E(k). It falls from \(\pi/2\) at k = 0 to exactly 1 at k = 1.

Modulus k Parameter m = k² E(k)
0 0 1.570796 (= π/2)
0.1 0.01 1.566862
0.2 0.04 1.554968
0.3 0.09 1.534833
0.5 0.25 1.467462
0.7071 (= 1/√2) 0.5 1.350644
0.8 0.64 1.276350
0.9 0.81 1.171697
0.99 0.9801 1.028476
1 1 1 (exact)

The row for k = 1/√2 uses m = 0.5 exactly. If you enter the rounded value 0.7071, the result differs only in the 5th–6th decimal place. Near k = 1, E(k) approaches 1 with an infinite slope, so it is very sensitive to k there.

Advertisement

Definitions: Modulus, Parameter, and Related Integrals

  • Modulus k: the argument in \(E(k)\) and \(K(k)\). It is the number inside \(\sqrt{1-k^2\sin^2\theta}\). This calculator accepts \(-1\le k\le 1\).
  • Parameter m: \(m=k^2\). Many software libraries take m instead of k.
  • Complementary modulus k′: \(k'=\sqrt{1-k^2}\), so \(k^2+k'^2=1\).
  • Complete elliptic integral of the first kind K(k): \(K(k)=\int_0^{\pi/2}\frac{d\theta}{\sqrt{1-k^2\sin^2\theta}}\). It diverges as k → 1, whereas E(1) = 1.
  • Incomplete integral E(φ, k): \(E(\varphi,k)=\int_0^{\varphi}\sqrt{1-k^2\sin^2\theta}\,d\theta\). The complete integral is the special case \(\varphi=\pi/2\).
  • Arithmetic-geometric mean (AGM): start with \(a_0=1,\ b_0=k'\) and iterate \(a_{n+1}=\tfrac{a_n+b_n}{2},\ b_{n+1}=\sqrt{a_nb_n}\). Both sequences converge quadratically to the same limit M. Then \(K=\pi/(2M)\). With \(c_0=k\) and \(c_{n+1}=\tfrac{a_n-b_n}{2}\), \(E=K\left(1-\sum_{n\ge 0}2^{\,n-1}c_n^2\right)\). A handful of iterations gives near machine precision.
  • Notation differences: textbooks often write \(E(k)\) with the modulus k. Mathematica's EllipticE[m] and SciPy's scipy.special.ellipe(m) take the parameter \(m=k^2\). To match this calculator, pass m = k² to those functions. In Mathematica, EllipticE[φ, m] is the incomplete integral with the same parameter convention.

FAQ

What is \(E(0)\)? Exactly \(\pi/2 \approx 1.5707963\), since the integrand reduces to 1.

What is \(E(1)\)? Exactly 1, because the integrand becomes \(\cos\theta\), whose integral from 0 to pi/2 is 1.

Why is \(k\) limited to -1 and 1? Outside this range the integrand becomes imaginary for some \(\theta\), so \(E(k)\) is no longer a real number.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators