Fourier Series Calculator
This calculator returns the Fourier coefficients a0, a_n and b_n for two families that integrate in closed form. The first is a polynomial in x up to the eighth power, expanded over the full range on minus L to L or as a half range sine or cosine series on 0 to L, with the harmonics listed, the series written out and the partial sum checked against the function at a point you choose. The second is the standard periodic waveforms, where the coefficients are published closed forms and the page adds the harmonic amplitudes, the frequencies and how much of the waveform power the listed terms account for. There is no computer algebra system here, so a function outside those two families cannot be expanded and the tool says so rather than guessing. Every integral is worked by repeated integration by parts, not by sampling, so sin of n pi is a hard zero and a coefficient that should vanish does.