Answer: The Integral That Reflects Twice
Key Idea / Intuition
The integral ∫ 0 1 ln ( 1 + x ) 1 + x 2 d x \int_0^1 \frac{\ln(1+x)}{1+x^2}\,dx ∫ 0 1 1 + x 2 l n ( 1 + x ) d x looks hard because the logarithm and rational function don't obviously interact. The trick is to use the substitution x = tan θ x = \tan\theta x = tan θ to convert it into a trigonometric integral over [ 0 , π / 4 ] [0,\pi/4] [ 0 , π /4 ] , then exploit the reflection θ ↦ π / 4 − θ \theta \mapsto \pi/4 - \theta θ ↦ π /4 − θ (a symmetry of the integration interval) to collapse ln ( 1 + tan θ ) \ln(1+\tan\theta) ln ( 1 + tan θ ) into something whose average is a pure constant — revealing I I I in terms of ln 2 \ln\sqrt{2} ln 2 and π \pi π .
Formal Proof / Solution
Step 1: Substitute x = tan θ x = \tan\theta x = tan θ .
Set x = tan θ x = \tan\theta x = tan θ , so d x = sec 2 θ d θ dx = \sec^2\theta\,d\theta d x = sec 2 θ d θ and 1 + x 2 = sec 2 θ 1+x^2 = \sec^2\theta 1 + x 2 = sec 2 θ . When x = 0 x=0 x = 0 , θ = 0 \theta=0 θ = 0 ; when x = 1 x=1 x = 1 , θ = π / 4 \theta = \pi/4 θ = π /4 . Then:
I = ∫ 0 π / 4 ln ( 1 + tan θ ) sec 2 θ ⋅ sec 2 θ d θ = ∫ 0 π / 4 ln ( 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. I = ∫ 0 π /4 s e c 2 θ l n ( 1 + t a n θ ) ⋅ sec 2 θ d θ = ∫ 0 π /4 ln ( 1 + tan θ ) d θ .
Step 2: Apply the reflection θ ↦ π / 4 − θ \theta \mapsto \pi/4 - \theta θ ↦ π /4 − θ .
Let J = ∫ 0 π / 4 ln ( 1 + tan θ ) d θ J = \int_0^{\pi/4} \ln(1+\tan\theta)\,d\theta J = ∫ 0 π /4 ln ( 1 + tan θ ) d θ . Substitute θ → π / 4 − θ \theta \to \pi/4 - \theta θ → π /4 − θ :
J = ∫ 0 π / 4 ln ( 1 + tan ( π 4 − θ ) ) d θ . J = \int_0^{\pi/4} \ln\!\left(1 + \tan\!\left(\tfrac{\pi}{4}-\theta\right)\right)d\theta. J = ∫ 0 π /4 ln ( 1 + tan ( 4 π − θ ) ) d θ .
Use the addition formula:
tan ( π 4 − θ ) = 1 − tan θ 1 + tan θ . \tan\!\left(\tfrac{\pi}{4}-\theta\right) = \frac{1-\tan\theta}{1+\tan\theta}. tan ( 4 π − θ ) = 1 + t a n θ 1 − t a n θ .
So:
1 + tan ( π 4 − θ ) = 1 + 1 − tan θ 1 + tan θ = ( 1 + tan θ ) + ( 1 − tan θ ) 1 + tan θ = 2 1 + 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}. 1 + tan ( 4 π − θ ) = 1 + 1 + t a n θ 1 − t a n θ = 1 + t a n θ ( 1 + t a n θ ) + ( 1 − t a n θ ) = 1 + t a n θ 2 .
Therefore:
J = ∫ 0 π / 4 ln ( 2 1 + 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. J = ∫ 0 π /4 ln ( 1 + t a n θ 2 ) d θ = ∫ 0 π /4 [ ln 2 − ln ( 1 + tan θ ) ] d θ .
Step 3: Solve for J J J .
Adding J J J to itself (original + reflected):
2 J = ∫ 0 π / 4 ln ( 1 + tan θ ) d θ + ∫ 0 π / 4 [ ln 2 − ln ( 1 + tan θ ) ] d θ = ∫ 0 π / 4 ln 2 d θ = π 4 ln 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. 2 J = ∫ 0 π /4 ln ( 1 + tan θ ) d θ + ∫ 0 π /4 [ ln 2 − ln ( 1 + tan θ ) ] d θ = ∫ 0 π /4 ln 2 d θ = 4 π ln 2.
Thus:
J = π 8 ln 2. J = \frac{\pi}{8}\ln 2. J = 8 π ln 2.
Conclusion:
I = π 8 ln 2. \boxed{I = \frac{\pi}{8}\ln 2.} I = 8 π ln 2.
The beautiful punchline: the reflection θ ↦ π / 4 − θ \theta \mapsto \pi/4-\theta θ ↦ π /4 − θ causes ln ( 1 + tan θ ) \ln(1+\tan\theta) ln ( 1 + tan θ ) and ln ( 2 / ( 1 + tan θ ) ) \ln(2/(1+\tan\theta)) ln ( 2/ ( 1 + tan θ )) to be mirror images of each other, so their sum is just the constant ln 2 \ln 2 ln 2 — and the integral of a constant over [ 0 , π / 4 ] [0,\pi/4] [ 0 , π /4 ] is trivial.