Fourier Series & Transform Calculator
Fourier series coefficients with every step and the partial sums plotted, or the Fourier transform with its spectrum. Free.
Fourier Calculator
Fourier series of a periodic f(t), or the Fourier transform F(ω)
Fourier series examples
Pick any of these in the calculator to see every step. All checked with SymPy.
| f(t), one period | Coefficients |
|---|---|
| Square wave: −1 on (−π, 0), 1 on (0, π) | bₙ = 2(1 − (−1)ⁿ)/(nπ), i.e. (4/π)(sin t + sin 3t/3 + sin 5t/5 + …) |
| Sawtooth f(t) = t on (−π, π) | bₙ = −2(−1)ⁿ/n, i.e. 2(sin t − sin 2t/2 + sin 3t/3 − …) |
| Triangle f(t) = |t| on (−π, π) | a₀ = π, aₙ = 2((−1)ⁿ − 1)/(πn²) |
| f(t) = t² on (−π, π) | a₀ = 2π²/3, aₙ = 4(−1)ⁿ/n² |
| Full-wave rectified |sin t| | a₀ = 4/π, aₙ = −4/(π(2n − 1)(2n + 1)) |
| Half-wave rectified sine | a₀ = 2/π, b₁ = 1/2, aₙ = −(1 + (−1)ⁿ)/(π(n² − 1)) for n ≥ 2 |
Fourier transform pairs
F(ω) = ∫ f(t)e^(−jωt) dt. Each one is checked numerically in the calculator.
| f(t) | F(ω) |
|---|---|
| e^(−2t)·u(t) | 1/(2 + jω) |
| u(t + 1) − u(t − 1) | 2·sin(ω)/ω |
| e^(−3|t|) | 6/(9 + ω²) |
| e^(−t²) | √π·e^(−ω²/4) |
| t·e^(−t)·u(t) | 1/(1 + jω)² |
| δ(t − 1) | e^(−jω) |
Common questions
What is a Fourier series?
A periodic signal can be written as a sum of sines and cosines at whole-number multiples of its fundamental frequency ω₀ = 2π/T: f(t) = a₀/2 + Σ (aₙ cos nω₀t + bₙ sin nω₀t). The coefficients say how much of each harmonic the signal contains.
How are the coefficients found?
aₙ = (2/T)∫ f(t)cos(nω₀t) dt and bₙ = (2/T)∫ f(t)sin(nω₀t) dt over one period. LapCalc integrates with n kept as a symbol and simplifies sin(nπ) = 0 and cos(nπ) = (−1)ⁿ, then checks the formula against numerical integration for n = 1 to 12.
What is the Gibbs phenomenon?
At a jump, the partial sums overshoot by about 9% of the jump, however many terms you add; the overshoot only gets narrower. The plot shows it for the square wave.
What is the Fourier transform?
F(ω) = ∫ f(t)e^(−jωt) dt over all t. For a signal that starts at t = 0 and decays, it equals the Laplace transform with s = jω. A centred pulse of height c and width 2a gives 2c·sin(aω)/ω.
Is it free?
Yes. Both the series and the transform, with every step and the plots, are free.
Laplace Transform Calculator · Z-Transform Calculator · Transfer Function Workbench