I'm currently trying to solve an exercise that asks for which values of $\alpha \in \mathbb{R}$ the integral
$\int_0^{+\infty}f(x)\,dx$ is convergent, where $f(x)=\frac{1}{x^\alpha} \log\left(1+\frac{1}{x}\right)\arctan(x)$.
I first split the integral in $\int_0^1 f(x) \, dx$ and $\int_1^{+\infty}f(x)\,dx$. I found that $$f(x)\sim \frac{\log\left(1+\frac{1}{x}\right)\frac{\pi}{2}}{x^{\alpha+1}\frac{1}{x}} \sim \frac{\frac{\pi}{2}}{x^{\alpha+1}} \text{ as } x \rightarrow +\infty.$$
So $\int_1^{+\infty} f(x)\,dx$ converges iff $\alpha > 0$.
And now I'm stuck here. How should I continue?
Thanks.