I am having some problems in solving the integral reported in the title, which is:
$$\int_{-\infty}^{\infty}x e^{-x^2 + x(i+1)}dx$$
As from the general theory of Gaussian integrals I have been trying to write the known integral
$$\int_{-\infty}^{\infty} e^{-x^2 - i k x}dx, \; k \in \mathbb{R}$$
which has a solution with contour integration knowing that the complex function $e^{-z^2}$ is holomorphic on the whole complex plane. Despite my efforts this route does not seem to bring to any result.
Thanks to anyone who is so keen to try and help me.
Hint: compute $\int_{-\infty}^{\infty} xe^{-x^{2}+tx} dx$ for real $t$ by writing $-x^{2}+tx$ as $-(x-\frac t 2)^{2}+\frac {t^{2}} 4$. You will get a nice answer $f(t)$ in which you can replace $t$ by a complex number $z$ to get an entire function. The equation $f(z)=\int_{-\infty}^{\infty} xe^{-x^{2}+zx} dx$ now holds for all complex $z$ because if two entire functions coincide on the real line they coincide everywhere. Now put $z=1+i$.