Lecture 02 - Signals, Systems, and Transforms

Summary

In this lecture, we will review some of the important concepts and terminology, and our notation, from what is commonly called signals and systems.

We focus initially on single-input, single-output, linear time-invariant (LTI) systems. The key idea in LTI systems is that their effect on complex exponential signals is particularly simple. This motivates transforms between the time domain and frequency domain through we represent general signals as linear combinations of complex exponentials.

We address these notions in both continuous-time domain and discrete-time domain, and set the stage for connecting the two domains in the next lecture.

Motivation in Course Context

Three important components for modeling the radio system architectures that we discussed in the previous lecture are 1) an digital-to-analog converter (DAC) in the transmitter, 2) a propagation “channel” that we aim to model as a linear, time-varying filter, and 3) the analog-to-digital converter (ADC) in the receiver. A block diagram for such a system model is shown in Figure 1.

Figure 1: Radio transmission system model

In this lecture, we review the background material required to treat these inputs and outputs as continuous-time signals and discrete-time sequences, and we develop the appropriate notions of the frequency domain and the important class of linear time-invariant (LTI) systems. In our next lecture, we will address sampling, interpolation, and quantization aspects of DACs and ADCs.

Signals and Sequences

When we wire up an electrical circuit, we can use an instrument to measure a voltage or current, either of which typically varies over time.

Mathematically, we denote time by the real variable \(t \in \mathbb{R}\), which we refer to as the continunous-time axis, and we denote the voltage or current by the real-valued functions \(v(t)\) and \(i(t)\), respectively.

More generally, we can consider any quantity that varies as a function of time as a signal, and we generically denote it by \(s(t)\). As other examples, we could measure the temperature in a room, or the price of a stock, or … as functions time.

If, for whatever reason, we are only able to measure a signal at the discrete time instants \(t=nT_s\) for integer \(n \in \mathbb{Z}\), which we refer to as the discrete-time axis, we denote the sequence by \(s[n]=s(nT_s)\), accordingly. Although the time axis is discrete in the variable \(n\), in general \(s[n]\) can take real values.

In this context, we refer to the value \(x[n_0]\) as the sample of \(x(t)\) for \(t=n_0 T_s\), \(n_0\in\mathbb{Z}\). We refer to the spacing between samples in time \(T_s\) as the sampling period, and we define \(f_s=1/T_s\) as the sampling frequency.

Finally, we often consider complex-valued signals and sequences such as \[ s(t) = s_R(t)+j s_I(t) \] \[ s[n] = s_R[n]+j s_I[n] \] where \(s_R(t)\) and \(s_I(t)\) are real-valued signals, \(s_R[n]\) and \(s_I[n]\) are real-valued sequences, and \(j=\sqrt{-1}\) is the standard notation for the unit imaginary number in the field of electrical engineering.

Simple Signals

In this section, we define and visualize a number of simple signals.

Constant Signal

The simplest possible signal is the constant signal for which \(s(t)=A\) for some constant value \(A \in \mathbb{R}\) and all \(t\in\mathbb{R}\).

That is, the constant signal takes the same value for all time.

Rising Exponential Signal

Another simple signal is the rising exponential signal \[ r_{\tau}(t) := \begin{cases} 1-e^{-t/\tau} & t \ge 0 \\ 0 & t < 0 \end{cases}, \tag{1}\] where \(\tau > 0\) is called the time constant.

Since \(e^{-t/\tau}\) decays to \(0\) as \(t\) becomes large, i.e., \(\lim_{t\rightarrow\infty} e^{-t/\tau} = 0\), we see that \(r_{\tau}(t)\) approaches \(1\) as \(t\) becomes large, i.e., \(\lim_{t\rightarrow\infty} r_{\tau}(t)=1\).

How fast \(r_{\tau}(t)\) approaches \(1\) depends upon the time constant \(\tau\): larger values of \(\tau\) cause \(r_{\tau}(t)\) to approach \(1\) more slowly, and smaller values of \(\tau\) cause \(r_{\tau}(t)\) to approach \(1\) more rapidly.

This is illustrated in the simple numerical calculation and plot below.

