🧮 Brain Teaser

The Integral That Reflects Twice

Evaluate:

I=∫01ln⁡(1+x)1+x2 dxI = \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+x2 dx\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 ln⁡2\ln\sqrt{2} and π\pi.


Formal Proof / Solution

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

Set x=tan⁡θx = \tan\theta, so dx=sec⁡2θ dθdx = \sec^2\theta\,d\theta and 1+x2=sec⁡2θ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⁡θ)sec⁡2θ⋅sec⁡2θ 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−θ)=1−tan⁡θ1+tan⁡θ.\tan\!\left(\tfrac{\pi}{4}-\theta\right) = \frac{1-\tan\theta}{1+\tan\theta}.

So:

1+tan⁡ ⁣(π4−θ)=1+1−tan⁡θ1+tan⁡θ=(1+tan⁡θ)+(1−tan⁡θ)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[ln⁡2−ln⁡(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[ln⁡2−ln⁡(1+tan⁡θ)]dθ=∫0π/4ln⁡2 dθ=π4ln⁡2.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=π8ln⁡2.J = \frac{\pi}{8}\ln 2.

Conclusion:

I=π8ln⁡2.\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 ln⁡2\ln 2 — and the integral of a constant over [0,π/4][0,\pi/4] is trivial.

Type: IntegrationEdit on GitHub ↗