Notes on the instrument

Fourier Series Explorer

The mathematics behind the views

From harmonics to a signal

A periodic wave can be built from simple rotations. Change their amplitudes and phases to connect what you see in the waveform, the spectrum, and the phasor view with what you hear.

There are three common parameterizations of a Fourier series. First is amplitude–phase form with A_n and \phi_n:

f(t)=\frac{a_0}{2}+\sum_{n=1}^{N} A_n\sin(2\pi n t+\phi_n)

Using \sin(\alpha+\beta)=\sin\alpha\cos\beta+\cos\alpha\sin\beta , each term expands as

A_n\sin(2\pi n t+\phi_n)=A_n\sin(2\pi n t)\cos\phi_n + A_n\cos(2\pi n t)\sin\phi_n

so the cosine–sine coefficients are a_n=A_n\sin\phi_n and b_n=A_n\cos\phi_n, yielding

f(t)=\frac{a_0}{2}+\sum_{n=1}^{N}\left(a_n\cos(2\pi n t)+b_n\sin(2\pi n t)\right)

Finally, the same series can be written using complex exponentials e^{i2\pi n t} with coefficients c_n:

f(t)=\sum_{n=-N}^{N} c_n e^{i2\pi n t}

where the conversions are c_n=\frac{1}{2}(a_n-i b_n) and c_{-n}=\frac{1}{2}(a_n+i b_n) for n>0.

Display options

The checkboxes below the Waveform plot control scaling, the derivative view, and RMS normalization.

Presets: Intuition and Math

Each preset is a standard Fourier series with a specific pattern of harmonic coefficients. These patterns control the smoothness, symmetry, and sharpness of the waveform.

Shape the series

These settings shape the entire series before you edit any individual harmonic.

Partial Sums

Partial sums help visualize convergence and show how the waveform builds as harmonics are added.

Edit a harmonic

You can edit coefficients directly or via amplitude and phase.

Shape all harmonics

These tools modify all harmonics at once to shape the spectrum quickly.

Sound controls

The top toolbar lets you hear the current Fourier series as a periodic sound. The shape of the waveform (and thus the timbre) is completely determined by your set of amplitudes A_n and phases \phi_n; nothing in the audio bar changes that shape.

Motion and measurements

The Pause motion button freezes both the rotating phasors and the animated partial sums without stopping sound. Play motion resumes them. Motion starts paused when your system requests reduced motion.

The readouts above the plots show the harmonic limit, the number of nonzero harmonics, and the RMS of the plotted signal. In Build the wave, the Terms counter shows how many harmonics are currently included. Use One series, three forms to read the coefficients in sine–cosine, amplitude–phase, or complex notation.