Introduction to Fourier Series and Waveform Decomposition
In mathematics, a Fourier series is a way to represent a periodic function as a sum of simple sine and cosine waves. Named after Joseph Fourier, who introduced the concept in the 19th century, Fourier analysis is one of the most powerful tools in engineering, signal processing, acoustics, and physics. The core idea is that any periodic signal, no matter how complex or jagged (like a square wave), can be constructed by stacking up smooth, sinusoidal harmonics of varying amplitudes and phases.
Each sinusoidal term in the series represents a frequency that is an integer multiple of the wave's fundamental frequency. The fundamental frequency determines the period of the overall repeating pattern, while the higher frequency components — called harmonics or overtones — give the wave its unique shape or timbre. By computing the Fourier coefficients, we can analyze the frequency content (the spectrum) of a signal.
This calculator synthesizes three periodic waveforms — square, triangle, and sawtooth — all of which are odd functions, so their cosine coefficients (a_0, a_n) are always zero and only the sine coefficients (b_n) are non-zero. By adjusting the number of harmonics, you can visualize how individual sine waves combine to approximate the target waveform, demonstrating the Gibbs phenomenon at sharp transitions.