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

sum of harmonics approximates square wave diagram3