import numpy as np
import matplotlib.pylab as plt
tau1 = 1
tau2 = 4
t=np.linspace(0,20,40)
r1 = 1-np.exp(-t/tau1)
r2 = 1-np.exp(-t/tau2)
label1 = "$\\tau="+str(tau1)+"$"
label2 = "$\\tau="+str(tau2)+"$"
plt.plot(t,r1,'s-',label=label1)
plt.plot(t,r2,'s-',label=label2)
plt.xlabel('$t$')
plt.ylabel('$r_{\\tau}(t)$')
plt.legend()
plt.show()

EXERCISE: Verify that, to achieve \(r_{\tau}(t) \ge 0.99\), we require \(t \ge -\ln(0.01)\cdot \tau \approx 4.6 \cdot \tau\).

Thus, a good rule of thumb is that a rising exponential signal essentially converges to its limit after five time constants. The duration \(5\tau\) is sometimes called the rise time of the rising exponential signal.

Unit Step Signal

Another simple signal is the unit step signal \[ u(t) := \begin{cases} 1 & t > 0 \\ 0 & t \le 0 \end{cases}. \tag{2}\] That is, the unit step signal “turns on” after time \(t=0\) after being “off” for \(t \le 0\).

Notice that the unit step can be viewed as a pointwise limit of the rising exponential signal as \(\tau\) approaches \(0\), i.e., \(u(t) = \lim_{\tau\rightarrow 0} r_{\tau}(t)\) for all \(t\in\mathbb{R}\).

On one hand, the mathematical expression for \(u(t)\) is simpler than that of the rising exponential signal, so \(u(t)\) can be a convenient approximation to the rising exponential signal for small \(\tau\).

On the other hand, \(u(t)\) is discontinuous at \(t=0\), whereas the rising exponential signal is continuous for all \(t\).

EXERCISE: Verify that \[ u(t-\tau) = \begin{cases} 1 & t > \tau \\ 0 & t \le \tau \end{cases}. \] In words, the delayed unit step signal \(u(t-\tau)\) is off for \(t \le \tau\) and on for \(t > \tau\).

Rectangular Signal

Another simple signal is the rectangular signal \[ \mathrm{rect}(t) := u\left(t+\frac{1}{2}\right) - u\left(t-\frac{1}{2}\right). \tag{3}\]

EXERCISE: Verify that \[ \mathrm{rect}(t) = \begin{cases} 1 & |t| < \frac{1}{2} \\ 0 & |t| \ge \frac{1}{2} \end{cases}. \] In words, the rectangular signal \(\mathrm{rect}(t)\) is off for \(t \le -1/2\), turns on for \(-1/2 < t < +1/2\), and then turns off for \(t > +1/2\).

EXERCISE: Determine a simple expression for \(\mathrm{rect}(t/T)\) for \(T > 0\).

Dirac Delta Signal

Another signal that is actually defined in terms of a pointwise limit of functions is the Dirac delta signal \[ \delta(t) := \lim_{\epsilon\rightarrow 0} \delta_{\epsilon}(t), \quad t \in \mathbb{R}, \tag{4}\] where \(\delta_{\epsilon}(t)\) is a set of functions parameterized by \(\epsilon > 0\) satisfying \[ \int_{-\infty}^{+\infty} \delta_{\epsilon}(t) dt = 1, \quad \epsilon > 0, \tag{5}\] and \[ \lim_{\epsilon\rightarrow 0} \delta_{\epsilon}(t) = \begin{cases} +\infty & t = 0 \\ 0 & t \neq 0 \end{cases}. \tag{6}\]

The simplest such set of functions is given by \[ \delta_{\epsilon}(t)=\frac{1}{\epsilon}\mathrm{rect}\left(\frac{t}{\epsilon}\right) = \begin{cases} \frac{1}{\epsilon} & |t| < \frac{\epsilon}{2} \\ 0 & |t| \ge \frac{\epsilon}{2} \end{cases}. \] That is, the \(\delta_{\epsilon}(t)\) functions are rectangular with width \(\epsilon\) and height \(\frac{1}{\epsilon}\), so that they become narrower and taller as \(\epsilon\) becomes smaller.

An important property satisfied by the Dirac delta signal is the sifting property, which states that for a signal \(s(t)\), \(t \in\mathbb{R}\), and for any \(\tau\in\mathbb{R}\), \[ \int_{-\infty}^{+\infty} s(t) \delta(t-\tau) dt = s(\tau). \tag{7}\] In words, a Diract delta signal delayed by \(\tau\) “sifts” out the value of the signal \(s(t)\) for \(t=\tau\) under the integral.

Sinusoidal Signals

