Actually, in both cases, you make use of the fact that the antiderivative of is . Thus is, via the u-substitution , found to be:

Both components of your integrand should be able to be transformed into multiples of forms the above using appropriate u-substitutions.

-Kevin C.