Signals, Systems, and Spectral Analysis

Ali Grami , in Introduction to Digital Communications, 2016

3.6.5 Complex Exponential Fourier Series

The quadrature and polar forms of the Fourier series are one-sided spectral components, meaning the spectrum can exist for DC and positive frequencies, but on the other hand, the complex exponential Fourier series has two-sided spectral components. The complex exponential Fourier series is a simple form, in which the orthogonal functions are the complex exponential functions. Using (3.17), (3.34a) can thus be transformed into the following:

(3.37a) g t = n = - c n exp j 2 π n t T 0 , - T 0 2 t T 0 2

where c n is defined as follows:

(3.37b) c n = 1 T 0 - T 0 / 2 T 0 / 2 g t exp - j 2 π n t T 0 d t , n = 0 , ± 1 , ± 2 ,

The coefficient c n is, in general, a complex number. It is important to note that the presence of negative frequencies and complex-valued basis functions has no physical meaning, and from a system analysis standpoint they just provide a compact mathematical expression. When g(t) is real, then c - n = c n * , where the asterisk * denotes the complex conjugate operation. If g(t) is real and even, c n is then a real number (i.e., its imaginary part is zero), and if g(t) is real and odd, c n is then a pure imaginary number (i.e., its real part is zero).

Read full chapter

URL:

https://www.sciencedirect.com/science/article/pii/B978012407682200003X

Biosignal Processing

Monty Escabí PhD , in Introduction to Biomedical Engineering (Third Edition), 2012

11.5.3 Exponential Fourier Series

The main result from the Fourier series analysis is that an arbitrary periodic signal can approximate by summing individual cosine terms with specified amplitudes and phases. This result serves as much of the conceptual and theoretical framework for the field of signal analysis. In practice, the Fourier series is a useful tool for modeling various types of quasi-periodic signals.

An alternative and somewhat more convenient form of this result is obtained by noting that complex exponential functions are directly related to sinusoids and cosines through Euler's identities: cos ( θ ) = ( e j θ + e j θ ) / 2 and sin ( θ ) = ( e j θ e j θ ) / 2 j , where j = 1 . By applying Euler's identity to the compact trigonometric Fourier series, an arbitrary periodic signal can be expressed as a sum of complex exponential functions:

(11.5a) x ( t ) = m = + c m e jk ω o t

This equation represents the exponential Fourier series of a periodic signal. The coefficients cm are complex numbers that are related to the trigonometric Fourier coefficients

(11.5b) c m = a m j b m 2 = A m 2 e j ϕ m

The proof for this result is beyond the scope of this text, but it is important to realize that the trigonometric and exponential Fourier series are intimately related, as can be seen by comparing their coefficients. The exponential coefficients can also be obtained directly by integrating x(t),

(11.5c) c m = 1 T T x ( t ) e jm ω o t dt

over one cycle of the periodic signal. As for the trigonometric Fourier series, the exponential form allows us to approximate a periodic signal to any degree of accuracy by adding a sufficient number of complex exponential functions. A distinct advantage of the exponential Fourier series, however, is that it requires only a single integral (Eq. (11.5c)), compared to the trigonometric form, which requires three separate integrations.

Example Problem 11.8

Find the exponential Fourier series for the square wave of Figure 11.7a and implement in MATLAB for the first ten terms. Plot the time waveform and the Fourier series coefficients.

Solution

Like Example Problem 11.6, the Fourier coefficients are obtained by integrating from −1 to 1. Because a single cycle of the square wave signal has nonzero values between −1/2 and +1/2, the integral can be simplified by evaluating it between these limits:

c m = 1 T T x ( t ) e jm ω o t dt = 1 2 1 / 2 1 / 2 5 e jm π t dt = 5 2 e jm π t jm π | 1 / 2 1 / 2

= 5 2 e + jm π / 2 e jm π / 2 jm π = 5 2 sin ( m π / 2 ) m π / 2 .

Therefore,

x ( t ) = m = + c m e jk ω o t = m = 5 2 sin ( m π / 2 ) m π / 2 e jm π t

MATLAB implementation:

%Plotting Fourier Series Approximation

subplot(211)

time=-2:0.01:2; %Time Axis

x=0; %Initialize Signal

for m=-10:10

  if m==0

  x=x+5/2; %Term for m=0

  else

  x=x+5/2*sin(m*pi/2)/m/pi*2*exp(j*m*pi*time);

  end

end

plot(time,x,'k') %Plotting and Labels

xlabel('Time (sec)')

ylabel('Amplitude')

set(gca,'Xtick',[-2:2])

set(gca,'Ytick',[0 5])

set(gca,'Box','off')

%Plotting Fourier Magnitudes

subplot(212)

m=(-10:10)+1E-10;

A=[5/2*sin(m*pi/2)./m/pi*2]; %Fourier Magnitudes

Faxis=(-10:10)*.5; %Frequency Axis

plot(Faxis,A,'k.') %Plotting

axis([-5 5 -2 4])

set(gca,'Box','off')

xlabel('Frequency (Hz)')

ylabel('Fourier Amplitudes')

Note that we now require positive and negative frequencies in the approximation. Results showing the MATLAB output are shown in Figure 11.9.

Figure 11.9. (a) MATLAB result showing the first ten terms of exponential Fourier series approximation for the square wave. (b) The compact Fourier coefficients are shown as a function of the harmonic frequency. Note that both negative and positive frequencies are now necessary to approximate the square wave signal.

In practice, many periodic or quasi-periodic biological signals can be accurately approximated with only a few harmonic components. Figures 11.10 and 11.11 illustrate a harmonic reconstruction of an aortic pressure waveform obtained by applying a Fourier series approximation. Figure 11.10 plots the coefficients for the cosine series representation as a function of the harmonic number. Note that the low-frequency coefficients are large in amplitude, whereas the high-frequency coefficients contain little energy and do not contribute substantially to the reconstruction. The amplitude coefficients, A m , are plotted on a log10 scale so the smaller values are magnified and are therefore visible. Figure 11.11 shows several levels of harmonic reconstruction. The mean plus the first and second harmonics provide the basis for the general systolic and diastolic shape, since the amplitudes of these harmonics are large and contribute substantially to the reconstructed waveform. Additional harmonics add fine details but do not contribute significantly to the raw waveform.

Figure 11.10. Harmonic coefficients of the aortic pressure waveform shown in Figure 11.2.

Figure 11.11. Harmonic reconstruction of the aortic pressure waveform shown in Figure 11.2.

Read full chapter

URL:

https://www.sciencedirect.com/science/article/pii/B9780123749796000113

Frequency Analysis: The Fourier Series

Luis F. Chaparro , Aydin Akan , in Signals and Systems Using MATLAB (Third Edition), 2019

4.3.2 Trigonometric Fourier Series

In this section we develop an equivalent expression for the Fourier series using sinusoids. First we need to show that sinusoids of harmonic frequencies are orthonormal. Orthogonality of the complex exponential Fourier basis indicates that an equivalent basis can be obtained from cosine and sine functions. Choosing t 0 = T 0 / 2 in Equation (4.16) which displays the orthogonality of the exponentials, we have, for k :

(4.22) 0 = 1 T 0 T 0 / 2 T 0 / 2 e j k Ω 0 t [ e j Ω 0 t ] d t = 1 T 0 T 0 / 2 T 0 / 2 cos ( ( k ) Ω 0 t ) d t 0 + j 1 T 0 T 0 / 2 T 0 / 2 sin ( ( k ) Ω 0 t ) d t 0

or that the real and imaginary parts are zero. Expanding cos ( ( k ) Ω 0 t ) and sin ( ( k ) Ω 0 t ) in the integrals on the right in Equation (4.22) we obtain

0 = 1 T 0 T 0 / 2 T 0 / 2 cos ( k Ω 0 t ) cos ( Ω 0 t ) d t + 1 T 0 T 0 / 2 T 0 / 2 sin ( k Ω 0 t ) sin ( Ω 0 t ) d t , 0 = 1 T 0 T 0 / 2 T 0 / 2 sin ( k Ω 0 t ) cos ( Ω 0 t ) d t 1 T 0 T 0 / 2 T 0 / 2 cos ( k Ω 0 t ) sin ( Ω 0 t ) d t .

Using the trigonometric identities

sin ( α ) sin ( β ) = 0.5 [ cos ( α β ) cos ( α β ) ] , cos ( α ) cos ( β ) = 0.5 [ cos ( α β ) + cos ( α β ) ] ,

and the fact that the argument of the sinusoids is a nonzero integer times Ω 0 the top integrals are zero as the integrals are over one or more periods. Thus, cos ( k Ω t ) is orthogonal to cos ( Ω t ) for any k , and sin ( k Ω t ) is orthogonal to sin ( Ω t ) for k . Likewise, the second set of integrals are zero since the integrands are odd functions. Thus, cos ( k Ω t ) is orthogonal to sin ( Ω t ) when k . Thus for different frequencies the cosine and the sine functions are orthogonal.

To normalize the sinusoidal basis, we find that

1 T 0 T 0 / 2 T 0 / 2 cos 2 ( k Ω 0 t ) d t = 1 T 0 T 0 / 2 T 0 / 2 sin 2 ( k Ω 0 t ) d t = 1 T 0 [ T 0 / 2 T 0 / 2 0.5 d t ± T 0 / 2 T 0 / 2 0.5 cos ( 2 k Ω 0 t ) d t ] = 0.5

by using that cos 2 ( θ ) = 0.5 ( 1 + cos ( 2 θ ) ) and sin 2 ( θ ) = 0.5 ( 1 cos ( 2 θ ) ) . Therefore, if we choose as basis { 2 cos ( k Ω 0 t ) , 2 sin ( k Ω 0 t ) } we obtain the trigonometric Fourier series, equivalent to the exponential Fourier series presented before.

The trigonometric Fourier Series of a real-valued, periodic signal x ( t ) , of fundamental period T 0 , is an equivalent representation that uses sinusoids rather than complex exponentials as the basis functions. It is given by

(4.23) x ( t ) = X 0 + 2 k = 1 | X k | cos ( k Ω 0 t + θ k ) = c 0 + 2 k = 1 [ c k cos ( k Ω 0 t ) + d k sin ( k Ω 0 t ) ] Ω 0 = 2 π T 0

where X 0 = c 0 is called the dc component, and { 2 | X k | cos ( k Ω 0 t + θ k ) } are the kth harmonics for k = 1 , 2 . The coefficients { c k , d k } are obtained from x ( t ) as follows:

(4.24) c k = 1 T 0 t 0 t 0 + T 0 x ( t ) cos ( k Ω 0 t ) d t k = 0 , 1 , d k = 1 T 0 t 0 t 0 + T 0 x ( t ) sin ( k Ω 0 t ) d t k = 1 , 2 , .

The coefficients X k = | X k | e j θ k are connected with the coefficients c k and d k by

| X k | = c k 2 + d k 2 θ k = tan 1 [ d k c k ] .

The sinusoidal basis functions { 2 cos ( k Ω 0 t ) , 2 sin ( k Ω 0 t ) } , k = 0 , ± 1 , , are orthonormal in [ 0 , T 0 ] .

Using the relation X k = X k , obtained in the previous section, we express the exponential Fourier series of a real-valued periodic signal x ( t ) as

x ( t ) = X 0 + k = 1 [ X k e j k Ω 0 t + X k e j k Ω 0 t ] = X 0 + k = 1 [ | X k | e j ( k Ω 0 t + θ k ) + | X k | e j ( k Ω 0 t + θ k ) ] = X 0 + 2 k = 1 | X k | cos ( k Ω 0 t + θ k ) ,

which is the top equation in (4.23).

Let us then show how the coefficients c k and d k can be obtained directly from the signal. Using the relation X k = X k and the fact that for a complex number z = a + j b , then z + z = ( a + j b ) + ( a j b ) = 2 a = 2 R e ( z ) we have

x ( t ) = X 0 + k = 1 [ X k e j k Ω 0 t + X k e j k Ω 0 t ] = X 0 + k = 1 [ X k e j k Ω 0 t + X k e j k Ω 0 t ] = X 0 + k = 1 2 R e [ X k e j k Ω 0 t ] .

Since X k is complex,

2 R e [ X k e j k Ω 0 t ] = 2 R e [ ( R e [ X k ] + j I m [ X k ] ) ( cos ( k Ω 0 t ) + j sin ( k Ω 0 t ) ) ] = 2 R e [ X k ] cos ( k Ω 0 t ) 2 I m [ X k ] sin ( k Ω 0 t ) .

Now, if we let

c k = R e [ X k ] = 1 T 0 t 0 t 0 + T 0 x ( t ) cos ( k Ω 0 t ) d t k = 1 , 2 , , d k = I m [ X k ] = 1 T 0 t 0 t 0 + T 0 x ( t ) sin ( k Ω 0 t ) d t k = 1 , 2 , ,

we then have

x ( t ) = X 0 + k = 1 ( 2 R e [ X k ] cos ( k Ω 0 t ) 2 I m [ X k ] sin ( k Ω 0 t ) ) = X 0 + 2 k = 1 ( c k cos ( k Ω 0 t ) + d k sin ( k Ω 0 t ) ) ,

and since the average X 0 = c 0 we obtain the second form of the trigonometric Fourier series. Notice that d 0 = 0 and so it is not necessary to define it.

The coefficients X k = | X k | e j θ k are connected with the coefficients c k and d k by

| X k | = c k 2 + d k 2 , θ k = tan 1 [ d k c k ] .

This can be shown by adding the phasors corresponding to c k cos ( k Ω 0 t ) and d k sin ( k Ω 0 t ) and finding the magnitude and phase of the resulting phasor.

Example 4.4

Find the exponential Fourier series of a raised cosine signal ( B A ),

x ( t ) = B + A cos ( Ω 0 t + θ ) ,

which is periodic of fundamental period T 0 and fundamental frequency Ω 0 = 2 π / T 0 . Let y ( t ) = B + A sin ( Ω 0 t ) , find its Fourier series coefficients and compare them to those for x ( t ) . Use symbolic MATLAB to compute the Fourier series of y ( t ) = 1 + sin ( 100 t ) , find and plot its magnitude and phase line spectra.

Solution: We do not need to compute the Fourier coefficients in this case since x ( t ) is in the Fourier series trigonometric form. According to Equation (4.23) the dc value of x ( t ) is B, and A is the coefficient of the first harmonic in the trigonometric Fourier series. Thus X 0 = B and | X 1 | = A / 2 and X 1 = θ . Likewise, using Euler's identity we obtain

x ( t ) = B + A 2 [ e j ( Ω 0 t + θ ) + e j ( Ω 0 t + θ ) ] = B + A e j θ 2 e j Ω 0 t + A e j θ 2 e j Ω 0 t ,

which gives

X 0 = B , X 1 = A e j θ 2 , X 1 = X 1 = A e j θ 2 .

If we let θ = π / 2 in x ( t ) we get

y ( t ) = B + A sin ( Ω 0 t )

and from the above results its Fourier series coefficients are

Y 0 = B , Y 1 = A 2 e j π / 2 = Y 1 so that | Y 1 | = | Y 1 | = A 2 and Y 1 = Y 1 = π 2 .

The line spectrum of the raised cosine ( θ = 0 ) and of the raised sine ( θ = π / 2 ) are shown in Fig. 4.2. For both x ( t ) and y ( t ) there are only two frequencies, the dc frequency and Ω 0 , and as such the power of the signal is concentrated at those two frequencies. The difference between the line spectrum of the raised cosine and sine is in the phase.

Figure 4.2

Figure 4.2. Line spectrum of raised cosine (left) and of raised sine (right).

We find the Fourier series coefficients with our symbolic MATLAB function fourierseries. The corresponding magnitude and phase are then plotted using stem to obtain the line spectra. The magnitude and phase line spectra corresponding to y ( t ) = 1 + sin ( 100 t ) are shown in Fig. 4.3. □

Figure 4.3

Figure 4.3. Line spectrum of Fourier series of y ( t ) = 1 + sin ( 100 t ) . Notice the even and the odd symmetries of the magnitude and phase spectra. The phase is −π/2 at Ω = 100 (rad/s).

Remark

Just because a signal is a sum of sinusoids, each of which is periodic, is not enough for it to have a Fourier series. The whole signal should be periodic. The signal x ( t ) = cos ( t ) sin ( π t ) has components with fundamental periods T 1 = 2 π and T 2 = 2 so that the ratio T 1 / T 2 = π is not a rational number. Thus x ( t ) is not periodic and no Fourier series for x ( t ) is possible.

Read full chapter

URL:

https://www.sciencedirect.com/science/article/pii/B9780128142042000144

BIOSIGNAL PROCESSING

Monty A. Escabí PhD , in Introduction to Biomedical Engineering (Second Edition), 2005

EXERCISES

1.

What types of biosignals would the nerves in your legs produce during a sprint across the street?

2.

What types of biosignals can be recorded with an EEG? Describe in terms of both origins and characteristics of the signal.

3.

Describe the biosignal that the electrical activity of a normal heart would generate during a bicycle race.

4.

A 16-bit A/D converter is used to convert an analog biosignal with a minimum voltage of −30 mV and a maximum voltage of 90 mV. What is the sensitivity?

5.

An EMG recording of skeletal muscle activity has been sampled at 200–250 Hz and correctly digitized. What is the highest frequency of interest in the original EMG signal?

6.

Two signals, x 1(t) and x 2(t), have the magnitude spectrum shown in Figure 10.36. Find the Nyquist rate for:

a)

x 1(t)

b)

x 2(t)

c)

x(t) = x1(t)* x 2(t) (Hint: apply the convolution theorem)

Figure 10.36.

7.

Consider the signal

x ( t ) = 3 + sin ( 2 π 100 t ) + cos ( 2 π 250 t + π / 3 )

Find the Nyquist frequency.

8.

A sinusoid with the frequency of 125 kHz is sampled at 70,000 samples per second. What is the apparent frequency of the sampled signal?

9.

An electroencephalographic (EEG) signal has a maximum frequency of 300 Hz. The signal is sampled and quantized into a binary sequence by an A/D converter.

a)

Determine the sampling rate if the signal is sampled at a rate 50% higher than the Nyquist rate.

b)

The samples are quantized into 2048 levels. How many binary bits are required for each sample

10.

Find the exponential Fourier series for the signal shown in Fig. 10.37a.

Figure 10.37.

11.

Find the exponential Fourier series for the signal shown in Fig. 10.37b.

12.

f(t) is a periodic signal shown in Figure 10.38. Find its trigonometric Fourier series.

Figure 10.38.

13.

Consider the following trigonometric Fourier series:

f ( t ) = 3 + cos ( t ) + 2 cos ( 2 t ) + 4 sin ( 2 t ) - 4 ( e j 4 t + e - j 4 t 2 )

Write f(t) in its compact trigonometric Fourier series form.

14.

Explain why the exponential Fourier series requires negative frequencies.

15.

Find the Fourier transform of

a)

u(t)

b)

e at u(t)

c)

cos(at)u(t)

16.

Find the Fourier transform of f 1(t) = e −3t u(t).

17.

Find the Fourier transform of f(t) = e−3|t| and sketch its time and frequency domain representations. Hint: Find a few points on the curve by substituting values for the variable.

18.

Prove the shift property of the Fourier transform.

19.

Given x(t) = e at u(t) and h(t) = e bt u(t) where a and b are constants greater than zero, explain why it would be easier to evaluate the convolution x(t)*h(t) in the frequency domain.

20.

A brief current pulse of duration 50 ms and amplitude 1 mA is presented to a cell membrane with time constant 10 ms. Find the cell membrane voltage output.

21.

The ion exchange process of a cell is estimated to have the following impulse response: h(t) = e −4t u(t).

a)

Explain what type of general information would be available to the researcher if this estimation of h(t) were accurate.

b)

If sodium ions are injected into the system for two seconds in the form of a brief pulse approximated by the following equation, x(t) = 3u(t) — 3u(t — 2), how would the cell respond to (e.g., pump out ions) such input? Find the answer using time-domain procedures. Hint: Convolve the input and the impulse response.

22.

An ECG recording of the electrical activity of the heart during ventricular fibrillation is digitized and the signal begins with the following data sequence: −90.0, 10.0, −12.0, −63.0, 7.0, −22.0. The units of the data sequence are given in mV. What is the z transform of this data sequence of the biosignal?

23.

For the systems described by the following equations, determine which of the systems is linear and which is not.

a)

d y d t + 2 y ( t ) = f 2 ( t )

b)

d y d t + 3 t y ( t ) = t 2 f ( t )

c)

d y d t + 2 y ( t ) = f ( t ) d f d t

d)

y ( t ) = - t f ( τ ) d τ

24.

Examine the characteristics of the digital filter

y ( k ) = 1 4 x ( k ) + 1 4 x ( k - 1 ) + 1 2 y ( k - 1 )

Find the impulse response, H(z) and |H′(Ω). Use MATLAB to calculate and plot |H′(Ω)| for 0 < Ω < π Observe the difference between this filter and the filter in Example Problem 10.12. Why is this a better low-pass filter? What is the output if the input sequence is x(k)= 100 sin ( π 2 k + π 8 ) ? What is the output if the input sequence is x(k) = 100u(k)?

25.

Find the z transform of

a)

x(k) = u(k)

b)

x(k) = aku(k)

c)

x(k) = cos(b ·k)u(k)

26.

Find the z transform of the following:

a)

x [ k ] = ( 1 2 ) k u ( k )

b)

x[k] = (cos Ωk)u[k]

27.

Find the first four outputs of the following discrete system

y [ k ] - 3 y [ k - 1 ] + 2 y [ k - 2 ] = f [ k - 1 ] if y [ - 1 ] = 2 , y [ - 2 ] = 3 , and f [ k ] = 3 k u [ k ] .

28.

Find the first four outputs of the following discrete system

y [ k ] - 2 y [ k - 1 ] + 2 y [ k - 2 ] = f [ k - 2 ] if y [ - 1 ] = 1 , y [ - 2 ] = 0 , and f [ k ] = u [ k ] .

29.

In MATLAB, design a routine to show that averaging random noise across many trials approaches zero as the number of trials increases.

30.

Accurate measurements of blood glucose levels are needed for the proper treatment of diabetes. Glucose is a primary carbohydrate, which circulates throughout the body and serves as an energy source for cells. In normal individuals the hormone insulin regulates the levels of glucose in the blood by promoting glucose transport out of the blood to skeletal muscle and fat tissues. Diabetics suffer from improper management of glucose levels, and the levels of glucose in the blood can become too high. Describe how fuzzy logic might be used in the control of a system for measuring blood glucose levels. What advantages would the fuzzy logic system have over a more conventional system?

31.

Describe three different biosignal processing applications for which artificial neural networks might be used. Give at least two advantages of artificial neural networks over traditional biosignal processing methods for the applications you listed.

32.

The fuzzy sets in Example Problem 10.26 have been calibrated so that a person with a resting heart rate of 95 beats per minute has a 75% degree of membership in the normal category and a 25% degree of membership in the tachycardia category. A resting heart rate of 65 beats per minute indicates a 95% degree of membership in the normal category. Draw a graph of the fuzzy sets.

Read full chapter

URL:

https://www.sciencedirect.com/science/article/pii/B9780122386626500124

Frequency Analysis: The Fourier Series

Luis Chaparro , in Signals and Systems Using MATLAB (Second Edition), 2015

4.3.2 Trigonometric Fourier Series

In this section we develop an equivalent expression for the Fourier series using sinusoids. First we need to show that sinusoids of harmonic frequencies are orthonormal. Orthogonality of the complex exponential Fourier basis indicates that an equivalent basis can be obtained from cosine and sine functions. Choosing t 0 = - T 0 / 2 in Equation (4.16) which displays the orthogonality of the exponentials, we have for k :

(4.22) 0 = 1 T 0 - T 0 / 2 T 0 / 2 e jk Ω 0 t [ e j Ω 0 t ] dt = 1 T 0 - T 0 / 2 T 0 / 2 cos ( ( k - ) Ω 0 t ) dt 0 + j 1 T 0 - T 0 / 2 T 0 / 2 sin ( ( k - ) Ω 0 t ) dt 0

or that the real and imaginary parts are zero. Expanding cos ( ( k - ) Ω 0 t ) and sin ( ( k - ) Ω 0 t ) in the integrals on the right in equation (4.22) we obtain

0 = 1 T 0 - T 0 / 2 T 0 / 2 cos ( k Ω 0 t ) cos ( Ω 0 t ) dt + 1 T 0 - T 0 / 2 T 0 / 2 sin ( k Ω 0 t ) sin ( Ω 0 t ) dt 0 = 1 T 0 - T 0 / 2 T 0 / 2 sin ( k Ω 0 t ) cos ( Ω 0 t ) dt - 1 T 0 - T 0 / 2 T 0 / 2 cos ( k Ω 0 t ) sin ( Ω 0 t ) dt

Using the trigonometric identities

sin ( α ) sin ( β ) = 0.5 [ cos ( α - β ) - cos ( α - β ) ] , cos ( α ) cos ( β ) = 0.5 [ cos ( α - β ) + cos ( α - β ) ]

and that the argument of the sinusoids is a non-zero integer times Ω 0 the top integrals are zero as the integrals are over one or more periods. Thus, cos ( k Ω t ) is orthogonal to cos ( Ω t ) for any k , and sin ( k Ω t ) is orthogonal to sin ( Ω t ) for k . Likewise, the second set of integrals are zero since the integrands are odd functions. Thus, cos ( k Ω t ) is orthogonal to sin ( Ω t ) when k . Thus for different frequencies the cosine and the sine functions are orthogonal.

To normalize the sinusoidal basis, we find that

1 T 0 - T 0 / 2 T 0 / 2 cos 2 ( k Ω 0 t ) dt = 1 T 0 - T 0 / 2 T 0 / 2 sin 2 ( k Ω 0 t ) dt = 1 T 0 - T 0 / 2 T 0 / 2 0.5 dt ± - T 0 / 2 T 0 / 2 0.5 cos ( 2 k Ω 0 t ) dt = 0.5

by using that cos 2 ( θ ) = 0.5 ( 1 + cos ( 2 θ ) ) and sin 2 ( θ ) = 0.5 ( 1 - cos ( 2 θ ) ) . Therefore, if we choose as basis { 2 cos ( k Ω 0 t ) , 2 sin ( k Ω 0 t ) } we obtain the trigonometric Fourier series, equivalent to the exponential Fourier series presented before.

The trigonometric Fourier Series of a real-valued, periodic signal x ( t ) , of fundamental period T 0 , is an equivalent representation that uses sinusoids rather than complex exponentials as the basis functions. It is given by

(4.23) x ( t ) = X 0 + 2 k = 1 | X k | cos ( k Ω 0 t + θ k ) = c 0 + 2 k = 1 [ c k cos ( k Ω 0 t ) + d k sin ( k Ω 0 t ) ] Ω 0 = 2 π T 0

where X 0 = c 0 is called the dc-component, and { 2 | X k | cos ( k Ω 0 t + θ k ) } are the k th harmonics for k = 1 , 2 , . The coefficients { c k , d k } are obtained from x ( t ) as follows

(4.24) c k = 1 T 0 t 0 t 0 + T 0 x ( t ) cos ( k Ω 0 t ) dt k = 0 , 1 , d k = 1 T 0 t 0 t 0 + T 0 x ( t ) sin ( k Ω 0 t ) dt k = 1 , 2 ,

The coefficients X k = | X k | e j θ k are connected with the coefficients c k and d k by

| X k | = c k 2 + d k 2 θ k = - tan - 1 d k c k

The sinusoidal basis functions { 2 cos ( k Ω 0 t ) , 2 sin ( k Ω 0 t ) } , k = 0 , ± 1 , , are orthonormal in [ 0 , T 0 ] .

Using the relation X k = X - k , obtained in the previous section, we express the exponential Fourier series of a real-valued periodic signal x ( t ) as

x ( t ) = X 0 + k = 1 [ X k e jk Ω 0 t + X - k e - jk Ω 0 t ] = X 0 + k = 1 | X k | e j ( k Ω 0 t + θ k ) + | X k | e - j ( k Ω 0 t + θ k ) = X 0 + 2 k = 1 | X k | cos ( k Ω 0 t + θ k )

which is the top equation in (4.23).

Let us then show how the coefficients c k and d k can be obtained directly from the signal. Using the relation X k = X - k and the fact that for a complex number z = a + jb , then z + z = ( a + jb ) + ( a - jb ) = 2 a = 2 R e ( z ) we have that

x ( t ) = X 0 + k = 1 [ X k e jk Ω 0 t + X - k e - jk Ω 0 t ] = X 0 + k = 1 [ X k e jk Ω 0 t + X k e - jk Ω 0 t ] = X 0 + k = 1 2 R e [ X k e jk Ω 0 t ]

Since X k is complex,

2 R e [ X k e jk Ω 0 t ] = 2 R e [ ( R e [ X k ] + j I m [ X k ] ) ( cos ( k Ω 0 t + j sin ( k Ω 0 t ) ) ] = 2 R e [ X k ] cos ( k Ω 0 t ) - 2 I m [ X k ] sin ( k Ω 0 t )

Now, if we let

c k = R e [ X k ] = 1 T 0 t 0 t 0 + T 0 x ( t ) cos ( k Ω 0 t ) dt k = 1 , 2 , d k = - I m [ X k ] = 1 T 0 t 0 t 0 + T 0 x ( t ) sin ( k Ω 0 t ) dt k = 1 , 2 ,

we then have

x ( t ) = X 0 + k = 1 2 R e [ X k ] cos ( k Ω 0 t ) - 2 I m [ X k ] sin ( k Ω 0 t ) = X 0 + 2 k = 1 c k cos ( k Ω 0 t ) + d k sin ( k Ω 0 t )

and since the average X 0 = c 0 we obtain the second form of the trigonometric Fourier series. Notice that d 0 = 0 and so it is not necessary to define it.

The coefficients X k = | X k | e j θ k are connected with the coefficients c k and d k by

| X k | = c k 2 + d k 2 , θ k = - tan - 1 d k c k

This can be shown by adding the phasors corresponding to c k cos ( k Ω 0 t ) and d k sin ( k Ω 0 t ) and finding the magnitude and phase of the resulting phasor.

Example 4.4

Find the exponential Fourier series of a raised cosine signal ( B A ),

x ( t ) = B + A cos ( Ω 0 t + θ )

which is periodic of fundamental period T 0 and fundamental frequency Ω 0 = 2 π / T 0 . Let y ( t ) = B + A sin ( Ω 0 t ) , find its Fourier series coefficients and compare them to those for x ( t ) . Use symbolic MATLAB to compute the Fourier series of y ( t ) = 1 + sin ( 100 t ) , find and plot its magnitude and phase line spectra.

Solution

We do not need to compute the Fourier coefficients in this case since x ( t ) is in the Fourier series trigonometric form. According to equation (4.23) the dc value of x ( t ) is B, and A is the coefficient of the first harmonic in the trigonometric Fourier series. Thus X 0 = B and | X 1 | = A / 2 and X 1 = θ . Likewise, using Euler's identity we obtain that

x ( t ) = B + A 2 e j ( Ω 0 t + θ ) + e - j ( Ω 0 t + θ ) = B + Ae j θ 2 e j Ω 0 t + Ae - j θ 2 e - j Ω 0 t

which gives

X 0 = B , X 1 = Ae j θ 2 , X - 1 = X 1 = Ae - j θ 2

If we let θ = - π / 2 in x ( t ) we get

y ( t ) = B + A sin ( Ω 0 t )

and from the above results its Fourier series coefficients are

Y 0 = B , Y 1 = A 2 e - j π / 2 = Y - 1 so that | Y 1 | = | Y - 1 | = A 2 and Y 1 = - Y - 1 = - π 2

The line spectrum of the raised cosine ( θ = 0 ) and of the raised sine ( θ = - π / 2 ) are shown in Figure 4.2. For both x ( t ) and y ( t ) there are only two frequencies, the dc frequency and Ω 0 , and as such the power of the signal is concentrated at those two frequencies. The difference between the line spectrum of the raised cosine and sine is in the phase.

We find the Fourier series coefficients with our symbolic MATLAB function fourierseries. The corresponding magnitude and phase are then plotted using stem to obtain the line spectra. The magnitude and phase line spectra corresponding to y ( t ) = 1 + sin ( 100 t ) are shown in Figure 4.3 

Figure 4.2. Line spectrum of raised cosine (left) and of raised sine (right).

Figure 4.3. Line spectrum of Fourier series of y ( t ) = 1 + sin ( 100 t ) . Notice the even and the odd symmetries of the magnitude and phase spectra. The phase is - π / 2 at Ω = 100   (rad/sec).

%%

% Example 4.4

%%

clear all; syms t

% signal

y=1+sin(100*t); T0=2*pi/100; N=5;    % N harmonics

figure(1)

subplot(211)

ezplot(y,[0,0.25]); grid; xlabel('t (sec)');ylabel('y(t)')

% harmonics and harmonic frequencies

[Y1, w1]=fourierseries(y,T0,N);

Y=[conj(fliplr(Y1(2:N))) Y1];w=[−fliplr(w1(2:N)) w1];

subplot(223)

stem(w,abs(Y)); grid; axis([−400 400 −0.1 1.1])

xlabel('k\Omega_0 (rad/sec)'); ylabel('|Y_k|')

subplot(224)

stem(w,angle(Y)); grid; axis([−400 400 −2 2])

xlabel('k\Omega_0 (rad/sec)'); ylabel('\angle{Y_k}')

function [X, w]=fourierseries(x,T0,N)

% function fourierseries

% Computes harmonics of the Fourier series of a continuous-time signal

% symbolically

% input: periodic signal x(t), its period (T0), number of harmonics (N)

% output: harmonics X and corresponding harmonic frequency w

% use: [X, w]=fourier(x,T0,N)

syms t

for k=1:N,

X1(k)=int(x*exp(−j*2*pi*(k−1)*t/T0),t,0,T0)/T0;

X(k)=subs(X1(k));

w(k)=(k−1)*2*pi/T0;

end

Remark

Just because a signal is a sum of sinusoids, each of which is periodic, is not enough for it to have a Fourier series. The whole signal should be periodic. The signal x ( t ) = cos ( t ) - sin ( π t ) has components with fundamental periods T 1 = 2 π and T 2 = 2 so that the ratio T 1 / T 2 = π is not a rational number. Thus x ( t ) is not periodic and no Fourier series for x ( t ) is possible.

Read full chapter

URL:

https://www.sciencedirect.com/science/article/pii/B9780123948120000048