Documentation

LeanPool.PolylogIntegrals.Proofs.A009

A009: ∫₀^{π/2} x² cot x dx = (π²/4) log 2 - (7/8) ζ(3) #

Let J = ∫₀^{π/2} x log sin x dx.

Finally F x = x² log sin x is continuous on [0, π/2] (it tends to 0 at 0), vanishes at both ends, and has derivative 2x log sin x + x² cot x on (0, π/2). Hence A009 = -2J.

In Lean cot 0 = 0 and log 0 = 0; single points do not affect the integrals. The helper lemmas and integral_mul_log_sin (the value of J) are public, and A011 reuses them.

theorem LeanPolyLog.Proofs.sq_le_mul_sin {x : ℝ} (hx : x ∈ Set.Icc 0 (Real.pi / 2)) :
x ^ 2 ≤ Real.pi ^ 2 / 4 * Real.sin x

x² ≤ (π²/4) sin x on [0, π/2], from Jordan's inequality (2/π) x ≤ sin x.

x ↦ x² log sin x is continuous on [0, π/2]. At 0 it tends to 0, because |x² log sin x| ≤ (π²/4) |sin x log sin x| there.

x² cot x is integrable on [0, π/2], since it is bounded by π²/4 there.

∫₀^{π/2} x log sin x dx = -(π²/8) log 2 + (7/16) ζ(3).

theorem LeanPolyLog.Proofs.A009 :
∫ (x : ℝ) in 0..Real.pi / 2, x ^ 2 * Real.cot x = Real.pi ^ 2 / 4 * Real.log 2 - 7 / 8 * zeta3

A009: ∫₀^{π/2} x² cot x dx = (π²/4) log 2 - (7/8) ζ(3).