Source: https://www.math.arizona.edu/~kglasner/math456/FOURIER1.pdf