integrate 1/(a^2cos^2x+b^2sin^2(x)) from 0 to 2pi