Integral of $$$4 e^{- \frac{x^{2}}{2}}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int 4 e^{- \frac{x^{2}}{2}}\, dx$$$.
Solution
Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=4$$$ and $$$f{\left(x \right)} = e^{- \frac{x^{2}}{2}}$$$:
$${\color{red}{\int{4 e^{- \frac{x^{2}}{2}} d x}}} = {\color{red}{\left(4 \int{e^{- \frac{x^{2}}{2}} d x}\right)}}$$
Let $$$u=\frac{\sqrt{2} x}{2}$$$.
Then $$$du=\left(\frac{\sqrt{2} x}{2}\right)^{\prime }dx = \frac{\sqrt{2}}{2} dx$$$ (steps can be seen »), and we have that $$$dx = \sqrt{2} du$$$.
The integral becomes
$$4 {\color{red}{\int{e^{- \frac{x^{2}}{2}} d x}}} = 4 {\color{red}{\int{\sqrt{2} e^{- u^{2}} d u}}}$$
Apply the constant multiple rule $$$\int c f{\left(u \right)}\, du = c \int f{\left(u \right)}\, du$$$ with $$$c=\sqrt{2}$$$ and $$$f{\left(u \right)} = e^{- u^{2}}$$$:
$$4 {\color{red}{\int{\sqrt{2} e^{- u^{2}} d u}}} = 4 {\color{red}{\sqrt{2} \int{e^{- u^{2}} d u}}}$$
This integral (Error Function) does not have a closed form:
$$4 \sqrt{2} {\color{red}{\int{e^{- u^{2}} d u}}} = 4 \sqrt{2} {\color{red}{\left(\frac{\sqrt{\pi} \operatorname{erf}{\left(u \right)}}{2}\right)}}$$
Recall that $$$u=\frac{\sqrt{2} x}{2}$$$:
$$2 \sqrt{2} \sqrt{\pi} \operatorname{erf}{\left({\color{red}{u}} \right)} = 2 \sqrt{2} \sqrt{\pi} \operatorname{erf}{\left({\color{red}{\left(\frac{\sqrt{2} x}{2}\right)}} \right)}$$
Therefore,
$$\int{4 e^{- \frac{x^{2}}{2}} d x} = 2 \sqrt{2} \sqrt{\pi} \operatorname{erf}{\left(\frac{\sqrt{2} x}{2} \right)}$$
Add the constant of integration:
$$\int{4 e^{- \frac{x^{2}}{2}} d x} = 2 \sqrt{2} \sqrt{\pi} \operatorname{erf}{\left(\frac{\sqrt{2} x}{2} \right)}+C$$
Answer
$$$\int 4 e^{- \frac{x^{2}}{2}}\, dx = 2 \sqrt{2} \sqrt{\pi} \operatorname{erf}{\left(\frac{\sqrt{2} x}{2} \right)} + C$$$A