๐Ÿงฎ Brain Teaser

The Basel-Flavored Integral

Compute the integral

I=โˆซ01lnโก(1+x)xโ€‰dx.I = \int_0^1 \frac{\ln(1+x)}{x}\, dx.

power seriesterm-by-term integrationBasel seriespi squared

Answer: The Basel-Flavored Integral

Key Idea / Intuition

The integrand lnโก(1+x)x\frac{\ln(1+x)}{x} looks innocent, but expanding lnโก(1+x)\ln(1+x) as a power series and integrating term-by-term reveals the famous alternating Basel-type series 1โˆ’14+19โˆ’116+โ‹ฏ1 - \frac{1}{4} + \frac{1}{9} - \frac{1}{16} + \cdots. This series has a beautiful closed form related to ฯ€2\pi^2, and the whole computation reduces to recognizing it.


Formal Proof / Solution

Step 1: Power series expansion.

Recall the Taylor series for lnโก(1+x)\ln(1+x) valid on (โˆ’1,1](-1, 1]:

lnโก(1+x)=xโˆ’x22+x33โˆ’x44+โ‹ฏ=โˆ‘n=1โˆž(โˆ’1)nโˆ’1xnn.\ln(1+x) = x - \frac{x^2}{2} + \frac{x^3}{3} - \frac{x^4}{4} + \cdots = \sum_{n=1}^{\infty} \frac{(-1)^{n-1} x^n}{n}.

Step 2: Divide by xx.

lnโก(1+x)x=โˆ‘n=1โˆž(โˆ’1)nโˆ’1xnโˆ’1n.\frac{\ln(1+x)}{x} = \sum_{n=1}^{\infty} \frac{(-1)^{n-1} x^{n-1}}{n}.

Step 3: Integrate term by term.

On [0,1][0,1], the series converges uniformly (by Abel's theorem / Dirichlet test), so we may integrate term by term:

I=โˆซ01โˆ‘n=1โˆž(โˆ’1)nโˆ’1xnโˆ’1nโ€‰dx=โˆ‘n=1โˆž(โˆ’1)nโˆ’1nโˆซ01xnโˆ’1โ€‰dx=โˆ‘n=1โˆž(โˆ’1)nโˆ’1n2.I = \int_0^1 \sum_{n=1}^{\infty} \frac{(-1)^{n-1} x^{n-1}}{n}\, dx = \sum_{n=1}^{\infty} \frac{(-1)^{n-1}}{n} \int_0^1 x^{n-1}\, dx = \sum_{n=1}^{\infty} \frac{(-1)^{n-1}}{n^2}.

Step 4: Identify the series.

We recognize the alternating sum:

โˆ‘n=1โˆž(โˆ’1)nโˆ’1n2=1โˆ’14+19โˆ’116+โ‹ฏ\sum_{n=1}^{\infty} \frac{(-1)^{n-1}}{n^2} = 1 - \frac{1}{4} + \frac{1}{9} - \frac{1}{16} + \cdots

This is a classical result. From the Euler identity โˆ‘n=1โˆž1n2=ฯ€26\sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}, one can split by parity:

โˆ‘n=1โˆž(โˆ’1)nโˆ’1n2=โˆ‘odd1n2โˆ’โˆ‘even1n2.\sum_{n=1}^{\infty} \frac{(-1)^{n-1}}{n^2} = \sum_{\text{odd}} \frac{1}{n^2} - \sum_{\text{even}} \frac{1}{n^2}.

Let S=โˆ‘n=1โˆž1n2=ฯ€26S = \sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6} and E=โˆ‘k=1โˆž1(2k)2=14SE = \sum_{k=1}^\infty \frac{1}{(2k)^2} = \frac{1}{4}S. Then:

โˆ‘n=1โˆž(โˆ’1)nโˆ’1n2=Sโˆ’2E=Sโˆ’S2=S2=ฯ€212.\sum_{n=1}^{\infty} \frac{(-1)^{n-1}}{n^2} = S - 2E = S - \frac{S}{2} = \frac{S}{2} = \frac{\pi^2}{12}.

Result:

I=ฯ€212.\boxed{I = \frac{\pi^2}{12}.}

Why this is beautiful: A completely elementary-looking integral over [0,1][0,1] secretly encodes ฯ€2\pi^2. The bridge is the Basel series โ€” a recurring miracle in analysis.

Type: IntegrationEdit on GitHub โ†—