(For the sake of completeness, we include a proof here. By the Fundamental Theorem of Calculus, the function has the derivative . Since is -periodic, we see that for all , whence there is a constant such that for all . In particular, it follows that . Thus we obtain for all , which finishes the proof.)
Thus, the integral over some interval of length is equal to the integral over any such interval. In case is given on the interval rather than , we can calculate the Fourier coefficients as follows:
.