= Complete elliptic integral of the first kind
{title2=$K(k)$}
For real modulus $0\leq k<1$, the complete elliptic integral of the first kind is
$$
K(k)=\int_0^{\pi/2}\frac{d\theta}{\sqrt{1-k^2\sin^2\theta}}=\int_0^1\frac{dt}{\sqrt{(1-t^2)(1-k^2t^2)}}.
$$
The substitution $t=\sin\theta$ proves equivalence. Here $k$ is the modulus; a parameter convention instead writes $m=k^2$. The endpoint value is $K(0)=\pi/2$, and $K(k)$ increases without bound as $k\uparrow1$.<NIST Digital Library of Mathematical Functions>[§19.2(ii), definitions of F and complete K; §19.12, endpoint asymptotics]{ref}
For a <simple pendulum> of length $\ell$ with angular amplitude $0<\theta_0<\pi$, conservation of <mechanical energy> gives its period
$$
T=4\sqrt{\ell/g}\,K(\sin(\theta_0/2)).
$$
Use $\sin(\theta/2)=\sin(\theta_0/2)\sin\phi$ in the quarter-period energy integral. The limit $k\to0$ recovers the <small-angle approximation> $T\sim2\pi\sqrt{\ell/g}$. Near the inverted position $k\uparrow1$, the logarithmic divergence of $K$ describes the long time spent near the unstable equilibrium.
Back to article page