An Integral With ln x in the Denominator: ln 5 − ⅓ ln 2

Feynman's trick turns this into an integral of digamma functions. A geometric series and a Gamma-function product reach the closed form ln 5 − (1/3) ln 2 without one, and the same steps show when a variant will or will not simplify.

Binary Buddies · 5 min read · 10 views

The integral is I = ∫₀¹ (x¹³ − 1) / [ln x · (x² + x + 1)(x² − x + 1)] dx. It was posted on Math Stack Exchange by someone testing what happens when cyclotomic polynomials go into the denominator of a Frullani-type integral. Numerical integration suggested the answer was a short expression in logs, but the obvious method produced digamma functions that then had to be integrated back.

The closed form is I = ln 5 − (1/3) ln 2 ≈ 1.3783888522. The route below gets there with a geometric series, one logarithmic integral identity and three standard facts about the Gamma function. It never integrates a special function.

Why the integral converges at all

The integral looks risky at both ends. At x = 1, ln x vanishes. But the numerator x¹³ − 1 also vanishes there, so the singularity cancels. Near x = 1, x¹³ − 1 behaves like 13(x − 1) and ln x like (x − 1). The denominator polynomial equals 3 at x = 1, so the integrand tends to 13/3. That is a removable singularity, not a divergence.

At x = 0 the numerator tends to −1 and ln x tends to −∞, so the integrand goes to 0. The two quadratics x² + x + 1 and x² − x + 1 have only complex roots, which the original poster pointed out. They add no singularities on the real interval. On (0, 1) the integrand is continuous, and it is positive: x¹³ − 1 and ln x are both negative there, and the quadratics are positive.

Clearing the denominator to x⁶ − 1

The useful first step comes from the question itself. The two quadratics multiply to x⁴ + x² + 1. Multiplying that by (x² − 1) gives x⁶ − 1. So multiply the numerator and the denominator by (x² − 1), then flip both signs so every factor is positive on (0, 1):

I = ∫₀¹ (x¹³ − 1)(1 − x²) / [(1 − x⁶) ln x] dx

The poster then used Feynman's trick. They replaced 13 with a parameter a and differentiated to remove ln x, which gave I′(a) = Σ [1/(6n + a + 1) − 1/(6n + a + 3)]. That is correct, but it leaves a digamma-type expression to integrate in a from 0 to 13, which means working with log-Gamma values at awkward fractions. The accepted answer carries this parametric route through. The approach below avoids the parameter entirely.

Series expansion and a Frullani-type identity

The second answer expands 1/(1 − x⁶) = Σ x⁶ⁿ for 0 ≤ x < 1, without introducing a parameter. Each term of the resulting series is nonnegative, so the partial sums increase pointwise to the integrand. That lets the monotone convergence theorem justify swapping the sum and the integral. Expanding (x¹³ − 1)(1 − x²) = x¹³ − x¹⁵ + x² − 1 and multiplying by x⁶ⁿ gives:

I = Σₙ [ ∫₀¹ (x^(6n+13) − x^(6n+15)) / ln x dx + ∫₀¹ (x^(6n+2) − x^(6n)) / ln x dx ]

Each bracket is now a standard integral:

∫₀¹ (xᵃ − xᵇ) / ln x dx = ln[(a + 1)/(b + 1)],   a, b > −1

Applying it term by term turns the integral into a series of logarithms:

I = Σₙ ln[ (6n + 14)(6n + 3) / ((6n + 16)(6n + 1)) ]

Collapsing the product with the Gamma function

A sum of logs is the log of a product. Divide each linear factor by 6 and the n-th factor becomes (n + 7/3)(n + 1/2) / [(n + 8/3)(n + 1/6)]. The infinite product of such terms has a closed form, provided the shifts in the numerator and the denominator have the same total:

∏ₙ (n + a)(n + b) / ((n + c)(n + d)) = Γ(c)Γ(d) / (Γ(a)Γ(b)),   a + b = c + d

The condition holds here: 7/3 + 1/2 = 17/6 and 8/3 + 1/6 = 17/6. It is not a coincidence. The four exponents in the expanded numerator, 13, 15, 2 and 0, satisfy 13 + 0 = 15 + 2 − 4, so the shifts always balance. That gives:

I = ln[ Γ(8/3) Γ(1/6) / (Γ(7/3) Γ(1/2)) ]

From Gamma values to elementary logs

The recurrence Γ(z + 1) = zΓ(z) reduces each argument to the interval (0, 1). Applying it twice to each value gives Γ(8/3) = (5/3)(2/3)Γ(2/3) and Γ(7/3) = (4/3)(1/3)Γ(1/3). Their ratio is (5/2) · Γ(2/3)/Γ(1/3). Using Γ(1/2) = √π:

I = ln[ (5/2) · Γ(2/3) Γ(1/6) / (Γ(1/3) √π) ]

The remaining factor is exactly 2^(2/3). One way to see it is Legendre's duplication formula, Γ(z)Γ(z + 1/2) = 2^(1 − 2z) √π Γ(2z), at z = 1/6: Γ(1/6)Γ(2/3) = 2^(2/3) √π Γ(1/3). Both answers in the thread finish this step with the reflection formula as well. Either way, I = ln(5 · 2^(−1/3)) = ln 5 − (1/3) ln 2.

The numbers check out. ln 5 ≈ 1.6094379 and (1/3) ln 2 ≈ 0.2310491, giving 1.3783888. That matches the value of 1.3783888522 quoted in the answer.

Where this approach does not fit, and what to watch for

The method works for any numerator exponent m, not only 13. The same steps give the Gamma ratio Γ((m + 3)/6) Γ(1/6) / (Γ((m + 1)/6) √π). It collapses to elementary logs only when the recurrence brings the arguments back to values that the duplication or reflection formulas connect. Here 14/6 and 16/6 reduce to 1/3 and 2/3, and those pair with 1/6. For other residues of m mod 6, the Gamma ratio need not simplify, and a closed form in Gamma values may be the honest final answer.

  • Exponent conditions. The identity ∫(xᵃ − xᵇ)/ln x = ln[(a+1)/(b+1)] requires a, b > −1. Changes that push an exponent below −1 break it.
  • The balance condition. The Gamma product formula needs a + b = c + d. If the shifts do not balance, the product does not converge to a finite nonzero value, and the formula should not be applied.
  • Justifying the swap. Exchanging the sum and the integral relied on every term being nonnegative. A variant with sign-changing terms needs dominated convergence or a separate argument.
  • Numerical checks. The integrand is 0/0 at x = 1 even though the limit is 13/3. A quadrature rule that samples the endpoint can return NaN unless it uses open nodes or the limit is coded in explicitly.

When a numerical value looks like a short expression in logs, look for a reduction to Frullani-type pieces before reaching for a parameter. Differentiating under the integral sign removes ln x, but here it led to a harder integral of digamma functions.

  • #Frullani integral
  • #Gamma function
  • #Integration
  • #calculus
  • #definite-integrals
  • #infinite products

Comments

Add a comment
Sign in with Google to join the conversation