The following integral is simple to compute
$$I=\int_{0}^{\infty}\frac{\arctan(x)}{1+x^2}dx \,\,\tag{1}$$
letting $$u=\arctan x \Rightarrow du=\frac{dx}{1+x^2}$$
$$\int\frac{\arctan(x)}{1+x^2}dx=\int u \, du = \frac{u^2}{2}$$
Therefore
$$\int_{0}^{\infty}\frac{\arctan(x)}{1+x^2}dx=\frac{\arctan^2 (x)}{2}\Big|_{0}^{\infty}=\frac{\pi^2}{8}$$
But if we introduce a parameter $a$ in (1) such that the integral becomes
$$I(a)=\int_{0}^{\infty}\frac{\arctan(ax)}{1+x^2}dx \,\,\tag{2}$$
the same technique above does not apply anymore.
My attempt for this integral is differentiating (2) w.r. to a
$$I^{\prime}(a)=\int_{0}^{\infty}\frac{x}{\left(1+x^2\right)\left(1+(ax)^2 \right)}dx \,\,$$
From this point I got stuck, altough I tried one more step using the fact that
$$\int_{0}^{\infty}e^{-xt}\cos(t)dt=\frac{x}{1+x^2}$$
$$I^{\prime}(a)=\int_{0}^{\infty}\int_{0}^{\infty}\frac{e^{-xt}\cos(t)}{\left(1+(ax)^2 \right)}\,dt\,dx $$
$$I^{\prime}(a)=\int_{0}^{\infty}\cos(t)\int_{0}^{\infty}\frac{e^{-xt}}{\left(1+(ax)^2 \right)}\,dx\,dt $$
But it seems too hard.
Alternatively, integrating by parts we obtain
$$I(a)=\int_{0}^{\infty}\frac{\arctan(ax)}{1+x^2}dx=-a\int_{0}^{\infty}\frac{\arctan(x)}{1+(ax)^2}dx$$
now using the following integral representation
$$\arctan (x)=\int_{0}^{1}\frac{x}{1+x^2y^2}dy$$
$$I(a)=-a\int_{0}^{\infty}\int_{0}^{1}\frac{x}{\left(1+y^2x^2\right)\left(1+a^2x^2 \right)}dy \,dx$$
$$I(a)=-a\int_{0}^{1}\int_{0}^{\infty}\frac{x}{\left(1+y^2x^2\right)\left(1+a^2x^2 \right)}dx \, dy$$
I dont know the solution of this integral, however I saw these results below and I wanted to proof them
$$\int_{0}^{\infty} \frac{\arctan \frac{x}{\phi}}{1+x^{2}} d x=\frac{\pi^{2}}{12}+\frac{3 \ln ^{2} \phi}{4} $$
$$\int_{0}^{\infty} \frac{\arctan \phi x}{1+x^{2}} d x =\frac{\pi^{2}}{6}-\frac{3 \ln ^{2} \phi}{4}$$