Harmonic analysis vs. Spectral analysis (Part 3 of 4)
Using spectral analysis on periodic signals
In Part 1 and Part 2 of this article we discussed harmonic analysis
For harmonic analysis, the duration of the analysis interval should be changed if the frequency of the signal changes to keep exactly an integer number of periods in your analysis interval. Consequently, harmonic analysis requires from the Fourier transform
The following question then arises: what happens if we perform spectral analysis on periodic signals? That is, we choose a fixed duration for the analysis interval without considering the period of the signal such that we will not have an integer number of periods in our analysis interval. This would, after all, save us significant computation time because we can use the much faster FFT. Can we somehow still get the exact harmonics of the period signal?
This is illustrated in the picture below. Again, the time signal is a single sine signal, so the signal is periodic and contains only a single frequency. For the analysis interval, we choose a duration not equal to an integer number of periods. The resulting spectrum is also given in the picture below. Perhaps contrary to expectations, we see several frequency components while clearly the time signal contains only one frequency component. Furthermore, the actual frequency component of the sine signal (indicated in red) is not present in the spectrum. The strongest frequency component is close but not at the location of the actual frequency component. So why is this happening?
Recommended by LinkedIn
This phenomenon is known as spectral leakage
Spectral leakage can be mitigated using time-domain windowing (see previous episode of this article). Those bell-shaped windowing functions reduce the signal at either end of the analysis interval thus reducing the sharp edges and attenuating higher frequency components, but the spectral leakage cannot be completely eliminated, and the fact that the real frequency is not present in the spectrum remains. This means that spectral analysis will not give you exactly the real harmonics of your periodic signal.
Now that we have explained the differences between harmonic and spectral analysis using very simple time signals, it is time we move to signals as they appear in practical situations, like the output of an inverter in an electric drive train. This will be the subject of the next and last episode of this article.