Source: https://www.math93.com/gestclasse/classes/IPSA/ing1/td6-Fourier-corr.pdf