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 tR, 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=nTs for integer nZ, which we refer to as the discrete-time axis, we denote the sequence by s[n]=s(nTs), 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[n0] as the sample of x(t) for t=n0Ts, n0Z. We refer to the spacing between samples in time Ts as the sampling period, and we define fs=1/Ts as the sampling frequency.

Finally, we often consider complex-valued signals and sequences such as s(t)=sR(t)+jsI(t) s[n]=sR[n]+jsI[n] where sR(t) and sI(t) are real-valued signals, sR[n] and sI[n] are real-valued sequences, and j=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 AR and all tR.

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

Rising Exponential Signal

Another simple signal is the rising exponential signal (1)rτ(t):={1et/τt00t<0, where τ>0 is called the time constant.

Since et/τ decays to 0 as t becomes large, i.e., limtet/τ=0, we see that rτ(t) approaches 1 as t becomes large, i.e., limtrτ(t)=1.

How fast rτ(t) approaches 1 depends upon the time constant τ: larger values of τ cause rτ(t) to approach 1 more slowly, and smaller values of τ cause rτ(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τ(t)0.99, we require tln(0.01)τ4.6τ.

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

Unit Step Signal

Another simple signal is the unit step signal (2)u(t):={1t>00t0. That is, the unit step signal “turns on” after time t=0 after being “off” for t0.

Notice that the unit step can be viewed as a pointwise limit of the rising exponential signal as τ approaches 0, i.e., u(t)=limτ0rτ(t) for all tR.

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 τ.

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τ)={1t>τ0tτ. In words, the delayed unit step signal u(tτ) is off for tτ and on for t>τ.

Rectangular Signal

Another simple signal is the rectangular signal (3)rect(t):=u(t+12)u(t12).

EXERCISE: Verify that rect(t)={1|t|<120|t|12. In words, the rectangular signal rect(t) is off for t1/2, turns on for 1/2<t<+1/2, and then turns off for t>+1/2.

EXERCISE: Determine a simple expression for 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 (4)δ(t):=limϵ0δϵ(t),tR, where δϵ(t) is a set of functions parameterized by ϵ>0 satisfying (5)+δϵ(t)dt=1,ϵ>0, and (6)limϵ0δϵ(t)={+t=00t0.

The simplest such set of functions is given by δϵ(t)=1ϵrect(tϵ)={1ϵ|t|<ϵ20|t|ϵ2. That is, the δϵ(t) functions are rectangular with width ϵ and height 1ϵ, so that they become narrower and taller as ϵ becomes smaller.

An important property satisfied by the Dirac delta signal is the sifting property, which states that for a signal s(t), tR, and for any τR, (7)+s(t)δ(tτ)dt=s(τ). In words, a Diract delta signal delayed by τ “sifts” out the value of the signal s(t) for t=τ under the integral.

Sinusoidal Signals

Another very important class of signals are sinusoidal signals, such as cos(2πf0t) and sin(2πf0t) for all tR and a given f0>0. If we define T0=1/f0, we observe the following interesting property: cos(2πf0(t+kT0))=cos(2πf0t+k2π)=cos(2πf0t),kZ.

In words, the sinusoidal signal cos(2πf0t) is periodic with fundamental period T0=1/f0.

The parameter f0 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πf0t+π/2)=sin(2πf0t), i.e., the cos “leads” the sin, or the sin “lags” the cos, by π/2 radians or 90.

Continuous-Time Complex Exponential Signals

The last class of simple signals we will mention are complex exponential signals of the form ej2πf0t for all tR and a given f0R, where j=1.

Using Euler’s relation, we have (8)ej2πf0t=cos(2πf0t)+jsin(2πf0t). 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 f0 times per second. Specifically, for this example with f0>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 f0<0, the complex exponential cycles clockwise around the unit circle f0 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 (9)cos(2πf0t)=12[ej2πf0t+ej2πf0t] and (10)sin(2πf0t)=12j[ej2πf0tej2πf0t].

EXERCISE: Verify using Euler’s relation the following trigonometric identities (11)cos(2πf1t)cos(2πf2t)=12[cos(2π(f1f2)t)+cos(2π(f1+f2)t)] (12)sin(2πf1t)sin(2πf2t)=12[cos(2π(f1f2)t)cos(2π(f1+f2)t)] (13)cos(2πf1t)sin(2πf2t)=12[sin(2π(f1+f2)t)sin(2π(f1f2)t)]

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)=ej2πft for a specific frequency fR. Let x[n] denote samples of this signal with sampling period Ts (sampling frequency fs), i.e., x[n]=x(nTs).

Then x[n]=ej2πft|t=nTs=ej2π(f/fs)n The ratio f/fs is called the normalized frequency of the discrete-time complex exponential, with units of cycles per sample.

If fs/f is an integer, the DT complex exponential is periodic, i.e., x[n+kN0]=x[n] for all nZ. In this case, the period N0=fs/f, the inverse of the normalized frequency.

Now consider yk(t)=ej2π(f+kfs)t, for a specific frequency fR and a specific integer kZ. In words, the frequency of yk(t) is the frequency of x(t) plus an integer multiple k of the sampling frequency fs.

The corresponding discrete-time complex exponential is yk[n]=yk(t)|t=nTs=ej2π((f+kfs)/fs)n=ej2πkej2π(f/fs)n=ej2π(f/fs)n=x[n] since ej2πk=1, kZ.

In words, the discrete-time samples corresponding to all continuous-time frequencies f+kfs are exactly the same. The continuous-time frequency f+kfs is said to alias to the frequency f, or the normalize frequency f/fs, for all kZ.

Another way to view this effect is that, for discrete-time sequences, the normalized frequency axis (f/fs) 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 (14)Es=limTT/2+T/2|s(t)|2dt 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 (15)Ps=limT1TT/2+T/2|s(t)|2dt when the limit exists.

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

EXERCISE: Verify that the energy and average power of the complex exponential signal ej2πf0t are and 1, respectively.

Similarly, the energy and (average) power of a sequence s[n] are defined as (16)Es=limNN+N|s[n]|2 and (17)Ps=limN12N+1N+N|s[n]|2 when the limits exist, respectively.

Correlation

For two signals x(t) and y(t), we define the correlation as (18)<x(t),y(t)>:=+x(t)y(t)dt

For two sequences x[n] and y[n], we define the correlation as (19)<x[n],y[n]>:=+x[n]y[n]

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

EXERCISE: Determine the correlation of rect(t/T) and rect((tτ)/T), tR, for all values of τ,TR. For which values of τ, if any, are the two signals orthogonal?

EXERCISE: Determine the correlation of the signals ej2πf1t and ej2πf2t, tR, for all values of f1,f2R. For which values of f1,f2, if any, are the signals orthogonal?

EXERCISE: Determine the correlaton of the sequences ej2πu1n and ej2πu2n, nZ, for all values of u1,u2[1/2,1/2]. For which values of u1,u2, 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 H and its response to input x(t) by 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 H is linear if it satisfies two properties:

  1. Scaling: If y(t)=H{x(t)}, then input H{ax(t)}=ay(t) for all inputs x(t) and all constaints aC.
  2. Superposition: If y1(t)=H{x1(t)} and y2(t)=H{x2(t)}, then H{ax1(t)+bx2(t)}=ay1(t)+by2(t), for all inputs x1(t) and x2(t) and all constants a,bC.

A system is time-invariant if, for y(t)=H{x(t)}, H{x(tτ)}=y(tτ) for all inputs x(t) and all constants τ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)=H{δ(t)}, which is called the impulse response of the system.

Specifically we can determine y(t)=H{x(t)} through the convolution integral (20)y(t)=+x(τ)h(tτ)dτ=:x(t)h(t) To see this, we rewrite the input as x(t)=+x(τ)δ(tτ)dτ 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)=+x(tτ)h(τ)dτ

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 H, applying the convolution intergral to the input ej2πf0t yields +ej2πf0(tτ)h(τ)dτ=+ej2πf0tej2πf0τh(τ)dτ=ej2πf0t(+h(τ)e2πf0τdτ)

In words, if the input to an LTI system is any complex exponential with frequency f0, 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 f0 is multiplication by the complex-valued scalar (21)H(f0):=+h(τ)ej2πf0τdτ Across all frequencies fR, 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)=k=1Kakej2πfkt is input to an LTI system with frequency response H(f), then the corresponding output is y(t)=k=1KH(fk)akej2πfkt

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]=H{δ[n]}, which is called the impulse response of the system.

