Sum of 1st, 3rd, 5th, and 7th harmonics approximates square wave.

sum of harmonics approximates square wave diagram2