Source: https://perso.math.univ-toulouse.fr/marechal/files/2012/04/TD-S%C3%A9ries-Fourier.pdf