I think this is aprtial fractions.
If you take cos^2 x common from denominator you have
tan^2 x/(tan^2 x+4) Put tan x=t.
you'll get dx=dt/sec^2 x= dt/(1+t^2).
So you have t^2/((t^2+4)(t^2+1)). Do you know partial fractions?