Maths WorkshopMaths problems with full solutions
Exercise 2078Calculus › Single-variable calculus › Integration › Integration techniquesOlympiadAdded 2 Nov 2026

An integral that equals its own mirror image

#symmetry#substitution#logarithm#tangent

Statement

Compute
I=∫01ln⁡(1+x)1+x2 dx.I=\int_0^1\frac{\ln(1+x)}{1+x^2}\,dx.

Hint

The substitution x=tan⁡θx=\tan\theta turns dx1+x2\frac{dx}{1+x^2} into dθd\theta. Then use the symmetry θ↦π4−θ\theta\mapsto\frac\pi4-\theta and tan⁡(π4−θ)=1−tan⁡θ1+tan⁡θ\tan\left(\frac\pi4-\theta\right)=\frac{1-\tan\theta}{1+\tan\theta}.

Show solutionHide solution

Solution

Step 1: substitute. With x=tan⁡θx=\tan\theta, dx=(1+tan⁡2θ) dθdx=(1+\tan^2\theta)\,d\theta and θ\theta runs from 00 to π4\frac\pi4:
I=∫0π/4ln⁡(1+tan⁡θ) dθ.I=\int_0^{\pi/4}\ln(1+\tan\theta)\,d\theta.

Step 2: the mirror. Replace θ\theta by π4−θ\frac\pi4-\theta:
I=∫0π/4ln⁡ ⁣(1+1−tan⁡θ1+tan⁡θ)dθ=∫0π/4ln⁡21+tan⁡θ dθ=π4ln⁡2−I.I=\int_0^{\pi/4}\ln\!\left(1+\frac{1-\tan\theta}{1+\tan\theta}\right)d\theta=\int_0^{\pi/4}\ln\frac2{1+\tan\theta}\,d\theta=\frac\pi4\ln2-I.

Step 3: conclude. 2I=π4ln⁡22I=\frac\pi4\ln2, so
I=πln⁡28.I=\frac{\pi\ln2}8.

Numerical check. πln⁡28≈0.27220\frac{\pi\ln2}8\approx0.27220, matching a direct numerical integration.

Remark. The integral looks impossible to do by antiderivatives (it is not elementary). The trick is to add the integral to its own reflection and let the logarithms combine.