<s>[INST] Does $\int_1^{\infty}\frac{x^2\tan^{-1}(ax)}{x^4+x^2+1}dx$ have closed form? I have been trying to find the closed form for integral below $$\int_1^{\infty}\frac{x^2\tan^{-1}(ax)}{x^4+x^2+1}dx ,\; \; a>0 $$
My progress to this integral  $$\cong\frac{\pi^2}{8\sqrt 3}+\frac{\pi}{8}\log(3)-\frac{\pi}{6a\sqrt 2}+\frac{1}{2a^3}\left(\frac{\log(3)}{4} -\frac{\pi}{12\sqrt 3}\right)-\frac{1}{5a^5}\left(\frac{1}{2}-\frac{\pi}{12\sqrt 2}-\frac{\log(3)}{4}\right)+\frac{1}{7a^7}\left(\frac{\pi}{6\sqrt 3}-\frac{1}{2}\right)+\frac{1}{108a^9} +\frac{1}{9a^9}\left(\frac{\log(3)}{9}-\frac{\pi}{12\sqrt 3}\right)-\frac{1}{24a^{11}}+\cdots $$ Using the series of $\tan(ax)$ the above form is obtained. However, I dont find closed form for it. If $a\to\infty+$,then it is equal to $\frac{\pi^2}{8\sqrt 3}+\frac{\pi}{8}\log(3)$.
 [/INST] We have \begin{align}\int_1^{\infty}\frac{x^2\arctan ax}{x^4+x^2+1}\,dx&=\int_0^1\frac{\arctan a/u}{u^2(1/u^4+1/u^2+1)}\frac{du}{u^2}\\&=\int_0^1\frac{\pi/2-\arctan u/a}{u^4+u^2+1}\,dx\\&=\frac\pi2\left(\frac14\log3+\frac{\pi\sqrt3}{12}\right)-\int_0^1\frac{\arctan bu}{u^4+u^2+1}\,du\end{align} using $u^4+u^2+1=(u^2+u+1)(u^2-u+1)$ and $b=1/a$. The remaining integral can be represented in terms of dilogarithms, such as in this answer, but I doubt there is a clean result with an arbitrary $b>0$.
In short, this integral does have a closed form, but is unlikely to be "simple"; e.g. case $a=7$.
(As $a\to+\infty$ the term $\int_0^1\frac{\arctan bu}{u^4+u^2+1}\,du$ has contribution $\to0$ so your observation is true.)
</s>