The integral of is a difference of iterated logarithms
ProvedMertensTheorems.integral_inv_tlogThe closed form of the integral.
For ,
The integrand is the derivative of : by the chain rule, . On the function is bounded away from (indeed ), so the integrand is continuous and the fundamental theorem of calculus applies directly.
This integral is the reason appears throughout multiplicative number theory. Partial summation converts Mertens' first theorem into by integrating against the error term, and the closed form above is exactly what produces the main term in Mertens' second theorem. The same integral governs the divergence of and the typical number of prime factors of an integer, , in the Hardy–Ramanujan and Erd\H{o}s–Kac theorems.
Formalization note. The integral is intervalIntegral over with cast from
; the hypothesis keeps the interval non-degenerate and the integrand
regular.
import Mathlib
namespace MertensTheorems
theorem integral_inv_tlog {N : ℕ} (hN : 2 ≤ N) :
∫ t in (2 : ℝ)..N, (t * Real.log t)⁻¹
= Real.log (Real.log N) - Real.log (Real.log 2) := by sorry
end MertensTheorems