How to calculate $\int_{-\infty}^{\infty}ye^{-\frac{y^2}{2}+xy}dy$ ? (x and y are both real)
We know $\int_{-\infty}^{\infty}\frac{1}{\sqrt{2\pi}}e^{-\frac{x^2}{2}}dx=1$, but how to apply this integral?
How to calculate $\int_{-\infty}^{\infty}ye^{-\frac{y^2}{2}+xy}dy$ ? (x and y are both real)
We know $\int_{-\infty}^{\infty}\frac{1}{\sqrt{2\pi}}e^{-\frac{x^2}{2}}dx=1$, but how to apply this integral?
Hint
$$\int_{-\infty}^{\infty}ye^{-\frac{y^2}{2}+xy}dy=\int_{-\infty}^{\infty}ye^{-\frac{(y-x)^2}2}e^{\frac {x^2} 2} dy$$
Use the substition $t=y-x$ then you should be able to finish.
Spoilers :