Fourier series properties

Content

DSPL-2.0 is free digital signal processing algorithms library

Distributed under v3 LGPL v3 license

GitHub project page.

Found a mistake? Select it with the mouse and press ctrl+enter
Introduction

In the previous section, Fourier series decomposition of periodic signals was considered. Expressions were given for the Fourier series in trigonometric and complex forms and the spectrum of a periodic signal was introduced.

It is shown that the spectrum of the periodic signal is a discrete function , defined on an equidistant frequency grid ,

In this section, we will consider some properties of the periodic signals spectrum. As we will see later, the Fourier transform of non-periodic signals, as well as the discrete Fourier transform, have similar properties.

Linearity property

Let there are two periodic signals and with equal periods , and both signals satisfy the Dirichlet conditions. The signals and can be represented by a Fourier series with coefficients and , where ,

Throughout the rest of this section, we assume that the signals and are periodic with equal periods , and both signals satisfy the Dirichlet conditions. Then the signal is also a periodic signal with the period , and can be represented by a Fourier series with the coefficients:

(1)

Thus, the spectrum of the sum of periodic signals is equal to the sum of their spectra. A consequence of the linearity property is the property of multiplication by a constant. The signal spectrum , , is equal to:

(2)

Cyclic time shift property

Consider the signal as a result of the cyclic time shift of the input signal , as shown in the figure 1 for positive and negative values of .

Cyclic time shift of the input signal
Figure 1. Cyclic time shift of the input signal

The spectrum of the signal with a cyclic time shift is:

(3)
Let us introduce the notation , than , , and equation (3) can be written as:
(4)

Thus, the cyclic time shift of the periodic signal  corresponds to the spectrum multiplication by the phase factor . In this case, the amplitude spectrum does not change, and the phase spectrum has an additional linear term.

Spectrum of the cyclic convolution

Let the signal is a cyclic convolution [1, p. 362] of signals and :

(5)
Then the signal is also -periodic and its spectrum is:
(6)

Let's change the order of integration and use the cyclic time shift property (4):

(7)

The spectrum of the periodic signal (5) is proportional to the product of the spectra and .

This is one of the most important properties of spectral analysis, which allows you to analyze signal processing systems in the frequency domain, replacing the time convolution of signals by the product of their spectra.

Signal product spectrum

Let's signal is product of and  signals. The signal is -periodic, and it spectrum equals:

(8)

We can substitute in (8) instead signal its Fourier series decomposition:

(9)

Change the order of integration and sum in (9) and we will have:

(10)
Let's take into account that
(11)
then the spectrum of the periodic signals product
(12)
equals linear convolution of and .

Symmetry of the real signal spectrum

Let's is real periodic signal. It spectrum equals:

(13)

Amplitude and phase spectrum of the real signal are:

(14)

(15)
Leonhard Euler
1707–1783
We can see from the equation (14) и (15), that the real signal amplitude spectrum is always symmetrical corresponds to the zero frequency: , but phase spectrum  — anti-symmetrical.

Symmetry properties is not satisfied if is complex signal.

Frequency shift property

Let the signal is product of signal and complex exponent with frequency , where  is an arbitrary integer. The choice of the frequency ensures the periodicity of the signal , because an integer number of the complex exponent oscillations fits in one period .

Thus, the signal satisfies the Dirichlet conditions, and its spectrum is:

(16)

The multiplication of the signal by the complex exponent shift the signal spectrum to the frequency . In this case, the signal becomes complex, and its spectrum is asymmetric with respect to the zero frequency.

Figure 2 shows an example of the frequency shift of the signal when is multiplied by the complex exponent with the frequency rad/s.

An example of a frequency shift of the spectrum   when multiplying a signal by a complex exponent
Figure 2. An example of a frequency shift of the spectrum
when multiplying a signal by a complex exponent
It can be seen that the spectrum of the frequency-shifted signal  is a copy of the spectrum .

It is important to note that the signal itself has become complex (the graph shows separately the real and the imaginary part of the signal), in this case, its amplitude spectrum ceased to be symmetric, and its phase spectrum ceased to be antisymmetric with respect to the zero frequency.

Consider now the multiplication of the signal not by the complex exponent, but by the harmonic oscillation , where ,  – arbitrary integer,  — arbitrary initial phase.

We also keep the signal periodicity in this case, and its spectrum is:

(17)
Let us express in terms of the sum of complex exponents :
(18)

Thus, the multiplication of the signal by the harmonic oscillation leads to a shift of the spectrum by frequencies in both the positive and negative frequency regions, a decrease in the amplitude in the positive and negative regions by a factor of two, and the addition of the phase factor .

The figure 3 shows an example of the frequency shift of the signal when multiplying by with frequency rad/s (5 Hz), and rad.

An example of the frequency shift of a periodic sequence of rectangular pulses  when multiplied by 
Figure 3. An example of the frequency shift of a periodic sequence of rectangular pulses when multiplied by 

From the figure 3 one can see that the spectrum of the frequency-shifted signal is the sum of the half-amplitude spectra shifted by the frequencies . Note that the real signal remains real with a symmetric amplitude and antisymmetric phase spectrum.

Parseval's theorem

Let there be a periodic signal , which is a time-varying value of current or voltage. We can consider the average power
index {average power} allocated at a resistance of 1 Ohm by the signal :
(19)
here  — conjugated signal .

Substitute in (19) instead of the expression of the Fourier series in complex form:

(20)
change the order of integration and summation:
(21)

Equating (19) and (21), we get Parseval's equality, which relates the average power of a periodic signal in the time and frequency domains:

(22)

From (22) it follows that the average power released at the  1 Ohm resistance for one signal repetition period is equal to the sum of the spectral components amplitudes squares. In this case, the summation is for from minus infinity to infinity. This means that the components with negative frequencies corresponding to negative also contribute to the signal power.

If we take into account that the amplitude spectrum of a real periodic signal is symmetric with respect to the zero frequency, then we can conclude that the spectral components in the negative frequency range carry the same power as the spectral components with positive frequencies . Therefore, the negative frequencies that appeared during the transition to the Fourier series in complex form are not just a mathematical abstraction, but a physical entity that carries almost half the power of a real signal.

Spectrum of the input signal derivative

Let the signal be a continuous periodic signal differentiable on the time axis (does not have discontinuities of the first kind), whose spectrum is equal to . Then the signal is also a periodic signal that satisfies the Dirichlet conditions and its spectrum is:

(23)

We use the rule of integration by parts:

(24)
Take account that
(25)
Also, due to the periodicity and continuity of the signal, , and the first two terms of the expression (24) are mutually exclusive:
(26)

Thus, the spectrum of the periodic signal derivative is equal to the spectrum of this signal multiplied by .

The presence of the factor leads to the fact that the spectrum of with increasing frequency decays weaker than the original signal spectrum . Therefore, initially we imposed a restriction on the original signal: it must be continuous and differentiable, then its spectrum will decay faster than , and multiplication by will not increase with increasing frequency.

The spectrum of the signal integral

Now let be a signal with a zero mean value. The spectrum of the signal is zero at zero frequency: .

Then

(27)
is an integral of the signal , and for , is also periodic with a period and satisfies the Dirichlet conditions.

Note that if there is in the signal   , the integrator from minus infinity will accumulate an infinite component of the signal   . Figure 4 shows an example of a periodic signal with a zero mean value and the result of its integration.

An example of a periodic signal with a zero mean value and the result of its integration
Figure 4. An example of a periodic signal with a zero mean value and the result of its integration

Consider the spectrum of the signal . To do this, note that the signal is nothing but the derivative of the signal . Then using the spectrum property of the signal derivative (26), we can write:

(28)

With , the spectrum of is calculated without much difficulty. However, at the frequency , obtain an limits of indeterminate form :

(29)

Evaluate limits of indeterminate forms by L'Hospital's rule:

(30)

By the definition of the spectrum

(31)
then we differentiate the left and right sides of (31) by the variable and find the value of the derivative if :

(32)

Finally, the spectrum of the signal at zero frequency is:

(33)
and spectrum according to (28) and (33):
(34)

Analyzing the expression , we can conclude that the integration of the signal leads to a faster decay of the amplitudes of the signal spectrum due to the presence of an additional factor . Thus, integrating removes the jumps in the original signal, as shown in the figure 4.

Conclusions

In this section, we examined some properties of the spectra of periodic signals: linearity, properties of time and frequency shifts, spectrum of convolution and product of signals.

We also analyzed the property of symmetry of the spectrum of the real signal and found that the amplitude spectrum of the periodic signal is symmetric, and the phase spectrum — antisymmetric with respect to zero frequency.

