I'm sorry, what does the i represent in your first integral? Did you mean ????

If so use integration by parts!

For the second one:

Hence

Hence

Now you can replace your original integral :

You can do this, no? (remember to change back to original variable once you've integrated!)