Skip to content

Select your region & language

Global

Region

Technical Report: About FFT Analyzers 5

3. Fourier Series and Fourier Transform

3.6 Example of Fourier Expansion Calculation

In this section, we will calculate the Fourier series for one period of a given time waveform.

Figure 3-9 below shows the procedure for calculating the Fourier coefficient of the second harmonic k = 2 from one-period waveform data with a sample size N = 12, and the Fourier series equation 3-20 of this waveform obtained by performing similar calculations for k = 0 to 6 *. (*: According to the sampling theorem, with a sample size N = 12, the number of analyzable harmonic orders f m = 6)

Furthermore, Figure 3-10 below shows the data displayed on an FFT analyzer when this sampling data has a period T = Nh = 0.02 seconds (ω0 = 50 Hz).

Performing these calculations manually, even for a mere 12 sample data points, would take an enormous amount of time. An FFT analyzer uses the FFT method where N is 2n (for example, 1024 = 2¹⁰), processing these calculations in a short time, saving the data to memory, and displaying waveforms such as time-domain waveforms and spectra from that data, thereby conveying to us various characteristics of the input waveform.

  • Figure 3-9

The Fourier coefficients a = 0, a = k, and b = k are:

Calculation table for the second harmonic

n Xi (angle) Yi (data series) Cos (2xi) YiCos (2xi)
0 0 0 - -
1 30 16 Cos(60) = 0.5 8
2 60 26 Cos(120) = -0.5 -13
3 90 31 cos(180) = -1 -31
4 120 36 Cos(240) = -0.5 -18
5 150 46 Cos(300) = 0.5 23
6 180 21 Cos(360) = 1 21
7 210 10 Cos(420) = 0.5 5
8 240 -4 Cos(480) = -0.5 2
9 270 -19 Cos(540) = -1 19
10 300 -16 Cos(600) = -0.5 8
11 330 -14 Cos(660) = 0.5 -7
12 360 0 Cos(720) = 1 0
Σ - 133 - 17

From the table above, the Fourier coefficients when k = 2 are:

a 0 = 133/12 = 11.08, a 2 = 2/N∑x(n) cos (2n) = 2.83

This can be calculated as follows. Performing similar calculations for k = 0 to 6, we can obtain the following equation.

(Formula 3-20)

  frequency
(Hz)
Ak
(Cos term)
Bk
(Sin term)
r
(amplitude)
φ
(phase)
r
(Amplitude logarithm)
A0 0 11.08  0.00 11.08  0.00 20.89
ω0 50 -13.13 25.67 28.83 -62.91 29.20
2ω0 100 2.83 -0.58 2.89 -11.58 9.21
3ω0 150 0.17 2.67 2.68 86.36 8.55
4ω0 200 -2.83 -1.15 3.05 22.11 9.70
5ω0 250 2.46 2.00 3.17 39.11 10.02
6ω0 300 -0.59 0.00 0.59 0.00 -4.66

Figure 3-10

Power Spectrum

phase

amplitude

Fourier spectrum

4. How to read the FFT analyzer screen

4.1 Time-domain resolution and frequency resolution

Let's actually analyze a simple waveform using an FFT analyzer and examine its relationship to the FFT and its characteristics, as explained earlier.

Data 1 below shows the results of analyzing one of the original waveforms of unknown origin at a frequency range of 10 kHz. Because the sampling time is short compared to the original waveform, the original waveform is observed in detail when displayed on the time axis, but on the frequency axis, the frequency resolution is insufficient, resulting in a connected spectrum (envelope).

  • <Data 1>

The relationship between the X-axis of the frequency domain and the frequency range at this time can be determined as follows:

<Time axis (upper data)>

The original waveform is sampled at time-domain resolutions ΔT = approximately 0.039 ms, and 80 ms of data from 2048 points are displayed; this represents the fundamental frequency T.

<Frequency axis (lower data)>

By performing a DFT on this time-domain waveform, 800 spectral data points are displayed at 12.5 Hz intervals from 0 Hz to 10 kHz.

This 12.5 Hz is the reciprocal (1/T) of the fundamental frequency of 80 ms. The following table summarizes the relationship between the number of samples, data length, and frequency resolution; please refer to it for further information.

Sampling points Data length T (seconds) Frequency resolution 1/T
256
512
1024
2048
4096

<f: Frequency range>

Next, look at Data 2. This is the result of analyzing the same waveform as Data 1 at a frequency range of 1 kHz. Although the time-domain resolution is worse *, the frequency resolution has improved to 1.25 Hz, allowing for detailed reading of the odd-numbered harmonic components of the fundamental wave of 10 Hz. From the results, we can see that the original waveform is a 10 Hz square wave. (*Note: The time-domain waveform is not noticeably worse because the sampling frequency is sufficiently high compared to the signal frequency.)

  • <Data 2>

Now let's look at Data 3, which is the same data waveform analyzed with one-quarter the number of sampling points = 512 points, and with the same frequency range as Data 2, 1 kHz. Compared to Data 2, the data length has been shortened from 800 ms to 200 ms, so the frequency resolution becomes 5 Hz, which is 1/200th of 1 kHz, and uncertainty begins to appear.

  • <Data 3>

The spectral values at 50 Hz are shown in each of the spectral waveforms (lower) of data 1 to 3, and you can see that they are almost the same value. This suggests that, as explained in Figure 3-10 G in the previous issue, the envelope of the DFT spectrum matches the spectrum of the original waveform.

  • Figure 4-1