Given that $\int_{-\infty}^{\infty} e^{(-\frac{1}{2}x^2)}dx = \sqrt{2\pi}$,
Find $I(a,b) = \int_{-\infty}^{\infty} e^{-\frac{1}{2}(ax^2+\frac{b}{x^2})}dx$.
The question suggests using the substitution: $$y = \frac{1}{2}(\sqrt{a}x-\frac{\sqrt{b}}{x})$$ if careful attention is paid to the limits. I'm not sure how the limits of integral changes as I can't see why the limits wouldn't remain the same using the substitution.
The integrand is even, so restrict the integration range to $x\ge 0$ and introduce a factor of $2$. The only discontinuity is at $x=0$, and to the right of that $dy/dx>0$. If you're still stuck, see here.