Let $a, b > 0$ satisfy $a^2-4b^2 \geq 0$. Then: $$\int_{-\infty}^{\infty} \frac{dx}{x^4 + a x^2 + b ^2} =\frac {\pi} {b \sqrt{2b+a}}$$ One way to calculate this is by computing the residues at the poles in the upper half-plane and integrating around the standard semicircle. However, the sum of the two residues becomes a complicated expression involving nested square roots, which magically simplifies to the concise expression above.
Sometimes such 'magical' cancellations indicate that there is a faster, more elegant method to reach the same result.
Is there a faster or more insightful way to compute the above integral?
Ok, I finally found a nice method. We have $$ \begin{align} \int_0^{\infty} \frac{dx}{x^4+ax^2+b^2} &= \int_0^{\infty} \frac{dx}{x^2}\frac{1}{(x-b/x)^2+2b+a} \\&= \frac{1}{b}\int_0^{\infty} \frac{dx}{(x-b/x)^2+2b+a} \\&= \frac{1}{b}\int_0^{\infty} \frac{dx}{x^2+2b+a} \\&= \frac{ \pi}{2b\sqrt{2b+a}} \end{align}$$ and the desired integral follows by symmetry.
Here the nontrivial step made use of the Cauchy-Schlömilch transformation (see e.g. here): if the integrals exist and $b > 0$, then $$\int_0^{\infty} f\left((x-b/x)^2\right)\, dx = \int_0^{\infty} f(x^2) \, dx$$ It is quite interesting that the above proof doesn't make use of the assumption that $a^2-4b^2 \geq 0$.