Is there any reason why adding more and more terms to a Fourier Series representation of a function would cause any wierdness?
I was under the impression that, in general, a smooth function can be perfectly represented by a Fourier Series given an infinite number of terms.
However, when I programmed a small algorithm to compute and graph a Fourier series for $e^x$, I noticed that if I added too many coefficients, things started to get really crazy. Here, for example are plots with 50 terms and 200 terms. For both of these, the Fourier coefficients $c_n$ were calculated for $x$ in the interval $[-2 \pi, 2 \pi]$ using trapezoid rule with $h = 0.025$:

