Integral $\frac{\sqrt{e}}{\sqrt{2\pi}}\int^\infty_{-\infty}{e^{-1/2(x-1)^2}dx}$ gives $\sqrt{e}$. How?

1.2k Views Asked by At

To calculate the expectation of $e^x$ for a standard normal distribution I eventually get, via exponential simplification:

$$\frac{\sqrt{e}}{\sqrt{2\pi}}\int^\infty_{-\infty}{e^{-1/2(x-1)^2}dx}$$

When I plug this into Wolfram Alpha I get $\sqrt e$ as the result. I'd like to know the integration step(s) or other means I could use to obtain this result on my own from the point I stopped. I am assuming that Wolfram Alpha "knew" an analytical solution since it presents $\sqrt e$ as a solution as well as the numerical value of $\sqrt e $. Thanks in advance!

1

There are 1 best solutions below

2
On BEST ANSWER

This is because $$\int_{\Bbb R} e^{-x^2}dx=\sqrt \pi$$

Note that your shift $x\mapsto x-1$ doesn't change the value of integral, while $x\mapsto \frac{x}{\sqrt 2}$ multiplies it by $\sqrt 2$, giving the desired result, that is,

$$\int_{\Bbb R} e^{-\frac 1 2(x-1)^2}dx=\sqrt {2\pi}$$