Convergence of Fourier series
For an $L$-periodic function $f: \R\to\C$, we define the partial Fourier series $S_N f$ by $$ \begin{align*} (S_N f)(\theta) = \sum_{|n|\leq N} \hat f_n e^{2\pi i n\theta/L} = \frac{1}{2} a_0 + \sum_{n=1}^{N} \left(a_n \cos \frac{2\pi n\theta}{L} + b_n \sin \frac{2\pi n \theta}{L}\right). \end{align*} $$
If an $L$-periodic function $f: \R\to\C$ is of bounded variation, i.e.
-
$f$ is continuous on $[0,L)$ away from a finite number of jump discontinuities, and
-
$f$ has finitely many maxima/minima on $[0,L)$,
then for each $\theta\in[0,L)$, $$ \begin{align*} \frac{f(\theta_+) + f(\theta_-)}{2} = \lim_{N\to\infty} (S_N f)(\theta) = \sum_n \hat f_n e^{2\pi i n\theta/L} \end{align*} $$ where $f(\theta_{\pm}) = \lim_{\epsilon\searrow 0} f(\theta\pm\epsilon)$.
This means the Fourier series converges to the value of $f$ at points of continuity, and converges to the average value of $f$ at points of discontinuity.