Documentation

LeanPool.PolylogIntegrals.Lemmas.LogTrig

Log-trigonometric integrals on [0, π/4] #

This file collects the lemmas behind A006, the values of ∫₀^{π/4} log cos x dx and ∫₀^{π/4} log sin x dx.

Main results #

Proof sketch #

The moments ∫₀¹ t^m (-log t) dt #

noncomputable def LeanPolyLog.LogTrig.powMulNegLogPrimitive (m : ℕ) (x : ℝ) :

An antiderivative of t ^ m * -log t, namely t^(m+1)/(m+1)² - t^(m+1) log t/(m+1). It is continuous on all of ℝ and vanishes at 0.

Equations
Instances For

    Away from 0, the derivative of powMulNegLogPrimitive m is t ^ m * -log t.

    x ^ (m + 1) * log x is continuous, including at 0.

    t ^ m * -log t is integrable on (0, 1]: it is the nonnegative derivative of a continuous function.

    theorem LeanPolyLog.LogTrig.integral_pow_mul_neg_log (m : ℕ) :
    ∫ (t : ℝ) in 0..1, t ^ m * -Real.log t = 1 / (↑m + 1) ^ 2

    ∫₀¹ t^m (-log t) dt = 1/(m+1)².

    The Catalan integral ∫₀¹ -log t / (1 + t²) dt = G #

    theorem LeanPolyLog.LogTrig.hasSum_neg_one_pow_mul_pow_mul_neg_log {t : ℝ} (ht : t ∈ Set.Ioc 0 1) :
    HasSum (fun (n : ℕ) => (-1) ^ n * (t ^ (2 * n) * -Real.log t)) (-Real.log t / (1 + t ^ 2))

    On (0, 1], -log t / (1 + t²) = ∑ (-1)ⁿ t²ⁿ (-log t). At t = 1 both sides vanish.

    ∑ 1/(2n+1)² converges.

    ∫₀¹ -log t / (1 + t²) dt = G, by termwise integration of ∑ (-1)ⁿ t²ⁿ (-log t).

    The integrals of log cos and log sin on [0, π/4] #

    ∫₀^{π/4} (log cos x - log sin x) dx = G, via the substitution x = arctan t.

    ∫₀^{π/4} log cos x dx = ∫_{π/4}^{π/2} log sin x dx, since cos x = sin (π/2 - x).

    ∫₀^{π/4} log sin x dx + ∫₀^{π/4} log cos x dx = -(π/2) log 2.

    ∫₀^{π/4} log cos x dx - ∫₀^{π/4} log sin x dx = G.