Another very important class of signals are sinusoidal signals, such as \(\cos(2\pi f_0 t)\) and \(\sin(2\pi f_0 t)\) for all \(t \in \mathbb{R}\) and a given \(f_0 > 0\). If we define \(T_0 = 1/f_0\), we observe the following interesting property: \[ \cos(2\pi f_0 (t + k T_0)) = \cos(2\pi f_0 t + k2\pi)=\cos(2\pi f_0 t), \quad k\in\mathbb{Z}. \]

In words, the sinusoidal signal \(\cos(2\pi f_0 t)\) is periodic with fundamental period \(T_0 = 1/f_0\).

The parameter \(f_0\) is called the frequency of the sinusoid, and represents the number of periods or cycles of the sinusoid in one second. The units of frequency are Hertz.

f_0 = 10
T_0 = 1/f_0
t = np.linspace(-2*T_0,2*T_0,4*20)
c = np.cos(2*np.pi*f_0*t)
s = np.sin(2*np.pi*f_0*t)

plt.plot(t,c,'s-',label='cos')
plt.plot(t,s,'s-',label='sin')
plt.xlabel('t')
plt.legend()
plt.show()

EXERCISE: Show that \(\cos(2\pi f_0 t + \pi/2)=\sin(2\pi f_0 t)\), i.e., the \(\cos\) “leads” the \(\sin\), or the \(\sin\) “lags” the \(\cos\), by \(\pi/2\) radians or \(90^{\circ}\).

Continuous-Time Complex Exponential Signals

The last class of simple signals we will mention are complex exponential signals of the form \(e^{j 2\pi f_0 t}\) for all \(t \in \mathbb{R}\) and a given \(f_0 \in \mathbb{R}\), where \(j=\sqrt{-1}\).

Using Euler’s relation, we have \[ e^{j 2\pi f_0 t} = \cos(2\pi f_0 t) + j\sin(2 \pi f_0 t). \tag{8}\] That is, the complex exponential signal has the \(\cos\) and \(\sin\) signals of a given frequency as its real and imaginary parts, respectively.

The following plot shows the \(\cos\) and \(\sin\) signals from the previous example in the complex plane (XY mode). The complex exponential cycles around the unit circle \(f_0\) times per second. Specifically, for this example with \(f_0 > 0\) and comparing to the previous figure, the complex exponential starts at the point \((1,0)\) and rotates counter clockwise through the points \((0,1)\), \((-1,0)\), and \((0,-1)\). For \(f_0 < 0\), the complex exponential cycles clockwise around the unit circle \(-f_0\) times per second.

plt.plot(c,s,'s-')
plt.xlabel('Real Part')
plt.ylabel('Image Part')
plt.show()

EXERCISE: Verify using Euler’s relation that \[ \cos(2\pi f_0 t) = \frac{1}{2} \left[e^{j 2\pi f_0 t} + e^{-j 2\pi f_0 t}\right] \tag{9}\] and \[ \sin(2\pi f_0 t) = \frac{1}{2j} \left[e^{j 2\pi f_0 t} - e^{-j 2\pi f_0 t}\right]. \tag{10}\]

EXERCISE: Verify using Euler’s relation the following trigonometric identities \[ \cos(2\pi f_1 t) \cos(2\pi f_2 t) = \frac{1}{2}[\cos(2\pi (f_1-f_2) t)+\cos(2\pi (f_1+f_2) t)] \tag{11}\] \[ \sin(2\pi f_1 t) \sin(2\pi f_2 t) = \frac{1}{2}[\cos(2\pi (f_1-f_2) t)-\cos(2\pi (f_1+f_2) t)] \tag{12}\] \[ \cos(2\pi f_1 t) \sin(2\pi f_2 t) = \frac{1}{2}[\sin(2\pi (f_1+f_2) t)-\sin(2\pi (f_1-f_2) t)] \tag{13}\]

Discrete-Time Complex Exponential Sequences

We can think of a discrete-time complex exponential sequence as samples of a continuous-time complex exponential signal, but some subtleties arise.

Consider \(x(t)=e^{j2\pi f t}\) for a specific frequency \(f \in\mathbb{R}\). Let \(x[n]\) denote samples of this signal with sampling period \(T_s\) (sampling frequency \(f_s\)), i.e., \(x[n]=x(n T_s)\).

