In Bishops book, "Statistical Pattern Recognition", there is one exercise, which states to derive the second order moment of the Gaussian Distribution:
$E[x^2] = \int_{-\infty}^{\infty} N(x|\mu, \sigma^2 )x^2dx = \mu^2 + \sigma^2 $
As a hint, the book states to take the derivative of
$\int_{-\infty}^{\infty} N(x|\mu, \sigma^2 )dx = 1 $
with respect to $\sigma^2$.
This is what I have tried and failed miserably and where I need some advice in the right direction. My current attempt:
$ \int_{-\infty}^{\infty} \exp(-\frac{1}{2\sigma^2} (x-\mu)^2)dx = \sqrt{2\pi\sigma^2} $
$ \Longrightarrow \int_{-\infty}^{\infty} \frac{d}{d\sigma^2} \exp(-\frac{1}{2\sigma^2} (x-\mu)^2)dx = \frac{d}{d\sigma^2} \sqrt{2\pi\sigma^2} $
I then tried to some how use the chain rule to compute the right hand side:
$\frac{df}{d\sigma} = \frac{df}{dh} \frac{dh}{d\sigma} $
where $f = \exp(-\frac{1}{2\sigma^2} (x-\mu)^2)$ and $ h = \sigma^2$
This, as least I thought, would allow me to compute $\frac{dh}{d\sigma^2}$ by rearranging:
$\frac{df}{d\sigma^2} = \frac{df}{d\sigma} \div \frac{d\sigma^2}{\sigma} $
$ \Longrightarrow \int_{-\infty}^{\infty} \frac{1}{2\sigma^3} (x-\mu)^2 \exp(-\frac{1}{2z} (x-\mu)^2)dx \div 2\sigma $
$ \Longrightarrow \int_{-\infty}^{\infty} \frac{1}{4\sigma^4} (x-\mu)^2 \exp(-\frac{1}{2z} (x-\mu)^2)dx $
I am sure, that up to this point couple of mistakes already must have happend, which is why I did not write down the right hand side, which derivation is more straight forward.