Source: https://theory.physics.manchester.ac.uk/~judith/PHYS30672/fourier-examples.pdf