Specifically we can determine y[n]=H{x[n]} through the convolution sum (22)y[n]=k=+x[k]h[nk]=:x[n]h[n]

To see this, we rewrite the input as x[n]=k=+x[k]δ[nk] 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]=k=+x[nk]h[k]

Mathematically, if h[n] is the impulse response of the DT LTI system H, applying the convolution intergral to the input ej2πu0n yields k=+ej2πu0(nk)h[k]=k=+ej2πu0nej2πu0kh[k]=ej2πu0n(k=+h[k]ej2πu0k)

In words, if the input to an DT LTI system is any complex exponential with normalized frequency u0, 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 u0 is multiplication by the complex-valued scalar (23)H(ej2πu0):=k=+h[k]ej2πu0k Across all frequencies uR, which we refer to as the discrete-time frequency axis, the system may have a different value of H(ej2πu), which we refer to as the discrete-time frequency response.

EXERCISE: Argue that, if

x[n]=k=1Kakej2πukn is input to an DT LTI system with frequency response H(ej2πu), then the corresponding output is y[n]=k=1KH(ej2πuk)akej2πukn

Representation of Periodic Signals by Sums of Exponentials

This section focuses on periodic CT signals that satisfy x(t+T0)=x(t), tR, for some T0>0 and periodic DT sequences that satisfy x[n+n0]=x[n], nZ for some integer N0>0.

