It just takes a bit of getting used to and recognising what you have to work with. You can look for a few things, for example if you can reduce the case to a sine or a cosine square (or even powers generally), then you can use your double angle formulas for cosine to reduce it down to a trig of power 1. If you are working with tan's and something other than sine and cosines, work with your identities to see if you can convert them into sines and cosines, or look for something that will give you an equivalent expression that becomes easier to work with. Now when you say have, the sines or cosines raised to powers that are greater than one, if they are both even you can reduce them down using the cosine double angle formula (can get annoying with higher powers, end up with a lot of
)
and
)
and such, and may have to do it again when you get a square of say a
)
). If one is even and one is odd, try breaking the odd one up so say something like,
)
where

is odd will becomes
 \cos^{n-1}(x))
, the second term there will be even. Now when that is multiplied by sines, you can use a

substitution to get rid of that odd power there, and get it down to just even powers, and convert the rest of the expression into the same sine or cos using the pythagorean identity, giving you something easier to work with.
It's just a matter of getting used to it, look at what you can break it into, look for parts of the integral that when differentiated will get rid of another part (leaving to a

sub), try your even power to cosine double angle rules (
=\frac{1+\cos(2x)}{2})
and
=\frac{1-\cos(2x)}{2})
), try your trig identities.