Solution (source code)

= Solution

A standard complete orthogonal family is the real <Fourier basis>
$$
\boxed{1,\ \cos x,\ \sin x,\ \cos2x,\ \sin2x,\ldots}.
$$
Completeness gives expansion in the <L2 space> for a square-integrable <function>. Mere integrability alone does not guarantee pointwise convergence of a <Fourier series>; the explicit function in part (b) is continuous and piecewise smooth, so this issue does not obstruct its expansion.