First, you expand the (x - m)^2 term and then start to integrate the resulting formula using integration of parts. When you do it right, some terms should cancel each other, leading to the final expression.
First, you expand the (x - m)^2 term and then start to integrate the resulting formula using integration of parts. When you do it right, some terms should cancel each other, leading to the final expression.
You don't need to do this. The integral (in particular the expected value) is a linear operator, so you can take advantage of that. Here's the proof (from wikipedia):
No problem. Some helpful advice: when in doubt, do the only thing that can be done. In this case, nothing can be done except factor out the (x-mu)^2. Once you do that, there's really nothing you can do except split it into three integrals. That done, you're practically finished. I've found this has helped me for a lot of proofs.