Find the antiderivative of,
Now integrate by parts,
The problem is finding what is.
Consider the integral,
Use substitution to get,
Apply integration by parts,
As, we have,
Which you can expess as, by simplifying
But, I do not know if this helped.
As for the second one I believe that Weirerstrauss substritution would be the trick. That is what you mentioned.