Integrate the two exponentials in against . For there are no zero denominators, and
Thus the complex Fourier series is
This is the periodic extension, not a globally nonperiodic cosine formula. For each fixed complex , the coefficients are , giving absolute and uniform convergence. The extension is continuous at the endpoints because the two endpoint values agree; piecewise smooth pointwise convergence of a piecewise smooth Fourier series identifies the sum with it, including those endpoints.
The Parseval identity for a complex Fourier series is
It holds for every square-integrable function, with complex conjugation expressed by the absolute squares. It is the Pythagorean theorem extended to the complete orthonormal system of complex exponentials.
The complex Fourier series of a -periodic function is
The coefficient formula follows from orthogonality of the exponential functions. For an arbitrary square-integrable function, this representation means convergence in the norm. With appropriate additional regularity it also gives pointwise convergence, to the mean of the one-sided limits at a jump. No pointwise representation is asserted for an unrestricted function merely from periodicity.
Evaluate the absolutely convergent complex Fourier series at . The factors equal one, and the term is . Pairing positive and negative integers gives
Since for nonintegral complex , rearranging proves
The last term means , so half-integer arguments are included by the finite cotangent value zero.