Both integrals can be done by parts.
For the first one:
where
Then
You can treat the second one identically, and you would end up with
More generally, the antiderivative of a polynomial multiplied by is given by
5.9m questions
7.7m answers