Then \[ x[n] = \left.e^{j2\pi f t}\right|_{t=nT_s}=e^{j2\pi(f/f_s) n} \] The ratio \(f / f_s\) is called the normalized frequency of the discrete-time complex exponential, with units of cycles per sample.

If \(f_s / f\) is an integer, the DT complex exponential is periodic, i.e., \(x[n+kN_0]=x[n]\) for all \(n\in\mathbb{Z}\). In this case, the period \(N_0 = f_s/f\), the inverse of the normalized frequency.

Now consider \(y_k(t)=e^{j2\pi (f + k f_s) t}\), for a specific frequency \(f \in\mathbb{R}\) and a specific integer \(k\in\mathbb{Z}\). In words, the frequency of \(y_k(t)\) is the frequency of \(x(t)\) plus an integer multiple \(k\) of the sampling frequency \(f_s\).

The corresponding discrete-time complex exponential is \[ y_k[n] = \left. y_k(t) \right|_{t=nT_s} = e^{j2\pi((f+k f_s)/f_s) n}=e^{j2\pi k} e^{j2\pi (f/f_s) n}=e^{j2\pi (f/f_s) n}=x[n] \] since \(e^{j2\pi k}=1\), \(k\in\mathbb{Z}\).

In words, the discrete-time samples corresponding to all continuous-time frequencies \(f + k f_s\) are exactly the same. The continuous-time frequency \(f+k f_s\) is said to alias to the frequency \(f\), or the normalize frequency \(f/f_s\), for all \(k\in\mathbb{Z}\).

Another way to view this effect is that, for discrete-time sequences, the normalized frequency axis \((f/f_s)\) is periodic with fundamental period \(1\).

We therefore focus on discrete-time normalized frequencies on the interval \([-1/2,+1/2]\) as a convention, and we use the variable \(u\) to denote normalized frequencies.

Signal Energy and Power

We will often deal with finite-energy or finite-power signals.

The energy of a signal \(s(t)\) is defined as \[ E_s = \lim_{T\rightarrow\infty} \int_{-T/2}^{+T/2} |s(t)|^2 dt \tag{14}\] when the limit exists. The absolute value of the integrand is important for dealing with complex-valued signals.

The (average) power of a signal \(s(t)\) is defined as \[ P_s = \lim_{T\rightarrow\infty} \frac{1}{T}\int_{-T/2}^{+T/2} |s(t)|^2 dt \tag{15}\] when the limit exists.

EXERCISE: Verify that the energy and average power of the rectangular signal \(\mathrm{rect}(t/T)\) are \(E=T\) and \(P=0\), respectively.

EXERCISE: Verify that the energy and average power of the complex exponential signal \(e^{j2\pi f_0 t}\) are \(\infty\) and \(1\), respectively.

Similarly, the energy and (average) power of a sequence \(s[n]\) are defined as \[ E_s = \lim_{N\rightarrow\infty} \sum_{-N}^{+N} |s[n]|^2 \tag{16}\] and \[ P_s = \lim_{N\rightarrow\infty} \frac{1}{2N+1} \sum_{-N}^{+N} |s[n]|^2 \tag{17}\] when the limits exist, respectively.

Correlation

For two signals \(x(t)\) and \(y(t)\), we define the correlation as \[ <x(t),y(t)>:=\int_{-\infty}^{+\infty}x(t)y^*(t) dt \tag{18}\]

For two sequences \(x[n]\) and \(y[n]\), we define the correlation as \[ < x[n], y[n]>:=\sum_{-\infty}^{+\infty} x[n] y^*[n] \tag{19}\]

Two signals (sequences) are said to be orthogonal if there correlation is zero.

EXERCISE: Determine the correlation of \(\mathrm{rect}(t/T)\) and \(\mathrm{rect}((t-\tau)/T)\), \(t\in\mathbb{R}\), for all values of \(\tau,T\in\mathbb{R}\). For which values of \(\tau\), if any, are the two signals orthogonal?

EXERCISE: Determine the correlation of the signals \(e^{j2\pi f_1 t}\) and \(e^{j2\pi f_2 t}\), \(t\in\mathbb{R}\), for all values of \(f_1,f_2\in\mathbb{R}\). For which values of \(f_1,f_2\), if any, are the signals orthogonal?

