An integral related to the arithmetic-geometric mean #
For $a,b>0$ consider the improper integral
$$I(a,b) = \int_0^\infty \frac{dx}{\sqrt{(x^2+a^2)(x^2+b^2)}}.$$
Then making the substitution $x = t+\sqrt{t^2+ab}$ yields, after rearranging,
$$I(a,b) = \int_{-\infty}^\infty \frac{dx}{2\sqrt{(x^2+ab)(x^2+((a+b)/2)^2)}} = I(\sqrt{ab},(a+b)/2).$$
Iterating this transformation drives both arguments towards the arithmetic-geometric mean
(AGM) of $a$ and $b$, by Mathlib.Analysis.SpecialFunctions.ArithmeticGeometricMean, so we have
$$I(a,b)=I(\operatorname{agm}(a,b),\operatorname{agm}(a,b))=\frac{\pi/2}{\operatorname{agm}(a,b)}$$
where the second equality follows from an elementary integral.
This establishes a link between the AGM and complete elliptic integrals.
TauCeti.lintegral_image_inv_sqrt_eq_agmIntegral turns a substitution x = f(t) with
D(f t) = f′(t)² (t² + a²)(t² + b²) into an evaluation of ∫ D(x)^(-1/2) dx as I(a,b).
Adapted from Jeremy Tan's
Mathlib PR #34397,
commit 376352b6e080265bc0380074baaf9aafa0b70a80.
The integral is finite for positive inputs; when either input is zero it diverges, and Lean's
totalized Bochner integral returns zero.
The elliptic integral related to the arithmetic-geometric mean. It is finite for positive inputs and has the totalized value zero if either input is zero.
Instances For
The AGM integral is symmetric in its arguments.
The integral diverges (and thus takes the junk value of 0 in Lean) when a = 0.
The integral diverges (and thus takes the junk value of 0 in Lean) when b = 0.
On the nonnegative diagonal the AGM integral is the elementary value π / 2 / a.
At zero both sides take their totalized value zero.
Landen's transformation for agmIntegral.
The AGM integral depends continuously on its two positive arguments.
Every iterate of the arithmetic-geometric mean preserves the integral.
The fundamental relation between agmIntegral and NNReal.agm. For positive inputs this
is the value of a convergent integral; if either input is zero both sides are totalized to zero.
The AGM integral is strictly positive when both inputs are positive.
The AGM integral is homogeneous of degree -1: scaling both axes by c divides it by |c|.
For c = 0 both sides take the totalized value zero.
If a substitution x = f(t) on t > 0 satisfies D(f t) = f′(t)² (t² + a²)(t² + b²) with
f′(t) ≠ 0, then the integral of D(x)^(-1/2) over the image of f is the AGM integral
of the axes a and b.