EQUATION

Complete Elliptic Integral of the First Kind

Defines K(k) = ∫₀^{π/2} dφ / √(1 − k²sin²φ), a definite integral that appears in the exact large-angle pendulum period and many other physics problems

§ 01

The equation

EQ.COMPLETE-ELLIPTIC-INTEGRAL
K(k) = \int_0^{\pi/2}\frac{d\phi}{\sqrt{1-k^2\sin^2\phi}}
§ 02

What it solves

Defines K(k) = ∫₀^{π/2} dφ / √(1 − k²sin²φ), a definite integral that appears in the exact large-angle pendulum period and many other physics problems. Numerically, K(0) = π/2 and K grows as k → 1.

§ 03

When to use it

Evaluating the exact pendulum period for large angles. K(k) is available in most scientific libraries (Python: scipy.special.ellipk; Mathematica: EllipticK). The AGM algorithm converges in ~10 iterations.

§ 04

When NOT to use it

K diverges logarithmically as k → 1 (pendulum amplitude → 180°) — the pendulum takes infinite time to reach the inverted position. For small k, the series K(k) ≈ π/2·(1 + k²/4 + 9k⁴/64 + …) is simpler.

§ 05

Common mistakes

Passing k² to functions that expect k (or vice versa) — check each library's convention. Confusing K(k) (first kind) with E(k) (second kind). Evaluating the integral in degrees instead of the proper half-period 0 to π/2 in radians.

§ 06

Topics that use this equation

§ 07

Problems using this equation