Fourier Series Calculator

Interactive Fourier series solver with adjustable harmonics, plotting, and export options. Easy to use. Analyze periodic signals, converge series, and export results quickly.

Example data table

xf(x)
-2.5-1
-2-1
-1.5-1
-1-1
-0.5-1
01
0.51
11
1.51
21
2.51

Formulas used

We assume a periodic function f(x) with period 2L on domain [-L, L]. The Fourier coefficients are computed as:

a0 = (1/L) ∫_{-L}^{L} f(x) dx
an = (1/L) ∫_{-L}^{L} f(x) cos(nπx/L) dx
bn = (1/L) ∫_{-L}^{L} f(x) sin(nπx/L) dx

The reconstruction uses f_series(x) = a0/2 + Σ_{n=1}^N [an cos(nπx/L) + bn sin(nπx/L)]. Numeric integration uses the trapezoidal rule.

How to use this calculator

  1. Select a preset waveform or choose "Custom samples" and paste x,y data for one period.
  2. Set half-period L (so period = 2L) and choose the number of harmonics N to include.
  3. Adjust numeric integration samples for accuracy (higher => slower).
  4. Press Compute Fourier Series. Results will appear above the form.
  5. Download CSV of reconstructed samples or generate a PDF of results if desired.

Related Calculators

fourier transform calculatordensity of statescalculus of variationsz transform calculatorpath integral calculatorheat equation solverlaplace equation solversaddle point approximationwave equation solverbessel function solver

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.