I have this integral:
$$\int e^{-\sqrt{x}}dx.$$
This is what I have done:
$$\int e^{-\sqrt{x}}dx = \int \frac{1}{e^{\sqrt{x}}} dx$$
I Tried to solve it by substitution:
$$t = \sqrt{x}$$ $$ t^2 = x$$ $$ 2d = dx$$
So:
$$\int \frac{1}{e^{\sqrt{x}}} dx = \int \frac{1}{e^t} 2t$$
Then:
$$2\int \frac{t}{e^t}dt$$
How should I proceed?
Writing $2\int e^{-t}tdt$, we can use the integration by parts formula $\int fg'=fg-\int f'g$ to get \begin{equation*} -2e^{-t}t+2\int e^{-t}dt. \end{equation*} Use the substitution $u=-t$ to get \begin{equation*} -2e^{-t}t-2\int e^udu. \end{equation*} Integrate and substitute back.