You can integrate even powers of secants with tangents. If you wanted to integrate tanm x secn x when n is even — for example, tan8x sec6x — you would follow these steps:
Peel off a sec2x and place it next to the dx:
Use the trig identity 1 + tan2 x = sec2x to express the remaining secant factors in terms of tangents:
Use the variable substitution u = tan x and du = sec2x dx:
At this point, the integral is a polynomial, and you can evaluate it.