If your integral is:

then I would try integration by parts, and a bit of experience tells me we will need two formulas:

Let:

Hence:

Now use integration by parts again to develop a formula for the resulting integral on the right:

Hence:

Now apply these formulas alternately until and you may evaluate the integral of a trig function alone to get the final result.