How to compute the integral
$$\int_0^1 {\tan^{-1}\left(x\right) \over {1+x}}\,{\rm d}x$$
How to compute the integral
$$\int_0^1 {\tan^{-1}\left(x\right) \over {1+x}}\,{\rm d}x$$
Use the substitution $x=\frac{1-y}{1+y}$ so that $\mathrm{d}x=-\frac{2\mathrm{d}y}{(1+y)^2}$ and $\tan^{-1}(x)+\tan^{-1}(y)=\frac\pi4$. $$ \begin{align} \int_0^1\frac{\tan^{-1}(x)}{1+x}\,\mathrm{d}x &=\int_0^1\frac{\frac\pi4-\tan^{-1}(y)}{\frac2{1+y}}\frac{2\mathrm{d}y}{(1+y)^2}\\ &=\int_0^1\frac{\frac\pi4-\tan^{-1}(y)}{1+y}\,\mathrm{d}y\\[4pt] &=\frac\pi4\log(2)-\int_0^1\frac{\tan^{-1}(y)}{1+y}\,\mathrm{d}y\\ \end{align} $$ Therefore, $$ \int_0^1\frac{\tan^{-1}(x)}{1+x}\,\mathrm{d}x=\frac\pi8\log(2) $$
$\int_0^1 {{tan^{-1}x}\over {1+x}}dx=[tan^{-1}x\int {dx\over{1+x}}]_0^1-\int_0^1{log(1+x)\over{1+x^2}}dx={\pi\over 8}log2$
Putting $x=tan y$ in the 2nd integral