Material by the IntegralPaso project. Conditions and limits are stated in each guide; external teaching review is pending.
For even secant powers, reserve sec²x and use u=tan x. For odd tangent powers, reserving sec x tan x and using u=sec x may help. Cotangent/cosecant families are analogous with their derivative signs.
Common mistake
These are guidelines; special powers can require integration by parts.
Step-by-step example
Reserve sec²x.
Substitute u = tan x.
Return to x.