Source: https://www-n.oca.eu/aristidi/Cours/analyse_fourier.pdf