(1) You're going to need to use integration by parts twice.
First round requires: and
You will get:
Use integration by parts again on the red: and
Can you carry on from here?
(2) Again, you'll need integration by parts: and
The blue integral should be easier to deal with now. You'll need long division or you can notice that: