Find the values $a$ s.t. the integral
$$\int_0^{\infty}\frac{\ln(1+x^2)}{x^a}dx$$
converges.
I tried some values of $a$ by programming, it seems that for $a=2$, the integral converges, and for $a=3$, it diverges. But how can we explicitly determine the range of convergence?
Hint: Near $x=0$, $\frac{\log(1+x^2)}{x^a}\sim x^{2-a}$ and as $x\to\infty$, $\frac{\log(1+x^2)}{x^a}\le C_\epsilon x^{\epsilon-\alpha}$ for all $\epsilon\gt0$.
Not that it matters to the question, but $C_\epsilon$ is approximately $\dfrac2{e\epsilon}$ .