Source: https://people.math.carleton.ca/~angelo/calculus/Exercises-Fourier-Series.pdf