Loading…

Fourier Series Wave Synthesizer

Physics Oscillations and Waves • Superposition and Interference

View all topics

Synthesize periodic waves using a Fourier series \[ f(t)=\frac{a_0}{2}+\sum_{n=1}^{N}\Big(a_n\cos(2\pi nft)+b_n\sin(2\pi nft)\Big). \] This calculator builds common waveforms such as square, sawtooth, and triangle waves from their harmonics, reports the coefficients used, and visualizes the partial sum. It also highlights the Gibbs overshoot behavior that appears near jump discontinuities in truncated Fourier approximations.

Wave synthesizer setup
The square and triangle presets use odd harmonics only in the standard zero-mean series. The sawtooth series uses all harmonics.
Visualization
Increasing the harmonic count improves the approximation, but near jump discontinuities the Gibbs overshoot remains visible.
Ready
Contained harmonic-build animation
The top rows show selected harmonics and the bottom row shows the resulting partial sum. All text, curves, and markers stay within the frame.
Schematic harmonic addition animation for the chosen Fourier series.
Interactive Fourier plot
Compare the partial sum with the target waveform, or inspect the coefficient magnitudes used in the synthesis.
Tip: on narrow screens, scroll horizontally to see the full plot.
Enter values and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What does the Fourier series wave synthesizer calculate?

It builds a periodic waveform from a finite Fourier series, reports the coefficients used, evaluates the partial sum at a chosen time, and compares the result with the target waveform.

Why do square and triangle waves use only odd harmonics?

Because of their symmetry properties. In the standard zero-mean forms used here, the Fourier expansion eliminates even harmonics and leaves only odd harmonic contributions.

What is the Gibbs phenomenon?

It is the overshoot that appears near jump discontinuities when a discontinuous function is approximated by a truncated Fourier series. Increasing the number of harmonics narrows the oscillation region but does not eliminate the overshoot entirely.

Why are higher harmonics weaker?

Because the Fourier coefficients usually decrease with harmonic number. For example, square and sawtooth waves have coefficients that decay like 1/n, while triangle-wave coefficients decay faster, like 1/n^2.