🧮 Brain Teaser

The Integral That Reflects Twice

Evaluate:

I=01ln(1+x)1+x2dxI = \int_0^1 \frac{\ln(1+x)}{1+x^2}\,dx

using only elementary symmetry/substitution tricks — no complex analysis, no Feynman differentiation under the integral sign.

Hint: Think about what happens when you split the interval and reflect.

substitutionsymmetrylogarithmtrigonometricreflection trick

Answer: The Integral That Reflects Twice

Key Idea / Intuition

The integral 01ln(1+x)1+x2dx\int_0^1 \frac{\ln(1+x)}{1+x^2}\,dx looks hard because the logarithm and rational function don't obviously interact. The trick is to use the substitution x=tanθx = \tan\theta to convert it into a trigonometric integral over [0,π/4][0,\pi/4], then exploit the reflection θπ/4θ\theta \mapsto \pi/4 - \theta (a symmetry of the integration interval) to collapse ln(1+tanθ)\ln(1+\tan\theta) into something whose average is a pure constant — revealing II in terms of ln2\ln\sqrt{2} and π\pi.


Formal Proof / Solution

Step 1: Substitute x=tanθx = \tan\theta.

Set x=tanθx = \tan\theta, so dx=sec2θdθdx = \sec^2\theta\,d\theta and 1+x2=sec2θ1+x^2 = \sec^2\theta. When x=0x=0, θ=0\theta=0; when x=1x=1, θ=π/4\theta = \pi/4. Then:

I=0π/4ln(1+tanθ)sec2θsec2θdθ=0π/4ln(1+tanθ)dθ.I = \int_0^{\pi/4} \frac{\ln(1+\tan\theta)}{\sec^2\theta}\cdot \sec^2\theta\,d\theta = \int_0^{\pi/4} \ln(1+\tan\theta)\,d\theta.

Step 2: Apply the reflection θπ/4θ\theta \mapsto \pi/4 - \theta.

Let J=0π/4ln(1+tanθ)dθJ = \int_0^{\pi/4} \ln(1+\tan\theta)\,d\theta. Substitute θπ/4θ\theta \to \pi/4 - \theta:

J=0π/4ln ⁣(1+tan ⁣(π4θ))dθ.J = \int_0^{\pi/4} \ln\!\left(1 + \tan\!\left(\tfrac{\pi}{4}-\theta\right)\right)d\theta.

Use the addition formula:

tan ⁣(π4θ)=1tanθ1+tanθ.\tan\!\left(\tfrac{\pi}{4}-\theta\right) = \frac{1-\tan\theta}{1+\tan\theta}.

So:

1+tan ⁣(π4θ)=1+1tanθ1+tanθ=(1+tanθ)+(1tanθ)1+tanθ=21+tanθ.1 + \tan\!\left(\tfrac{\pi}{4}-\theta\right) = 1 + \frac{1-\tan\theta}{1+\tan\theta} = \frac{(1+\tan\theta)+(1-\tan\theta)}{1+\tan\theta} = \frac{2}{1+\tan\theta}.

Therefore:

J=0π/4ln ⁣(21+tanθ)dθ=0π/4[ln2ln(1+tanθ)]dθ.J = \int_0^{\pi/4} \ln\!\left(\frac{2}{1+\tan\theta}\right)d\theta = \int_0^{\pi/4} \left[\ln 2 - \ln(1+\tan\theta)\right]d\theta.

Step 3: Solve for JJ.

Adding JJ to itself (original + reflected):

2J=0π/4ln(1+tanθ)dθ+0π/4[ln2ln(1+tanθ)]dθ=0π/4ln2dθ=π4ln2.2J = \int_0^{\pi/4}\ln(1+\tan\theta)\,d\theta + \int_0^{\pi/4}\left[\ln 2 - \ln(1+\tan\theta)\right]d\theta = \int_0^{\pi/4}\ln 2\,d\theta = \frac{\pi}{4}\ln 2.

Thus:

J=π8ln2.J = \frac{\pi}{8}\ln 2.

Conclusion:

I=π8ln2.\boxed{I = \frac{\pi}{8}\ln 2.}

The beautiful punchline: the reflection θπ/4θ\theta \mapsto \pi/4-\theta causes ln(1+tanθ)\ln(1+\tan\theta) and ln(2/(1+tanθ))\ln(2/(1+\tan\theta)) to be mirror images of each other, so their sum is just the constant ln2\ln 2 — and the integral of a constant over [0,π/4][0,\pi/4] is trivial.

Type: IntegrationEdit on GitHub ↗