Periodic Signals

Fourier series of periodic signals

Fourier series theory says that many periodic signals can be represented in terms of sine and cosines and their harmonics in the given period. We can verify that any two signals in this set are orthogonal as discussed in the experiment Signal representation and orthogonality.

  1. Fourier Series Analysis: Given a periodic signal x(t) with time period T, analysis involves finding the Fourier series coefficients, x(t){ak,bk}x(t) \rightarrow \{a_k, b_k\}
  2. Fourier Series Synthesis: Given Fourier series coefficients, synthesis involves reconstructing the periodic signal x(t)x(t)

Let x(t)x(t) be a periodic signal with time period (T=2πω0)(T=\frac{2 \pi}{\omega_0}). Its Fourier Series coefficients are given as {ak,bk}\{a_k, b_k\}, whereak=2T<T>x(t)cos(kω0t)dt       k=1,2,...,a_k = \frac{2}{T} \int_{<T>} x(t) \cos (k \omega_0 t) dt~~~~~~~k=1,2,...,\inftybk=2T<T>x(t)sin(kω0t)dt       k=1,2,...,b_k = \frac{2}{T} \int_{<T>} x(t) \sin (k \omega_0 t) dt~~~~~~~k=1,2,...,\inftya0=1T<T>x(t)dt       (average value of signal in one period)a_0 = \frac{1}{T} \int_{<T>} x(t) dt~~~~~~~\text{(average value of signal in one period)}The set of signals {1, cos(kω0t), sin(kω0t)}k=0,1,..,\{1, ~\cos (k \omega_0 t), ~\sin (k \omega_0 t) \}_{k=0,1,..,\infty} forms a basis for the space of all periodic signals with time-period T=1F0=2πω0T = \frac{1}{F_0} = \frac{2\pi}{\omega_0},x(t)=a0+k=1akcos(kω0t)+k=1bksin(2πkω0t){x}(t) = a_0 + \sum_{k=1}^{\infty} a_k \cos (k \omega_0 t) + \sum_{k=1}^{\infty} b_k \sin (2\pi k \omega_0 t)For real-valued signals x(t)x(t), the coefficients {ak,bk}\{a_k, b_k\} are real valued.

Partial reconstruction

The signal x(t)x(t) can be partially reconstructed using the first RR Fourier series coefficients {ak,bk},k=0,1,.. R\{a_k,b_k\}, k = 0,1, .. ~R as follows, x^(t)=a0+k=1Rakcos(2πkf0t)+k=1Rbksin(2πkf0t)\hat{x}(t) = a_0 + \sum_{k=1}^{R} a_k \cos (2\pi k f_0 t) + \sum_{k=1}^{R} b_k \sin (2\pi k f_0 t)The signal reconstruction error is given as e(t)=x(t)x^(t). e(t) = x(t) - \hat{x}(t).

Quasi-periodic signals

Many naturally occurring signals are close to periodic, called quasi-periodic. For example, the human heart beat. Quasi periodic signals appear to be periodic but have small fluctuations in the period over time. An example of a noisy human heart signal (also called electrocardiogram, i.e., ECG) is shown below.

drawing

How does one go about finding the (approximate) time-period of such signals?

For the ECG signal above, a simple method could be measure the time intervals between the consecutive sharp peaks and average them. Such a method works well if the given signal has a repeating distinguishing feature (for example sharp peaks). In absence of such features, finding the time-period can be difficult from the signal. A simple trick to obtain distinguishing features is to correlate the given signal with itself. The correlation signal will have peaks when the various periods overlap. The correlation signal for the above ECG signal is shown below.

drawing

Why sinusoids?

Having learned about Fourier series, one can ask the follow up question - are sinusoids the only orthogonal basis that can be used to represent periodic signals? The answer is no. In fact, the above equations correspond to what is known as trigonometric Fourier series. They can be generalized to complex Fourier series which use periodic complex sinusoids as basis.

Given a set of harmonically related periodic basis signals, many general periodic signals can be represented using these basis signals. For example, consider a square wave of period TT. Along with all its harmonics, this forms an orthogonal basis which can represent many periodic signals. The analysis and synthesis equations to obtain a series decomposition using these signals will be different from those of Fourier series.

Fourier series example

Compute the Fourier series coefficients of the square wave below:

drawing

x(t)={30<t<535<t<10x(t) = \left\{\begin{matrix}3 \quad 0 < t < 5\\-3 \quad 5 < t < 10\end{matrix}\right.

Solution:

a0=1T0Tx(t)dt= 0a_0 = \frac{1}{T} \int_{0}^{T} x(t) dt = ~0 ak=2TT2T2x(t)cos(kω0t)dta_k = \frac{2}{T} \int_{\frac{-T}{2}} ^ {\frac{T}{2}} x(t) \cos (k \omega_0 t) dt     =21055x(t)cos(kω0t)dt~~~~=\frac{2}{10} \int_{-5} ^ {5} x(t) \cos (k \omega_0 t) dt     =15[50x(t)cos(kω0t)dt+05x(t)cos(kω0t)dt]~~~~=\frac{1}{5} [\int_{-5} ^ {0} x(t) \cos (k \omega_0 t) dt + \int_{0} ^ {5} x(t) \cos (k \omega_0 t) dt]     =15[350cos(kω0t)dt+305cos(kω0t)dt]~~~~=\frac{1}{5} [-3 \int_{-5} ^ {0} \cos (k \omega_0 t) dt + 3 \int_{0} ^ {5} \cos (k \omega_0 t) dt]     =0~~~~= 0

Thus we have, ak=0   k=1,2....a_k = 0 ~\forall~~ k = 1, 2 ...\infty. Since x(t)x(t) is an odd signal, we get ak=0a_k = 0, which shows that there are no cosine terms in the Fourier representation of x(t)x(t).

bk=2TT2T2x(t)sin(kω0t)dt    where  ω0=2π10b_k = \frac{2}{T} \int_{\frac{-T}{2}} ^ {\frac{T}{2}} x(t) \sin (k \omega_0 t) dt ~~~~\text{where} ~~\omega_0 = \frac{2 \pi} {10}     =21055x(t)sin(kω0t)dt~~~~=\frac{2}{10} \int_{-5} ^ {5} x(t) \sin (k \omega_0 t) dt     =15[50x(t)sin(kω0t)dt+05x(t)sin(kω0t)dt]~~~~=\frac{1}{5} [\int_{-5} ^ {0} x(t) \sin (k \omega_0 t) dt + \int_{0} ^ {5} x(t) \sin (k \omega_0 t) dt]     =15[350sin(kω0t)dt+305sin(kω0t)dt]~~~~=\frac{1}{5} [-3 \int_{-5} ^ {0} \sin (k \omega_0 t) dt + 3 \int_{0} ^ {5} \sin (k \omega_0 t) dt]     =3kπ[12cos(kπ)+cos(2kπ)]~~~~= \frac{3}{k \pi} [1 - 2 \cos (k \pi) + \cos (2k \pi)]     =6kπ[1cos(kπ)]~~~~= \frac{6}{k \pi} [1 - \cos (k \pi)]     =6kπ[1(1)k]~~~~= \frac{6}{k \pi} [1 - (-1)^k]

bk={12kπif k is odd0if k is even b_k = \begin{cases} \frac{12}{k\pi} & \text{if } k \text{ is odd} \\ 0 & \text{if } k \text{ is even} \end{cases}

Now, x(t)x(t) can be represented as x(t)=k=2r1r=1,..12kπsin(kω0t).x(t) = \sum_{k=2r -1}^{r = 1,..\infty} \frac{12}{k\pi} \sin(k \omega_0 t).