I=∫01cot−1(1+x+x2)dx=∫01tan−1(1+x+x21)dx
1+x(1+x)1=1+x(1+x)(1+x)−x
I=∫01[tan−1(1+x)−tan−1(x)]dx (Using the identity tan−1(1+ABA−B)=tan−1(A)−tan−1(B))
∫tan−1(x)⋅1dx=xtan−1(x)−∫1+x2xdx=xtan−1(x)−21loge(1+x2)
For ∫01tan−1(x)dx:
[xtan−1(x)−21loge(1+x2)]01=(1⋅4π−21loge(2))−(0−0)=4π−21loge2
For ∫01tan−1(1+x)dx:
Let t=1+x⟹dt=dx. Limits change from x=0→t=1 and x=1→t=2.
∫12tan−1(t)dt=[ttan−1(t)−21loge(1+t2)]12
=(2tan−1(2)−21loge(5))−(1⋅4π−21loge(2))
=2tan−1(2)−21loge(5)−4π+21loge(2)
I=(2tan−1(2)−21loge(5)−4π+21loge(2))−(4π−21loge(2))
I=2tan−12−21loge45−2π