EXERCISE: Determine the correlaton of the sequences \(e^{j2\pi u_1 n}\) and \(e^{j2\pi u_2 n}\), \(n\in\mathbb{Z}\), for all values of \(u_1,u_2\in[-1/2,1/2]\). For which values of \(u_1,u_2\), if any, are the sequences orthongonal?

Note: Be careful with aliasing effects!

Systems

A system models the processing of input signal(s) or sequence(s) into output signal(s) or sequence(s). For starters, we will explore systems with a single input and a single output. Systems that process continuous-time signals are called continuous-time systems, and systems that process discrete-time sequences are called discrete-time systems.

For simplicity at this point, we denote a system by \(\mathcal{H}\) and its response to input \(x(t)\) by \(\mathcal{H}\{x(t)\}\), and we draw such systems as components in block diagrams and shown in Figure 2.

Figure 2: System block diagrams in continuous-time and discrete-time

Simple Systems

Memoryless Operation

TBD

Delay / Advance

TBD

Time Limiter

TBD

Linear Time-Invariant Systems

Linearity and time-invariance are two very useful system properties that are satisfied by many systems. Systems that satisfy both properties are called linear, time-invariant (LTI) systems.

Definitions

A system \(\mathcal{H}\) is linear if it satisfies two properties:

  1. Scaling: If \(y(t)=\mathcal{H}\{x(t)\}\), then input \(\mathcal{H}\{a x(t)\}=a y(t)\) for all inputs \(x(t)\) and all constaints \(a\in\mathbb{C}\).
  2. Superposition: If \(y_1(t)=\mathcal{H}\{x_1(t)\}\) and \(y_2(t)=\mathcal{H}\{x_2(t)\}\), then \(\mathcal{H}\{a x_1(t) + b x_2(t)\}=a y_1(t) + b y_2(t)\), for all inputs \(x_1(t)\) and \(x_2(t)\) and all constants \(a,b\in\mathbb{C}\).

A system is time-invariant if, for \(y(t)=\mathcal{H}\{x(t)\}\), \(\mathcal{H}\{x(t-\tau)\}=y(t-\tau)\) for all inputs \(x(t)\) and all constants \(\tau\in\mathbb{R}\).

In other words, delaying an input produces the same delay in the corresponding output.

Convolution Defines the LTI Input-Output Relationship

The input-ouput relationship for an LTI system can be specified in general from \(h(t)=\mathcal{H}\{\delta(t)\}\), which is called the impulse response of the system.

Specifically we can determine \(y(t)=\mathcal{H}\{x(t)\}\) through the convolution integral \[ y(t) = \int_{-\infty}^{+\infty} x(\tau)h(t-\tau) d\tau =: x(t) * h(t) \tag{20}\] To see this, we rewrite the input as \[ x(t) = \int_{-\infty}^{+\infty} x(\tau) \delta(t-\tau) d\tau \] and apply the LTI properties of the system.

Note that he we are expressing the input as a superposition of many, simpler signals for which the input-output relationship is simple.

An equivalent relationship is \[ y(t) = \int_{-\infty}^{+\infty} x(t-\tau)h(\tau) d\tau \]

Complex Exponentials are Eigenfunctions of LTI Systems

When we apply a complex exponential as the input to an LTI system, something very interesting and useful happens.

Mathematically, if \(h(t)\) is the impulse response of the LTI system \(\mathcal{H}\), applying the convolution intergral to the input \(e^{j2\pi f_0 t}\) yields \[ \int_{-\infty}^{+\infty} e^{j2\pi f_0 (t-\tau)} h(\tau) d\tau = \int_{-\infty}^{+\infty} e^{j2\pi f_0 t} e^{-j2\pi f_0 \tau} h(\tau) d\tau = e^{j2\pi f_0 t} \left( \int_{-\infty}^{+\infty} h(\tau) e^{-2\pi f_0 \tau} d\tau\right) \]

In words, if the input to an LTI system is any complex exponential with frequency \(f_0\), the output is a complex exponential with the exact same frequency.

For this reason, we call complex exponentials the eigenfunctions of LTI systems.

The effect of the LTI system on a complex exponential of frequency \(f_0\) is multiplication by the complex-valued scalar \[ H(f_0):=\int_{-\infty}^{+\infty} h(\tau) e^{-j2\pi f_0 \tau} d\tau \tag{21}\] Across all frequencies \(f \in\mathbb{R}\), which we refer to as the frequency axis, the system may have a different value of \(H(f)\), which we refer to as the frequency response.

EXERCISE: Argue that, if

