Home

Fourier Series Calculator

Numerically compute Fourier coefficients and the partial sum.

展开更多 ▾
f(x)~a0/2+Σ[an cos(nπx/L)+bn sin(nπx/L)]
on [-L,L], e.g. x
e.g. 3.14159 for π
1 to 5

📖 Tutorial | Fourier Series

1. Definition
On [-L,L], an integrable function expands as f(x)~a0/2+Σ[an cos(nπx/L)+bn sin(nπx/L)], with a0=(1/L)∫f, an=(1/L)∫f cos, bn=(1/L)∫f sin. The trigonometric system is orthogonal.
2. Symbols
a0constant (DC) term
ancosine coefficients
bnsine coefficients
Lhalf-period
3. How it works
  • Integrate numerically by Simpson;
  • Apply orthogonality formulas;
  • At x=0 sines vanish, easing verification;
  • Report coefficients and partial sum.
4. Steps
  1. Enter f(x), e.g. x;
  2. Set half-period L (3.14159 for π);
  3. Set n (1~5);
  4. Click Calculate.
5. Example
Example: f(x)=x on [-π,π].
Solution: x is odd, so a0=an=0 and b1=(2/π)∫₀^π x sin x dx=2. The tool gives b1≈2.
6. Pitfalls
f must be integrable on [-L,L]; odd functions have only sines, even only cosines;
Coefficients are numerical approximations;
At jump points the series converges to the midpoint.

❓ FAQ | Fourier Series

What is Fourier series for?
Decomposing periodic functions into sine/cosine frequencies, the basis of signal analysis.
Why do odd functions have only bn?
The cosine integrals vanish by symmetry.
What is a0/2?
The constant (DC) term is written a0/2.
Why approximate?
This tool integrates numerically.
Period not 2L?
Set L to your actual half-period.