I was searching around the web for some information about integrals and I came across the formula:
$$\int_{-\infty}^\infty \frac{\ln(x^2)e^{\frac{-x^2}{2\sigma}}}{(2\pi)^\frac{1}{2}\sigma}dx= \ln(\sigma^2)-\gamma-\ln(2)$$
$\gamma =$ the Euler-Mascheroni Constant
I'm very unsure where the Euler-Mascheroni constant came from. I tried rearranging the integral to simpler terms but I end up getting:
$$\int_{-\infty}^\infty \ln|x|e^{-x^2}dx$$
which isn't overtly integrable. Where does this formula come from?