The given integral is:
I=∫01cot−1(1+x+x2)dx
Simplify the Integrand
Using the identity cot−1θ=tan−1(θ1):
cot−1(1+x+x2)=tan−1(1+x+x21)
Rearranging the argument to fit the identity tan−1(1+ABA−B)=tan−1A−tan−1B:
1+x(x+1)1=1+x(x+1)(x+1)−x
∴cot−1(1+x+x2)=tan−1(x+1)−tan−1x
Definite Integration
I=∫01tan−1(x+1)dx−∫01tan−1xdx
Recall the general integral formula: ∫tan−1udu=utan−1u−21ln(1+u2).
Evaluating the first part:
[(x+1)tan−1(x+1)−21ln(1+(x+1)2)]01
=(2tan−12−21ln5)−(1tan−11−21ln1)
=2tan−12−21ln5−4π
Evaluating the second part:
[xtan−1x−21ln(1+x2)]01
=(1tan−11−21ln2)−(0)
=4π−21ln2
Combine and Simplify
I=(2tan−12−21ln5−4π)−(4π−21ln2)
I=2tan−12−21ln5+21ln2−2π
I=2tan−12−21loge(25)−2π