Yeah, I must've done a silly mistake when doing the integration by parts. I set the ## \beta^2 ## term as u, and the ##e^{ -\beta^2} ## term as v'.
Then, (btw, how do I put limits on the left part of a bracket in latex?)
\int_{-\infty}^{\infty} \beta^2 e^{-\beta^2} d \beta = \left [ \beta^2 \int e^{-\beta^2} d \beta \right ]_{-\infty}^{\infty} - \int_{-\infty}^{\infty} 2 \beta (\int_{-\infty}^{\infty} e^{-\beta^2} d \beta ) d \beta
If I try to insert
\int_{-\infty}^{\infty} e^{-\beta^2} d \beta = \sqrt{\pi}
into my integration by parts expression, I will just end up with 0. Can somebody please do it properly so I can find my mistake?
PS: Sorry for late reply. Oh, and thanks for all the help and nice tips :)
I don't want to be a bore (I like your method), but how do you know it's possible to differentiate the term inside the integral first, instead of taking the integral first and then differentiate?