Harmonics


What you will find in this section:

  1. Signal analysis
  2. Harmonics
  3. THD
  4. Related topics

 

Signal analysis

Simplified (according to Joseph Fourier), a periodic function f(t) with period T>0 can be represented by a series of sine and cosine functions whose frequencies are integer multiples (k=0-∞) of the fundamental frequency ω=2π/Τ,

Simplified (according to Joseph Fourier), a periodic function f(t)

or divided into real part and imaginary part

Rectangular synthesis according to Fourier

The following figure shows an example of rectangular synthesis according to Fourier.

Rectangular synthesis according to Fourier_3_5
Rectangular synthesis according to Fourier_9_25
Rectangular synthesis according to Fourier_99_999

Here, a square wave signal is added up from sine waves. The following applies for all odd harmonics k=1 to kmax: F(t)k=1/k-sin(kωt). These signals are added together to produce the square wave. kmax is indicated in the diagrams.

Square wave signal added up from sine waves formula

Harmonics

Calculation of the amplitudes of the harmonics

According to DIN EN 61000-4-7:2009-12 Chapter 3.1 Terms relating to frequency analysis, the following calculation rules apply:

The continuous signal f(t) is sampled with a number M of supporting points per period. Several (N) periods can be sampled for the calculation. The standard requires 10 at 50Hz or 12 at 60Hz base frequency (i.e. approx. 200ms). As an FFT is to be used, the number of supporting points must always be a power of 2.

For further consideration, the formulas from the standard DIN EN 61000-4-7:2009-12 Chapter 3.1 have already been adapted to the discrete signal due to sampling. It is also assumed that only one period is considered. However, the discrete sampled values can be mean values over N periods. The continuous signal f(t) becomes the discrete-time signal F[A0, A1, ... AM]. Am denotes the amplitude at time m.

For each harmonic (k = 0 to Max), the real and imaginary components are calculated for all samples (m = 0 to M). Max is the highest harmonic under consideration. The DIN EN 61557-12 standard, Table 41, specifies the requirement to measure up to the 50th order. In DIN EN 61000-4-7, hmax is specified as 40. (EN 61000-4-7)

For this purpose, the sampled value F[Am] at the point ω=2π-m/M of the supporting point m is multiplied by the sine and cosine at the point ω=2π-m/M-k (point ω=2π-m/M multiplied by the number of harmonics k), added up and divided by half the number of supporting points.

Calculation of the amplitudes of the harmonics formulas

This results in the real component ak and the imaginary component bk of the harmonic k.

The first harmonic forms the fundamental frequency.

Because the real component ak and the imaginary component bk are at right angles to each other, the amplitude ck of the component with k times the frequency (fH,k) of the fundamental frequency fH,1 is calculated as:

Amplitude ck of the component with k times the frequency formula

DC component:

DC component - Amplitude ck of the component with k times the frequency formula

Because there is no imaginary part for the zero harmonic for the DC component (sin(0) = 0). The multiplication with the cosine is also saved since cos(0) = 1.

The RMS value YC,k of the amplitude ck is formed by

RMS value YC,k of the amplitude ck formula

The harmonic component YH,h is identical to the spectral component YC,k, where k = h × N (YH,h = YC,h × N). Depending on requirements, the symbol Y is replaced by the symbol I for currents or by the symbol U for voltages. The index H identifies the variable I or U as a harmonic.

THD

THD in relation to the fundamental component

According to the standard DIN EN 61000-4-7, the total harmonic distortion THD is defined: THDY (symbol)

Ratio of the RMS value of the sum of all harmonic components (YH,h) up to a certain harmonic order (hmax) to the RMS value of the fundamental component (YH,1) is:

THD formula

The simplified representation from the standard DIN EN 61557-12, Table A.2 is the ratio of the square root of the sum of the squares of the harmonic components up to the 63rd harmonic to the fundamental component. So hmax is specified here. The result is the same.

THDui formula

In the DIN EN 61557-12 standard, hi is defined as the harmonic component of rank i. It is not clearly defined whether the RMS value or the amplitude is meant. Since the two specifications have a linear relationship (factor √2), this is not relevant in the specified ratio. The different notations in the two cited standards result in hi ≈ YH,h.

THD in relation to the RMS value

The simplified representation from the standard DIN EN 61557-12, Table A.2 is the ratio of the square root of the sum of the squares of the harmonic components up to the 63rd harmonic to the RMS value of the alternating signal. It must be specified here that the harmonic components are RMS values.
hi = YH,h.

THD in relation to the RMS value formula

Standard DIN EN 61557-12 with RMS value = Urms for THD-Ru bzw. Irms for THD-Ri

The total RMS value is calculated from:

RMS from Y formula

For the application with 63 harmonics, this results in the calculation rule:

THD for application with 63 harmonics formula

According to the definition of the distortion factor, the DC component is not taken into account when calculating the RMS value. The values cannot be compared with signals with a DC component.

 

  1. Product_overview

 


EMpro online documentation
Published/reviewed: 2025-07-15, en revision 003Version history