๐Ÿงฎ Brain Teaser

The Integral of xxx^x's Cousin

Evaluate the definite integral

I=โˆซ01xlnโกxโ€‰dx.I = \int_0^1 x \ln x \, dx.

Then use the same idea to compute

J=โˆซ01xnlnโกxโ€‰dxforย anyย integerย nโ‰ฅ0,J = \int_0^1 x^n \ln x \, dx \quad \text{for any integer } n \geq 0,

and finally evaluate the beautiful series

S=โˆ‘n=0โˆžโˆซ01xnlnโกxโ€‰dx.S = \sum_{n=0}^{\infty} \int_0^1 x^n \ln x \, dx.

What does SS equal, and why is the answer satisfying?

Feynman differentiation under integral signBasel problemzeta functiongeometric series

Answer: Integral of x^n ln x and Basel

Key Idea / Intuition

The key trick is differentiation under the integral sign (Feynman's trick): instead of integrating xnlnโกxx^n \ln x directly, notice that xnlnโกx=โˆ‚โˆ‚nxnx^n \ln x = \frac{\partial}{\partial n} x^n. So we can turn the lnโกx\ln x factor into a derivative with respect to a parameter, evaluate a simpler integral first, then differentiate. The series SS then telescopes beautifully via a geometric series identity.


Formal Proof / Solution

Step 1: Compute J=โˆซ01xnlnโกxโ€‰dxJ = \int_0^1 x^n \ln x \, dx

Feynman's trick: For s>โˆ’1s > -1, define

F(s)=โˆซ01xsโ€‰dx=1s+1.F(s) = \int_0^1 x^s \, dx = \frac{1}{s+1}.

Differentiate both sides with respect to ss:

Fโ€ฒ(s)=โˆซ01xslnโกxโ€‰dx=โˆ’1(s+1)2.F'(s) = \int_0^1 x^s \ln x \, dx = -\frac{1}{(s+1)^2}.

Setting s=ns = n (integer โ‰ฅ0\geq 0):

J=โˆซ01xnlnโกxโ€‰dx=โˆ’1(n+1)2.\boxed{J = \int_0^1 x^n \ln x \, dx = -\frac{1}{(n+1)^2}.}

Check for n=1n=1: Integration by parts gives โˆซ01xlnโกxโ€‰dx=[x22lnโกx]01โˆ’โˆซ01x2โ€‰dx=0โˆ’14=โˆ’14\int_0^1 x\ln x\,dx = \left[\frac{x^2}{2}\ln x\right]_0^1 - \int_0^1 \frac{x}{2}\,dx = 0 - \frac{1}{4} = -\frac{1}{4}. โœ“ (Formula gives โˆ’1(1+1)2=โˆ’14-\frac{1}{(1+1)^2} = -\frac{1}{4}.)


Step 2: Compute the series SS

S=โˆ‘n=0โˆžJn=โˆ‘n=0โˆž(โˆ’1(n+1)2)=โˆ’โˆ‘m=1โˆž1m2=โˆ’ฯ€26.S = \sum_{n=0}^{\infty} J_n = \sum_{n=0}^{\infty} \left(-\frac{1}{(n+1)^2}\right) = -\sum_{m=1}^{\infty} \frac{1}{m^2} = -\frac{\pi^2}{6}.

We can also swap sum and integral (justified by dominated convergence since โˆฃlnโกxโˆฃโ‰คCxโˆ’ฯต|\ln x| \leq C x^{-\epsilon}):

S=โˆซ01lnโกxโˆ‘n=0โˆžxnโ€‰dx=โˆซ01lnโกx1โˆ’xโ€‰dx=โˆ’ฯ€26.S = \int_0^1 \ln x \sum_{n=0}^{\infty} x^n \, dx = \int_0^1 \frac{\ln x}{1-x} \, dx = -\frac{\pi^2}{6}.

This last integral โˆซ01lnโกx1โˆ’xโ€‰dx=โˆ’ฯ€26\displaystyle\int_0^1 \frac{\ln x}{1-x}\,dx = -\frac{\pi^2}{6} is itself a classic โ€” it's essentially another derivation of the Basel problem ฮถ(2)=ฯ€2/6\zeta(2) = \pi^2/6!


Summary

| Integral | Value | |---|---| | โˆซ01xnlnโกxโ€‰dx\int_0^1 x^n \ln x\,dx | โˆ’1(n+1)2-\dfrac{1}{(n+1)^2} | | โˆ‘n=0โˆžโˆซ01xnlnโกxโ€‰dx\sum_{n=0}^\infty \int_0^1 x^n \ln x\,dx | โˆ’ฯ€26-\dfrac{\pi^2}{6} |

The satisfying payoff: a natural-looking sum of elementary integrals secretly encodes the Basel sum ฮถ(2)\zeta(2).

Type: IntegrationEdit on GitHub โ†—