Waaaaaaiiiiiit just a minute here. The integral that GRfrones suggested,
\int_0^{2\pi} \sec\left(\arctan\left(\left(\dfrac{2\pi}{b}\right ) a \cos\left(\dfrac{2\pi x}{b}\right)\right)\right)dx
does not appear to be the integral in the original post (following the standard convention of notations):
"integral between 0 and 2pi of cos^-1(arctan((2*pi/b)*a*cos(2*pi*x/b)))dx"
GRfrones seems to have interpreted "cos^(-1)(stuff)" as "sec(stuff)", but I would take this to be "arccos(stuff)", as that's pretty much exclusively what "cos^(-1)(stuff)" means, and so I would have thought the integral is
\int_0^{2\pi} \cos^{-1}\left(\arctan\left(\left(\dfrac{2\pi}{b}\right ) a \cos\left(\dfrac{2\pi x}{b}\right)\right)\right)dx
Is it really GRfrones' interpretation? If so, then the OP should take care when writing "cos^(-1)" to mean "sec", as I can think of no instance where "cos^(-1)" would be taken to mean the secant.