import numpy as np
import matplotlib.pylab as plt
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.
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
More generally, we can consider any quantity that varies as a function of time as a signal, and we generically denote it by
If, for whatever reason, we are only able to measure a signal at the discrete time instants
In this context, we refer to the value
Finally, we often consider complex-valued signals and sequences such as
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
That is, the constant signal takes the same value for all time.
Rising Exponential Signal
Another simple signal is the rising exponential signal
Since
How fast
This is illustrated in the simple numerical calculation and plot below.
= 1
tau1 = 4
tau2 =np.linspace(0,20,40)
t= 1-np.exp(-t/tau1)
r1 = 1-np.exp(-t/tau2) r2
= "$\\tau="+str(tau1)+"$"
label1 = "$\\tau="+str(tau2)+"$"
label2 's-',label=label1)
plt.plot(t,r1,'s-',label=label2)
plt.plot(t,r2,'$t$')
plt.xlabel('$r_{\\tau}(t)$')
plt.ylabel(
plt.legend() plt.show()
EXERCISE: Verify that, to achieve
Thus, a good rule of thumb is that a rising exponential signal essentially converges to its limit after five time constants. The duration
Unit Step Signal
Another simple signal is the unit step signal
Notice that the unit step can be viewed as a pointwise limit of the rising exponential signal as
On one hand, the mathematical expression for
On the other hand,
EXERCISE: Verify that
Rectangular Signal
Another simple signal is the rectangular signal
EXERCISE: Verify that
EXERCISE: Determine a simple expression for
Dirac Delta Signal
Another signal that is actually defined in terms of a pointwise limit of functions is the Dirac delta signal
The simplest such set of functions is given by
An important property satisfied by the Dirac delta signal is the sifting property, which states that for a signal
Sinusoidal Signals
Another very important class of signals are sinusoidal signals, such as
In words, the sinusoidal signal
The parameter
= 10
f_0 = 1/f_0
T_0 = np.linspace(-2*T_0,2*T_0,4*20)
t = np.cos(2*np.pi*f_0*t)
c = np.sin(2*np.pi*f_0*t)
s
's-',label='cos')
plt.plot(t,c,'s-',label='sin')
plt.plot(t,s,'t')
plt.xlabel(
plt.legend() plt.show()
EXERCISE: Show that
Continuous-Time Complex Exponential Signals
The last class of simple signals we will mention are complex exponential signals of the form
Using Euler’s relation, we have
The following plot shows the
's-')
plt.plot(c,s,'Real Part')
plt.xlabel('Image Part')
plt.ylabel( plt.show()
EXERCISE: Verify using Euler’s relation that
EXERCISE: Verify using Euler’s relation the following trigonometric identities
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
Then
If
Now consider
The corresponding discrete-time complex exponential is
In words, the discrete-time samples corresponding to all continuous-time frequencies
Another way to view this effect is that, for discrete-time sequences, the normalized frequency axis
We therefore focus on discrete-time normalized frequencies on the interval
Signal Energy and Power
We will often deal with finite-energy or finite-power signals.
The energy of a signal
The (average) power of a signal
EXERCISE: Verify that the energy and average power of the rectangular signal
EXERCISE: Verify that the energy and average power of the complex exponential signal
Similarly, the energy and (average) power of a sequence
Correlation
For two signals
For two sequences
Two signals (sequences) are said to be orthogonal if there correlation is zero.
EXERCISE: Determine the correlation of
EXERCISE: Determine the correlation of the signals
EXERCISE: Determine the correlaton of the sequences
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
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
- Scaling: If
, then input for all inputs and all constaints . - Superposition: If
and , then , for all inputs and and all constants .
A system is time-invariant if, for
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
Specifically we can determine
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
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
In words, if the input to an LTI system is any complex exponential with 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
EXERCISE: Argue that, if
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
Specifically we can determine
To see this, we rewrite the input as
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
Mathematically, if
In words, if the input to an DT LTI system is any complex exponential with normalized 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
EXERCISE: Argue that, if
Representation of Periodic Signals by Sums of Exponentials
This section focuses on periodic CT signals that satisfy
Continuous-Time
If
Remarks
The Fourier series represents a periodic CT signal
, by the DT sequence , .The complex exponentials are harmonically related in the sense that the frequencies are integer multiples of
, which we call the fundamental frequency.For an LTI system with frequency response
, the output corresponding to the periodic input will be 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
then means that
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
TBD: Periodic square wave and Gibbs phenomenon, in Python plot
Discrete-Time
If
Remarks
The Fourier series represents a periodic DT sequence
by a finite set of coefficients , .The complex exponentials are harmonically related in the sense that their normalized frequences are
, , where is the fundamental frequency.For an LTI system with frequency response
, the output corresponding to the periodic input will be 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
is defined as for . The discrete-time Fourier series coefficients are related to the DFT via the relationship , so that the inverse DFT becomes 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 is a power of .
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
The CT Fourier transform can be defined in a fairly general sense as
For compactness, we denote a CT Fourier transform pair by
Remarks
The CT Fourier transform of a complex exponential
is stricly not well defined, unless we generalize to allow Dirac delta functions in the frequency domain. In that case, . We can obtain this intuition by time-limiting the complex exponential as , computing the CT Fourier transform, and then taking the limit as .Energy and correlation can be computed in the frequency domain. Specifically,
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
represents the frequency response of the LTI system , i.e., the Fourier transform of the impulse response , then the input-output relationship is becomes .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
The DT Fourier transform is defined as
For compactness, we denote a DT Fourier transform pair by
Remarks
Building upon our earlier discussion of discrete-time complex exponentials, we see that the DT Fourier Transform is periodic with period
on the normalized frequency axis. We tend to focus by convention on the interval , but we should keep in mind this periodicity.The DT Fourier transform of a complex exponential
is stricly not well defined, unless we generalize to allow Dirac delta functions in the frequency domain. In that case, . We can obtain this intuition by time-limiting the complex exponential as , computing the DT Fourier transform, and then taking the limit as .Energy and correlation can be computed in the frequency domain. Specifically,
- With this definition, convolution in the time domain becomes multiplication in the frequency domain. That is, if the
represents the frequency response of the DT LTI system , i.e., the DT Fourier transform of the impulse response , then the input-output relationship becomes .