Evaluate $\sqrt{\frac{2}{\pi}}\int_{-\infty}^{\infty} e^\frac{-z^2}{2}dz$ ?
My approach : let $\color{navy}{\frac{z^2}{2} = t, z = \frac{dt}{\sqrt{2t}}}$
It reduces to form $\frac{1}{\sqrt{\pi}}\int_{-\infty}^{\infty} e^{-t}t^\frac{-1}{2}dt$. and it is related to Gamma function. $\Gamma(\frac{1}{2}) = \sqrt{\pi}$
But I am getting answer as $1$, whereas $2$ is right answer?
Here's one way to do it $$\sqrt{\frac{2}{\pi}}\int_{-\infty}^{\infty} e^\frac{-z^2}{2}\ \mathrm dz$$ First note that $$t=\frac{z}{\sqrt 2}\Rightarrow\sqrt 2\ \mathrm dt=\mathrm dz$$ After substituting, we have $$\frac{2}{\sqrt\pi}\int_{-\infty}^{\infty} e^{-t^2}\ \mathrm dt$$ Also note that $$\int_{-\infty}^{\infty} e^{-t^2}\ \mathrm dt=\sqrt\pi$$ Therefore $$\frac{2}{\sqrt\pi}\int_{-\infty}^{\infty} e^{-t^2}\ \mathrm dt=2$$