the important thing is to be able to recognize when you can use it. the method is essentially the same in all cases.
for my method:
so our integral becomes:
this simplifies to
now can you finish up? don't forget this is a definite integral, so you have to deal with the limits at some point