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.

Calculator Type
A polynomial in x, up to x^8. Write x^2 for a square and use a plain minus sign.
Ignored unless the box above is set to use it.
The partial sum over the harmonics listed is evaluated here and set beside f(x) itself.
Widget
The peak value. A square wave set to A swings between +A and -A, a pulse train between 0 and A.
Only sets the frequencies the harmonics are listed at. The coefficients themselves do not depend on it.
The share of each period spent at A. Ignored by every other waveform.
Widget