Skip to content
← All questions

How does adding odd sine harmonics build the flat levels and steep transitions of a square wave?

Starting with the fundamental sine wave provides the basic oscillation. Adding higher-order odd harmonics (frequency 3, 5, etc.) introduces faster oscillations. Constructive interference of these sines flattens the tops and bottoms of the waveform (the flat levels), while destructive interference sharpens the slopes near the zero crossings (steep transitions).

Conditions

  • Using the partial sum SN(x)=4π∑k=0N−1sin⁡((2k+1)x)2k+1S_N(x)=\frac4\pi\sum_{k=0}^{N-1}\frac{\sin((2k+1)x)}{2k+1}.
  • NN increases to include more harmonics.

Reasoning, step by step

  1. Begin with the fundamental frequency (k=0k=0).
  2. Add the next odd harmonic (k=1k=1, frequency 3).
  3. Observe how the superposition modifies the shape: peaks broaden/flattened, valleys deepen.
  4. Continue adding terms to refine the approximation towards the rectangular shape.

Example

The script instructs: 'Start with the fundamental sine wave, then add frequencies 3, 5 and so on to build the flat levels and steep transitions.'

Common misconceptions

  • Thinking that each added harmonic makes the entire wave taller; amplitudes decay as 1/n1/n.
  • Believing that convergence is uniform across the whole domain immediately.

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.