Prove $\int_{0}^{\infty}{1\over (1+{\phi^{-2}}x^2)(1+{\phi^{-4}}x^2)}dx={\pi\over 2}$

Through the residue theorem, by setting $f(x)=\frac{1}{\left(1+\frac{x^2}{\varphi^2}\right)\left(1+\frac{x^2}{\varphi^4}\right)}$ we have:

$$\begin{eqnarray*} I = \pi i \cdot\!\!\!\!\!\! \sum_{z\in\left\{i\varphi,i\varphi^2\right\}}\!\!\!\text{Res}(f(x),x=z)&=&\pi i\left(\frac{i\varphi^5}{2(\varphi^2-\varphi^4)}+\frac{i\varphi^4}{2(\varphi^4-\varphi^2)}\right)\\&=&\frac{\pi}{2}\cdot(\varphi^2-\varphi)\cdot\frac{\varphi^3}{\varphi^4-\varphi^2}\\&=&\frac{\pi}{2}\cdot 1\cdot 1 = \color{red}{\frac{\pi}{2}}.\end{eqnarray*} $$

An alternative is to prove a more general statement: $$ \forall A,B>0,\qquad I(A,B)=\int_{0}^{+\infty}\frac{dx}{\left(1+\frac{x^2}{A^2}\right)\left(1+\frac{x^2}{B^2}\right)}=\frac{\pi}{2}\cdot\frac{AB}{A+B}$$ through Lagrange's identity and Glasser's master theorem, or the fact that the Fourier transform of a Cauchy distribution is a Laplace distribution. For instance, Lagrange and Glasser give:

$$\begin{eqnarray*}I(A,B)=\int_{0}^{+\infty}\frac{dx}{\left(\frac{A+B}{AB}x\right)^2+\left(1-\frac{x^2}{AB}\right)^2}&=&\frac{AB}{A+B}\int_{0}^{+\infty}\frac{dx}{x^2+\left(1-\frac{AB x^2}{(A+B)^2}\right)^2}\end{eqnarray*}$$

where $\int_{0}^{+\infty}\frac{dx}{x^2+(1-k^2 x^2)^2}$ constantly equals $\frac{\pi}{2}$ for any $k\in\mathbb{R}\setminus\{0\}$.


I think a quite simple approach is with the residue theorem. We have $$\begin{align} \int_{0}^{\infty}\frac{1}{\left(1+\left(\frac{x}{\phi}\right)^{2}\right)\left(1+\left(\frac{x}{\phi^{2}}\right)^{2}\right)}dx= & \phi^{2}\int_{0}^{\infty}\frac{1}{\left(1+\phi^{2}x^{2}\right)\left(1+x^{2}\right)}dx \\ = & \phi^{2}\int_{0}^{\infty}f\left(x\right)dx \end{align} $$ so if we take as contour the semicircle with $\textrm{Im}\left(x\right)>0 $ and with the diameter on the real axis from $-R $ to $R $. It is not difficult to see that the integral on the semicircle go to zero if $R\rightarrow\infty $. So $$\begin{align} \int_{-\infty}^{\infty}\frac{1}{\left(1+\phi^{2}x^{2}\right)\left(1+x^{2}\right)}dx= &2\pi i\left(\textrm{Res}_{x=i}f\left(x\right)+\textrm{Res}_{x=\frac{i}{\phi}}f\left(x\right)\right) \\ = & \pi\left(\frac{1}{1-\phi^{2}}+\frac{\phi}{\phi^{2}-1}\right) \end{align} $$ then, by symmetry, $$\phi^{2}\int_{0}^{\infty}\frac{1}{\left(1+\phi^{2}x^{2}\right)\left(1+x^{2}\right)}dx=\frac{\pi}{2}\left(\frac{\phi^{2}}{1-\phi^{2}}+\frac{\phi^{3}}{\phi^{2}-1}\right)=\frac{\pi}{2}.$$ Addendum: Note that the above argument can be easily generalized.