Integral of $$$- x^{2} + e^{\sqrt{2} \sqrt{x}} - 2$$$

The calculator will find the integral/antiderivative of $$$- x^{2} + e^{\sqrt{2} \sqrt{x}} - 2$$$, with steps shown.

Related calculator: Definite and Improper Integral Calculator

Please write without any differentials such as $$$dx$$$, $$$dy$$$ etc.
Leave empty for autodetection.

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please contact us.

Your Input

Find $$$\int \left(- x^{2} + e^{\sqrt{2} \sqrt{x}} - 2\right)\, dx$$$.

Solution

Integrate term by term:

$${\color{red}{\int{\left(- x^{2} + e^{\sqrt{2} \sqrt{x}} - 2\right)d x}}} = {\color{red}{\left(- \int{2 d x} - \int{x^{2} d x} + \int{e^{\sqrt{2} \sqrt{x}} d x}\right)}}$$

Apply the constant rule $$$\int c\, dx = c x$$$ with $$$c=2$$$:

$$- \int{x^{2} d x} + \int{e^{\sqrt{2} \sqrt{x}} d x} - {\color{red}{\int{2 d x}}} = - \int{x^{2} d x} + \int{e^{\sqrt{2} \sqrt{x}} d x} - {\color{red}{\left(2 x\right)}}$$

Apply the power rule $$$\int x^{n}\, dx = \frac{x^{n + 1}}{n + 1}$$$ $$$\left(n \neq -1 \right)$$$ with $$$n=2$$$:

$$- 2 x + \int{e^{\sqrt{2} \sqrt{x}} d x} - {\color{red}{\int{x^{2} d x}}}=- 2 x + \int{e^{\sqrt{2} \sqrt{x}} d x} - {\color{red}{\frac{x^{1 + 2}}{1 + 2}}}=- 2 x + \int{e^{\sqrt{2} \sqrt{x}} d x} - {\color{red}{\left(\frac{x^{3}}{3}\right)}}$$

Let $$$u=\sqrt{2} \sqrt{x}$$$.

Then $$$du=\left(\sqrt{2} \sqrt{x}\right)^{\prime }dx = \frac{\sqrt{2}}{2 \sqrt{x}} dx$$$ (steps can be seen »), and we have that $$$\frac{dx}{\sqrt{x}} = \sqrt{2} du$$$.

The integral becomes

$$- \frac{x^{3}}{3} - 2 x + {\color{red}{\int{e^{\sqrt{2} \sqrt{x}} d x}}} = - \frac{x^{3}}{3} - 2 x + {\color{red}{\int{u e^{u} d u}}}$$

For the integral $$$\int{u e^{u} d u}$$$, use integration by parts $$$\int \operatorname{d} \operatorname{dv} = \operatorname{d}\operatorname{v} - \int \operatorname{v} \operatorname{dd}$$$.

Let $$$\operatorname{d}=u$$$ and $$$\operatorname{dv}=e^{u} du$$$.

Then $$$\operatorname{dd}=\left(u\right)^{\prime }du=1 du$$$ (steps can be seen ») and $$$\operatorname{v}=\int{e^{u} d u}=e^{u}$$$ (steps can be seen »).

The integral becomes

$$- \frac{x^{3}}{3} - 2 x + {\color{red}{\int{u e^{u} d u}}}=- \frac{x^{3}}{3} - 2 x + {\color{red}{\left(u \cdot e^{u}-\int{e^{u} \cdot 1 d u}\right)}}=- \frac{x^{3}}{3} - 2 x + {\color{red}{\left(u e^{u} - \int{e^{u} d u}\right)}}$$

The integral of the exponential function is $$$\int{e^{u} d u} = e^{u}$$$:

$$u e^{u} - \frac{x^{3}}{3} - 2 x - {\color{red}{\int{e^{u} d u}}} = u e^{u} - \frac{x^{3}}{3} - 2 x - {\color{red}{e^{u}}}$$

Recall that $$$u=\sqrt{2} \sqrt{x}$$$:

$$- \frac{x^{3}}{3} - 2 x - e^{{\color{red}{u}}} + {\color{red}{u}} e^{{\color{red}{u}}} = - \frac{x^{3}}{3} - 2 x - e^{{\color{red}{\sqrt{2} \sqrt{x}}}} + {\color{red}{\sqrt{2} \sqrt{x}}} e^{{\color{red}{\sqrt{2} \sqrt{x}}}}$$

Therefore,

$$\int{\left(- x^{2} + e^{\sqrt{2} \sqrt{x}} - 2\right)d x} = \sqrt{2} \sqrt{x} e^{\sqrt{2} \sqrt{x}} - \frac{x^{3}}{3} - 2 x - e^{\sqrt{2} \sqrt{x}}$$

Add the constant of integration:

$$\int{\left(- x^{2} + e^{\sqrt{2} \sqrt{x}} - 2\right)d x} = \sqrt{2} \sqrt{x} e^{\sqrt{2} \sqrt{x}} - \frac{x^{3}}{3} - 2 x - e^{\sqrt{2} \sqrt{x}}+C$$

Answer

$$$\int \left(- x^{2} + e^{\sqrt{2} \sqrt{x}} - 2\right)\, dx = \left(\sqrt{2} \sqrt{x} e^{\sqrt{2} \sqrt{x}} - \frac{x^{3}}{3} - 2 x - e^{\sqrt{2} \sqrt{x}}\right) + C$$$A