The partial Fourier sums (number of terms displayed above) converge to the discontinuous function. Notice Gibbs' phenomenon.