\[ x(t)=\sum_{k=1}^{K} a_k e^{j2\pi f_k t} \] is input to an LTI system with frequency response \(H(f)\), then the corresponding output is \[ y(t)=\sum_{k=1}^{K} H(f_k) a_k e^{j2\pi f_k t} \]

The above exercise illustrates that convolution for LTI systems is particularly easy to work with if the input can be written as a sum of complex exponentials. This motivates us to represent as many signals this way as we can!

Discrete-Time LTI Systems

Very similar ideas apply to discrete-time systems as well.

The input-ouput relationship for an DT LTI system can be specified in general from \(h[n]=\mathcal{H}\{\delta[n]\}\), which is called the impulse response of the system.

Specifically we can determine \(y[n]=\mathcal{H}\{x[n]\}\) through the convolution sum \[ y[n] = \sum_{k=-\infty}^{+\infty} x[k]h[n-k] =: x[n] * h[n] \tag{22}\]

To see this, we rewrite the input as \[ x[n] = \sum_{k=-\infty}^{+\infty} x[k] \delta[n-k] \] and apply the LTI properties of the system.

Note that he we are expressing the input as a superposition of many, simpler signals for which the input-output relationship is simple.

An equivalent relationship is \[ y[n] = \sum_{k=-\infty}^{+\infty} x[n-k]h[k] \]

Mathematically, if \(h[n]\) is the impulse response of the DT LTI system \(\mathcal{H}\), applying the convolution intergral to the input \(e^{j2\pi u_0 n}\) yields \[ \sum_{k=-\infty}^{+\infty} e^{j2\pi u_0 (n-k)} h[k] = \sum_{k=-\infty}^{+\infty} e^{j2\pi u_0 n} e^{-j2\pi u_0 k} h[k] = e^{j2\pi u_0 n} \left( \sum_{k=-\infty}^{+\infty} h[k] e^{-j2\pi u_0 k} \right) \]

In words, if the input to an DT LTI system is any complex exponential with normalized frequency \(u_0\), the output is a complex exponential with the exact same frequency.

For this reason, we call DT complex exponentials the eigenfunctions of DT LTI systems.

The effect of the DT LTI system on a complex exponential of normalized frequency \(u_0\) is multiplication by the complex-valued scalar \[ H(e^{j2\pi u_0}):=\sum_{k=-\infty}^{+\infty} h[k] e^{-j2\pi u_0 k} \tag{23}\] Across all frequencies \(u \in\mathbb{R}\), which we refer to as the discrete-time frequency axis, the system may have a different value of \(H(e^{j2\pi u})\), which we refer to as the discrete-time frequency response.

EXERCISE: Argue that, if

\[ x[n]=\sum_{k=1}^{K} a_k e^{j2\pi u_k n} \] is input to an DT LTI system with frequency response \(H(e^{j2\pi u})\), then the corresponding output is \[ y[n]=\sum_{k=1}^{K} H(e^{j2\pi u_k}) a_k e^{j2\pi u_k n} \]

Representation of Periodic Signals by Sums of Exponentials

This section focuses on periodic CT signals that satisfy \(x(t+T_0)=x(t)\), \(t\in\mathbb{R}\), for some \(T_0>0\) and periodic DT sequences that satisfy \(x[n+n_0]=x[n]\), \(n\in\mathbb{Z}\) for some integer \(N_0 >0\).

Continuous-Time

If \(x(t)\) is a periodic signal with fundamental period \(T_0 > 0\), then we can represent it by the infinite sum of complex exponentials \[ x(t) = \mathrm{l.i.m.}_{k\rightarrow\infty} \sum_{-k}^{k} a_k e^{j2\pi k t / T_0} \tag{24}\] and we may easily determine the coefficients \(a_k\), \(k\in\mathbb{Z}\) via a correlation over any interval of length \(T_0\), for example, \[ a_k = \left< x(t) , \frac{1}{T_0} e^{j2\pi k t / T_0} \right> = \frac{1}{T_0} \int_{-T_0/2}^{T_0/2} x(t) e^{-j2\pi k t / T_0} dt \tag{25}\] This representation is called the continuous-time Fourier series.

