IHateMayonnaise
- 87
- 0
Homework Statement
I need to solve:
\int_{-\infty}^{\infty}xe^{(a-x)^2}dx
Homework Equations
The Attempt at a Solution
My first intuition would be to rewrite this as:
\oint_cze^{(a-z)^2}dz
and then use Cauchy's Residue theorem to calculate the integral. There is one singularity at x_o=0 when x->\infty. To calculate the residue,Res(z_o)=(z-z_o)f(z) |_{z=z_o}
where in this case
f(z)=ze^{(a-x)^2}
So, we have
Res(0)=(z-0)ze^{(a-z)^2}|_{z=0}
=0
which is clearly not right (mathematica gives a\sqrt{\pi}. What am I doing wrong? Any hints? Thanks!
EDIT: if you take the derivative of the residue twice and then taking the limit you get 2e^{-a^2}, and multiplying this by 2\pi i still doesn't give the answer!
Last edited: