Insert the Fourier series
into the rectangle rule. The finite geometric sum obeys
Consequently the quadrature value is
whereas
Thus the exact Periodic N-point rectangle-rule error is
By the Fourier coefficient decay of an analytic periodic function, there are constants and such that
It follows that
Therefore
which is exponential, and hence spectral, convergence.