Remarks

  • The Fourier series represents a periodic CT signal \(x(t)\), \(t\in\mathbb{R}\) by the DT sequence \(a_k\), \(k\in\mathbb{Z}\).

  • The complex exponentials are harmonically related in the sense that the frequencies are integer multiples of \(f_0 = 1/T_0\), which we call the fundamental frequency.

  • For an LTI system with frequency response \(H(f)\), the output corresponding to the periodic input \(x(t)\) will be \[ \mathrm{l.i.m.}_{k\rightarrow\infty} \sum_{-k}^{k} H(kt/T_0) a_k e^{j2\pi k t / T_0} \] that is, we apply the system to each component frequency, exploit the eigenfunction property of complex exponentials for LTI systems, and sum the results using linearity.

  • The limiting behavior of the summation is in the sense of mean-square convergence, and is fairly technical. In particular, if we consider the finite summation \[ x_K(t) = \sum_{-K}^{K} a_k e^{j2\pi k t / T_0} \] then \(x(t)=\mathrm{l.i.m.}_{K\rightarrow\infty} x_K(t)\) means that \[ \lim_{K\rightarrow\infty} \int_{-T_0/2}^{T_0/2} |x(t) - x_K(t)|^2 dt = 0 \]

In words, the integral of the squared difference between the two signals approaches zero, rather than the difference betweeen the signals themselves going to zero for all \(t\in\mathbb{R}\).

TBD: Periodic square wave and Gibbs phenomenon, in Python plot

Discrete-Time

If \(x[n]\) is a periodic signal with integer fundamental period \(N_0 > 0\), then we can represent it by the finite sum of complex exponentials \[ x[n] = \sum_{0}^{N_0-1} a_k e^{j2\pi (k/N_0) n} \tag{26}\] and we may easily determine the coefficients \(a_k\), \(k=0,1,\ldots,N_0-1\) via a correlation over any interval of \(N_0\) samples, for example, \[ a_k = \left< x[n] , \frac{1}{N_0} e^{j2\pi (k/N_0) n} \right> = \frac{1}{N_0} \sum_{n=0}^{N_0-1} x[n] e^{-j2\pi (k/N_0) n} \tag{27}\] This representation is called the discrete-time Fourier series.

Remarks

  • The Fourier series represents a periodic DT sequence \(x[n]\) by a finite set of coefficients \(a_k\),\(k=0,1,...,N_0-1\).

  • The complex exponentials are harmonically related in the sense that their normalized frequences are \((k/N_0)\), \(k=0,1,\ldots,N_0-1\), where \(1/N_0\) is the fundamental frequency.

  • For an LTI system with frequency response \(H(e^{j2\pi u})\), the output corresponding to the periodic input \(x[n]\) will be \[ \sum_{k=0}^{N_0-1} H(e^{j2 \pi k/N_0}) a_k e^{j2\pi (k/N_0) n} \] that is, we apply the system to each component frequency, exploit the eigenfunction property of complex exponentials for LTI systems, and sum the results using linearity.

  • The Discrete Fourier Transform (DFT) of a sequence of length \(N\) is defined as \[ X[k] = \sum_{n=0}^{N} x[n] e^{-j\pi (k/N) n} \tag{28}\] for \(k=0,1,\ldots,N-1\). The discrete-time Fourier series coefficients are related to the DFT via the relationship \(N a_k = X[k]\), so that the inverse DFT becomes \[ x[n] = \frac{1}{N} \sum_{k=0}^{N} X[k] e^{j\pi (k/N) n} \tag{29}\] This set of relationships are important because there is an efficient algorithm for computing the DFT (and inverse DFT) called the Fast Fourier Transform (FFT), particularly when \(N\) is a power of \(2\).

Representation of Aperiodic Signals by Sums of Exponentials

Not all signals are periodic, but we still want to represent them as sums of complex exponentials to build upon the machinery above.

Continuous-Time

The signal \(x(t)\) can be presented as an integral over a continuum of complex exponential signals over all frequencies via \[ x(t) = \mathrm{l.i.m.}_{B\rightarrow\infty} \int_{-B/2}^{B/2} X(f) e^{j2\pi f t} df \tag{30}\] where \(X(f)\) denotes the continuous-time Fourier transform of \(x(t)\), assuming the limit exists.

The CT Fourier transform can be defined in a fairly general sense as \[ X(f) = \mathrm{l.i.m.}_{T\rightarrow\infty} \int_{-T/2}^{T/2} x(t) e^{-j2\pi f t} dt \tag{31}\] assuming the limit exists.

