Fourier approximation

Approximating a discontinuous function with trigonometric polynomials

The video below shows a sequence of improving trigonometric polynomials (partial sums of a Fourier series representation) for a discontinuous function. The improvement is in the sense of decreasing root mean square error. The Gibbs overshoot phenomenon is in evidence.