The following animation shows the Fourier-approximation for \(f(x)=x(2\pi-x),\;\;0\le x\le2\pi\;\;\) up to 6.
With frame
Fourier series
© J. Carstensen (Math for MS)