For compactness, we denote a CT Fourier transform pair by \(x(t) \leftrightarrow X(f)\).

Remarks

  • The CT Fourier transform of a complex exponential \(e^{j2\pi f_0 t}\) is stricly not well defined, unless we generalize to allow Dirac delta functions in the frequency domain. In that case, \(e^{j2\pi f_0 t} \leftrightarrow \delta(f - f_0)\). We can obtain this intuition by time-limiting the complex exponential as \(e^{j2\pi f_0 t} \mathrm{rect}(t/T)\), computing the CT Fourier transform, and then taking the limit as \(T\rightarrow \infty\).

  • Energy and correlation can be computed in the frequency domain. Specifically, \[ E_x = \int_{-\infty}^{\infty} |x(t)|^2 dt = \int_{-\infty}^{\infty} |X(f)|^2 df \tag{32}\] \[ <x(t),y(t)> = \int_{-\infty}^{\infty} x(t)y^*(t) dt = \int_{\infty}^{\infty} X(f)Y^*(f) df = <X(f),Y(f)> \tag{33}\] These results are called Parseval’s and Plancheral’s relationships, respectively.

  • With this definition, convolution in the time domain becomes multiplication in the frequency domain. That is, if the \(H(f)\) represents the frequency response of the LTI system \(\mathcal{H}\), i.e., the Fourier transform of the impulse response \(h(t)\), then the input-output relationship \(y(t)=x(t) * h(t)\) is becomes \(Y(f)=H(f)X(f)\).

  • There are some extremely sophisticated mathematics with regard to integration and limit operations in order to provide a general notion of the Fourier transform and inverse Fourier transform. The commonly most general definitions relay on Lesbegue integration and mean-square limits, whereas most undergraduates are familiar with Riemann integration and pointwise limits.

Discrete-Time

The sequence \(x[n]\) can be represented as an integral over a continuum of complex exponential sequences over all normalized frequencies in any interval of length \(1\), for example \[ x[n] = \int_{-1/2}^{1/2} X(e^{j2\pi u}) e^{j2\pi u n} du \tag{34}\] where \(X(e^{j2\pi u})\) denotes the discrete-time Fourier transform of \(x[n]\) as a function of the normalized frequency \(u\).

The DT Fourier transform is defined as \[ X(e^{j2\pi u}) = \sum_{n=-\infty}^{\infty} x[n] e^{-j2\pi u n} \tag{35}\] assuming the limit exists.

For compactness, we denote a DT Fourier transform pair by \(x[n] \leftrightarrow X(e^{j2\pi u})\).

Remarks

  • Building upon our earlier discussion of discrete-time complex exponentials, we see that the DT Fourier Transform is periodic with period \(1\) on the normalized frequency axis. We tend to focus by convention on the interval \(u\in[-1/2,1/2]\), but we should keep in mind this periodicity.

  • The DT Fourier transform of a complex exponential \(e^{j2\pi u_0 n}\) is stricly not well defined, unless we generalize to allow Dirac delta functions in the frequency domain. In that case, \(e^{j2\pi u_0 n} \leftrightarrow \delta(u - u_0)\). We can obtain this intuition by time-limiting the complex exponential as \(e^{j2\pi u n} \mathrm{rect}[n/N]\), computing the DT Fourier transform, and then taking the limit as \(N\rightarrow \infty\).

  • Energy and correlation can be computed in the frequency domain. Specifically, \[ E_x = \sum_{n=-\infty}^{\infty} |x[n]|^2 = \int_{-1/2}^{1/2} |X(e^{j2\pi u})|^2 du \tag{36}\]

\[ <x[n],y[n]> = \sum_{n=-\infty}^{\infty} x[n]y^*[n] = \int_{-1/2}^{1/2} X(e^{j2\pi u})Y^*(e^{j2\pi u}) du = <X(e^{j2\pi u}),Y(e^{j2\pi u})> \tag{37}\] These results are called Parseval’s and Plancheral’s relationships, respectively.

  • With this definition, convolution in the time domain becomes multiplication in the frequency domain. That is, if the \(H(e^{j2\pi u})\) represents the frequency response of the DT LTI system \(\mathcal{H}\), i.e., the DT Fourier transform of the impulse response \(h[n]\), then the input-output relationship \(y[n]=x[n] * h[n]\) becomes \(Y(e^{j2\pi u})=H(e^{j2\pi u})X(e^{j2\pi u})\).