Let f (x) be a 2π-periodic piecewise continuous function defined on the closed interval [−π, π]. As we know, the Fourier series expansion of such a function exists and is given by
Let \(g\left( x \right)\) be a \(2\pi\)-periodic piecewise continuous function on the interval \(\left[ { - \pi ,\pi } \right].\) Then this function can be integrated term by term on this interval. The Fourier series for \(g\left( x \right)\) is given by
where the series on the right-hand side is obtained by the formal term-by-term integration of the Fourier series for \(g\left( x \right).\)
Because of the presence of the term depending on \(x\) on the right-hand side, this is not clearly a Fourier series expansion of the integral of \(g\left( x \right).\) The result can be rearranged to be a Fourier series expansion of the function
\[\Phi \left( x \right) = \int\limits_0^x {g\left( t \right)dt} - \frac{{{a_0}x}}{2}.\]
The Fourier series of the function \(\Phi\left( x \right)\) is given by the expression
\[
f\left( x \right) = \text{sign}\,x =
\begin{cases}
-1, & -\pi \le x \le 0 \\
1, & 0 \lt x \le \pi
\end{cases},\]
knowing that the Fourier series expansion of the function \(F\left( x \right) = \left| x \right|\) on the interval \(\left[ { - \pi ,\pi } \right]\) is given by
As the function \(f\left( x \right)\) is piecewise continuous on the interval \(\left[ { - \pi ,\pi } \right],\) we may integrate its Fourier series term by term to obtain
We know from Example \(1\) on the page Bessel's Inequality and Parseval's Theorem that \(\zeta \left( 2 \right) = \sum\limits_{n = 1}^\infty {\frac{1}{{{n^2}}}} = {\frac{{{\pi ^2}}}{6}}.\) Then we get