Source: https://people.math.gatech.edu/~xchen/teach/real_analysis/Fourier_series_L2_conv.pdf