The integral is:
$$I = \int_{-1}^{1} \frac{\sin(\cot^{-1}x) + \cos(\tan^{-1}x)}{x^2 + 1}\,\mathrm{d}x$$
First method: We notice that the sine term is entirely an odd function so its contribution to the integral is $0$. Working with a triangle and after a few steps, we get $I = \sqrt2$. This result seems consistent with WolframAlpha.
Second method: We use the fact that $$\cot^{-1}{x} + \tan^{-1}x = \pi/2$$ Then, $$\cos(\tan^{-1}x) = \cos(\pi/2 - \cot^{-1}{x}) = \sin(\cot^{-1}{x})$$ And the whole integral becomes $0$ after noticing that the function becomes odd.
Third method: We use the same fact, but we make $$\sin(\cot^{-1}{x}) = \cos(\tan^{-1}x)$$ and we get $I = 2\sqrt2$.
What am I missing? I suspect that the identity might not hold true in this case but I fail to see why.
ArcCotdeviates from the common convention of being continuous. $\endgroup$