Integral of $$$\left(4 x - 2\right) e^{x^{2} - x}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int \left(4 x - 2\right) e^{x^{2} - x}\, dx$$$.
Solution
The input is rewritten: $$$\int{\left(4 x - 2\right) e^{x^{2} - x} d x}=\int{\left(4 x - 2\right) e^{x \left(x - 1\right)} d x}$$$.
Let $$$u=x \left(x - 1\right)$$$.
Then $$$du=\left(x \left(x - 1\right)\right)^{\prime }dx = \left(2 x - 1\right) dx$$$ (steps can be seen »), and we have that $$$\left(2 x - 1\right) dx = du$$$.
Thus,
$${\color{red}{\int{\left(4 x - 2\right) e^{x \left(x - 1\right)} d x}}} = {\color{red}{\int{2 e^{u} d u}}}$$
Apply the constant multiple rule $$$\int c f{\left(u \right)}\, du = c \int f{\left(u \right)}\, du$$$ with $$$c=2$$$ and $$$f{\left(u \right)} = e^{u}$$$:
$${\color{red}{\int{2 e^{u} d u}}} = {\color{red}{\left(2 \int{e^{u} d u}\right)}}$$
The integral of the exponential function is $$$\int{e^{u} d u} = e^{u}$$$:
$$2 {\color{red}{\int{e^{u} d u}}} = 2 {\color{red}{e^{u}}}$$
Recall that $$$u=x \left(x - 1\right)$$$:
$$2 e^{{\color{red}{u}}} = 2 e^{{\color{red}{x \left(x - 1\right)}}}$$
Therefore,
$$\int{\left(4 x - 2\right) e^{x \left(x - 1\right)} d x} = 2 e^{x \left(x - 1\right)}$$
Add the constant of integration:
$$\int{\left(4 x - 2\right) e^{x \left(x - 1\right)} d x} = 2 e^{x \left(x - 1\right)}+C$$
Answer
$$$\int \left(4 x - 2\right) e^{x^{2} - x}\, dx = 2 e^{x \left(x - 1\right)} + C$$$A