Evaluate the following integral:

Here we want to use integration by parts. To that end we define,

if .

Therefore, integrating by parts we obtain the integral for all .

Now, for the case that we have

Since is the derivative of we make the substitution and to obtain