Continuous-Time

If x(t) is a periodic signal with fundamental period T0>0, then we can represent it by the infinite sum of complex exponentials (24)x(t)=l.i.m.kkkakej2πkt/T0 and we may easily determine the coefficients ak, kZ via a correlation over any interval of length T0, for example, (25)ak=x(t),1T0ej2πkt/T0=1T0T0/2T0/2x(t)ej2πkt/T0dt This representation is called the continuous-time Fourier series.

Remarks

  • The Fourier series represents a periodic CT signal x(t), tR by the DT sequence ak, kZ.

  • The complex exponentials are harmonically related in the sense that the frequencies are integer multiples of f0=1/T0, 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 l.i.m.kkkH(kt/T0)akej2πkt/T0 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 xK(t)=KKakej2πkt/T0 then x(t)=l.i.m.KxK(t) means that limKT0/2T0/2|x(t)xK(t)|2dt=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 tR.

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

Discrete-Time

If x[n] is a periodic signal with integer fundamental period N0>0, then we can represent it by the finite sum of complex exponentials (26)x[n]=0N01akej2π(k/N0)n and we may easily determine the coefficients ak, k=0,1,,N01 via a correlation over any interval of N0 samples, for example, (27)ak=x[n],1N0ej2π(k/N0)n=1N0n=0N01x[n]ej2π(k/N0)n 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 ak,k=0,1,...,N01.

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

  • For an LTI system with frequency response H(ej2πu), the output corresponding to the periodic input x[n] will be k=0N01H(ej2πk/N0)akej2π(k/N0)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 (28)X[k]=n=0Nx[n]ejπ(k/N)n for k=0,1,,N1. The discrete-time Fourier series coefficients are related to the DFT via the relationship Nak=X[k], so that the inverse DFT becomes (29)x[n]=1Nk=0NX[k]ejπ(k/N)n 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 (30)x(t)=l.i.m.BB/2B/2X(f)ej2πftdf 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 (31)X(f)=l.i.m.TT/2T/2x(t)ej2πftdt assuming the limit exists.

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

Remarks

  • The CT Fourier transform of a complex exponential ej2πf0t is stricly not well defined, unless we generalize to allow Dirac delta functions in the frequency domain. In that case, ej2πf0tδ(ff0). We can obtain this intuition by time-limiting the complex exponential as ej2πf0trect(t/T), computing the CT Fourier transform, and then taking the limit as T.

  • Energy and correlation can be computed in the frequency domain. Specifically, (32)Ex=|x(t)|2dt=|X(f)|2df (33)<x(t),y(t)>=x(t)y(t)dt=X(f)Y(f)df=<X(f),Y(f)> 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 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 (34)x[n]=1/21/2X(ej2πu)ej2πundu where X(ej2π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 (35)X(ej2πu)=n=x[n]ej2πun assuming the limit exists.

For compactness, we denote a DT Fourier transform pair by x[n]X(ej2π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[1/2,1/2], but we should keep in mind this periodicity.

  • The DT Fourier transform of a complex exponential ej2πu0n is stricly not well defined, unless we generalize to allow Dirac delta functions in the frequency domain. In that case, ej2πu0nδ(uu0). We can obtain this intuition by time-limiting the complex exponential as ej2πunrect[n/N], computing the DT Fourier transform, and then taking the limit as N.

  • Energy and correlation can be computed in the frequency domain. Specifically, (36)Ex=n=|x[n]|2=1/21/2|X(ej2πu)|2du

(37)<x[n],y[n]>=n=x[n]y[n]=1/21/2X(ej2πu)Y(ej2πu)du=<X(ej2πu),Y(ej2πu)> 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(ej2πu) represents the frequency response of the DT LTI system 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(ej2πu)=H(ej2πu)X(ej2πu).