Why Does a Square Wave Contain Only Odd Harmonics?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 5K views
likephysics
Messages
638
Reaction score
4
Why does a square wave contain only odd harmonics of the fundamental?
If the even harmonics are low, how low are they.
What happens to the even harmonics.
 
Physics news on Phys.org
Because the resulting function is odd. Even fundamental harmonics would be destructive.
 
likephysics said:
Why does a square wave contain only odd harmonics of the fundamental?
If the even harmonics are low, how low are they.
What happens to the even harmonics.

That's the Fourier expansion for a square wave:
[tex]\frac{4}{\pi}(sin(x) + sin(3x)/3 + sin (5x)/5 + ...)[/tex]

The function f(x) = |sin(x)| has only even harmonics.
 
Does the duty cycle of the square wave have anything to do with the odd harmonics?