We also considered Parseval's equality, which establishes the ratio of the average signal power in the time and frequency domains, and the property of differentiation and integration of the signal.

In the next section, we will analyze the decomposition of non-periodic signals and obtain a continuous Fourier transform.

Software implementation in the DSPL library

The figures for the figures in this section were calculated using DSPL-2.0 library.

The following source code of the data calculation program for plotting the figureв 2 and 3:


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dspl.h"

/* number of input signal points */
#define N    200000

/* Signal period (sec) */
#define T    4.0

/* Signal amplitude */
#define A    2.0

/* Spectrum samples number */
#define M    121
#define TAU  1.0
#define DEC  50

int main(int argc, char* argv[])
{

    double*    t  = NULL;  /* Time vector (sec) */
    double*    s  = NULL;  /* Input signal vector */
    complex_t* sc = NULL;  /* Complex modulated signal */
    complex_t  S[M];       /* Complex spectrum */
    double     Smag[M];    /* Amplitude spectrum */
    double     Sphi[M];    /* Phase spectrum */
    double     w[M];       /* Angular frequency (rad/s) */
    void*      hdspl;      /* DSPL handle */
    void*      hplot;      /* GNUPLOT handle */
    int        k, i;
    
    /* Load libdspl.dll */
    hdspl = dspl_load();
    if(!hdspl)
    {
        printf("Сannot to load libdspl!\n");
        return 0;
    }

    /* Memory allocation */
    t = (double*)malloc(N*sizeof(double));
    s = (double*)malloc(N*sizeof(double));
    sc = (complex_t*)malloc(N*sizeof(complex_t));

    /* Time vector contains 4 periods of signal */
    linspace(-T*2.0, T*2.0,    N, DSPL_PERIODIC, t);

    /* 4 periods of the rectangle pulses */ 
    signal_pimp(t, N, A, TAU, 0.0, T, s);

    /* Spectrum calculation by Fourier serie decomposition */
    fourier_series_dec(t, s, N, T, M, w, S);

    /* Amplitude and Phase spectrum */
    for(k = 0; k < M; k++)
    {
        Smag[k] = ABS(S[k])/4.0;
        Sphi[k] = atan2(IM(S[k]), RE(S[k]));
    }
    /* Save spectrums to the files */
    writetxt(w, Smag, M, "dat/fourier_series_prop_spectrum_amp_a.txt");
    writetxt(w, Sphi, M, "dat/fourier_series_prop_spectrum_phi_a.txt");

    /* Modulation by complex exponent*/
    double w0 = 10.0*M_PI;
    for(k = 0; k < N; k++)
    {
        RE(sc[k]) = s[k] * cos(w0*t[k]);
        IM(sc[k]) = s[k] * sin(w0*t[k]);
    }

    /* Spectrum calculation by Fourier series decomposition */
    fourier_series_dec_cmplx(t, sc, N, T, M, w, S);
    
    /* Amplitude and Phase spectrum */
    for(k = 0; k < M; k++)
    {
        Smag[k] = ABS(S[k])/4.0;
        Sphi[k] = atan2(IM(S[k]), RE(S[k]));
    }
    
    /* Save spectrums to the files */
    writetxt(w, Smag, M, "dat/fourier_series_prop_spectrum_amp_se.txt");
    writetxt(w, Sphi, M, "dat/fourier_series_prop_spectrum_phi_se.txt");

    /* DEC times decimation of the input time signal*/
    decimate(t, N, DEC, t, &i);
    decimate(s, N, DEC, s, &i);
    
    /* save to dat/fourier_series_prop_time_a.txt */
    writetxt(t, s, i, "dat/fourier_series_prop_time_a.txt");

    /* DEC times decimation of the modulated complex signal*/
    decimate_cmplx(sc, N, DEC, sc, &i);
    
    /* Save real and imaginary parts of modulated signal to the files */
    writetxt_cmplx_re(t, sc, i, "dat/fourier_series_prop_time_se_re.txt");
    writetxt_cmplx_im(t, sc, i, "dat/fourier_series_prop_time_se_im.txt");

    /* Time vector contains 4 periods of signal */
    linspace(-T*2.0, T*2.0,    N, DSPL_PERIODIC, t);
    
    /* 4 periods of the rectangle pulses */ 
    signal_pimp(t, N, A, TAU, 0.0, T, s);

    /* Modulation by cosine oscillation */
    for(k = 0; k < N; k++)
    {
        s[k] *= cos(w0*t[k]);
    }


    /* Spectrum calculation by Fourier series decomposition */
    fourier_series_dec(t, s, N, T, M, w, S);
    
    /* Amplitude and Phase spectrum */
    for(k = 0; k < M; k++)
    {
        Smag[k] = ABS(S[k])/4.0;
        Sphi[k] = atan2(IM(S[k]), RE(S[k]));
    }
    
    /* Save spectrums to the files */
    writetxt(w, Smag, M, "dat/fourier_series_prop_spectrum_amp_sc.txt");
    writetxt(w, Sphi, M, "dat/fourier_series_prop_spectrum_phi_sc.txt");

    /* DEC times decimation of the modulated complex signal */
    decimate(t, N, DEC, t, &i);
    decimate(s, N, DEC, s, &i);
    writetxt(t, s, i, "dat/fourier_series_prop_time_sc.txt");

    /* Plotting by GnuPlot */
    gnuplot_create(argc, argv, 1200, 640, "img/plot.png", &hplot);
    gnuplot_cmd(hplot, "unset key");
    gnuplot_cmd(hplot, "set multiplot layout 3, 3 rowsfirst");
    gnuplot_cmd(hplot, "plot 'dat/fourier_series_prop_time_a.txt' with lines");
    gnuplot_cmd(hplot, "plot 'dat/fourier_series_prop_time_se_re.txt' with lines,\\");
    gnuplot_cmd(hplot, "     'dat/fourier_series_prop_time_se_im.txt' with lines");
    gnuplot_cmd(hplot, "plot 'dat/fourier_series_prop_time_sc.txt' with lines");
    gnuplot_cmd(hplot, "plot 'dat/fourier_series_prop_spectrum_amp_a.txt' with impulses lt 1 ,\\");
    gnuplot_cmd(hplot, "     'dat/fourier_series_prop_spectrum_amp_a.txt' with points pt 7 ps 0.5 lt 1");
    gnuplot_cmd(hplot, "plot 'dat/fourier_series_prop_spectrum_amp_se.txt' with impulses lt 1 ,\\");
    gnuplot_cmd(hplot, "     'dat/fourier_series_prop_spectrum_amp_se.txt' with points pt 7 ps 0.5 lt 1");
    gnuplot_cmd(hplot, "plot 'dat/fourier_series_prop_spectrum_amp_sc.txt' with impulses lt 1 ,\\");
    gnuplot_cmd(hplot, "     'dat/fourier_series_prop_spectrum_amp_sc.txt' with points pt 7 ps 0.5 lt 1");
    gnuplot_cmd(hplot, "plot 'dat/fourier_series_prop_spectrum_phi_a.txt' with impulses lt 1 ,\\");
    gnuplot_cmd(hplot, "     'dat/fourier_series_prop_spectrum_phi_a.txt' with points pt 7 ps 0.5 lt 1");
    gnuplot_cmd(hplot, "plot 'dat/fourier_series_prop_spectrum_phi_se.txt' with impulses lt 1 ,\\");
    gnuplot_cmd(hplot, "     'dat/fourier_series_prop_spectrum_phi_se.txt' with points pt 7 ps 0.5 lt 1");
    gnuplot_cmd(hplot, "plot 'dat/fourier_series_prop_spectrum_phi_sc.txt' with impulses lt 1 ,\\");
    gnuplot_cmd(hplot, "     'dat/fourier_series_prop_spectrum_phi_sc.txt' with points pt 7 ps 0.5 lt 1");
    gnuplot_close(hplot);

    /* free libdspl.dll */
    dspl_free(hdspl);
    /* free memory */
    free(s);
    free(t);
    free(sc); 
    return 0;
}

Reference

[1] Bracewell R. The Fourier Transform and Its Applications McGraw-Hills, 1986, 474 c. ISBN 0-07-007-015-6

[2] Баскаков, С.И. Радиотехнические цепи и сигналы. Москва, ЛЕНАНД, 2016, 528 c. ISBN 978-5-9710-2464-4

[3] Гоноровский И.С. Радиотехнические цепи и сигналы Москва, Советское радио, 1977, 608 c.

Page update: 30.08.2020 (13:11:22)