The integral ∫₀^{π/2} log² sin x dx #
This file proves ∫₀^{π/2} log² sin x dx = π³/24 + (π/2) log² 2, which A015 and A016 use.
Main results #
LeanPolyLog.LogSinSq.intervalIntegrable_log_sin_sq,LeanPolyLog.LogSinSq.intervalIntegrable_log_cos_sq,LeanPolyLog.LogSinSq.intervalIntegrable_log_sin_sq_zero_pi:log² sinis integrable on[0, π/2]and on[0, π], andlog² cosis integrable on[0, π/2].LeanPolyLog.LogSinSq.integral_log_cos_sq:∫₀^{π/2} log² cos = ∫₀^{π/2} log² sin.LeanPolyLog.LogSinSq.integral_log_sin_sq_zero_pi:∫₀^π log² sin = 2 ∫₀^{π/2} log² sin.LeanPolyLog.LogSinSq.integral_log_tan_sq:∫₀^{π/4} (log sin x - log cos x)² dx = π³/16.LeanPolyLog.LogSinSq.integral_log_sin_sq:∫₀^{π/2} log² sin x dx = π³/24 + (π/2) log² 2.LeanPolyLog.LogSinSq.integral_log_sin_mul_log_cos:∫₀^{π/2} log sin x · log cos x dx = (π/2) log² 2 - π³/48.
Proof sketch #
Write L = ∫₀^{π/2} log² sin and B = ∫₀^{π/2} log sin · log cos; also ∫₀^{π/2} log² cos = L
and ∫₀^{π/2} log cos = ∫₀^{π/2} log sin = -(π/2) log 2.
- Integrability: Jordan's inequality
(2/π) x ≤ sin x ≤ 1giveslog² sin x ≤ log² (2x/π)on(0, π/2], andlog²is integrable on[0, 1]. The productlog sin · log cosis bounded bylog² sin + log² cos. sin 2x = 2 sin x cos x, andu = 2xtogether withsin (π - u) = sin ugives∫₀^{π/2} log² sin 2x dx = L. Expanding the square,L = 2L - (3π/2) log² 2 + 2B.- On
[0, π/4]the substitutionx = arctan tturnslog sin x - log cos xintolog t, so∫₀^{π/4} (log sin - log cos)² = ∫₀¹ log² t/(1+t²) dt = π³/16. The reflectionx ↦ π/2 - xdoubles this to∫₀^{π/2} (log sin - log cos)² = 2L - 2B = π³/8. - Solving the two linear equations gives
LandB.
Integrability #
theorem
LeanPolyLog.LogSinSq.intervalIntegrable_log_sq_mul :
IntervalIntegrable (fun (x : ℝ) => Real.log (2 / Real.pi * x) ^ 2) MeasureTheory.volume 0 (Real.pi / 2)
log² (2x/π) is integrable on [0, π/2].
theorem
LeanPolyLog.LogSinSq.intervalIntegrable_log_sin_sq :
IntervalIntegrable (fun (x : ℝ) => Real.log (Real.sin x) ^ 2) MeasureTheory.volume 0 (Real.pi / 2)
log² sin is integrable on [0, π/2].
theorem
LeanPolyLog.LogSinSq.intervalIntegrable_log_cos_sq :
IntervalIntegrable (fun (x : ℝ) => Real.log (Real.cos x) ^ 2) MeasureTheory.volume 0 (Real.pi / 2)
log² cos is integrable on [0, π/2].
theorem
LeanPolyLog.LogSinSq.intervalIntegrable_log_sin_sq_zero_pi :
IntervalIntegrable (fun (x : ℝ) => Real.log (Real.sin x) ^ 2) MeasureTheory.volume 0 Real.pi
log² sin is integrable on [0, π].
theorem
LeanPolyLog.LogSinSq.intervalIntegrable_log_sin_mul_log_cos :
IntervalIntegrable (fun (x : ℝ) => Real.log (Real.sin x) * Real.log (Real.cos x)) MeasureTheory.volume 0 (Real.pi / 2)
log sin · log cos is integrable on [0, π/2]: it is bounded by log² sin + log² cos.
Symmetries #
The value of ∫₀^{π/2} log² sin #
∫₀^{π/2} log² sin x dx = π³/24 + (π/2) log² 2 and
∫₀^{π/2} log sin x · log cos x dx = (π/2) log² 2 - π³/48.