Relation between integral, gamma function, elliptic integral, and AGM The integral $\displaystyle\int\limits_0^{\infty}\frac {\mathrm dx}{\sqrt{1+x^4}}$ is equal to $\displaystyle \frac{\Gamma \left(\frac{1}{4}\right)^2}{4 \sqrt{\pi }}$.
It is calculated or verified with a computer algebra system that $\displaystyle \frac{\Gamma \left(\frac{1}{4}\right)^2}{4 \sqrt{\pi }} = K\left(\frac{1}{2}\right)$ , where $K(m)$ is the complete elliptic integral of the first kind. This is in relation to what is called the elliptic integral singular value.
It is also known or verified that
 $\displaystyle K\left(\frac{1}{2}\right) =\displaystyle  \int_0^{\frac{\pi }{2}} \frac{1}{\sqrt{1-\frac{\sin ^2(t)}{2}}} \, dt= \frac{1}{2} \int_0^{\frac{\pi }{2}} \frac{1}{\sqrt{\sin (t) \cos (t)}} \, dt$.
Can one prove directly or analytically that
$\displaystyle\int\limits_0^{\infty}\frac {\mathrm dx}{\sqrt{1+x^4}} =\frac{1}{2} \int_0^{\frac{\pi }{2}} \frac{1}{\sqrt{\sin (t) \cos (t)}} \, dt =\displaystyle  \int_0^{\frac{\pi }{2}} \frac{1}{\sqrt{1-\frac{\sin ^2(t)}{2}}} \, dt = K\left(\frac{1}{2}\right) $ ?

We have
$$\int_{0}^{+\infty}\frac{dx}{\sqrt{(x^2+a^2)(x^2+b^2)}}=\frac{\pi}{2\,\text{AGM}(a,b)}=\frac{\pi}{2\,\text{AGM}\left(\frac{a+b}{2},\sqrt{ab}\right)}\tag{1} $$
as a consequence of Lagrange's identity $(a^2+b^2)(c^2+d^2)=(ac+bd)^2+(ad-bc)^2$.
On the other hand
$$ K\left(\tfrac{1}{2}\right)=\int_{0}^{+\infty}\frac{dx}{\sqrt{(1+x^2)(1+x^2/2)}} = \frac{\pi}{2\,\text{AGM}\left(1,\frac{1}{\sqrt{2}}\right)}\tag{2} $$
and $$\text{AGM}\left(\sqrt{i},\sqrt{-i}\right)=\text{AGM}\left(1,\tfrac{1}{\sqrt{2}}\right) \tag{3}$$
so
$$K\left(\tfrac{1}{2}\right)=\int_{0}^{+\infty}\frac{dx}{\sqrt{(1+x^2)(1+x^2/2)}} =\int_{0}^{+\infty}\frac{dx}{\sqrt{(x^2+i)(x^2-i)}} = \int_{0}^{+\infty}\frac{dx}{\sqrt{x^4+1}}$$
as claimed. You can find an alternative, very short proof through Fourier-Legendre series expansions at page $29$ here.
