If I have a Gaussian integral of the form $$\int_{0}^{\infty}x^{-2}e^{-ax^2}dx, a>0$$ do I use the expression $$\int_{0}^{\infty} x^{n}e^{-ax^2} dx=\frac{(2k-1)!!}{2^{k+1}a^k}\sqrt{\frac{\pi}{a}},~~n=2k, k\in\mathbb Z, a>0$$ or is there another expression to be used for negative exponents? I am asking because this is the formula that I know, but when I evaluate the integral using Wolfram Alpha, it tells me that the integral does not converge, whereas, with the formula above, I get some finite value.
Thanks.