Source: https://math.lyceedebaudre.net/sites/default/files/Cours/BTS/Exercice_Fourier.pdf