BucketOfFish
- 60
- 1
Homework Statement
For some Gaussian distribution, let's say e^{-x^2} times a constant, I want to find the expectation value of x^2. In other words, I want to evaluate:
\int^{\infty}_{-\infty} e^{-x^2}x^2dx
Homework Equations
Integration by parts:
\int udv = uv - \int vdu
The Attempt at a Solution
I tried a few things actually, but none of them got anywhere. One of the routes I attempted was u-substitution followed by integration by parts. First, since the function is even, you set it equal to:
2\int^{\infty}_{0} e^{-x^2}x^2dx
Letting a = x^2, da = 2xdx, we get:
\int^{\infty}_{0} e^{-a}\sqrt{a}da
Then, letting u = \sqrt{a}, dv = e^{-a}da, du = \frac{1}{2\sqrt{a}}da, v = -e^{-a}:
\int e^{-a}\sqrt{a}da = -\sqrt{a}e^{-a} + \int e^{-a}\frac{1}{2\sqrt{a}}da
And here I get stuck. Anybody have hints?