Answer: Integral of 1/(1+tan^n x)
Key Idea / Intuition
The substitution xโฆ2ฯโโx swaps tanx with cotx=1/tanx. When you add the original integral to the substituted version, the two integrands sum to exactly 1 everywhere on [0,ฯ/2]. So 2Inโ=ฯ/2, regardless of n.
Formal Proof / Solution
Step 1: Apply the King's substitution x=2ฯโโt.
Under this substitution, dx=โdt, and when x=0, t=ฯ/2; when x=ฯ/2, t=0. Also:
tan(2ฯโโt)=cott=tant1โ
So:
Inโ=โซฯ/20โ1+cotnt1โ(โdt)=โซ0ฯ/2โ1+cotnt1โdt
Step 2: Simplify the new integrand.
1+cotnt1โ=1+tannt1โ1โ=1+tannttanntโ
Step 3: Add the two expressions.
2Inโ=โซ0ฯ/2โ1+tannx1โdx+โซ0ฯ/2โ1+tannxtannxโdx=โซ0ฯ/2โ1+tannx1+tannxโdx=โซ0ฯ/2โ1dx=2ฯโ
Step 4: Conclude.
Inโ=4ฯโโ
for every n>0, independently of n. The result is the same whether n=1,2,1000, or ฯ.
Why this is surprising: The integrand 1+tannx1โ changes its shape dramatically as n varies โ for large n it becomes nearly a step function jumping at x=ฯ/4 โ yet the area is always exactly ฯ/4. The symmetry of the interval [0,ฯ/2] about its midpoint ฯ/4 is the hidden reason.