I found it with help of Wolfram alpha .
$$\int_{0}^{\infty}\arctan\left(\frac{2}{x^2+1}\right)dx=\pi\sqrt{\phi^{-1}}$$
This integral admits an antiderivative (I can add it if so) so I can conclude that this result is true .I would like to see a proof with the use of complex integration or a 'real' proof . For that I think we can put $y=\frac{2}{x^2+1}$ and use integration by parts (perhaps?).For the proof with complex integration(if it exists I'm new for it ) can you detail the solution ?
Thanks!
Here's a brute-force method: $$ \begin{aligned} \int{\arctan}\left( \frac{2}{x^2+1} \right) \,dx&=\int{\mathrm{arccot}}\left( \frac{1}{2}+\frac{x^2}{2} \right) \,dx\\ &=x\;\mathrm{arccot} \left( \frac{1}{2}+\frac{x^2}{2} \right) +\int{\frac{x^2}{\frac{5}{4}+\frac{x^2}{2}+\frac{x^4}{4}}}\,dx\\ &=x\;\mathrm{arccot} \left( \frac{1}{2}+\frac{x^2}{2} \right) -\frac{1}{2}\int{\frac{\sqrt{5}-x^2}{\frac{5}{4}+\frac{x^2}{2}+\frac{x^4}{4}}}\,dx+\frac{1}{2}\int{\frac{\sqrt{5}+x^2}{\frac{5}{4}+\frac{x^2}{2}+\frac{x^4}{4}}}\,dx\\ &=x\;\mathrm{arccot} \left( \frac{1}{2}+\frac{x^2}{2} \right) \\&+\frac{\displaystyle \int{\frac{\sqrt{2\left( -1+\sqrt{5} \right)}+2x}{-\sqrt{5}-\sqrt{2\left( -1+\sqrt{5} \right)}x-x^2}}\,dx}{\sqrt{2\left( -1+\sqrt{5} \right)}}+\frac{\displaystyle \int{\frac{\sqrt{2\left( -1+\sqrt{5} \right)}-2x}{-\sqrt{5}+\sqrt{2\left( -1+\sqrt{5} \right)}x-x^2}}\,dx}{\sqrt{2\left( -1+\sqrt{5} \right)}}\\&+\int{\frac{1}{\sqrt{5}-\sqrt{2\left( -1+\sqrt{5} \right)}x+x^2}}\,dx+\int{\frac{1}{\sqrt{5}+\sqrt{2\left( -1+\sqrt{5} \right)}x+x^2}}\,dx\\ &=x\;\mathrm{arccot} \left( \frac{1}{2}+\frac{x^2}{2} \right) \\&+\frac{\log \left( \sqrt{5}-\sqrt{2\left( -1+\sqrt{5} \right)}x+x^2 \right)}{\sqrt{2\left( -1+\sqrt{5} \right)}}-\frac{\log \left( \sqrt{5}+\sqrt{2\left( -1+\sqrt{5} \right)}x+x^2 \right)}{\sqrt{2\left( -1+\sqrt{5} \right)}}\\ &+\sqrt{\frac{2}{\sqrt{5}+1}} \arctan\left(\frac{2 x+\sqrt{2 \left(\sqrt{5}-1\right)}}{\sqrt{2 \left(\sqrt{5}+1\right)}}\right)\\&-\sqrt{\frac{2}{\sqrt{5}+1}} \arctan \left(\frac{\sqrt{2 \left(\sqrt{5}-1\right)}-2 x}{\sqrt{2 \left(\sqrt{5}+1\right)}}\right) \\&\overset{\text{def}}{=} F(x) \end{aligned} $$ One can easily see that $$ \underset{x\to \infty }{\text{lim}}x \text{ arccot}\left(\frac{x^2}{2}+\frac{1}{2}\right)=0 $$ and $$ \begin{aligned} &\lim_{x\to\infty} \frac{\log \left(x^2-\sqrt{2 \left(\sqrt{5}-1\right)} x+\sqrt{5}\right)}{\sqrt{2 \left(\sqrt{5}-1\right)}}-\frac{\log \left(x^2+\sqrt{2 \left(\sqrt{5}-1\right)} x+\sqrt{5}\right)}{\sqrt{2 \left(\sqrt{5}-1\right)}} \\&=\lim_{x\to\infty}\frac{\log \left(\frac{x^2-\sqrt{2 \left(\sqrt{5}-1\right)} x+\sqrt{5}}{x^2+\sqrt{2 \left(\sqrt{5}-1\right)} x+\sqrt{5}}\right)}{\sqrt{2 \left(\sqrt{5}-1\right)}}\\ &=0 \end{aligned} $$ Also it is easy to see that $$ \underset{x\to \infty }{\text{lim}}\arctan\left(\frac{\sqrt{2 \left(\sqrt{5}-1\right)}-2 x}{\sqrt{2 \left(\sqrt{5}+1\right)}}\right)=-\dfrac{\pi}{2} $$ and $$ \underset{x\to \infty }{\text{lim}}\arctan\left(\frac{2 x+\sqrt{2 \left(\sqrt{5}-1\right)}}{\sqrt{2 \left(\sqrt{5}+1\right)}}\right) = \dfrac{\pi}2 $$ Thus, combine the above results, from Newton-Leibniz formula, we get $$ \int_{0}^{\infty}\arctan\left(\frac{2}{x^2+1}\right)dx= F(\infty) - F(0)=\sqrt{\frac{2}{\sqrt{5}+1}} \pi = \color{blue}{\pi\sqrt{\phi^{-1}}} $$ As desired.