I have been doing some research into the fourier analysis of square wave signals for my project which involves filtering of PWM signals. Just a few things online that I have found which don't make sense to me which hopefully somebody could clear up. First off this document by Texas instruments discusses the Fourier coefficients of a PWM signal with duty cycle pT. The image of the signal in the example is shown here:
And so the text goes on to to discussing the derivation of the Fourier coefficients of this signal using first principles.The formulas along with their results are shown in the next image:
The problem I am having here is that I cannot evaluate the highlighted integral and get the same expression for the A sub n terms. When I do it taking the limits from \$\frac{-pT}{2}\$ to \$\frac{pT}{2}\$ I get \$\frac{K}{n\pi}[\sin n\pi p]\$. Could somebody evaluate this integral and show me how they got this.
Here is my attempt to evaluate it:
Also this document says that the fourier series is a sequence of higher end frequencies stretching out on both sides of the fundamental frequencies which are integer multiples of the fundamental frequency. The coefficients are the amplitudes of these frequencies on the frequency spectrum. I cannot find any formula that explains why these harmonics are integer multiples of the carrier frequency.
This online tutorial for example I can't get my head around. Here is the image of the square wave upon which a fourier transform is performed:
As you can see the frequency of this square wave is 100KHz. But then when the Fourier transform is performed you get given this image of the signal in the frequency domain:
Could somebody explain/show why this signal has frequency components at what I believe are 200kHz, 400kHz, 600KHz, and 800KHz. I understand its central DC component of 1.65V but other than that I don't get this.
Thanks in advance,
Simon.