Please use brackets.
Is it:
Or is it:
To type equations like I did, you use LaTeX to do it. LaTeX Tutorial.
Yes, you would use integration by parts. For the part you would also need to use integration by u-substitution as well as integration by parts.