Signals and Systems Theory and Practical Explorations With Python-20240526
Signals and Systems Theory and Practical Explorations With Python-20240526
LOGO
Copyright ©¡provide-copyright-year¿ by John Wiley & Sons, Inc. All rights reserved.
Published by John Wiley & Sons, Inc., Hoboken, New Jersey.
Published simultaneously in Canada.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any
form
or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as
permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior
written permission of the Publisher, or authorization through payment of the appropriate per-copy
fee to
the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400,
fax (978) 646-8600, or on the web at www.copyright.com. Requests to the Publisher for permission
should
be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken,
NJ
07030, (201) 748-6011, fax (201) 748-6008.
Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts
in
preparing this book, they make no representations or warranties with respect to the accuracy or
completeness of the contents of this book and specifically disclaim any implied warranties of
merchantability or fitness for a particular purpose. No warranty may be created or extended by sales
representatives or written sales materials. The advice and strategies contained herin may not be
suitable for your situation. You should consult with a professional where appropriate. Neither the
publisher nor author shall be liable for any loss of profit or any other commercial damages, including
but not limited to special, incidental, consequential, or other damages.
For general information on our other products and services please contact our Customer Care
Department with the U.S. at 877-762-2974, outside the U.S. at 317-572-3993 or fax 317-572-4002.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print,
however, may not be available in electronic format.
Title, etc
Printed in the United States of America.
10 9 8 7 6 5 4 3 2 1
To ...
v
vi
Contents
Contributors xv
Foreword xvii
Preface xix
Acknowledgments xxi
Introduction xxiii
vii
2 Basic Building Blocks of Signals 59
2.1 LEGO Functions of Signals . . . . . . . . . . . . . . . . . . . . . 59
2.2 King of the Functions: Exponential Function . . . . . . . . . . . 60
2.2.1 Real Exponential Function . . . . . . . . . . . . . . . 61
2.2.2 Complex Exponential Function . . . . . . . . . . . . . 65
2.3 Unit Impulse Function . . . . . . . . . . . . . . . . . . . . . . . . 74
2.3.1 Discrete Time Unit Impulse Function or Dirac-Delta
Function . . . . . . . . . . . . . . . . . . . . . . . . . . 74
2.3.2 Continuous-Time Unit Impulse Function . . . . . . . 76
2.3.3 Comparison of Discrete Time and Continuous Time
Unit Impulse Functions . . . . . . . . . . . . . . . . . 78
2.4 Unit Step Function . . . . . . . . . . . . . . . . . . . . . . . . . . 79
2.4.1 Discrete Time Unit Step Function . . . . . . . . . . . 79
2.4.2 Relationship Between the Discrete Time Unit Step
and Unit Impulse Functions . . . . . . . . . . . . . . 79
2.4.3 Continuous-Time Unit Step Function . . . . . . . . . 82
2.4.4 Comparison of Discrete Time and Continuous Time
Unit Step functions . . . . . . . . . . . . . . . . . . . 83
2.5 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
viii
3.4.1 Scalar Multiplier . . . . . . . . . . . . . . . . . . . . . 117
3.4.2 Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
3.4.3 Multiplier . . . . . . . . . . . . . . . . . . . . . . . . . 118
3.4.4 Integrator . . . . . . . . . . . . . . . . . . . . . . . . . 119
3.4.5 Differentiator . . . . . . . . . . . . . . . . . . . . . . . 119
3.4.6 Unit Delay Operator . . . . . . . . . . . . . . . . . . . 119
3.4.7 Unit Advance Operator . . . . . . . . . . . . . . . . 120
3.5 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
ix
5.3.1 Finding the Particular Solution . . . . . . . . . . . . . 177
5.3.2 Finding the Homogeneous Solution . . . . . . . . . . 178
5.3.3 Finding the General Solution . . . . . . . . . . . . . . 180
5.3.4 Transfer Function of a Continuous Time LTI System 186
5.4 Linear Constant Coefficient Difference Equations . . . . . . . . 189
5.4.1 Representation of a Discrete Time LTI Systems by
Difference Equations . . . . . . . . . . . . . . . . . . 190
5.4.2 Solution to Linear Constant Coefficient Difference
Equations . . . . . . . . . . . . . . . . . . . . . . . . . 191
5.4.3 Transfer Function of a Discrete Time LTI System . 193
5.5 Relationship Between the Impulse Response and Difference or
Differential Equations . . . . . . . . . . . . . . . . . . . . . . . . 194
5.6 Block Diagram Representation of Differential Equations for LTI
Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
5.7 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
x
7 Fourier Series Representation of Discrete-Time Periodic Sig-
nals 263
7.1 Fourier Series Theorem for Discrete-Time Functions . . . . . . . 263
7.2 Discrete-Time Fourier Series Representation in Hilbert Space . 266
7.3 Properties of Discrete-Time Fourier Series . . . . . . . . . . . . 275
7.3.1 Difference Property . . . . . . . . . . . . . . . . . . . 281
7.3.2 Convolution Property . . . . . . . . . . . . . . . . . . 283
7.3.3 Multiplication Property . . . . . . . . . . . . . . . . . 288
7.4 Discrete-Time LTI Systems with Periodic Input and Output Pairs 293
7.4.1 Eigen-functions, Eigenvalues and Transfer Functions
of a Discrete-Time LTI Systems . . . . . . . . . . . . 293
7.4.2 Relationship Between the Fourier Series of Periodic
Input and Output Pairs of Discrete-Time LTI Systems 295
7.5 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
xi
8.9.2 Region of Convergence in Laplace Transforms . . . . 361
8.10 Inverse of Laplace Transform . . . . . . . . . . . . . . . . . . . . 367
8.11 Continuous Time Linear Time Invariant Systems in Laplace Do-
main . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
8.11.1 Eigenvalues and Transfer Functions in s-Domain . . 373
8.12 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
xii
10.0.2 Filtering the Aperiodic Signals by Frequency Response 480
10.1 Frequency Ranges of Frequency Response . . . . . . . . . . . . . 482
10.2 Filtering with LTI Systems . . . . . . . . . . . . . . . . . . . . . . 483
10.3 Ideal Filters For Discrete Time and Continuous time LTI systems 484
10.3.1 Ideal Low Pass Filters . . . . . . . . . . . . . . . . . . 485
10.3.2 Ideal High Pass Filters . . . . . . . . . . . . . . . . . 486
10.3.3 Ideal Band Pass and Band Reject Filters . . . . . . . 488
10.4 Discrete Time Real Filters . . . . . . . . . . . . . . . . . . . . . 498
10.4.1 Discrete Time Low Pass and High Pass Real Filters 498
10.4.2 Band Stop Filters for Filtering Well-Defined Fre-
quency Bandwidths . . . . . . . . . . . . . . . . . . . 505
10.5 Continuous Time Real Filters . . . . . . . . . . . . . . . . . . . . 508
10.6 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 515
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516
xiii
12.5 Reconstruction of Discrete Time Signal from its Sampled Coun-
terpart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
12.6 Discrete-Time Decimation and Interpolation . . . . . . . . . . . 583
12.7 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 585
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
Index 591
Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593
xiv
Contributors
xv
Foreword
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vesti-
bulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris.
Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec
vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et ne-
tus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus
rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu
tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium
quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean
faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Cura-
bitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue
eu, accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim
rutrum.
Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi
auctor lorem non justo. Nam lacus libero, pretium at, lobortis vitae, ultricies
et, tellus. Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet
magna, vitae ornare odio metus a mi. Morbi ac orci et nisl hendrerit mollis.
Suspendisse ut massa. Cras nec ante. Pellentesque a nulla. Cum sociis natoque
penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam
tincidunt urna. Nulla ullamcorper vestibulum turpis. Pellentesque cursus luctus
mauris.
xvii
Preface
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vesti-
bulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris.
Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec
vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et ne-
tus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus
rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu
tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium
quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean
faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Cura-
bitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue
eu, accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim
rutrum.
place
date
xix
Acknowledgments
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vesti-
bulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris.
Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec
vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et ne-
tus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus
rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu
tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium
quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean
faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Cura-
bitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue
eu, accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim
rutrum.
Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi
auctor lorem non justo. Nam lacus libero, pretium at, lobortis vitae, ultricies
et, tellus. Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet
magna, vitae ornare odio metus a mi. Morbi ac orci et nisl hendrerit mollis.
Suspendisse ut massa. Cras nec ante. Pellentesque a nulla. Cum sociis natoque
penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam
tincidunt urna. Nulla ullamcorper vestibulum turpis. Pellentesque cursus luctus
mauris.
I. R. S.
xxi
Introduction
xxiii
xxiv
Chapter 1
Introduction to Systems and
Signals
1
Figure 1.1: Waterfall by M.C. Escher.1 The puzzle on the left consists of the
pieces of the entire lithograph, but have no meaning. In order to observe the
falling water of the watermill, we need to solve the puzzle.
In order to model a system using the holistic paradigm, we not only repre-
sent the attributes of its multiple components but also, formulate their inter-
relationships, considering the objective of the entire system. This approach
implicitly models the synergy created by a system.
The origin of the word signal is even older than that of systems, dating
back to XIII. century. It comes from the Latin word signale, which means
anything that serves to indicate or communicate information.
When we observe a signal we assume that there is a source system, which
generates the signal. Thus, signals can be considered as partial information
about the systems. In most cases, systems can be modeled and represented
by a collection of subsystems. The interrelations among the subsystems of
a system can be modeled by the received input signal(s) and the generated
output signal(s), i.e. signals, of each subsystem.
In summary, the response of a system under a specific set of input signals
1
https://mcescher.com/gallery/impossible-constructions/#iLightbox[gallery image 1]/5
2
provides information about the properties of systems. Signals describe the in-
terrelations among the parts of a system. Loosely speaking, signals are the
measurements of our varying observations about a system and/or its parts.
Modeling the Brain Networks from the Brain Signals. fMRI (functional
Magnetic Resonance Imaging) technique records the brain signals, which indi-
rectly measure the activities in the anatomical regions. It is possible to model
and analyze the cognitive processes, such as vision, speech, memory, etc., of
the human brain from the fMRI signals.
Representing brain activities by networks is crucial to understanding vari-
ous cognitive states. It is possible to extract brain networks from the functional
Magnetic Resonance Images (fMRI) recorded while the subjects perform a pre-
defined cognitive task. Figure 1.3 shows two brain networks for planning and
execution phases while the subject solves a complex problem. The suggested
3
Figure 1.2: LIDAR image of the Oakbrook Mall, Oakbrook, IL.2
Figure 1.3: Visualizing anatomical regions during both the planning and exe-
cution phases while the selected subject solves a complex problem. 3 .
2
https://flic.kr/p/bzUU32
3
F.T. Yarman Vural, G.G Değirmendereli: 25th International Conference on Pattern
Recognition (ICPR), 2020
4
An example: speech synthesis from neural decod-
ing of spoken sentences @ https://384book.net/
WATCH v0103
4
C. Senaras, M. Ozay, F.T Yarman Vural: IEEE Journal of Selected Topics in Applied
Earth Observations and Remote Sensing, vol. 6, issue 3, pp. 1295-1304, 2013)
5
1.2. Relationship Between Signals and
Systems
The above brief descriptions and examples of signals and systems show that
there is a remarkable relationship between the signals and the underlying sys-
tem, which generates the signal. Philosophically, one may consider the signals
as the manifestation of systems. We, humans, can perceive the the physical
world through these manifestations. Heraclitus of Ephesus summarizes this
view by his famous saying:
τα παντα ῥεῖ (ta panta rhei),
which translates to English as,
All flows!
Almost 2500 years ago, Heraclitus claimed that everything changes. Since
then, as we study the nature, we discover some invariant laws, which lie behind
the changes. Although we can only perceive the world of flux, these invariant
laws govern our changing observations. In other words, we can only perceive
variances, generated by the invariant laws, which govern the natural systems.
Our aim is to find these invariant laws, manifested through our varying obser-
vations.
To analyze and understand a natural system or design and implement a
human-made system, we need rigorous mathematical representations of signals,
which correspond to our varying observations. Based on these observations, we
can model the invariant rules of a system, which administers a set of prescribed
tasks.
Motivating Question: How can we analyze and understand the laws
that govern the natural systems? How can we design a human-made system to
achieve a specific goal?
The answers to these questions require the mathematical representation
of systems and/or their subsystems. To follow the holistic approach, we also
need the mathematical representation of signals, which describe interrelations
among the subsystems and the interaction between a system with its environ-
ment.
6
x(t) Equations / Algorithms y(t)
x : D → R, (1.1)
where D is the domain set and R is the range set.Therefore, a function is
represented by a triplet,
7
1.3.2. Types of Signals
The elements of the domain and range sets define the type of the signals. The
domain and range sets may consist of multi-dimensional vectors, with real,
complex or integer-valued entries. In other words, the domain of the function,
x, can be an m-dimensional vector with entries, defined over the set of real
numbers, integer numbers, or complex numbers,
d ∈ Rm or d ∈ Im or d ∈ Cm , (1.3)
respectively. Note that, the sets, Rm and Cm form a vector space over the
field of real numbers and complex numbers, respectively. However, the set of
integers, Im is not closed under scalar multiplication, thus it is not a vector
space.
Similarly, the range of a function can be defined as an n-dimensional vector,
with entries defined over the set of real numbers, integer numbers and complex
numbers,
r ∈ Rn or r ∈ In or r ∈ Cn , (1.4)
respectively.
When the dimension of the domain, m > 1, the function, x, is called a
multivariate function. For m = 1, the function, x, is called a univariate
function.
In this book, we focus on univariate functions, where the domain variable
is either real or integer-valued scalar time measures. When the domain
variable is real, we indicate the time measure by t ∈ R and the corresponding
function by x(t). When the domain variable is integer-valued, we indicate the
time measure by n ∈ I and the corresponding function by x[n]. The elements
of the range can also be real, complex, or integer-valued. Depending on the
elements of the domain and range, we define the following types of signals.
1) Continuous-Time Signals: Continuous-time signals are represented by
continuous functions, where both the domain, t and the range, x(t), consists
of real numbers, i.e.,
t ∈ R, x(t) ∈ R. (1.5)
As an example, a continuous-time sinusoidal signal is represented by the
following function:
8
x(t)
A
0 t
π 2π
ω0 ω0
Note that the range of the sinusoidal function is bounded by its amplitude,
i.e., −A < x(t) < A, where the amplitude, A ∈ R, is a finite number. The
signal, represented by the above sinusoidal function repeats itself at every
time instance, T = 2π/ω0 , where T is called period.
2) Discrete-Time Signals: Discrete-time signals are represented by discrete
functions, where the domain variable, n, is an integer number and range,
x[n], is a real number, i.e.,
n ∈ I, x[n] ∈ R. (1.7)
As an example, a discrete-time sinusoidal signal can be represented by the
following function:
9
x[n]
1
0.5
n
10 30 50
-0.5
-1
20
15
°C
10
0
1 2 3 4 5 6 7 8 9 10 11 12
months
10
x[t]
7
6
5
4
3
2
1
1 2 3 4 5 6 7 8 9 10 11 12 13 t
Figure 1.9: The digital signal (black) is obtained by quantizing the range of a
continuous time signal (red) into 8 quantization levels and that of the domain
into 13 levels.
functions. Thus, both the domain and range of the digital signals consist of
integer numbers, i.e., n ∈ I and x[n] ∈ I, i.e.,
d ∈ I, r ∈ I. (1.9)
Digital signals can be obtained by quantizing the domain and range of
a continuous-time or the range of the discrete-time signal. On the other
hand, some signals are inherently digital. As an example, we can measure
the existence and non-existence of an event on a timely basis by a binary
function, such as daily records of rain and no rain. As another example,
Figure 1.9 shows a digital signal obtained by quantizing the domain and the
range of a continuous-time signal into 8 quantization levels, in the interval
[0, 7].
There is a bridge, which relates the continuous-time signals to discrete-time
signals and/or digital signals, through the famous Sampling Theorem of
Claude Shannon. This bridge will be established in the last two chapters
of this book.
The modern information and communication technology is based on digital
signals and systems. Even if a signal is inherently continuous, it is digi-
tized prior to processing by a digital computing device. After the process
is completed, the digital signal may be converted to its continuous-time
counterpart, if necessary.
11
1.3.3. Energy of a Signal
An important characteristic of signals is the concept of energy. In physics,
energy is a quantitative property, which is transferred to an object to perform
a work. Although the energy of a signal is somewhat related to the energy of
a physical system, there is no one-to-one correspondence between the energy
in physics and the definitions given below. However, it is customary to use the
term energy in many fields, including signal processing.
The energy of a signal provides us with useful information about the math-
ematical tractability and realizability of the signals and systems, during the
design and implementation phases.
respectively.
The above definitions reveal that the energy of a signal is the area under
the squared magnitude of the corresponding function. The amount of this area
gives us important information about the characteristics of a signal. If the area
is large, then we suppose that the signal consists of very large amplitudes. In
some cases, the area may approach to infinity, which makes the signal mathe-
matically intractable and physically unrealizable in real-life applications.
Definition 1.3: A signal x(·) is called an energy signal if its total energy
12
is finite, i.e., E(x) < ∞.
respectively.
Note that, when both the power and energy of a signal are infinite, the
signal is neither a power nor an energy signal. In practice, a power signal
cannot exist in the real world, because it would require a power source that
operates for an infinite amount of time.
Question: Show that the periodic signals are power signals and the aperi-
odic signals, which are nonzero in a finite interval are energy signals.
13
x(t)
t
0 6
Figure 1.10: The plot of a continuous-time pulse signal which is nonzero in the
interval [0, 6].
14
x[n]
1
n
0 1 2 3 4 5 6
Figure 1.11: The plot of a discrete-time pulse signal, which is nonzero in the
interval [0, 6].
(
1 for 0 ≤ n ≤ 6,
x[n] = (1.18)
0 otherwise.
Let us define the operations on the time parameter of signals and apply
these operations to the above continuous and discrete-time pulse functions,
x(t) and x[n].
15
x(t − T ) x[n − N ]
1 1
t n
T T +6 N N +6
Figure 1.12: Shift of a continuous-time pulse signal, x(t), given in Figure 1.10
by the amount of T > 0 (left) and shift of a discrete-time pulse signal, x[n],
given in Figure 1.11 by the amount of N > 0 (right).
16
x(−t) x[−n]
1 1
t n
−6 0 −6 0
Similarly, the time reverse operation of a discrete-time signal changes the sign
of the time variable n by n′ = −n, as follows:
(
1 for 0 ≤ −n ≤ 6,
x[−n] = (1.22)
0 otherwise.
Note that time reverse operation flips the signal with respect to the ordinate
axis (Figure 1.13).
Question: Suppose that we are given a movie video, what happens to this
video, when we play it after the time reverse operation?
Time reverse operation makes the end of the signal, the start of the signal.
In practice, there is no negative time. Thus the reversed signal cannot start
at t = −6. Hypothetically, if we assume that the movie starts at t = −6,
we observe that the movie starts from the end and progresses towards the
beginning, like Benjamin Button.
17
amount of a can be given as follows;
(
1 for 0 ≤ an ≤ 6,
x[an] = (1.24)
0 otherwise.
Time scale operation, either squishes or stretches a signal, depending on the
value of the multiplicative factor, a. For a > 1, the signal becomes narrower,
whereas for 0 < a < 1 it gets wider.
Let us investigate the effect of the parameter a to the scaling process, in
the following exercises.
Exercise 1.1: Given the continuous and discrete-time signals of Figure 1.10
and Figure 1.11, find and plot x(2t) and x[2n].
Note that, in the discrete-time case, when a > 1, the scaled signal, x[an]
captures the original signal x[n], at only each an time instance. Thus, we
throw away the samples of the original signal between an and a[n − 1] time
instances, for all n. This operation is called decimation.
Exercise 1.2: Decimation: Given the discrete signal of Figure 1.11, find
and plot x[4n].
18
x(2t) x[2n]
1
1
t n
0 3 0 1 2 3
x[4n]
1
n
0 1
Solution: Let us evaluate the function x[4n] for all possible values of n.
For n < 0 → x[4n] = x[0] = 0
For n = 0 → x[4n] = x[0] = 1
For n = 1 → x[4n] = x[4] = 1
For n ≥ 2 → x[n] = 0.
Exercise 1.3: Given the continuous-time signal of Figure 1.10, find and plot
x(t/2).
19
x(t/2) x[n/2]
1 1
t n
0 12 0 6 12
Figure 1.16: Time scaled continuous and discrete-time pulse signals, given in
Figure 1.10 and Figure 1.11, for a = 12 . Notice that in the continuous-time case,
we simply stretch the function. On the other hand, in discrete-time cases, we
assign 0 values for each inserted time point. This operation is called expansion.
As it can be seen from the above example, the values of the original signal,
x[n], are placed at every an time instance in the scaled signal, x[an]. However,
when a < 1, we stretch the signal by inserting extra time instances between
the time instances of the original signal. It is customary to put zero values to
the inserted time instances. This operation is called expansion. The plot of
x[n/2] can be found in Figure 1.16 (right).
In some practical applications, it is possible to estimate nonzero values
for the inserted time instances of the stretched function x[an], using the past
and future known values of the inserted points. For example, we can take the
average of the closest known values of an inserted time sample and assign it
the average. This process is called interpolation.
20
x(2t − 3)
t
3/2 9/2
Figure 1.17: The plot of shifted and squished continuous-time signal, x(2t − 3).
21
x(t) x(2t − 3)
3 3
t t
3 3/2 3
(
1 for 2 ≤ n ≤ 4,
x[2n − 3] = (1.31)
0 otherwise.
Note that the function, x[2n − 3], is undefined for non-integer values of the
domain, defined by [2n − 3]. In order to satisfy the inequality constraints, we
have to round or truncate the upper and lower bounds of the domain of the
function to integer values.
A practical approach for the combined time shit and scale operation is to
shift the function first, then apply the scaling operation to the shifted signal.
Thus, we shift the function x(t) by the amount of b = 3 and then scale the
shifted function x(t − 3) by the amount of a = 2. The shifted and scaled signal
is depicted in Figure 1.18.
22
x[n] x[2n − 3]
3 3
1 1
n n
−1 0 1 2 3 4 −1 0 1 2 3 4
As in the continuous-time case, first, we shift the signal to the right by the
amount of b = 3, then apply the scaling operation to the shifted signal by the
amount of a = 2. However, the lower bound of the domain is not integer valued,
and the signal is not defined for x[3/2]. Thus, we round the lower bound of the
domain of the function to the nearest integer and define the non-zero interval
in 2 ≤ n ≤ 3 as follows:
(
2n − 3 for 2 ≤ n ≤ 3,
x[2n − 3] = (1.36)
0 otherwise.
This fact can be observed from Figure 1.19.
23
2 for n = −2,
−1 for n = −1,
x[n] = −3 for n = 1, (1.37)
4 for n = 2,
0 otherwise.
Then, we scale the shifted signal x[n − 4] by a = 3 to obtain the shifted and
scaled signal, x[3n − 4]. For this purpose, we replace n by n′ = 3n in the above
equation. Since the non-integer values of n is not defined, for 3n = 2 and
3n = 5, the values of x[3n − 4] disappear at n = 2/3 and n = 5/3. Finally, we
get the following shifted and squished signal:
−1 for n = 1
x[3n − 4] = 4 for n = 2 (1.39)
0 otherwise.
The plots of the original function, x[n], its shifted version, x[n − 4], and
then the scaled version, x[3n − 4] are shown in Figure 1.20. Note that, scaling
the function by a factor of a = 3 squishes the function, omitting the values of
the original function at n = −2 and n = 1.
The above definitions and examples reveal that the operations on the time
parameter of a signal requires a little care for the discrete-time functions, since
we deal with integer arithmetic in the time variable, n.
Question: Suppose that we apply scaling and shifting processes at the
same time to a movie video, represented by x[n]. What happens to the video
for x[2n − 1] and for x[0.5n + 1]?
For the signal, x[2n − 1], the movie starts with an hour delay and plays
twice as fast as the original. For the signal, x[0.5n + 1], the movie starts an
hour early and plays twice as slow as the original.
24
4 x[n] 4 x[n − 4]
2 2
−1 1 n n
−2 2 0 2 4 6
−3 −3
(a) (b)
4 x[3n − 4]
n
0 2 4
−1
(c)
Figure 1.20: Plots of (a) x[n], (b) x[n − 4] and (c) x[3n − 4] in Exercise 1.7.
25
Explore operations on the time variable of signals
@ https://384book.net/i0103
INTERACTIVE
26
Figure 1.21: Snakes by the Dutch artist M.C.Escher, which depicts rotational
symmetry.5
Figure 1.22: A Penrose tiling with five-fold symmetrical two different rhombi.6
5
https://mcescher.com/gallery/most-popular/#iLightbox[gallery image 1]/30
6
https://www.nist.gov/image/penrose-tiling
27
Figure 1.23: Symmetric tiling Alhambra Palace.7
7
https://www.alhambra.info/img/interiores/4.jpg
28
representation theory. In this book, we deal with signals with specific forms
of symmetry. First, we study two crucial classes of functions, namely,
1. signals represented by periodic functions,
2. signals represented by even and odd functions.
Then, in the next chapter, we study the functions, which can be considered
as the basic building blocks of a large class of functions. Interestingly, the
symmetry functions enable us to represent a wide range of signals by rigorous
mathematical models, in a compact way, as we shall see throughout this book.
Let us briefly study the basic properties of periodic signals, and even and
odd signals in the following subsections.
29
x(t)
... ...
t
−2T −T 0 T T
Based on the fundamental period, T0 , there are two more measures for
periodic signals:
• Angular Frequency: ω0 = 2π
T0 , measured by radians/second.
• Fundamental Frequency: f0 = T10 , measured by Hertz (cycle/second).
Note that the parameter, ω0 , which multiplies the time variable corresponds
to angular frequency. We can, then, obtain the fundamental frequency, T0 by
using the relationship between the angular frequency and period. For ω0 = 1,
the period of the cosine function is 2π.
Exercise 1.9: Plot the following signal and find its fundamental period:
30
x(t)
t
K/w0 K/w0 + t
Figure 1.25: The continuous-time cosine signal, x(t) = A cos(ω0 t − K), with
amplitude A and period T = 2π/ω0 . For A = 1 and K = 0 the plot is reduced
to x(t) = cos ω0 t of Exercise 1.8.
31
x[n]
.... ....
n
signal,
Exercise 1.11: Is the below signal periodic? If yes, find the period.
6π
x[n] = sin( n + 1). (1.48)
7
Solution: We need to find the smallest integer value, N0 , which satisfies the
32
x[n]
... ...
following equation:
6π 6π 6π
x[n] = x[n + N0 ] = sin( (n + N0 ) + 1) = sin( n + N0 + 1). (1.49)
7 7 7
6π
Here, 7 N0 must be equal to 2πm, where m is the smallest integer, satisfying,
6π 7m
N0 = 2πm, N0 = . (1.50)
7 3
The smallest integer, which satisfies the above equality is m = 3. Then, the
fundamental period is N0 = 7. Therefore, this signal is periodic.
33
x(t)
0 t
Figure 1.28: An even signal has reflection symmetry about the vertical axis. In
other words, even functions are invariant to reflection, when they are flipped
around the vertical axis.
x(t)
Figure 1.29: An odd signal has rotation symmetry about the origin. In other
words, odd functions are invariant to rotation, when they are rotated 1800
around the origin.
34
x(t) = 2t2
x(t) = t2
Solution: Replacing t by −t, we get, x(−t) = at2 = x(t). Plots are given in
Figure 1.30.
Exercise 1.14: Can a function be both even and odd? In other words, is
there a function, which is symmetric with respect to both the vertical axis and
the origin? If yes, give an example.
Solution: A function, x(t) is even and odd if it satisfies both of the following
equalities:
x(t) = x(−t) = −x(−t). (1.53)
The only function, which satisfies the above equalities is x(t) = 0. In other
35
x(t) = 2/t
x(t) = 1/t
t
Proposition: Any signal can be represented by its even and odd compo-
nents, as follows:
Solution: Even and odd parts of x(t) can be found using Equations (1.55)
and (1.56). These are shown in Figure 1.33.
Exercise 1.16: Find and plot the even and odd part of the following func-
tion:
36
x(t)
t
1 3 5 7
Even{x(t)} Odd{x(t)}
1 1
t t
−7 −5 −3 −1 1 3 5 7 −7 −5 −3 −1 1 3 5 7
Figure 1.33: The odd and even parts of x(t) of Figure 1.32.
37
x(t) Even{x(t)}
20
20
10
10
−2 0 2 t
−2 0 2 t
−10 −10
−20 −20
Odd{x(t)}
20
10
−2 0 2 t
−10
−20
Figure 1.34: Plot of x(t) = t3 − t + 1, and its even and odd parts.
x(t) = t3 − t + 1 (1.57)
Solution: Using the definition of even and odd parts of functions, given above,
we find Even{x(t)} = 1 and Odd{x(t)} = t3 − t. Plots are given in Figure 1.34.
The above definitions of even and odd functions can be trivially extended
to the discrete-time signals. Mathematically, a discrete-time signal is even if
38
Decompose signals into their even and odd parts
@ https://384book.net/i0104
INTERACTIVE
39
y
x + yj
r y
θ
x
x
Figure 1.35: Complex Plane, where the real numbers are augmented by imag-
inary numbers.
z = x + jy, (1.61)
where, x = Re{z}, is called the real part and y = Im{z} is called the imag-
inary part of the complex number z. Note that complex numbers form a
two-dimensional vector space spanned by the standard basis vectors,
Since one of the basis vectors has the imaginary number, basis vectors span
the complex plane. The complex plane C reduces to the space of real numbers,
R, for ∀y = Im{z} = 0. It reduces to the space of purely imaginary numbers,
I, for ∀x = Re{z} = 0. The complex plane is illustrated in Figure 1.35.
Arithmetic operations, such as addition, subtraction, division and multi-
plication of complex numbers are defined by considering the fact that the
imaginary number has a square,
40
j 2 = −1. (1.64)
Reflection symmetry with respect to the real axis is called the complex
conjugate of the complex number z,
z ∗ = x − jy. (1.65)
Note that the multiplication of a complex number with its complex conju-
gate gives a real number,
z · z ∗ = x2 + y 2 , (1.66)
corresponding to the square of the Euclidean norm, which is measured by the
length of the vector z.
Solution:
a) We apply vector addition in two-dimensional space of complex numbers, as
follows:
z1 + z2 = 3 + 5j. (1.68)
Geometrically speaking, the addition operation translates one of the vectors
by the amount of the other vector. Note that the addition operation is
commutative.
b) Multiplication operation is associative and distributive, resulting in
41
Im
−4 + 5j 3 + 5j
8 1
13 + 13 j Re
1 + 2j (1 + 2j)(2 − 3j) 8 1
z1 ÷ z2 = = = + j. (1.70)
2 + 3j 13 13 13
The plots of these complex numbers can be found in Figure 1.36.
42
compute the compound interest of a bank account from the following series,
n ∞
1 X 1
e = lim 1+ = ≈ 2.71828182.... (1.74)
n→∞ n n!
n=0
θ2 θ4 θ6 θ3 θ5 θ7
cos θ + j sin θ = (1 − + − + ....) + j(θ − + − + ....). (1.77)
2! 4! 6! 3 5! 7!
By a simple arrangement, we show that the right hand side of the above
equations are the same. Therefore,
cos θ + j sin θ
f (θ) = . (1.79)
ejθ
Showing that f (θ) = 1 would prove the Euler’s formula. Let us take the deriva-
tive of f (θ):
43
f ′ (θ) = −je−jθ (cos θ + j sin θ) + e−jθ (− sin θ + j cos θ) (1.80)
= −je−jθ cos θ + je−jθ cos θ − j 2 e−jθ sin θ − e−jθ sin θ = 0. (1.81)
z = rejθ , (1.83)
where r ∈ R is the magnitude and 0 < θ < 2π is the phase of the complex
number. The relationship between the two coordinate systems is established
by
Im{z}
r 2 = x2 + y 2 and θ = arctan . (1.85)
Re{z}
Exercise 1.18: Consider the following complex numbers, given in polar co-
ordinates,
44
c) z1 ÷ z2
Solution:
a) For addition operation in complex arithmetic, we need to use Cartesian
coordinate representation. Using the Euler’s formula, we get
Im{z}
θ = arctan = arctan(−2/2) = −π/4. (1.90)
Re{z}
Thus, the polar representation becomes,
√
z1 + z2 = 2 2e−jπ/4 . (1.91)
Recall from the Cartesian representation of complex numbers, the addition
operation translates the complex numbers with respect to the other one.
b) For the multiplication of complex numbers in the polar coordinate system,
we multiply the magnitudes and add the phases in the exponent, as follows;
45
geometric interpretations.
z = ejπ/2 + j. (1.94)
X : z → X(z), (1.96)
where the domain of the function is the complex variable z ∈ C and the range
is X(z) ∈ C.
Then, a complex function can be represented by its real and imaginary
parts, in Cartesian Coordinate system, as follows:
Im{X(z)}
Θ = ∠X(z) = tan−1 , (1.100)
Re{X(z)}
respectively.
Arithmetic operations on complex functions are trivial extensions of the
complex numbers, as depicted in the following exercises.
46
Exercise 1.20: Given the following complex functions, in Cartesian coordi-
nate system,
Solution:
a) We apply vector addition in the Cartesian form of the functions in two-
dimensional space of complex numbers, as follows:
Re{X(z)} = 2 − z 2 (1.104)
and the imaginary part
Im{X(z)} = 3z (1.105)
of X(z) are functions of the complex variable z.
c) For division, we simply multiply both divider and the dividend with the
complex conjugate of the divider. This simple trick makes the divider a
real number, reducing the vector to vector division to a scalar multipli-
cation of a vector, as follows:
1 + jz (1 + jz)(2 − jz) 2 + z2 1
X1 (z) ÷ X2 (z) = = 2 2
= 2
+ jz.
2 + jz 4−j z 4+z 4 + z2
(1.106)
47
find the results of the following arithmetic operations:
a) X1 (z) + X2 (z),
b) X1 (z) · X2 (z),
c) X1 (z) ÷ X2 (z).
sin πz
∠(X1 (z) + X2 (z)) = tan−1 . (1.112)
cos πz − z
Then, the polar representation of the addition becomes
q
−1 sin πz
X1 (z) + X2 (z) = (cos πz − z)2 + sin2 πzej tan cos πz−z . (1.113)
48
The simple examples above show that the arithmetic operations on complex
functions result in real and imaginary parts in the Cartesian coordinate system
and result in the magnitude and phase in polar coordinate system, as functions
of a complex variable, z = x + jy = |z|ejθ , where the relationship between the
polar and Cartesian representation is given by
49
and odd signals have rotation symmetry. Functions, which have some type of
symmetry, can be used to represent asymmetric signals.
Some signals have the domain and range of complex numbers. In order to
represent this type of signals, we use complex functions, where the domain and
range is represented by two dimensional complex numbers. Complex functions
are very powerful mathematical objects in solving many real-life problems,
such as designing digital systems.
50
Problems
t
−1 0 1 2 3 4 5
Figure P1.1
a) Find the analytical expression of this function.
b) Find and plot the following functions:
i) 3x(4t + 8)
ii) x(−4t + 8)
iii) x(−4t − 8)
t
−1 0 1 2 3 4 5
Figure P1.2
a) Find an analytical expression for this figure.
t
b) Find and plot x( + 1).
2
c) Find and plot x(2t + 1).
51
x[n]
1
−5 −4 −2 −1 0 4 5
n
−3 1 2 3
−1
Figure P1.3
a) Find an plot x[1 − n].
b) Find and plot x[2n + 2].
c) Find and plot y[n] = x[2n + 2] + x[1 − n].
4. Consider the plot of the odd signal x(t), given in Figure P1.4.
a) Find an analytical expression for this signal using the symmetry property.
b) Find and plot y(t) = 2x(2t − 3). Is this an odd function?
c) Find and plot y(t) = 2x(2t). Is this an odd function?
x(t)
1
2
t
−4 −2 0 4
−1
−2
Figure P1.4.
52
x(t)
−2 1 2
0
t
−1
−1
Figure P1.5
6. A discrete-time even signal x[n] is shown in Figure P1.6. Find the analytical
expression for each of the following signals and plot them all.
a) Find an analytical expression of this signal using the symmetry property.
b) y[n] = x[2 − n]
c) y[n] = x[ 21 n + 1]
1 1 1
... −3 −2 2 3 ... n
−1 0 1
− 12 − 21
−1 −1
Figure P1.6
7. Determine whether or not the following signals are periodic. Determine the
fundamental period of the periodic functions.
π
a) x1 [n] = cos(5 n)
2
b) x2 [n] = sin(5n)
π
c) x3 (t) = 5 sin(4t + ).
3
sin((m + 21 )t)
x(t) = ,
2 sin( 2t )
53
where m is a natural number. Find the fundamental period of this signal.
9. Find and plot the even and odd parts of the continuous-time signal given
in Figure P1.8.
x(t)
−4 −3 −2 −1 1 2 3 4
t
−1
Figure P1.8
54
π
a) x(t) = cos(4t + ).
9
π
b) x[n] = 2 sin[ n].
3
14. Consider the following complex number:
√ √
2 + 2j
z= √ .
2 + 2 3j
z = e5j + e7j .
17. Solve the following and show all solution steps in detail. Simplify your results
as much as possible to the format: a + jb, where a and b are real numbers.
1 1 1
a) z = − j ⇒ = ?
4 3 z
b) z1 = 4 − 3j,
√ z2 = −j ⇒ |z1 · z̄2 + z2 · z̄1 | = ?
(1 + 3j)2 (2 − j)
c) z = ⇒ |z| = ?
(1 + 2j)3
18. Evaluate the following integrals and show all solution steps in detail.
√ √
(a) t2 e−( 2+ 2i)t dt
R
π π
(b) e−t cos( t + ) dt
R
4 6
55
19. Find the real and imaginary parts of the following complex functions, where
z = x + jy.
a) X(z) = cos z
b) X(z) = (z + 1) sin z
c) X(z) = z 3 + 5z − 1
20. Find the magnitude and phase of the following complex functions, where
z = |z|ejθ .
a) X(z) = sin z
b) X(z) = z 2 cos z
c)X(z) = ejz + e3jz
22. Write a computer program to plot the even and odd parts of a discrete-
time signal x[n]. Your program takes the signal and the starting index(si )
of the signal as input. For example, let’s say x[n] = [1, 6, 8, 9] and si = 3,
then x[3] = 1, x[4] = 6, x[5] = 8, x[6] = 9 and x[n] = 0 for other n values.
You should add your codes and the outputs for the given 3 input files
(sine part a.csv8 , shifted sawtooth part a.csv9 , chirp part a.csv10 ) to your
solution. The first element in the files is the starting index and remaining
ones are the elements of the signal.
23. Write a computer program to plot the shifted and scaled version x[an + b] of
a discrete-time signal x[n]. Your program takes the signal and the starting
index(si ) of the signal as input. Differently from part a, you should also
take a and b values as input.
8
https://384book.net/resources/sine part a.csv
9
https://384book.net/resources/shifted sawtooth part a.csv
10
https://384book.net/resources/chirp part a.csv
56
You should add your codes and the outputs for the given 3 input files
(sine part b.csv11 , shifted sawtooth part b.csv12 , chirp part b.csv13 ) to your
solution. The first element in the files is the starting index, the second ele-
ment is the value of a, the third element is the value of b and the remaining
ones are the elements of the signal.
You should write your code in Python and no library is allowed other than
matplotlib.pyplot.
11
https://384book.net/resources/sine part b.csv
12
https://384book.net/resources/shifted sawtooth part b.csv
13
https://384book.net/resources/chirp part b.csv
57
58
Chapter 2
Basic Building Blocks of
Signals
59
functions. These functions were symmetric with respect to translation, reflec-
tion, and rotation, respectively. In this section, we shall investigate additional
basic functions, namely,
1. exponential functions,
2. the unit impulse function,
3. the unit step function,
Later in this book, we shall see that linear combinations of the basic func-
tions can be used to represent a large class of signals.
60
2.2.1. Real Exponential Function
A real exponential function has real parameters, C ∈ R and α ∈ R. Real
exponential functions can be used to represent continuous-time or discrete
time signals.
x(t) x(t)
C C
t t
Figure 2.1: Continuous time exponential, x(t) = Ceαt , (left) for α > 0 and
(right) α < 0.
x(t) = et . (2.4)
The inverse of the natural exponential function is called the natural log-
arithm, which provides the variable t, as follows,
t = ln x(t). (2.5)
The natural exponential function has special importance in mathematics. It
is the only function whose derivative and integral are the same as the function
itself, as formally stated in the following Lemma.
det
= et , (2.6)
dt
and the integral of the real exponential in (0, t) is itself:
Z t
et dt = et . (2.7)
0
61
Proof. In order to find the derivative of et , we simply use the definition
of the derivative,
det et+h − et et eh − et eh − 1
= lim = lim = et lim . (2.8)
dt h→0 h h→0 h h→0 h
The limit term in the right hand side of Equation (2.8) is equal to 1,
because;
lim (eh − 1) = lim h = 0. (2.9)
h→0 h→0
Thus,
det
= et . (2.10)
dt
To show that the integral of the real exponential is itself, we simply take the
derivative of both sides of Equation (2.7) with respect to t. The fundamental
theorem of calculus gives us
d t t
Z
e dt = et , (2.11)
dt 0
which is equivalent to the derivative of the right-hand side of Equation (2.7).□
The above Lemmas show that continuous time real exponentials, with base
e are symmetric functions with respect to the derivative and integration oper-
ations.
x(t) = β t . (2.12)
The inverse of the general exponential function is defined by base-β loga-
rithm, as follows;
62
Proof. Note that for any real number a ∈ R,
a = eln(a) . (2.15)
Thus,
t
β t = eln(β ) = e(t ln β)
. (2.16)
Then, for any A and β,
Exercise 2.1: Show that the following algebraic properties hold for the real
exponential function:
a) eαt+β = eαt eβ
b) e−t = 1/et
αt
c) eαt−β = eeβ
d) eαt = (et )α , ∀α is rational.
Solution:
a) Take the logarithm of the left hand side of the equation,
eαt+β = eαt eβ .
b) Note that the 0th power of any real number is 1. Then,
e0 = 1 = e(t−t) = et e−t .
d) For α = n is integer,
63
x[n] x[n]
n n
(a) (b)
x[n] x[n]
(c) (d)
Figure 2.2: Discrete time real exponential function for (a) β > 1, (b) 0 < β < 1,
(c) −1 < β < 0, (d) β < −1.
64
- For β < −1, it alternates, while its absolute value increases monotonically.
When we work with the discrete time exponential functions, we always keep
in mind that the time variable n takes only integer values. For example, the
logarithm of the discrete time exponential function, x[n] = β n ,
α = a + jω0 , (2.22)
then we call them complex exponential functions. Adding an extra imagi-
nary dimension to the parameter, α, at the exponent change the behaviour of
the exponential function, as we shall see in the next section.
In the context of this book, we focus on a special form of complex functions,
where α is purely imaginary. In other words, a = 0.
65
signals in function spaces.
Let us prove the periodicity property of continuous time complex exponen-
tial in the following Lemma.
Proof. Let us split the complex exponential on the right-hand side of the
equation into two expressions;
ejω0 T = 1. (2.27)
Using the Euler formula, we get,
2πk 2πk
ejω0 T = 1 = cos ω0 + j sin
ω0 . (2.30)
|ω0 | |ω0 |
When k is an integer, the imaginary part of the above equation cancels
and that of the real part becomes 1. Thus, a complex exponential function is
periodic, with the fundamental period,
2π
T = . (2.31)
|ω0 |
66
Figure 2.3: An example of a painting by Robie Benve, “Japanese Maple Tree”
created with the support of Color Harmony Theory. The fundamental color is
red. The harmonics are the complementary color pairs.8
z = ejω0 , (2.32)
moves on a unit circle with radius r = 1, as we change the angle, ω0 , in the
8
https://www.artranked.com/topic/Simple+Japanese#&gid=1&pid=34
67
y
ejθ = cos(θ) + j sin(θ)
sin(θ)
1
θ
cos(θ)
1
x
68
x y
1 j
2π θ 2π θ
y
x
j 1
69
set of all signals,
Solution:
a) Use the Euler formula, which relates the complex exponential to the trigono-
metric functions,
70
1
x(t) = (cos ω0 t + j sin
0 t + cos ω0 t −
ω j sin
ω
0 t) = cos ω0 t. (2.42)
2
b) Angular frequency is ω0 and the fundamental period is T0 = 2π/ω0 .
c) Recall that the k th harmonic of x(t) is defined as,
1
xk (t) = (ejkω0 t + e−jkω0 t ). (2.43)
2
Superposition of the first two harmonics of x(t) for ω0 = 1 is
x1 (t) + x2 (t)
1
t
0
−2π −π π 2π
−1
Figure 2.6: Plot of the superposition of the first two harmonics of x(t).
Exercise 2.3: Show that trigonometric functions, x(t) = cos ω0 t and x(t) =
sin ω0 t, can be represented in terms of the complex exponentials, ejω0 t .
ejω0 t + e−jω0 t
cos ω0 t = , (2.47)
2
71
ejω0 t − e−jω0 t
sin ω0 t = . (2.48)
2j
Note that, although sine and cosine functions are real functions, they can
be uniquely represented by the superposition of harmonically related complex
exponentials, for k = −1 and 1.
x(t) = C(t)ejθ(t) .
has the magnitude C(t) and the phase θ(t). Taking the average of the
exponents and defining the complex exponential with the average exponent,
we get,
x(t) = e3jω0 t (ejω0 t + e−jω0 t ) = (2 cos ω0 t)e3jω0 t .
Thus, the magnitude is C(t) = 2 cos ω0 t and the phase is θ(t) = 3ω0 t.
b) Recall that a complex function in Cartesian form is represented by,
x(t) = cos 2ω0 t + cos 4ω0 t + j(sin 2ω0 t + sin 4ω0 t).
Thus the real part is,
72
Most of the properties of the discrete time complex exponential functions
are very similar to that of the continuous time exponential functions, except
that n can only take integer values. This brings a serious constraint to the
fundamental period, N0 , which has to be an integer.
Euler formula, introduced in Chapter 1, is also applicable to discrete time
complex exponential functions to represent it in terms of trigonometric func-
tions:
ejω0 N = 1. (2.52)
To satisfy the periodicity property of the discrete time complex exponen-
tials, we need to find an integer period, N , satisfying ω0 N = 2kπ.
For the fundamental period, we need to find the smallest integer value k,
such that N0 = ω2π0 k is an integer.
73
N = 2kπ/π. (2.55)
For k = 1 the fundamental period is, N0 = 2. Yes, it is periodic!
Exercise 2.7: Find the fundamental period of the following discrete time
signals:
a) x[n] = e(π/3)n − e(π/4)n
b) x[n] = e(2π/3)n − e(π/4)n
Solution: a) The function x[n] has two components: x1 [n] = e(π/3)n and
x2 [n] = e(π/4)n . The fundamental period of x1 [n] is N1 = 6 and that of x2 [n]
is N2 = 8. The first component of x[n] repeats itself with period 6, and the
second component with 8. Then, the combined signal will repeat itself with
period N = 24, which is the least common multiple of 6 and 8.
b) As in part (a), x[n] has two components: x1 [n] = e(2π/3)n and x2 [n] = e(π/4)t .
The fundamental period of x1 [n] is N1 = 3 and that of x2 [n] is N2 = 8. This
time 8 is not integer multiple of 3. Thus, the fundamental period of x[n] is the
least common multiple of 3 and 8, which is N = 24.
74
(
1 for n = 0,
δ[n] = (2.56)
0 otherwise.
Discrete time unit impulse function has only one nonzero value at the origin,
which is equal to 1 (Figure 2.7).
δ[n]
n
0
Figure 2.7: Discrete time unit impulse function. We put a small dot at every
point to show that the height is either zero or finite value of 1, at n = 0.
x[n] = (n + 2)δ[n].
x[n] = 2δ[n].
x[n] = 0.
75
2.3.2. Continuous-Time Unit Impulse Function
Loosely speaking, a continuous time impulse function is a real valued function
with an infinite height and zero width and it integrates to one. Continuous time
impulse function can be simulated by a really big instantaneous explosion.
The formal definition of the continuous time unit impulse function requires
the concept of limit. First, we define a function, δ∆ (t) as,
(
1
for 0 < t < ∆,
δ∆ (t) = ∆ (2.58)
0 otherwise.
Note that the area under δ∆ (t) is equal to 1 :
Z ∞
δ∆ (t)dt = 1. (2.59)
−∞
δ∆ (t)
1
∆
t
0 ∆
Figure 2.8: The plot of δ∆ (t) function. The width of this function is ∆ and the
height is 1/∆.
Unit impulse function in continuous time is defined as the limit of the δ∆ (t)
function, as follows;
This function has a peculiar shape, with zero width and infinite height.
However, the area under this function is finite;
Z ∞
δ(τ )dτ = 1. (2.61)
−∞
76
δ(t)
t
0
Exercise 2.10: Plot the superposition of two shifted continuous time unit
impulse functions,
Solution:
x(t)
t
1 2
77
lim x(t)δ∆ (t) = lim x(0)δ∆ (t). (2.64)
∆→0 ∆→0
Thus,
x(t)δ(t) = x(0)δ(t). (2.65)
Similarly, we can show that,
Exercise 2.11: Find the value of the following continuous time function:
Z ∞
x(t) = (t + 2)δ(t)dt.
−∞
(t + 2)δ(t) = 2δ(t).
Thus,
Z ∞
x(t) = 2 δ(t)dt = 2. (2.67)
−∞
78
2.4. Unit Step Function
Unit step function is a real function, which is always 0 for negative values of
its argument and always 1 for the positive values of its argument.
1
...
Figure 2.11: The plot of the discrete time unit step function, u[n].
and
79
δ[n] = u[n] − u[n − 1]. (2.70)
The first equation reveals that the discrete time unit step function is noth-
ing but the superposition of the discrete time-shifted unit impulse functions
with equal weights, for all positive values of k. In other words, when we add the
shifted versions of unit impulse functions, δ[n], δ[n − 1], δ[n − 2], ..., we obtain
the unit step function (Figure 2.12).
δ[n]
δ[n − 1]
δ[n] + δ[n − 1]
n n n
0 0 1 0 1
Figure 2.12: Addition of the unit impulse and its shifted version, δ[n − 1]. It
is possible to generate the unit step function by adding the shifted impulse
functions, δ[n − k], for all k.
The second equation reveals that if we subtract the infinitely many impulses
of unit step function from its shifted version, they all cancel out and we simply
get the value of the unit step function at the origin, which is δ[n] (Figure 2.13).
δ[n]
u[n] u[n-1]
... − ... =
n n n
0 1 2 3 0 1 2 3 0
Figure 2.13: We can also generate the unit impulse function by subtracting the
shifted unit step function from the unit step function, δ[n] = u[n] − u[n − 1].
80
x[n]
n
−1 0 1 2 3
x[1]δ[n − 1]
Figure 2.14: A discrete time signal, which has non-zero values in the interval
−1 ≤ n ≤ 3.
(
x[k] for n = k (since δ[n − k] = 1 only when n = k),
x[n]δ[n − k] =
0 otherwise.
(2.71)
If we sum all the values of x[k], we get x[n],
∞
X
x[n] = x[k]δ[n − k]. (2.72)
k=−∞
The above equation reveals that we can represent any bounded discrete
time function, x[n], analytically by using the weighted summation of the shifted
impulse functions, δ[n − k], where the weights correspond to the amplitude of
the function at the point k.
Exercise 2.12: Find an analytical expression for the signal plotted in Figure
2.14.
Solution: This function does not have any closed-form representation. How-
ever, we can represent it by the superposition of the shifted impulse function,
3
X
x[n] = x[k]δ[n − k], (2.73)
k=−1
81
x[n]
4
n
−2 −1 1 2 3 4
−1
−2
u(t)
Figure 2.16: Plot of continuous time unit step function, u(t). Note that this
function has a discontinuity at the origin.
Exercise 2.13: Find an analytical expression for the signal plotted in Figure
2.15.
82
(
1 for t ≥ 0,
u(t) = (2.75)
0 otherwise.
The above definition of the continuous time unit step function reveals that
there is a discontinuity at t = 0.
Relationship Between the Continuous Time Unit Step and Unit Im-
pulse Functions. Continuous time unit step and unit impulse functions are
related to each other with derivatives and integrals. Recall that we obtain the
continuous time impulse function by taking the limit of the δ∆ (t) function, as
follows:
Recall, that the area under the impulse function was obtained by integrat-
ing it,
Z ∞
δ(τ )dτ = 1. (2.79)
−∞
We use the relationship between the well behaved function δ∆ (t) (Figure 2.8)
and the unit step function,
u(t) − u(t − ∆)
δ∆ (t) = (Figure 2.17, 2.18). (2.80)
∆
83
δ∆ (t)
1
∆
t
0 ∆
Figure 2.17: The well-behaved function δ∆ (t) approaches to the unit impulse
function in the limit as ∆ → 0.
u(t) − u(t − ∆)
t
0 ∆
Figure 2.18: The well-behaved function δ∆ (t) can be written in terms of two
unit step functions, as δ∆ (t) = u(t)−u(t−∆)
∆ .
84
Table 2.1: Relationship between the unit step and unit impulse
functions.
du(t)
δ(t) = . (2.82)
dt
If we integrate both sides of the above equation, we obtain,
Z t
u(t) = δ(τ )dτ. (2.83)
−∞
Comparing the relationship between the unit impulse function and unit
step function in discrete time and continuous time signals, we observe that
85
δ∆ (t) x(t)
0 ∆
t
Figure 2.19: We can slide the function δ∆ (t), all over the function x(t), as we
multiply and integrate them to obtain a relatively coarse representation of x(t).
Z ∞ Z ∞
lim x∆ (t) = x(t) = lim x(τ )δ∆ (t − τ )dτ = x(τ )δ(t − τ )dτ. (2.87)
∆→0 ∆→0 −∞ −∞
Z ∞
x(t) = x(τ )δ(t − τ )dτ. (2.88)
−∞
Similar to the discrete case, we can represent any continuous time, bounded
signal, x(t), in terms of the weighted integral of shifted impulse functions,
86
δ(t − τ ), where the weights correspond to the value of the function at the shift
point, τ.
Exercise 2.16: Show that the impulse function is even, in other words, δ(t) =
δ(−t).
Solution: Note that δ(t) is symmetric with respect to the y-axis. Thus it is
even (Figure 2.20). This directly implies that,
87
δ(−t)
t
0
x(t)
t
1 2 3 4 5
Figure 2.21: A piece-wise constant function, which does not have a compact
analytical form.
δ(t) = δ(−t).
Exercise 2.18: Find an analytical expression for the signal in Figure 2.22.
Solution: We can use the shifted superposition of unit step functions, as fol-
88
x(t)
0
1 2 3 4 5 6 7 t
lows;
89
Problems
1. Consider the following real exponential function;
dx(t)
.
dt
c) Find and plot the integral;
Z t
y(t) = x(τ )dτ.
0
2. Find and plot the real and imaginary parts of the following continuous time
signals:
a) x1 (t) = ejπ/2 cos(2t + 2π)
b) x2 (t) = 4e−2t sin(3t + 2π)
c) x3 (t) = 2je(−20+60j)t
3. Find and plot the magnitude and phases of the following discrete time
signals:
a) x1 [n] = ejπ/2 cos(2n)
b) x2 [n] = 4e−2n sin(3n + 2π)
c) x3 [n] = 2je(−20+j60)n
4. Determine if the following signals are periodic or not, for each periodic signal
determine its fundamental period:
a) x1 (t) = 4ej20t
b) x2 (t) = e(−3+j2)t
c) x3 [n] = ej9πn
5. Determine the fundamental period of the following signal:
90
6. Determine the fundamental period of the following signal:
(
t |t| < 2
x(t) =
0 2 ≤ |t| ≤ 4
91
b) Find and plot x(2t).
c) What is the fundamental period of x(2t).
13. Consider the following discrete time periodic function, where x[n] = x[n+4].
The function is defined in one enumeratefull period, as follows:
(
2 0≤t≤2
x(t) =
−2 2 < t < 4.
16. Suppose that x(t) is a continuous time function, show that x(t)δ(t) =
x(0)δ(t). Find and plot x(t)δ(t − 2) , for x(t) = 2t2 .
find a closed form for x[n] in terms of a shifted and scaled unit step function.
92
x[n]
1
−5 −4 −2 −1 0 4 5
n
−3 1 2 3
−1
Figure P1.1
a) Find an analytical expression of this figure using shifted impulse functions.
b) Find and plot y[n] = x[2n + 2] + x[1 − n].
c) Find y[n] = x[2n + 2] + x[1 − n] signal in terms of the shifted impulse
functions.
93
94
Chapter 3
Basic Building Blocks and
Properties of Systems
95
x(·) h(·) y(·)
96
neural signal
x(t) eye brain y(t)
light label of an object
Note that we may feed different inputs to the same system. The corre-
sponding output obeys the rules governed by the system equation. No matter
what the input is, the system equation, which relates the input and output
signals remains invariant.
There are also some systems, where the input and output pairs change the
system model h. This type of systems, called model-aware systems, is beyond
the scope of this book.
97
brain. We represent each subsystem with a black box. The input to the first
box (the eye) is the light signal, which generates a set of neural signals at
the output. The output of the eye component is continuously fed to the brain
component (second box) as the input. The output of the brain component can
be one of the wide range of cognitive processes, such as perceiving colors and
shapes, recognizing object, and interpreting scenes, etc. (Figure 3.2). These
types of connections, where the outputs of the subsystems are fed to the input
of another subsystem sequentially, are called series representation. Instead
of finding a single equation to represent the human visual system, we can find
two relatively more tractable equations, one of which represents the eye and
the other represents the brain.
Note that the eye as a subsystem is still too complicated to be represented
by a single equation. Thus, it needs to be partitioned into further subsystems,
such as the eye lens, retina, blind spot, eye muscles, etc. Similarly, we can
partition the brain components into anatomical regions, which are responsible
in vision.
In summary, we can partition a complicated system into as many subsys-
tems as we need, until we get a mathematically tractable representation for
each subsystem. However, we need to also define the signals, which establish the
relationships among the subsystems, considering the input and output signal
of each subsystem.
Auditory
sound
System
+ World Model
Visual
light
System
98
x1 (t) h1 h2
sound ear brain + h5 y(t)
x2 (t) h3 h4 brain
light eye brain
system receives the light. These two different types of signals are separately
processed in auditory and visual systems. Then, the outputs of both systems
are combined in anatomic regions of our brain, responsible for the audiovisual
process. Finally, a set of cognitive processes can be generated, such as creating
and storing a world model in our brain. As we did in the previous example, we
can construct subsystems for the auditory system as the ear and the auditory
regions of the brain. We can further represent the ear and the auditory regions
by subsystems until we obtain a mathematically tractable model for the audio-
visual system. Note that we should also establish the relationships by defining
the input and output signals among the subsystems
In this case, the auditory and visual systems receive and generate differ-
ent input-output pairs. Then, the outputs of the subsystems are merged by a
system component, such as an adder or multiplier (Figure 3.3). These types of
models are called parallel systems.
99
x y
+ h1
h2
and working in harmony to achieve a certain goal or to serve some other sys-
tems.
100
x1 w1
w2
x2
P
+ f (·) y = f ( wi xi )
x3 w3
• either stays silent, when the electrochemical processes generate a weak signal
or
• fires a single output when the electrochemical processes generate a signal
which is above a certain threshold.
101
Weights
f (·)
f (·)
Inputs Output
f (·)
f (·)
Middle Layer
Figure 3.7: An Artificial Neural Network, with one hidden layer, obtained by
the interconnection of eight artificial neurons. The three neurons at the first
layer receive the input values of a sample. The neurons inP the middle layer
compute the weighted linear P combination of the inputs as wi xi , and then
compute the output as f ( wi xi ). The output of each neuron is fed to the
next layer as the input. In this example, there is a single output neuron, which
receives the weighted combination of the outputs of the hidden layer and passes
it through a loss function to predict the label of the input sample.
y = f (x). (3.5)
f (·) is a nonlinear function, typically a unit step function defined as
(
1, x ≥ 0,
f (x) = (3.6)
0, x < 0.
102
close to representing the human brain. However, they are widely used in Arti-
ficial Intelligence and Machine Learning systems. Design of these networks for
a specific goal, such as designing large language models, detecting an object
in a video, or diagnosing a disease from an x-ray, is beyond the scope of this
book.
3.3.1. Memory
Memory is a cognitive process of humans and some animals to store, retain
and retrieve the information perceived by sensory stimuli.
The definition of memory is slightly different in System Theory. A system
is memoryless if the present value of the output depends only on the present
value of the input. A memoryless system operates on the current value of
the input to generate a current value of the output. Otherwise, the system
has memory. A system with memory can store and retrieve past or future
values of the input values. Therefore, the present value of the output y(t) can
be expressed in terms of the past or future values of an input for the systems
with memory.
Let us give the formal definitions of systems with and without memory. In
the definitions below, we suppose that a system is represented by a model h.
103
Definition 3.1: A continuous time system, represented by the model h is
memoryless, if the model h relates the present value of the input x(t) to the
present value of the output y(t), as follows:
For t0 > 0 or n0 > 0 the present value of the output of the system depends
on the past value of the input. For t0 < 0 or n0 < 0 the present value of the
output of the system depends on the future value of the input. Thus, the formal
definition of memory extends beyond its everyday meaning. In the cognitive
process, memory is confined to recalling the past, not predicting the future.
Solution: No! This system has memory. For example, for t = 3, the output
value depends on the future value of the input, y(1) = x(3).
104
Solution: This system has memory. It accumulates all the past values of the
input to generate an output. Thus, it remembers all the past values of the
input.
Solution: This is a memoryless system. For all values of t, the present values
of the output depend on just the present values of the input. Specifically, the
system receives the current value of an input at time t. It adds 1 to the square
of the input to generate the output at the same time.
3.3.2. Causality
The memory property of systems can be counter-intuitive. In systems with
memory, the output may depend not only on past values but also on future
input values. In other words, the system remembers both the past and the
future values. This is contradictory in most physical systems, which are causal.
Causality is a fundamental concept in many fields of science and philosophy.
The major assumption of causality is that the response of a system is caused
by stimuli. In systems, output signals are caused by input signals. In other
words, responses cannot come before the signals they are responding to.
The concept of memory can be further restricted to define causal systems,
where the output y(t) depends on the past and present values of the input. If
the present value of the input depends on the future value of the input, then
this system is called non-causal. In real-life problems, we have many examples
of non-causal systems. For example, the prediction systems are non-causal. An
aircraft pilot defines the route at a present time based on the future weather
forecast.
105
y(t) = h(x(t − t0 )). (3.15)
dx(t)
y(t) = . (3.16)
dt
Solution: This system takes the average of past and future values of the input
signal, defined in a time interval (−N, N ). Thus, it is non-causal.
3.3.3. Invertibility
In a general form, a system receives an input signal and emits an output signal,
according to the model, h, satisfying the following equation,
106
x(·) h h−1 x(·)
y(·)
Input Input
Figure 3.8: When we cascade the system, h with its inverse h−1 , the input of
the system is obtained at the output of the inverse system.
function, x(·), from the output function, y(·), using the model h?
Motivating Question: Suppose that we are given the model, h, of a
system. Suppose also that we can observe the output, but not the input of the
system. Is it possible to obtain the input signal for any observed output signal?
This is only possible if the system is invertible. When we concatenate the
system, represented by a model h, to its inverse system, h−1 , in a series con-
nection, we obtain the input to the original system, h, at the output of the
inverse system, h−1 (Figure 3.8).
107
Exercise 3.8: Is the following continuous time system invertible?
Solution: Yes, this system is invertible. The inverse of this system is uniquely
obtained by solving the above equation for x(t) as follows:
Solution: The inverse of this system can be obtained by solving the above
equation for x[n] as follows:
p
x[n] = ± 2y[n] − 6 (3.26)
Since there are two distinct inputs to generate the same output, there is not a
unique inverse for the model h. Thus, the system is not invertible.
Solution: Yes, this system is invertible. The inverse of this system is uniquely
obtained by,
Note that finding the inverse of a system may not be possible for many
systems, even if there exists a unique inverse.
3.3.4. Stability
Stability is an important performance characteristic of a system. It assures the
controllability of the output signal generated by the system for all the input
signals. A stable system is robust to imperfections and unexpected changes
108
Figure 3.9: Stable system (left): When we put a glass billiard ball to the side
of a bowl, it will swing for a while, then after a certain period of time it will
reach an equilibrium at the bottom of a bowl. Unstable system (right): If
we put the billiard ball on top of an upside-down bowl, its falling speed will
increase, uncontrollably, apparently, it will fall down the bowl and crash.
|x(t)| ≤ b. (3.29)
|x[n]| ≤ b. (3.30)
109
Definition 3.9: A continuous time system, represented by a model h, is
BIBO (Bounded Input, Bounded Output) stable if for any bounded
input function x(t), the corresponding output function,
Definition 3.11: If a system does not satisfy the BIBO stability condition,
then, it is called unstable.
The above output signal is unbounded for n → ∞. Thus, this system is unsta-
ble!
110
Solution: Suppose that we feed a bounded input signal to this system. In
other words, there exists a finite number b, such that, |x(t)| < b. Then, we
have y(t) < Aeb . Since the right-hand side of this inequality is bounded, the
output y(t) is also bounded. Thus, this system is BIBO stable.
111
y1 (t) = cos x1 (t) + sin x1 (t) = cos x(t − t0 ) + sin x(t − t0 ) = y(t − t0 ). (3.39)
We obtain the same amount of shift at the output. Thus, the system is time-
invariant.
112
x1 (·) h y1 (·)
x2 (·) h y2 (·)
Figure 3.10: Linearity property. Given that y1 (·) = h(x1 (·)) and y2 (·) =
h(x2 (·)), a linear system represented by h(·) satisfies a1 y1 (·) + a2 y2 (·) =
h(a1 x1 (·) + a2 x2 (·)).
y[n] = h[x[n]], is fed by two different inputs, x1 [n] and x2 [n]. The corresponding
outputs are y1 [n] = h[x1 [n]] and y2 [n] = h[x2 [n]].
Superposition property holds iff,
y1 (·) = h(x1 (·)) and y2 (·) = h(x2 (·)) ⇐⇒ a1 y1 (·)+a2 y2 (·) = h(a1 x1 (·)+a2 x2 (·)),
(3.46)
where (·) shows a generic notation for both continuous time variable t and
discrete time variable n.
Exercise 3.15: Are the following continuous and discrete time systems lin-
ear?
y(t) = ax(t) + b (3.47)
and
y[n] = ax[n] + b (3.48)
Solution: Let us omit the time variable (·), for simplicity. Suppose that, the
input x1 generates the output y1 = ax1 + b and the input x2 generates the
output y2 = ax2 + b. Superposition of two inputs,
113
x = a1 x1 + a2 x2 , (3.49)
does not generate the same superposition of the output,
Thus, superposition property does not hold. This system does not satisfy the
linearity property of Definition 3.15.
However, if we take the difference of the system equations with different input-
output pairs the additive term b vanishes and the difference becomes linear.
Formally, for the continuous time case, the system equation for two different
pairs of input-output are
114
Exercise 3.16: Is the following continuous time system linear, time-invariant,
causal, invertible, stable, memoryless?
Solution:
Linearity: Suppose we feed two inputs, x1 (t) and x2 (t), to the system. The
corresponding outputs will be
115
Solution: In the right-hand side of the system equation, there is a multi-
plicative factor, which depends on the time variable n. Therefore, the system
equation can be written as y[n] = A(n)x[n] where A(n) = cos π2 n.
Linearity: Suppose we feed two inputs, x1 [n] and x2 [n], to the system. The
corresponding outputs will be
The shift for the input x[n − n0 ] does not give the same amount of shift at the
output. Thus, the system is not time-invariant.
Memory and Causality: Present values of the output depend on the present
values of the input. For all n, the output is,
π
y[n] = h[x[n]] = (cos n)x[n]. (3.70)
2
The system is memoryless. Also, it is causal.
Invertibility: Let us solve this equation for x[n]:
y[n]
x[n] = . (3.71)
cos π2 n
Note that, x[n] → ∞ for all odd values of n. Thus, the system is not invertible.
Stability: The system is stable because a bounded input generates bounded
output. For any bounded input x[n] = b,
π
y[n] = cos n b < ∞ (3.72)
2
is bounded.
116
A
x(·) A y(·) x(·) y(·)
117
x1 (·)
x2 (·) + y(·)
x3 (·)
Figure 3.12: An adder, which adds three inputs, to generate output y(·) =
x1 (·) + x2 (·) + x3 (·).
x1 (·)
× y(·)
x2 (·)
3.4.2. Adder
An adder simply adds multiple inputs to generate a single output. This com-
ponent, too, is used for both discrete time and continuous time systems, as
follows:
3.4.3. Multiplier
A multiplier multiplies all the inputs to generate the output. It is used for both
discrete time and continuous time systems, as follows:
118
R
x(t) y(t)
d
x(t) y(t)
dt
3.4.4. Integrator
Integrator is used in the continuous time systems, which takes the integral
of the input for all of the past values, until the present time t, as follows:
Z t
y(t) = x(τ )dτ. (3.76)
−∞
An integrator is linear, time invariant, invertible and causal system
with memory (Figure 3.14).
3.4.5. Differentiator
Differentiator is used in the continuous time systems, which takes the deriva-
tive of the input to generate the output, as follows;
dx(t)
y(t) = . (3.77)
dt
A differentiator is a memoryless, linear, time invariant, stable and
non-invertible system component (Figure 3.15).
119
x[n] D y[n] = x[n − 1]
Figure 3.17: Block diagram representation of the system, y[n] = x[n + 1],
represented by the unit advance operator A.
Exercise 3.18: Find a block diagram representation for the following system:
Solution:
This system requires an adder with a minus sign and a unit delay operator, as
shown in Figure 3.18.
The system has memory. Since, for example, the output y(1) depends on x(0).
The system is causal, because the present value of the output does not depend
on the future values of the input.
x[n] + y[n]
-
D
Figure 3.18: Block diagram representation of the system, y[n] = x[n] − x[n − 1].
120
b
b a
1
a a
x(t) + y(t) + x(t)
h h−1
Exercise 3.19: Find the system equation of the block diagram represen-
tation below. Is this system linear? Is this system invertible? If yes, find its
inverse.
b
a
x(t) + y(t)
Solution: From the given block diagram, we can write the system equation as
y(t) = ax(t) + b.
This system does not satisfy the superposition property, because when the
input is x(t) = a1 x1 (t) + a2 x2 (t), the corresponding output is not y(t) =
a1 y1 (t) + a2 y2 (t):
y(t) − b
x(t) = for a ̸= 0. (3.82)
a
There exists a unique input, x(t) for every output y(t). Thus it is invertible
(Figure 3.19).
Exercise 3.20: Find the equation for the system represented by the following
block diagram.
121
R
x(t) + y(t)
Solution: This is a feedback control system, where the adder receives two
inputs: x(t) and y(t). The output of the adder must be dy(t) dt so that when
it is integrated, it outputs y(t). Thus, this system can be represented by the
following differential equation:
dy(t)
− y(t) = x(t). (3.83)
dt
This system is represented by a first order differential equation. It is pos-
sible to represent a system with cascaded integrators and adders, by higher
order differential equations. We shall explore the properties of the systems,
represented by differential equations, in Chapter 5.
122
as adders, multiplies, integrators, differentiators for continuous time
systems, and unit advance and unit delay operators for the discrete time
systems enable us to model and design a large class of systems.
123
Problems
1. Consider two discrete time subsystems S1 and S2, defined by the following
difference equations;
a) Find the difference equation for the overall system, which relates the
input x[n] = x1 [n] and output y[n] = y2 [n].
b) Would the system equation you obtain in part a be different if the order
of the series connection of S1 and S2 is reversed? In other words, is
the series connection of sub systems commutative? Verify your answer.
c) Is the overall system S linear? Show if the superposition property holds
or not.
d) Is the overall system S time invariant? Verify your answer.
2. Consider two continuous time subsystems S1 and S2, defined by the follow-
ing differential equation;
dx(t)
S1 : y1 (t) = 4x(t) + 2 ,
dt
dx(t)
S2 : y2 (t) = .
dt
Suppose that these S1 and S2 are connected in parallel to form an overall
system S with the same input x(t) and with an output y(t) = y1 (t) + y2 (t),
as shown below:
x(t) S1
+ y(t)
x(t) S2
a) Find the differential equation, which relates the input x(t) and the
output y(t) for the overall system S.
124
b) Is the overall system S linear?
c) Is the overall system S time invariant?
d) If S1 and S2 were interchanged in the parallel configuration, would it
make any difference to the overall system S?
3. Consider a discrete time system, represented by the following difference
equations;
π
y[n] = x[n] sin[ n].
2
a) Is this system stable?
b) Is this system invertable?
c) Is this system causal?
d) Is this system linear?
4. Consider the continuous time systems, represented by the following equa-
tions. Are these systems linear and time-invariant? Verify your answers.
a) y(t) = 2tx(t + 1)
b) y(t) = x(t) sin(t − 1)
c) y(t) = 2δ(t)
d) y(t) = x(2t2 )
5. Consider the discrete time systems, represented by the following equations.
Are these systems linear and time-invariant? Verify your answers.
a) y[n] = x[2n] cos[πn]
b) y[n] = x[n2 − 1]
c) y[n] = 2x[n − 1] + x[2n − 2]
d) y[n] = x2 [2n + 2]
6. Given the following equations for discrete time systems, check if the proper-
ties of memory, stability, causality, linearity, invertibility, and time-
invariance hold. Verify your answers for each system and for each property.
a) y[n] = 2x[n2 ]
b) y[n] = (x[n − 100] + x[100 − n]) sin 5n
c) y[n] = δ[n]x[2n]
n
d) y[n] = x[ ]
(3
0, n<0
e) y[n] =
x[n + 4] n ≥ 0
7. Given the following equations for continuous time systems, check if the
properties of memory, stability, causality, linearity, invertibility, and
time-invariance hold. Verify your answers for each system and for each
property.
125
R 5t
a) y(t) = −∞ x(2τ ) dτ
d(x(t) sin(3t))
b) y(t) =
dt
c) y(t) = x(2t
R∞ + 3)
d) y(t) = −5t 2x(τ )dτ
dx(2t)
e) y(t) =
dt
8. Given the following system equations, check if the properties of memory,
stability, causality, linearity, invertibility, and time-invariance hold.
Verify your answers for each system and each property.
a) y(t) = x(t − 5)
sin(2t) 2
b) y(t) = ( ) x(t)
t
c) y(t) = (3t
Pn+ cos t)x(t)
d) y[n] = k=−∞ x[k]
d(x(t) + sin(cos(t))
e) y(t) =
dt
9. Consider a discrete time system S, represented by the following difference
equation;
y[n] = x[n]h[n + 1] + 2h[n].
a) If h[n] = C for all n and C is a constant, show that S is time invariant.
b) If h[n] = n, show that S is not time invariant.
c) Is this system linear for h[n] = n?
10. Consider the following statements and determine if they are always true,
always false or neither. Justify your answers.
a) The parallel connection of two linear time-invariant systems is itself a
time-invariant system.
b) The series connection of two causal and linear systems is itself causal
and linear.
c) A system consisting of a causal and linear system and a non-linear and
time-varying connected serially is not causal or linear.
11. Consider the subsystems S1 ,S2, and S3, where the inputs and outputs are
represented by the following equations;
(
0, n even,
S1 : y1 [n] = 2
x[n] , n odd
S2 : y2 [n] = 2y1 [n/2],
1
S3 : y[n] = y2 [n + 2] + y2 [n].
4
126
Suppose that these systems are connected in series, as shown in the below
block diagram:
y1 [n] y2 [n]
x[n] S1 S2 S3 y[n]
a) Find the equation, which represent the overall system S, which relates
the overall input x[n] to the overall output y[n].
b) Are the subsystems, S1, S2, and S3 linear, time-invariant, causal, in-
vertible, and stable? Verify your answer for each subsystem.
c) Is the overall system S linear, time-invariant, causal, invertible, and sta-
ble? Verify your answer for S.
12. Show that if the input of a time-invariant system is periodic, then the cor-
responding output is also periodic for both continuous and discrete time
systems.
13. Consider a time-invariant system with an aperiodic input. Is the output
signal always aperiodic? Verify your answer by giving examples.
127
14. Consider the block diagram representation of a causal feedback control sys-
tem
e[n]
x(t) + y[n] = 2e[n − 1] y(t)
−1
a) Find and plot the output for x[n] = δ[n] + δ[n − 2].
b) Sketch the output given x[n] = u[n] − u[n − 4].
15. Are the following systems invertible? Find the inverse systems if they are
invertible.
a) y[n] = 2x[n2 ]
b) y(t) = sin[x(t)]
c) y[n] = x[n + 1]x[n − 1]
dx(t)
d) y(t) =
(dt
x[2n], n≥0
e) y[n] =
x[n − 2], n < 0
f ) y(t) = cos(3t)x(t)
16. Find a block diagram representation for the continuous time system, repre-
sented by the following equation:
d2 y(t) dx(t)
+ ay(t) = .
dt dt
17. Find a block diagram representation for the discrete time system, repre-
sented by the following equation:
then, Aes0 t satisfies the system equation given above, where A is an arbi-
trary complex constant number.
128
19. Consider the system equation given below;
20. Consider the following discrete time system equation, where the input is
equal to the superposition of differences of the output:
PN
k=0 ak y[n − k] = x[n].
129
130
Chapter 4
Representation of Linear
Time Invariant Systems by
Impulse Response and
Convolution Operation
131
x[n] x(t)
δ[n − k] δ(t − τ )
n t
k τ
∞
X Z ∞
x[n] = x[k]δ[n − k] x(t) = x(τ )δ(t − τ )dτ
n=−∞ −∞
shall study the discrete time and continuous time LTI systems.
Our goal is to find an equation, which relates the input x(·) to the corre-
sponding output y(·) to represent an LTI system.
Suppose that we observe an input-output pair, x(·) and y(·), of an LTI
system. In Chapter 2, we showed that it is possible to represent any function
in terms of the weighted integral of shifted impulse functions δ(t − τ ) for
continuous time systems. Similarly, we can represent any function in terms of
weighted summation of shifted impulses, δ[n − k] for discrete time signals, as
shown in Figure 4.1.
For example, suppose that a continuous time, linear time invariant sys-
tem receives an input signal, x(t) = e−jωt , and outputs a unit step signal,
y(t) = u(t). These signals can be represented by the weighted integral of shifted
impulse functions. Mathematically,
Z ∞
x(t) = e−jωτ δ(t − τ )dτ = e−jωt . (4.1)
−∞
Z t
y(t) = δ(t − τ )dτ = x(t) = u(t). (4.2)
−∞
132
x(·) Black Box y(·)
Figure 4.2: If we observe the input x(·) and the corresponding output y(·), can
we find a unique model h(·) for the “Black Box”?
Figure 4.3: Impulse response is the response of an LTI system to a unit impulse
function. A discrete-time LTI system generates the impulse response h[n] for
the unit impulse input δ[n], whereas a continuous-time LTI system generates
the impulse response h(t) for the unit impulse input δ(t).
tion relates the input-output pair of an LTI system through a specific response,
called the impulse response.
133
4.1.1. Representation of Discrete-Time Linear
Time-Invariant Systems by Impulse Re-
sponse
Suppose that we feed a discrete time unit impulse, δ[n] to an LTI system, and
at the output, we measure the impulse response, h[n], as shown in Figure 4.4.
Next, we shift the impulse response at the input and feed the shifted impulse
response, δ[n − 1]. Since the system is time-invariant, we obtain the same shift
at the output and obtain the shifted impulse response, h[n − 1]. If we keep
sifting the impulse functions, δ[n − k] for all k and feeding it as an input to an
LTI, we obtain the shifted versions of the impulse responses, h[n − k] (Figure
4.4). Now, let’s multiply the shifted impulse function by the k th component
of a general signal x[n], to feed x[k]δ[n − k] at the input. Since the system is
linear, at the output, we get x[k]h[n − k].
Finally, let’s superpose the input signals, x(k)h[n − k] for all k, as follows:
∞
X
x[n] = x[k]δ[n − k] (4.3)
k=−∞
and feed it as the input signal. Since the system is linear and time-invariant,
the superposition of the shifted impulses outputs the same superposition of the
shifted impulse responses, x[k]h[n − k], as follows,
∞
X
y[n] = x[k]h[n − k] (4.4)
k=−∞
134
δ[n] LTI h[n]
(a)
(b)
∞
X ∞
X
x[n] = x[k]δ[n − k] LTI y[n] = x[k]δ[n − k]
k=−∞ k=−∞
(c)
Figure 4.4: Relationship between the input and output signal of a discrete-time
LTI system: (a) Response of a system, y[n] = h[n] to a unit impulse function,
δ[n]. (b) Since the system is time-invariant, shifted unit impulse, δ[n − k],
generates a shifted impulse response, h[n − k]. (c) Since the system is linear,
we can superpose all the shifted impulses at the input and obtain the same
superposition at the output.
and feed it as the input signal. Since the system is linear, the superposition of
the shifted impulse functions at the input results in the superposition of the
shifted impulse responses at the output, as follows:
135
δ(t) LTI h(t)
(a)
(b)
∞
X ∞
X
lim x(k∆τ )δ(t − k∆τ ) LTI lim x(k∆τ )h(t − k∆τ )
∆τ →0 ∆τ →0
k=−∞ k=−∞
Z ∞ Z ∞
x(t) = x(τ )δ(t − τ ) LTI y(t) = x(τ )h(t − τ )dτ
−∞ −∞
(c)
Figure 4.5: Relationship between the input and output signal of a continuous
time LTI system: a) Response of a system, y(t) = h(t) to a unit impulse
function, δ(t). b) since the system time-invariantant, shifted unit impulse, δ(t−
∆t), generates a shifted impulse response, h(t−∆t), c) Since the system is linear
we can superpose all of the shifted impulses at the input and obtain the same
superposition at the output
136
x(·) h(·) y(·) = x(·) ∗ h(·)
∞
X
y∆t (t) = x(k∆t)h(t − k∆t). (4.6)
k=−∞
If we take the limits with respect to time, the above summation operations
converge to the integral operations:
Z ∞
x(t) = lim x∆t (t) = x(τ )δ(t − τ )dτ, (4.7)
∆t→0 −∞
Z ∞
y(t) = lim y∆t (t) = x(τ )h(t − τ )dτ, (4.8)
∆t→0 −∞
where lim∆t→0 x∆t (t) → x(t) and lim∆t→0 y∆t (t) → y(t). Thus, we have
Z ∞
y(t) = x(τ )h(t − τ )dτ (4.9)
−∞
137
x(·) h1 (·) ∗ h2 (·) y(·) x(·) h1 (·) h2 (·) y(·)
Figure 4.7: Associativity of convolution. Provided that h1 (·) and h2 (·) are im-
pulse responses of two LTI systems, the system on the left is equivalent to the
system on the right. Using the commutativity property, we can find another
equivalent system: x → h2 → h1 → y.
are considered as system equations. We use “∗” as the shorthand notation for
the convolution operation.
Remark 4.1: In continuous time LTI systems, the operand functions and
the output of the convolution integral are all continuous time functions.
Similarly, in discrete time LTI systems, the operand functions and the output
of the convolution summation are all discrete time functions.
138
h2 (t)
x(t) + y(t)
h1 (t)
139
Step 1: Change the time variable to the dummy variable of integral to get h(τ ).
Step 2: Time reverse the dummy variable of integral, τ , to obtain the reversed
impulse response, h(−τ ).
Step 3: Shift the impulse response, by the time variable t, to obtain reversed and
shifted impulse response, h(t − τ ).
Step 4: Multiply the shifted impulse response with the input signal, x(τ ) to get
h(t − τ )x(τ ).
Step 5: Find the area under the multiplication, using the integration operation
for each translation of the time variable t,
Z ∞
y(t) = x(τ )h(t − τ )dτ = x(t) ∗ h(t). (4.17)
−∞
Since the convolution operation is commutative, in the above steps we can
replace the signal x(t), by the impulse response,h(t). Formally,
Z ∞ Z ∞
y(t) = x(τ )h(t − τ )dτ = x(t − τ )h(τ )dτ. (4.18)
−∞ −∞
Notice that in the convolution operation, there are two variables. The vari-
able τ is the dummy variable of integration. After we take the integral of
x(τ )h(t − τ ), it disappears. The time variable t translates the reversed impulse
response h(−τ ) all over the input function x(τ ). Due to the commutativity
property of the convolution operation, we can replace the impulse response
with the input.
140
of the filter function.
• In image and video processing, impulse response is called mask, because it
detects an object in an image. When we design a mask with the character-
istics of an object, the convolution of an image signal with a mask outputs
high values in the regions that resemble the object. Thus, it is possible to
identify the location or class of an object at the output of the convolution
operation.
• In machine learning, it is called model, because it is very handy in de-
signing a learning algorithm for object detection and classification. In this
case, a network architecture, called Convolutional Neural Network, learns
the impulse responses to detect and/or classify an object.
Designing a problem-specific LTI system is beyond the scope of this book.
Exercise 4.1: Suppose that, we are given the following impulse response and
the input signal,
Solution: We follow the steps of convolution operation, given above and take
the convolution integral, as follows:
Z ∞
y(t) = x(t − τ )h(τ )dτ
−∞
Zt
= e−(t−τ ) e−2τ dτ
0 (4.20)
Z t
= e−t e−τ dτ
0
= e−t (1 − e−t )u(t)
Exercise 4.2: Find the output of an LTI system, for any input, x(t), when
the impulse response is an impulse input, h(t) = δ(t).
141
x(t) δ(t) y(t) = x(t) ∗ h(t) = x(t)
Figure 4.9: When the impulse response of an LTI system is δ(t), the system
acts as an identity system. The output is equal to the input.
Figure 4.10: When the impulse response of an LTI system is δ(t − t0 ), the
system delays its input signal by t0 .
Z ∞
y(t) = x(t) ∗ h(t) = x(τ )δ(t − τ )dτ = x(t). (4.21)
−∞
Exercise 4.3: Find the output of an LTI system for any input, x(t), when
the impulse response is the shifted impulse function, h(t) = δ(t − t0 ).
The output is just the time-shift version of the input. Thus, δ(t − t0 ) acts as a
delay operator (Figure 4.10).
Exercise 4.4: Find the response of an LTI system represented by the impulse
response, h(t) = u(t), when the input is x(t) = u(t).
Since the unit step function u(t) equals to 1 for t > 0, the integral operand is
non-zero for τ > 0 and t − τ > 0, hence, for 0 < τ < t. Then, the output is
Z ∞ Z t
y(t) = u(τ )u(t − τ )dτ = dτ = tu(t). (4.24)
−∞ 0
142
y(t)
u(t − τ ) u(τ )
τ
t t
Figure 4.11: (left) Convolution of two unit step functions. Prior to integration
we multiply u(τ ) by u(t − τ ). The shaded area shows the overlap. Note that
as we change the time variable t between (−∞, ∞), we translate one of the
unit step function over the other one. For t < 0, there is no overlap. Thus the
output signal y(t) = 0 for t < 0. As we increase the time variable for t > 0,
we get more and more overlap between the two unit-step functions. Thus, the
convolution operation outputs a monotonically increasing function y(t), which
is a ramp. (right) The result of convolution, y(t) = tu(t).
We multiplied t with u(t) above because y(t) = 0 for t < 0. This convolution
is illustrated in Figure 4.11.
Exercise 4.5: Find the response of an LTI system, represented by the im-
pulse response, h(t) = eλ2 t u(t) for the input, x(t) = eλ1 t u(t). An example is
illustrated in Figure 4.12.
Z t
y(t) = eλ2 (t−τ ) eλ1 τ dτ (4.25)
0
Z t
=e λ2 t
eτ (λ1 −λ2 ) dτ (4.26)
−0
t
eλ2 t τ (λ1 −λ2 )
= e (4.27)
λ1 − λ2
0
eλ1 t − eλ2 t
= u(t). (4.28)
λ1 − λ2
Note that there is no overlap for t < 0. Thus, y(t) = 0 for t < 0, hence, we
have u(t) as the multiplier. It increases as we increase t > 0, until the tails get
sufficiently small. Then it starts to decrease.
143
h(t − τ ) x(τ )
τ
t
Figure 4.12: While we convolute two exponential functions with negative de-
cays, we reverse one of the exponential and translate it over the other one as
we change the time variable −∞ < t < ∞.
Exercise 4.6: Find the convolution of the following input signal x(t) and
impulse response h(t) given below to obtain the output signal, y(t) = x(t) ∗
h(t) :
(
1 for − 1 ≤ t ≤ 2
x(t) = (4.29)
0 otherwise.
(
1 for − 2 ≤ t ≤ 2
h(t) = (4.30)
0 otherwise.
Solution: The input signal and impulse response are both nonzero in a finite
interval. Thus, the output of the convolution integral will be also nonzero in a
finite interval. In order to find the nonzero interval of the output, we add the
lower limits and upper limits of the two function. In this particular example
y(t) ̸= 0 for −3 ≤ t ≤ 4.
When we evaluate the convolution integral, as the time variable changes in
(−∞, ∞) the interval of the non-zero overlap, thus, the limits of the integral
change. This requires to evaluate the integral for all different limits of the
integral as t varies. Since there are no overlaps, for t < −3 and t > 4, y(t) = 0.
Considering the convolution formula,
Z ∞
y(t) = x(τ )h(t − τ )dτ (4.31)
−∞
144
3
t
−3 1 4
Figure 4.13: Result of the convolution operation y(t) = x(t) ∗ h(t), in Exercise
4.6.
Overall, the output y(t) is a trapezium, which shows that the maximum re-
semblance between the input signal and the impulse response is for 0 ≤ t < 1
(Figure 4.13).
145
4.1.4. Convolution Operation in Discrete Time
Systems
For discrete-time signals and systems, instead of convolution integral, we apply
the convolution summation. The properties and meaning of the convolution
sum are very similar to that of the convolution integral. Thus, we do not
repeat them in this section. All we need to do is to replace the signal and the
impulse response with their discrete time counterparts, x[n] and h[n], and use
the convolution sum,
∞
X
y[n] = x[k]h[n − k]. (4.35)
k=−∞
Let us go over some exercises to see the similarities and distinctions between
the continuous time and discrete time convolution.
Exercise 4.7: Find the output of a discrete time LTI system, represented by
the impulse response, h[n] = αn u[n], 0 < α < 1, when the input is x[n] = u[n].
Exercise 4.8: Find the output of an LTI system, represented by the impulse
response, h[n] = δ[n − n0 ], for any input x[n].
146
2 2 2 y[n]
x[n] h[n]
1 1 1
0 2 4 n 0 2 4 n 0 2 4 n
Figure 4.15: When the impulse response of a discrete-time LTI system is δ[n −
n0 ], the system delays its input signal by n0 .
Solution: This LTI system simply time-shifts the input by an integer amount
of n0 (Figure 4.15), as follows:
Exercise 4.9: Find the impulse response of the discrete-time system, repre-
sented by the following difference equation:
Solution: We replace the input by the unit impulse function. Then, the cor-
responding output is the impulse response:
Solution: Both the input and impulse response can be represented by shifted
147
impulse functions, as follows:
yields
y[n] = δ[n + 1] + 2δ[n] + 2δ[n − 1] + δ[n − 2]. (4.47)
Here we used the distributivy property of convolution and the facts that (i)
convolution with δ[n] does not change the input, (ii) convolution with δ[n − n0 ]
shifts the input by n0 .
where x∗ (t) indicates the complex conjugate of x(t) and ⋆ indicates the cor-
148
relation operation. When the signals are represented by real functions, their
complex conjugates become the same, and complex conjugate operations dis-
appear.
Note that the above integral approaches to ∞ for power signals. It is cus-
tomary to normalize the cross-correlation functions for the power signals as
T /2
1
Z
y(t) = lim x∗ (τ )h(t + τ )dτ = x(t) ⋆ h(t). (4.51)
T →∞ T −T /2
Solution:
Since this is a periodic signal, it is a power signal. Thus, cross-correlation
function is defined as
T /2
1
Z
y(t) = lim x∗ (τ )h(t + τ )dτ
T →∞ T −T /2
T /2
1
Z
= lim e−jkω0 τ ejlω0 (t+τ ) dτ (4.55)
T →∞ T −T /2
T /2
1
Z
= lim ejlω0 t e−jω0 τ (k−l) dτ.
T →∞ T −T /2
149
Using the Euler formula, we obtain
T /2
1
Z
y(t) = lim ejlω0 t (cos(ω0 τ (k − l)) − j sin(ω0 τ (k − l)))dτ = 0. (4.56)
T →∞ T −T /2
As long as k ̸= l, sine and cosine functions remain periodic, which makes the
above integral 0. Therefore, for k ̸= l the complex exponentials with different
harmonics are not contained in each other. These types of signals are called
orthogonal.
Exercise 4.12: Find the cross-correlations between the following two toy
digital signals.
For n ≤ −4, y[n] evaluates to 0, since the two signals, x[k] and h[k + n], do
not overlap.
For n = −3, the last non-zero element of x[k] overlaps with the first non-zero
element of h[k − 3], which yields y[−3] = −1.
As we increase n, we obtain y[−2] = 1, y[−1] = −5, y[0] = 8, y[1] = −8,
y[2] = 13 and y[3] = −6. For n ≥ 4, the two signals do not overlap, therefore,
y[n] = 0 for n ≥ 4. Overall, y[n] can be expressed as
150
∞
X
y[n] = x[n] ⋆ x[n] = x∗ [k]x[n + k]. (4.61)
k=−∞
Exercise 4.13: Find the auto-correlation function of the signal given below:
−1 for t = 0,
x[n] = 2 for t = 1, (4.62)
1 for t = 2.
Solution:
We need to evaluate the discrete-time auto-correlation given in Equation (4.61).
For n < −2 and n > 2, x[k] and x[k + n] do not overlap, hence, y[n] = 0.
For other values of n, we have y[−2] = −1, y[−1] = 0, y[0] = 6, y[1] = 0 and
y[2] = −1. Overall, we can express the result as
151
tems. Even if the system is not inherently linear and/or time-invariant, it is
possible to define manifolds, where the system is piecewise linear and locally
time-invariant.
In the previous sections, we showed that an LTI system can be uniquely rep-
resented by its impulse response. Let us investigate the properties and behavior
of the impulse response for memory, causality, invertibility, and stability.
152
x(·) h (y = x ∗ h) h−1 x(·)
∞
X
y[n] = x[n − k]h[k], for discrete-time systems, (4.65)
k=0
Z ∞
y(t) = x(t − τ )h(τ )dτ, for continuous time systems. (4.66)
0
153
However, we can find a relationship between an impulse response h(·) and
its inverse, h−1 (·) by convoluting both sides of system equation with h−1 (·), as
follows:
which satisfies
154
Solution:
a) In order to find the impulse response, we replace the input by the unit im-
pulse function. The corresponding output is the impulse response. Thus,
the impulse response is
Solution:
a) We replace the input with the unit impulse function. The corresponding
output is the impulse response. Thus the impulse response is
n
X
h[n] = δ[k] = u[n], (4.84)
k=−∞
155
b) We can use a simple mathematical trick to find a closed-form equation to
represent this system by taking the difference between y[n] and y[n − 1],
to obtain a more compact form of the system equation as follows:
and
Exercise 4.16: Consider the LTI system represented by the following equa-
tion,
156
x[n] + y[n]
−1
D
Figure 4.17: Block diagram for the LTI system represented by y[n] − y[n − 1] =
x[n] in Exercise 4.15.
Solution:
a) Impulse response of this LTI system is,
157
Z ∞
|x(t)| < B ⇒ |y(t)| < B |h(τ )|dτ (4.96)
−∞
Z ∞
⇒ |h(τ )|dτ < ∞. (4.97)
−∞
Solution:
a) The system equation of this LTI system can be obtained from the convo-
lution summation:
n
X n
X
y[n] = x[n] ∗ u[n] = x[k]u[n − k] = x[k]. (4.98)
k=−∞ k=−∞
Subtracting the above Equations 4.98 and 4.99 side by side yields;
158
a) Find the impulse response of this system.
b) Is this system memoryless?
c) Is this system causal?
d) Is this system stable?
Solution:
a) We replace the input by the impulse function to obtain the impulse re-
sponse as follows:
Z 3
h(t) = δ(t − τ )dτ = u(t) − u(t − 3). (4.102)
0
b) This system has memory, because h(t) ̸= Kδ(t).
c) This system is causal, because h(t) = 0 for t < 0.
d) This system is stable, because h(t) is absolutely summable:
Z ∞ Z 3
|h(τ )|dτ = u(τ )dτ < ∞. (4.103)
−∞ 0
For a discrete-time system, replacing the input by the unit step function in
convolution summation, we can obtain the discrete-time unit step response,
as follows:
∞
X n
X
s[n] = u[n] ∗ h[n] = u[n − k]h(k) = h(k). (4.104)
k=−∞ k=−∞
159
There is a one-to-one correspondence between the unit step response and
impulse response. If we take the difference between the unit step responses of
s[n] and s[n − 1], we get
Z ∞ Z t
s(t) = u(t) ∗ h(t) = u(t − τ )h(τ )dτ = h(τ )dτ. (4.106)
−∞ −∞
ds(t)
h(t) = (4.107)
dt
Exercise 4.19: Find the impulse response of a continuous LTI system if its
unit step response is
Solution: Take the derivative of the unit step response with respect to t,
ds(t)
h(t) = = −αe−αt u(t). (4.109)
dt
Look at the beautiful symmetry of the continuous time exponential func-
tion! When the unit step response is an exponential function, its impulse re-
sponse is also an exponential function, scaled by the exponent.
160
Figure 4.18: Sample images from the MNIST dataset.
1
https://yann.lecun.com/exdb/mnist/
161
x (x ⋆ h)[0, 0] σ ŷ
Figure 4.19: The system which takes an input image x (as a 28x28 matrix),
processes it through a correlation filter h and applies the sigmoid function (σ)
on the correlation output. Finally, the system produces ŷ, which should be
close to 1 if the image belongs to the positive class, and to 0, otherwise.
should be 1 if the input image belongs to the positive class, 0 otherwise. The
system is illustrated in Figure 4.19.
In this chapter, we have defined the cross-correlation operations for one-
dimensional signals. In two dimensions, it is defined as
XX
(x ⋆ h)[i, j] = x[i + m, j + n]h[m, n]. (4.112)
m n
This operations slides the 28-by-28 filter h on the input signal x, and computes
results for all possible locations, even if x and h overlap partially. However,
in our system, we are only interested in (x ⋆ h)[0, 0], which is the result of
correlation when the filter and the input fully overlap. Subsequently, (x⋆h)[0, 0]
is passed through the sigmoid function defined as
1
σ(x) = , (4.113)
1 + e−x
which squashes its input into the interval [0, 1].
“Training” this system means finding the filter h that solves this task in
such a way that it makes a minimal amount of prediction errors on the examples
of the training set. This error is measured by a “loss function.” There are many
different loss functions in machine learning, which are beyond the scope of this
book. Here, we will use the “mean squared error (MSE)” loss function, which
is easy to understand but not necessarily the best for the task. The MSE is
defined as:
N
1 X
MSE = (ŷi − yi )2 , (4.114)
N
i=1
where ŷi is the output of our system for input image xi . This loss function
achieves its minimal value, which is zero, when all the predictions (ŷi ) are
equal to their corresponding labels (yi ). To minimize MSE on the training
set, we apply a method called the “gradient descent.” In essence, it involves
iteratively adjusting the filter weights in the negative direction of the gradient
of MSE with respect to the filter. Note that the gradient is a vector that points
162
Figure 4.20: The optimal filter h learned on the MNIST training set by mini-
mizing the MSE. The filter looks like the digit 3.
163
through the impulse response. As an alternative to convolution, we also define
correlation and auto-correlation operations, which are widely used in machine
learning applications.
Finally, we studied the stability, memory, and invertibility properties of LTI
systems using their mathematical representation with the impulse response.
164
Problems
1. Consider a discrete-time LTI system, represented by the following impulse
response:
h[n] = u[n + 2].
a) Find the output of the system for the following input:
x[n] = (0.5)(n−0.5) u[n − 2].
b) Is this system invertible? If yes, find its inverse.
c) Is this system BIBO stable? Verify your answer.
2. Find the output, y[n], of the system for the following input and impulse
response plots:
x[n] h[n]
1 1
n n
−3 7 1 15
∞
X
y[n] = x[k]g[n − 2k],
k=−∞
t + 1 , − 1 ≤ t ≤ 1
h(x) = 2 − t , 1 < t ≤ 3
0 , otherwise
165
5. Given the input x(t) = 2e−αt (u(t)−u(t−1)) and and the impulse response
h(t) = u(t/α), where 0 < α ≤ 1
a) Find and plot y(t) = x(t) ∗ h(t).
dx(t)
b) Find ∗ h(t)
dt
6. Given the input and impulse response of an LTI system,
166
c) Compare the results of parts a and b.
10. Consider a discrete-time causal LTI system, represented by the following
difference equation:
1
y[n] = x[n − 1] + x[n]
5
a) Find the impulse response , h[n], of the system.
b) Find the output , y[n], for the input x[n] = δ[n − 2].
c) Is this system BIBO stable?
d) Does this system have memory?
e) Is this system invertible? If yes, find its inverse.
11. Consider the following impulse responses, each of which represents a con-
tinuous time LTI system. Determine if these systems are BIBO stable.
Verify your answers.
a) h1 (t) = e−(1−2j)t u(t − 1)
b) h2 (t) = e−t cos(t)u(−t)
c) h3 (t) = e−t sin(t)u(−t)
12. Consider the following impulse responses, each of which represents a dis-
crete time LTI system. Determine if these systems are BIBO stable. Verify
your answers.
4n π
a) h1 [n] = cos n u[n]
πn 4
b) h2 [n] = 7 u[7 − n]
1 − αn nαn
s[n] = 2 − u[n]
(1 − α)2 1 − α
(Hint: Note that
N N
X
k d X k
(k)α = α
dα
k=0 k=0
and
167
N
X 1 − αn+1
αk = .)
1−α
k=0
n−1
1
x[n] = {u[n + 3] − u[n − 3]}
3
168
17. Write a computer program to take discrete convolution of 2 signals. (You
are not allowed to use any xx.convolve() function from any library.) Your
function takes 4 inputs: the first signal x[n], the starting index of the first
signal sxi , the second signal h[n] and the starting index of the second sig-
nal shi (Starting indexes and signals are in the same format as the ones
in HW1) and returns the output signal y[n] and the starting index of the
output signal syi .
(b) (10 pts) The N-Point moving average filter is defined as follows:
(
1
if 0 ≤ n ≤ N − 1
h[n] = N
0 otherwise
169
170
Chapter 5
Representation of LTI
Systems by Differential and
Difference Equations
“... Since Newton, mankind has come to realize that the laws of
physics are always expressed in the language of differential equations.
Steven H. Strogatz
171
difference equations. We shall study the differential and difference equation to
relate an input signal x(·) to an output signal y(·) to represent an LTI system.
Formally speaking,
x(t) = 0 for t < t0 ⇒ y(t0 ) = ẏ(t0 ) = ... = y N −1 (t0 ) = 0 for t < t0 . (5.4)
In most practical applications, the initial time starts from t0 = 0. For this
172
reason, we assume that the system is initially at rest when there is no input
and output for t < 0. Thus, initial rest condition gives us the following initial
conditions,
represents a continuous time, causal LTI system, when the input-output pair
of this system is x(t) and y(t).
Verification of the proposition: In order to show that the system rep-
resented by a differential equation is linear, we need to check the superposi-
tion property. Mathematically speaking, given two input-output pairs, x1 (t) →
y1 (t) and x2 (t) → y2 (t), superposition of the inputs must yield the same su-
perposition as the output, as follows:
173
xS (t) = A1 x1 (t) + A2 x2 (t) → yS (t) = A1 y1 (t) + A2 y2 (t), for t ≥ 0, (5.7)
N M
X dk y2 (t) X dk x2 (t)
ak = bk . (5.9)
dtk dtk
k=0 k=0
N M
X dk y2 (t) X dk x2 (t)
A2 ak = A 2 bk , (5.11)
dtk dtk
k=0 k=0
N M
X dk [A1 y1 (t) + A2 y2 (t)] X dk [A1 x1 (t) + A2 x2 (t)]
ak = bk . (5.12)
dtk dtk
k=0 k=0
Thus, for any superposed input-output pairs, xS (t) → yS (t), the equation,
N M
X dk yS (t) X dk xS (t)
ak = bk (5.13)
dtk dtk
k=0 k=0
is satisfied.
In the above derivations, we could freely move the constant parameters, A1
and A2 , inside of the sum and derivation operators; because, both summation
and derivation are linear operators. However, if the system is not initially
at rest, there are some non-zero outputs even if the input values are zero for
some T , t < T . In this case, the superposition property of the differential
equation is not satisfied for the initial conditions.
174
Since the superposition property holds, an “initial at rest” system repre-
sented by a constant-coefficient linear differential equation is linear with respect
to the input-output pairs, x(t) and y(t).
Linear constant coefficient differential equations are, also, time-invariant,
when the system is initially at rest, because, for an arbitrary input output
pair, x(t) → y(t), a time shift by t0 of the input generates the same shift at
the output, for t ≥ 0, i.e.,
N M
X dk y(t − t0 ) X dk x(t − t0 )
ak = bk . (5.14)
dtk dtk
k=0 k=0
175
PN dk y(t) PM dk x(t)
x(t) k=0 ak dtk = k=0 bk dtk
y(t)
176
5.3.1. Finding the Particular Solution
In System Theory, a particular solution of a linear constant coefficient differ-
ential equation is a unique response of the underlying system to a particular
input, which satisfies the differential equation. Since the system is LTI, the
analytical form of the particular solution, yp (t) must be similar to that of the
input signal x(t). Thus, a practical method for finding the particular solution
is to assume that the particular solution has the general analytical form of the
input. Then, we find the parameters of the particular solution, which satisfies
the differential equation.
Motivating Question: How do we find the unique parameters of the
particular solution, given its analytical form?
All we have to do is take the derivatives of the assumed particular solution
yp (t) for a given x(t) and insert it into the differential equation. Then, solve
this equation for the parameters of the particular solution, to obtain a unique
set of parameters.
Exercise 5.1: Find the particular solution of the following differential equa-
tion, when the input is x(t) = t + 1.
dy(t)
+ 3y(t) = x(t). (5.16)
dt
Solution:
The input is a line equation with slope and intercept equal to 1. Since the
differential equation is linear with a constant coefficient, the particular solution
should be another line equation with a different slope and intercept. Thus, it
should be in the following analytical form:
yp (t) = At + B.
The derivative of the particular solution is ẏp (t) = A. Let us insert the above
particular solution and its derivative into the differential equation:
3At + (A + 3B) = t + 1.
Equating the coefficient of t and the constant term on both sides of the equa-
tion, we obtain
3A = 1 and A + 3B = 1.
Thus, A = 1/3 and B = 2/9, yielding
1 2
yp (t) = t + .
3 9
177
In general, if the input is an nth order polynomial, the particular solution
is another nth order polynomial with n + 1 arbitrary parameters,
n
X
yp (t) = Ak tk . (5.17)
k=0
The parameters are computed by inserting all the derivatives of yp (t) into the
differential equation and finding the unique set of {Ak }nk=0 .
Similarly, if the input is an exponential function, the particular solution
is another exponential function with a different magnitude and parameter of
the exponent. If the input consists of trigonometric functions, the particular
solution consists of similar trigonometric functions with different amplitudes
and frequencies, etc.
Note that the parameters of the particular solution, depend on the parame-
ters of the differential equation, ak and bk and the analytical form of the input
signal, x(t).
dk (eβt )
= β k eβt . (5.20)
dtk
178
Suppose that a solution to the homogeneous differential equation is in the
following form:
with separate constants Ck for each root βk . Since the system is linear, the
superposition of all of the valid solutions (Equation (5.24)) satisfies the homo-
geneous differential equation. Note that the exponential form of the homoge-
neous solution (Equation (5.21)) converts an N th order homogeneous differen-
tial equation ((5.18)) into an N th order algebraic equation (Equation (5.23)).
Finally, the linearity property enables us to add the particular and homo-
geneous solutions to obtain a general solution to the system:
179
particular solutions to obtain the general solution.
dy(t)
+ 2y(t) = x(t), (5.29)
dt
a) Find the particular solution, when the input is x(t) = e−t u(t).
b) Find the homogeneous solution.
c) Find the general solution for y(t) = 0, for t ≤ 0.
d) Is this system initially at rest?
e) Is this system causal?
Solution:
a) Since this equation is linear, the particular solution would be another
exponential function in the following form:
180
purposes, we will use ẏp (t) = −Ke−t u(t) as explained in the following
remark.
Replacing yp (t) and ẏp (t) in the differential equation and solving for K,
we obtain −K + 2K = 1. Thus, K = 1 and yp (t) = x(t) = e−t u(t).
b) A homogeneous solution for x(t) = 0 has the form: yh (t) = Ceβt . Its
derivative is ẏh (t) = Cβeβt . Inserting yh (t) and ẏh (t) into the homoge-
neous equation, we find the characteristic equation: β + 2 = 0. Thus,
β = −2, which gives us the overall homogeneous equation as
181
dy(t)
+ 2y(t) = x(t), (5.35)
dt
with the initial conditions y(−1) = 1 for a particular input, x(t) = e−t u(t).
a) Find the general solution for this differential equation.
b) Is this system initially at rest?
c) Is this system causal?
Solution:
a) The general solution is found from the previous example, as
C = e−2 . (5.38)
Replacing the value of C in the general solution of Equation (5.36), we
obtain,
182
values, that is, h(t) = 0 for t < 0.
Solution:
a) The homogeneous solution can be obtained by assuming the following
analytical form:
yh (t) = eβt , (5.44)
where β is the parameter to be computed by taking the derivatives of
yh (t),
yh (t) = eβt
ẏh (t) = βeβt ,
(5.45)
ÿh (t) = β 2 eβt .
(β 2 + 3β + 2)eβt = 0. (5.46)
The above homogeneous equation gives a second-order characteristic equa-
tion in terms of β, with two roots:
183
yh (t) = C1 e−t + C2 e−2t . (5.48)
b) Since the system is linear, we can assume that the particular solution has
the following form,
λ
K= . (5.52)
λ2 + 3λ + 2
Interestingly, the constant parameter K depends on the parameter λ,
which is the decay or growth rate of the exponential function. Note that
λ = −1 or −2 are also the roots of the characteristic equation and for
these values of λ, K → ∞. This is a degenerate solution. When the roots
of the characteristic equation are the same as the decay values λ, the
analytical form of the particular solution must take a different form to
avoid degeneracy. The following exercise solves this problem.
c) In order to find the constant coefficients C1 and C2 , we form the general
solution, as follows,
184
and the general solution becomes
1
y(t) = [C1 e−t + C2 e−2t + et ]u(t). (5.56)
6
Finally, using the initial conditions, we obtain the values for C1 and C2 ,
and the general solution, as follows;
1 1
C1 + C2 + = 0, − C1 − 2C2 + = 0
6 6
1 1
C1 = − , C 2 = (5.57)
2 3
1 −t 1 −2t 1 t
y(t) = [− e + e + e ]u(t).
2 3 6
Exercise 5.5: Given the following second-order differential equation,
Solution:
a) The homogeneous solution is the same as the previous example,
185
and insert them into the differential equation to find the constant param-
eter, K = 2. Then, the particular solution is,
y(0) = C1 + C2 = 0, (5.68)
Remark 5.2: The above simple examples show that finding the particu-
lar solutions to the linear constant coefficient differential equations requires
heuristics to make an initial guess about the analytical form.
186
Particular input, x(t) = eλt LTI yp (t) = H(λ)eλt
PN βj t
Zero input, x(t) = 0 LTI yh (t) = j=1 Cj e
dk yp (t) dk eλt
= K = Kλk eλt (5.73)
dtk dtk
enables us to obtain the value of K in terms of the parameters of the equa-
tion ak , bk and λ. Inserting the derivatives of the particular solution into the
differential equation, we obtain
PM
k=0 bk λk
K = H(λ) = PN . (5.74)
k
k=0 ak λ
The coefficient of the particular solution, K = H(λ), is called the transfer
function.
Motivating Question: What is the meaning of the transfer function?
When the input is an exponential function, x(t) = eλt , the corresponding
output,
X N
X
βk t λt
y(t) = Ck e + H(λ)e = Ck eβk t + H(λ)x(t). (5.76)
| {z } | {z } k=1
yh yp
187
Remark 5.3: The constant coefficients, Ck , of the homogeneous solution
not only depend on the initial condition of the differential equation, but also
depend on the particular solution of an input.
Solution:
a) Recall, the Euler formula to represent cosine function in terms of complex
exponential,
ejω0 t + e−jω0 t
cos ω0 t = . (5.78)
2
We can directly use the result of the previous exercise by setting λ = jω0
to obtain the transfer function as H(jω0 ).
When the input is x(t) = ejω0 t , the corresponding output is yp (t) =
H(jω0 )ejω0 t . When the input is x(t) = e−jω0 t , the corresponding output
is yp (t) = H(−jω0 )e−jω0 t .
If we superpose the two inputs as,
ejω0 t + e−jω0 t
cos ω0 t = , (5.79)
2
we can obtain the output as the superposition of the two particular solu-
tions as follows,
1
H(jω0 )ejω0 t + H(−jω0 )e−jω0 t ,
yP (t) = (5.80)
2
where
jω0
H(jω0 ) = . (5.81)
(jω0 )2 + 3jω0 + 2
The above solution shows the power of the linearity property. Each term
in the right-hand side of Equation (5.80) shows a subsystem of the overall
system. The first subsystem receives,
ejω0 t
x1 (t) = (5.82)
2
188
x(t) = eλt LTI yp (t) = H(λ)eλt
ejω0 t +e−jω0 t 1
H(jω0 )ejω0 t + H(−jω0 )e−jω0 t
x(t) = 2 LTI yp (t) = 2
Figure 5.3: Using the superposition property to find the particular solution in
Exercise 5.6.
e−jω0 t
x2 (t) = (5.83)
2
and outputs yp2 (t). The overall particular solution is the superposition of
the two responses,
1
y(t) = C1 e−t +C2 e−2t +yp (t) = C1 e−t +C2 e−2t + H(jω0 )ejω0 t + H(−jω0 )e−jω0 t .
2
(5.86)
Since the initial conditions are not given, there are infinitely many solu-
tions, each of which depends on the constant coefficients, C1 and C2 . We
leave them as unknown parameters.
189
N
X M
X
ak y[n − k] = bk x[n − k], (5.87)
k=0 k=0
where y[n − k] and x[n − k] shows the k th difference, N is the order of the
difference equation, M is order of the difference of x[n] and {ak , bk } are the
constant parameters of the difference equation.
As in the continuous-time systems, we can define the initial condition to
satisfy the initial rest property of the system, as defined below.
The initial rest condition is crucial for discrete-time LTI systems repre-
sented by a difference equation. It simplifies finding the solution, which pro-
vides an explicit analytical expression for the output of the system for a given
input.
represents a discrete time, causal LTI system, which relates the superposition
of the input x[n − k] to that of the output y[n − k].
Since the verification of this proposition is a trivial extension of the con-
tinuous time case, it is omitted here. When we represent a discrete time causal
190
PN PM
x[n] k=0 ak y[n − k] = k=0 bk x[n − k] y[n]
LTI system with a difference equation, we can replace the impulse response
with the difference equation, in the black box, as shown in Figure 5.4.
This is a recursive equation. Given the input, x[n] and and N initial conditions,
Solution:
a) Let us leave y[n] alone in the left-hand side of the equation;
191
y[n]
12.25
8.0 6.5
5.0
n
0 1 2 3
Figure 5.5: Solution of the difference equation of y[n] = 12 y[n − 1] + x[n] with
initial condition, y[−1] = 16. Notice that the plot continues as we increase n.
1
y[n] = y[n − 1] + x[n]. (5.93)
2
Then, using the initial condition and input let us evaluate the values of
y[n] for all n, as follows:
y[0] = 8
1
y[1] = y[0] + 1 = 5
2
1
y[2] = y[1] + 4 = 6.5 (5.94)
2
1
y[3] = y[2] + 9 = 12.25
2
..
.
y[n] is plotted in Figure 5.5.
b) This system is not initially at rest, since for n = 0, the input is x[n] = 0,
however, the output is y[0] = 8.
192
and solve it recursively:
Recall that
n
X 1 − αn+1
αk = . (5.99)
1−α
k=0
It can also be represented by its impulse response h[n]. Suppose that we feed
the following exponential input to the system:
x[n] = eλn .
The corresponding output can be obtained by the convolution sum:
∞ ∞
!
X X
λ(n−k) λn −λk
y[n] = x[n] ∗ h[n] = e h[k] = e h[k]e . (5.102)
k=−∞ k=−∞
193
Above equation reveals that the exponential input is directly passed to the
output with a scaling factor,
∞
X
λ
H(e ) = h[k]e−λk , (5.103)
k=−∞
Arranging the above equation, we obtain the transfer function for discrete-
time LTI systems in terms of the parameters of the difference equation, as
follows:
PM
λ k=0 bk e−λk
H(e ) = PN . (5.105)
−λk
k=0 ak e
Hence, when the input of a discrete-time LTI system is an exponential
function, the corresponding output is just the scaled version of the input,
where the scaling factor H(eλ ) is called the transfer function.
194
Therefore, we should be able to obtain impulse response from a differential
or difference equation. All we have to do is to replace the input by the impulse
function and to replace the corresponding output by the impulse response.
Then, we solve the differential equation, which represents the LTI system, to
get an explicit analytical form for the impulse response.
Let us try to find the impulse response from a differential equation in the
following example.
Exercise 5.9: Find the impulse response, h(t) of the following first order
differential equation, which is initially at rest:
Solution: Recall that impulse response is the output of an LTI system when
the input is an impulse function, i.e., x(t) = δ(t). Thus, replacing the input by
the unit impulse function in the differential equation, we obtain the following
differential equation:
195
Z +0
dh(τ ) = h(+0) − h(−0). (5.112)
−0
Thus, the particular solution provides an auxiliary condition for the impulse
response, as h(+0) = 1. This condition is used to find the constant parameter
C of the homogeneous solution hH (t),
Remark 5.4: The particular solution just provides us with the initial con-
dition as h(+0) = 1.
The above example to find the impulse response from the differential equa-
tion, can be expanded to a general differential equation as follows:
Given an N th order ordinary differential equation which represents a system
that is initially at rest,
N
X N
X
ak y (k) (t) = x(t), ak h(k) (t) = δ(t) (5.116)
k=0 k=0
196
provides the impulse response, as exemplified in the following exercise.
Solution:
a) The unit step response, s(t) is obtained when the particular input to this
equation is x(t) = u(t). The equation becomes
α2 + 3α + 2 = 0. (5.121)
with two roots α1 = −1 and α2 = −2. Thus, the homogeneous solution,
for zero input response has the following form:
2K = 1 for t ≥ 0. (5.124)
The general solution is then,
1
s(t) = [C1 e−t + C2 e−2t + ]u(t). (5.125)
2
197
The parameters C1 and C2 are obtained by using the initial conditions
ṡ(0) = s(0) = 0, in the above equation, as follows:
1
C1 + C2 + =0 (5.126)
2
1
−C1 − 2C2 + = 0 (5.127)
2
Then, C1 = −1 and C2 = 12 . The unit step response is then,
1 1
s(t) = [−e−t + e−2t + ]u(t). (5.128)
2 2
b) The impulse response of the LTI system is obtained by taking the deriva-
tive of the unit step response:
1
h(t) = [e−t − e−2t ]u(t) (5.129)
2
Obtaining the impulse response for a discrete-time LTI system from a dif-
ference equation is relatively easy compared to the continuous case, as shown
in the example below.
Exercise 5.11: Find the impulse response for the following discrete-time LTI
system, which is initially at rest,
198
h[n]
1
1
2
1
4
n
0 1 2
h[0] = 0.5h[−1] + 1 = 1
1
h[1] = 0.5h[0] + 0 =
2
2
1 1 1
h[2] = . = (5.133)
2 2 2
3
1 1 1 1
h[3] = . . =
2 2 2 2
...
Thus, the impulse response can be obtained in the following closed form,
n
1
h[n] = u[n]. (5.134)
2
2
Remark 5.5: The filter, h[n] = 12 u[n], has an infinite length of 0 ≤
n ≤ ∞. For this reason, this is an infinite impulse response (IIR) filter
(Figure 5.6).
Solution: Let us set y[n] = h[n] for x[n] = δ[n]. Then, the impulse response
is obtained as follows:
199
h[n]
b1 b4
b0 b2
bM
b3
n
finite length
Figure 5.7: Impulse response of a FIR (Finite Impulse Response) filter is the
shifted superposition of the impulse functions, δ[n − k].
M
X
h[n] = bk δ[n − k]. (5.136)
k=0
Remark 5.6: The above filter has only non-zero values in a finite interval,
i.e., h[n] ̸= 0 for 0 ≤ n ≤ M . For this reason, it is a finite impulse response
(FIR) filter (Figure 5.7).
Note that FIR filters are realizable in the physical environment by hard-
ware. They are widely used in many application areas of signal processing to
shape up a finite-length input signal.
200
x1 + y = x1 + x2
x2
a y = xa
x
dx(t)
y(t) = (5.138)
dt
for continuous time systems, and it is symbolized as shown in Figure 5.13.
In the following exercises, we find the block diagram representation of dif-
ferential and difference equations to realize LTI systems. We also find the
differential and difference equations, given block diagrams.
201
x[n] A y[n] = x[n + 1]
R Rt
x(t) y(t) = −∞ x(τ )dτ
Solution: Leave the highest order of the derivative on the left-hand side of
the equation,
Remark 5.8: The block diagram representation is not unique. We could use
differentiators instead of the integrator to represent the same system. Another
block diagram representation can be obtained by leaving y(t) on the left-hand
side:
b 1
y(t) = x(t) − ẏ(t). (5.141)
a a
The corresponding block diagram is given in Figure 5.15.
d dx(t)
x(t) dt y(t) = dt
202
b ẏ(t) R
x(t) + y(t)
−a
Figure 5.14: The output of the adder is ẏ(t), which is equal to bx(t) − ay(t). If
we integrate ẏ(t), we get the output signal y(t).
b
a y(t) d
x(t) + dt
ẏ(t)
− a1
Exercise 5.14: Find the block diagram representation of the following discrete-
time LTI system:
203
x[n] D + y[n]
−a
+ y[n − 1]
−b
y[n − 2]
x(t) + y(t)
+
−1
Z
y(t) = [x(t) − y(t)]dt + x(t). (5.144)
204
2
x[n] + y[n]
Solution: The output of the adder gets multiplied by 2, and becomes y[n].
Therefore, the output of the adder should be 12 y[n]. If we equate the inputs
and the output of the adder, we obtain the difference equation:
1
y[n] = x[n] + y[n − 1]. (5.147)
2
205
diagrams and realize them in real-life applications.
206
Problems
1. The general form of an N th order homogeneous differential equation is
given below:
N
X dk y(t)
ak = 0.
dtk
k=0
N
X
ak sk = 0.
k=0
b) How many different solutions can you obtain for this differential equa-
tion if the initial conditions are not specified?
2. A second-order homogeneous differential equation is given below:
a) Find the solution of this equation for the initial conditions y(0) =
ẏ(0) = 0.
b) Compare the solution you obtained in part a to that of Problem 2.b.
Explain the changes and no changes.
4. An initially at rest continuous time system is represented by the following
first-order differential equation:
207
a) Find the output of the system, y1 (t), for the input x1 (t) = 3e3t .
b) Find the output of the system, y2 (t), for the input x2 (t) = 2e2t .
c) Find the output of the system, y(t) for the input x(t) = 6e3t + 6e2t .
d) Find the output of the system, y3 (t), for the input x3 (t) = Ae2t u(t).
e) Find the output of the system in terms of y3 (t), which you calculated
in part d, for the input Ae2(t−T ) u(t − T ).
5. A continuous-time LTI system is represented by the following first-order
differential equation;
where x(t) is the input and y(t) is the output of the system.
a) Find the output y(t) of this system for the input x(t) = e(3j−1)t u(t).
b) What is the output of the system, y(t), when the input is Re{x}(t)?
c) Find a transfer function of this system.
6. The transfer function of a continuous time LTI system is given as follows:
2λ
H(λ) = ,
λ2 − 2λ + 1
where the system is initially at rest.
a) Find the differential equation that represents this system.
b) Find the output of this system for x(t) = 0.
c) Find the output of this system for x(t) = (2t + 1)u(t).
7. The general form of an N th order homogeneous difference equation is
given below:
N
X
ak y[n − k] = 0
k=0
N
X
ak z k = 0
k=0
b) How many different solutions can you obtain for this differential equa-
208
tion if the initial conditions are not specified?
8. A second-order homogeneous difference equation is given below:
a) Find the solution of this equation for the initial conditions y[0] =
y[1] = 0
b) Compare the solution you obtained in part a to that of the Problem
8.b. Explain the changes and no changes.
10. A discrete-time system is represented by the following difference equation;
1 1
y[n] = y[n − 1] + x[n].
3 9
a) Does this system satisfy the conditions of initially rest for the initial
condition y[0] = 1?
b) Is this system LTI? Verify your answer.
c) Find the transfer function of this system.
11. A discrete-time LTI system, which is initially at rest, is represented by
the following difference equation
1
y[n] = y[n − 1] + 2x[n − 2].
5
a) Find the impulse response of this system.
b) Find the transfer function of this system.
c) Find a block diagram representation of this system using the adders
and unit delay operators.
12. A discrete-time LTI system is represented by the following difference equa-
tion. Assume that the system is initially at rest.
209
1 3
y[n] + y[n − 1] + y[n − 2] = x[n]
2 20
Find the output, y[n], of the system for the following input.
1
y[n] = y[n − 1] + x[n],
2
where the system is initially at rest.
a) Find the homogeneous solution of the system.
1
b) Find the general solution of the system for the input x[n] = ( )n u[n].
4
c) Find the impulse response of this system.
14. A discrete-time causal LTI system consists of two subsystems, S1 and S2 ,
given below;
w[n]
x[n] S1 S2 y[n]
1
w[n] = w[n − 1] + x[n]
3
The subsystem S2 is represented by the following difference equation:
2 1
y[n] = y[n − 1] + w[n]
3 2
a) Find the difference equation for the overall system, which relates the
input x[n] and output y[n].
b) Draw a block diagram of the overall system, which receives the input
x[n] and outputs y[n], using adders and unit delay operators.
c) Find and plot the impulse response of the overall system.
210
15. The following discrete system consists of three subsystems, with impulse
responses, h1 [n], h2 [n], and h3 [n] = h2 [n], respectively.
211
e) Is this system causal?
18. A continuous-time system S is represented by the impulse response h(t).
x(t) S y(t)
dx(t)
x1 (t) = dt
h(t) y1 (t) = −3y(t) + e−2t u(t)
1
y[n] − y[n − 1] = x[n].
4
a) Find and plot the output y[n] for n = 0 and for the input x[n] = δ[n].
b) Find and plot the impulse response, h[n], for n ≥ 1.
20. Find the impulse response, h[n] of an initially at rest discrete-time system,
represented by the following difference equation:
1
y[n] − y[n − 1] = x[n] + 2x[n − 1].
4
21. For the discrete-time LTI system given below:
N
X
y[n − k] = x[n],
k=0
22. Find the impulse responses of the causal LTI systems represented by the
212
following difference equations:
a) y[n] − 12 y[n − 2] = x[n]
b) y[n] − 21 y[n − 2] = x[n] + x[n − 1]
c) y[n] − y[n
√
− 2] = x[n] − 2x[n − 4]
3
d) y[n] − 4 y[n − 1] + 41 y[n − 2] = x[n]
23. A discrete-time system is represented by the following difference equation;
1 1
y[n] = y[n − 1] + x[n].
3 2
a) Find a block diagram representation of this system using adders and
unit delay operators.
b) Find a block diagram representation of this system using adders and
unit advance operators.
24. A discrete-time LTI system is represented by the following block diagram:
a) Find the difference equation corresponding to the following block di-
agram.
b) Find a block diagram representation using unit advance operators
and adders.
x[n] D + y[n]
1
3
D
213
25. A continuous time causal LTI system is represented by the following dif-
ferential equation:
1
y(t) = − ẏ(t) + 4x(t).
2
a) Find a block diagram representation of this system using integrators
and adders.
b) Find a block diagram representation of this system using differentia-
tors and adders.
26. A continuous-time LTI system is represented by the following block dia-
gram:
R
x[n] + y[n]
3 R
214
Chapter 6
Fourier Series Representation
of Continuous-Time Periodic
Signals
215
Z ∞
y(t) = x(τ )h(t − τ )dτ, (6.3)
−∞
for continuous-time systems,
∞
X
y[n] = x[k]h[n − k], (6.4)
k=−∞
All of the above functions and equations represent the signals and systems
in terms of time.
Motivating Questions: Can we represent signals and systems in domains
other than time, such that they provide different types of useful information
about the underlying phenomena? How can we model our observations, such as
the trajectory of celestial objects, to study the universe surrounding us? How do
we represent a periodic motion? Is it possible to represent complicated periodic
motions in terms of simple periodic functions? Is it possible to represent any
function in terms of simple periodic motions at all? If this is ever possible,
what is the relationship between this new representation and the time domain
representation of the function?
Human curiosity has searched for answers to questions of this kind over the
centuries of the history of science, as summarized in the next section.
6.1. History
At the heart of the Fourier analysis lies the periodic motions and harmony.
The very first question was asked by the Babylonians, around 1500 BC,
when they attempted to understand what was happening in the sky: Is it
possible to model the motion of terrestrial objects, which repeats with some
regularity?
216
In order to answer this question they recorded the location of the sun and
moon relative to time to predict their trajectories. Following the Babyloni-
ans, Indian mathematicians developed an early version of the periodic func-
tions, called Jiva, in Sanskrit. In 9th century AD, Muhammad ibn Musa Al-
Khwarizmi, produced the first accurate tables of periodic motions, by improv-
ing Jiva, and named it as Jaib, which means bosom in Arabic. The term
Jaib is translated in Latin as Sinus, meaning bosom or bay, to represent pe-
riodic motion. Al-Khwarizmi was, also, a pioneer in circular trigonometry.
The scientists in medieval Islam accomplished a series of studies for calcu-
lating the trajectories of celestial objects using the simple periodic functions.
Among them, Al-Biruni, Al-Farghani, Al-Haytham, used circular motion
and trigonometry to formalize the periodic motion.
The next important question was asked by the European mathematicians
in enlightenment: Is it possible to represent complicated periodic motions in
terms of simple periodic functions?
Answering this question was possible by using the concept of harmony. In
18th century, L. Euler expressed a periodic motion of a string in terms of the
linear combination of the harmonically related sinusoidal functions. However,
J. Bernoulli and J. L. Lagrange argued that the representation of functions
as a superposition of periodic waveforms was not possible, especially, when the
function has sharp corners.
Finally, Jean-Baptiste Joseph Fourier claimed that any periodic func-
tion can be represented in terms of the superposition of harmonically related
sine and cosine functions, today, known as Fourier series for continuous-time
functions. Then, he extended this idea to any continuous-time aperiodic func-
tion and he wrote his pioneering paper, in 1807. Four referees examined this
mind-blowing work: S.F. Lacroix, G. Mogne, P.S. Laplace and his advi-
sor, J. L. Lagrange. Three of the committee members accepted the paper.
However, his advisor, Lagrange rejected the paper and it was not published. In
1822, Fourier published his theorems in a book called, Theory Analytique
de La Chaleur (Heat Diffusion). Later, in 1829, P. G. L. Dirichlet, a
student of Fourier showed that under some conditions, Fourier’s theorems are
correct. These conditions are called Dirichlet conditions.
217
ditions, can be represented in terms of the superposition of harmonically
related waves.
• Furthermore, any function, satisfying a set of conditions, called Dirichlet
conditions, can be represented in terms of the superposition of harmoni-
cally related waves.
Motivating Question: But, what is a wave?
Loosely speaking, waves are defined as propagating dynamic changes from
an equilibrium of one or more quantities. Waves can be periodic, in which
case those quantities oscillate repeatedly about an equilibrium value at some
frequency.
Examples of waves include sound waves, light waves, radio waves, mi-
crowaves, water waves, stadium waves, earthquake waves, waves on a string.
218
θ
θ π 2π
219
∞
X
x(t) = ak ejkω0 t . (6.9)
k=−∞
Exercise 6.1: Can we represent the following signal in terms of the super-
position of complex exponentials?
x(t)
1.0
0.5
t
−3 −2 −1 0 1 2 3
−0.5
−1.0
Figure 6.3: Plot of the periodic function, x(t) = 0.5 sin(2πt) + 0.5 cos(πt).
Solution: Let us use the Euler formula to represent the sines and cosines in
terms of complex exponentials.
∞
X
x(t) = ak ejkω0 t = a0 + a1 ejω0 t + a−1 e−jω0 t + a2 e2jω0 t + a−2 e−2jω0 t + . . . ,
k=−∞
(6.12)
where ejkω0 t s
are infinitely many harmonically related complex exponentials,
since the integer value, k, ranges in {−∞, ∞}.
According to this equation,
220
β2
- for k = ±1 → a1 = a−1 = 2
- for k = 2 → a2 = β2j1 ,
- for k = −2 → a−2 = − β2j1 ,
- otherwise, ak = 0.
Thus, function x(t) is represented by four coefficients of the harmonically re-
lated complex exponential functions as
221
|ak |
^ak
0.25
−2 2
k
−1 1
k −0.5π
−2 −1 1 2
Figure 6.4: Magnitude |ak | vs. k and phase ∢ak vs. k plots. The magnitudes
are all the same for non-zero values of ak , indicating equal contribution of all
of the harmonics. There are two nonzero phases at k = ±2, which shows that
the harmonics line up at ∢ak = −0.5π.
222
−1 0 1 2
t
x(t)
Figure 6.5: The plot of x(t) = ln(t), for 0 ≤ t ≤ 1 and x(t) = x(t + 1).
Solution: No, because the absolute integral of this function is not finite:
Z 1
| ln(t)|dt → ∞. (6.17)
0
Condition 2. The function x(t) must have bounded variation in any finite
interval. That is, the number of minima and maxima should be bounded in
any finite interval.
3π
x(t) = sin for 0 ≤ t ≤ 1 and x(t) = x(t + T ) for T = 1.
4t
223
x(t)
t
1
Solution: No, because the number of minima and maxima of this function in
a finite period is ∞. The plot of this function is shown in Figure 6.6.
Solution: Since there are infinitely many positive integers, this function
switches between 0 and 1 infinitely many times. This implies an infinite number
of discontinuities. Therefore, this function does not satisfy Condition 3.
224
monically related complex exponentials:
∞
X
x(t) = ak ejkω0 t Synthesis Equation (6.19)
k=−∞
1
Z
ak = x(t)e−jkω0 t dt Analysis Equation (6.20)
T T
The limits of the integral covers one full period T of the periodic function x(t).
Remark 6.1: When the function x(t) does not satisfy the Dirichlet con-
ditions, it is not possible to find the Fourier series coefficients, ak , since the
integral, which defines the coefficients, is not bounded or does not exist. Al-
though the Dirichlet conditions are rather intuitive, the formal proof of the
conditions are beyond the scope of this book.
Proof Sketch for the Fourier Theorem. Multiply both sides of the Fourier
Series representation equation by e−jnω0 t :
∞
X ∞
X
x(t)e−jnω0 t = ak ejkω0 t e−jnω0 t = ak ej(n−k)ω0 t . (6.21)
k=−∞ −∞
which gives us the synthesis equation of the Fourier Theorem. In this represen-
tation, each ak measures the amount of the k th harmonic in the function x(t).
The following remark is about the evaluation of the integral on the right-hand
side above.
(
T
T for n = k,
Z
< ejnω0 t , ejkω0 t >= ejnω0 t e−jkω0 t dt = (6.23)
0 0 otherwise.
As an exercise, you can try to prove Equation (4). (Hint: Handle n = k and
225
n ̸= k cases separately, and use the relationship between the angular frequency
and the fundamental period, ω0 = 2π T ).
is constant, showing the area under the curve of the function x(t). For this
reason, a0 is called the average term.
• The spectral coefficients of the lowest frequency harmonics, ak and a−k , for
|k| = 1,
1
Z
a±1 = x(t)e±jω0 t dt (6.25)
T T
is called the spectral coefficients of the fundamental frequency.
• The rest of the frequencies of ak for |k| ≥ 2 are called the k th harmonic.
Fourier series representation of a function, x(t), forms a rigorous framework
for the development of digital technology, since it bridges the continuous and
discrete-time world, as we shall later see in the Sampling Theorem (Chapter
11). It has a great impact in many fields of science and engineering, whenever
the frequency content of the functions provides us with useful information
about the underlying physical phenomenon.
Motivating Question: What do the analysis and synthesis equation tell
us about the function x(t)?
Let’s give a glimpse of the meaning of Fourier series representation, by
introducing a new space, called the Hilbert space.
226
6.6. Frequency Domain and Hilbert Spaces
A Hilbert space is considered a vector space, spanned by functions, rather
than vectors, where the distance between the functions is defined by the inner
products.
Recall a vector space of dimension n, where we represent a vector, x ∈ V n ,
as the linear combination of the basis vectors as follows:
n
X
x= ak ek . (6.26)
k=1
Recall, also, that ak ’s are called the coordinates of the vector x = [a1 a2 .... an ]T ,
with respect to the set of basis vectors, {ek }nk=1 .
In the above representation, we may use the standard basis vectors, ek =
[0....1....0]T for k = 1, ..., n, where the k th entry has value 1 and all other entries
are zeros. The superscript, T , of the vectors indicate the vector transpose
operation.
227
e2
x = [a1 a2 ]
a2
e1
a1
Solution: a) The coordinates a1 and a2 are the inner product of the vector x
with the basis vectors, e1 and e2 . Mathematically,
228
Learn more about vector spaces @ https://
384book.net/v0604
WATCH
229
Z b
< x(t), y(t) >= x(t)y ∗ (t)dt, (6.32)
a
where [*] indicates the complex conjugate operation.
x(t) ←→ ak . (6.33)
In time domain, a signal is represented by a function, where the domain of
the function is time, whereas in the frequency domain a signal is represented
by the coordinates {ak } of harmonically related frequencies, called spectral
coefficients. Observe that since the function x(t) is continuous, the time variable
is a real number, t ∈ R. On the other hand, the spectral coefficients have integer
harmonics, k ∈ I.
There are beautiful properties of Hilbert spaces, which is beyond the scope
of this course.
230
ak
1
1
2
k
−1 1
Figure 6.8: The plot of the spectral coefficients ak vs. k in Exercise 6.6.
∞
X 1
x(t) = ak ejkω0 t = 1 + (ejω0 t + e−jω0 t ), (6.36)
2
k=−∞
and equating the coefficients of harmonic exponential functions with the same
harmonics k in both sides of the equation, we obtain the Fourier series coeffi-
cients as a0 = 1, a1 = a−1 = 21 , and ak = 0 for |k| > 1. The plot of ak is given
in Figure 6.8.
Solution: As we did in the previous example, we use the Fourier series syn-
thesis equation together with the Euler formula:
1 1
x(t) = 1 + (ejω0 t + e−jω0 t ) + (ejω0 t − e−jω0 t ) (6.38)
2 2j
∞
1 jω0 t 1 −jω0 t
X
= 1 + (1 − j)e + (1 + j)e = ak ejkω0 t . (6.39)
2 2
k=−∞
Equating the coefficients of the exponential functions with the same harmonics,
we obtain a0 = 1, a1 = 12 (1 − j), a−1 = 21 (1 + j) and ak = 0 for |k| > 1.
Note: The coordinates of the function in Hilbert space are complex numbers.
Recall that, complex numbers can be represented in two different coordinate
systems:
231
|ak | θk
π
4
1
√1
2 k
−1 1
−π
k 4
−1 1
Figure 6.9: Plot of magnitude spectrum (left) and phase spectrum (right) of
the Fourier Series coefficients of x(t) = 1 + cos(ω0 t) + sin(ω0 t).
Re{ak }
θk = tan−1 . (6.41)
Im{ak }
Let us plot the spectral coefficients ak vs. k in the polar coordinate system. In
this case, we need two plots:
1) Magnitude spectrum, which is the plot of the magnitude of Fourier
series coefficients |a1 | = |a−1 | = √12 , a0 = 1.
2) Phase spectrum, which is the plot of the phase of the Fourier series
coefficients, θ1 = − π4 , θ−1 = π4 , and θ0 = 0.
The magnitude and phase spectrum are given in Figure 6.9.
Solution: Since the above signal does not consist of trigonometric functions,
232
x(t)
−T −T0 T0 T
Figure 6.10: A periodic function, called pulse train, which repeats itself at every
period, T .
1 T0 −jkω0 t 1 jkω0 T0
Z
−jkω0 T0
ak = e dt = e −e
T −T0 jkω0 T (6.44)
1 1 T0
= sin(kω0 T0 ) = sin(2πk )
πk πk T
where the angular frequency is ω0 = 2π T .
Motivating Question: What is the effect of the fundamental period T of
x(t) on the spectral coefficients ak ?
In order to answer this question let us plot the spectral coefficients for three
cases of the fundamental period:
1
Case 1: For T = 4T0 → ak = πk sin(kπ/2).
1
Case 2: For T = 8T0 → ak = πk sin(kπ/4).
1
Case 3: For T = 16T0 → ak = πk sin(kπ/8).
Figure 6.11 shows the spectrum of ak vs. k for T = 4T1 , T = 8T1 , and
T = 16T1 . When you compare the spectral coefficients of the function x(t), in
the Fourier domain, what do you observe?
Recall that, the spectral coefficient, ak , for each k shows the amount of
233
αk αk αk
0.5 0.5 0.2
0 0 0
Figure 6.11: Plot of Fourier spectrum (k vs. ak ) for T = 4T0 and T = 8T0 and
T = 16T0 for the signal in Exercise 6.8.
the corresponding harmonic frequency in the signal, x(t). For small periods,
e.g. T = 4T0 , the signal x(t) has relatively less low-frequency components,
compared to the other signals. As we increase the period of the signal, the
low frequency components increase, and the rate of change of the spectral
coefficients decreases. Investigation of the behavior of the spectral coefficients
shows the amount of each frequency component relative to each other, which
makes the signal. This is why we call the plot, ak vs. k as spectrum, meaning
the band of frequencies, in x(t).
234
• A periodic function can be uniquely represented in terms of the superposi-
tion of the harmonically related complex exponentials, called Fourier series
representation,
∞
X
x(t) = ak ejkω0 t , (6.46)
k=−∞
where
1
Z
ak = x(t)e−jkω0 t dt. (6.47)
T T
In this section, we observe one more property of the complex exponential
function from the systems point of view: When a complex exponential is fed
at the input of an LTI system, we obtain a response, which is just the scaled
version of the input. The function satisfying this property is called the eigen-
function of an LTI system. We hinted at this behavior when we described the
“transfer function” of LTI systems represented by differential and difference
equations, in Chapter 5.
Aξ = λξ. (6.49)
The above equation states that an N × N matrix operator, A, can be
represented by a simple scalar, λ, when it is multiplied by an eigenvector, ξ,
of that matrix. In other words, instead of multiplying the matrix A by one
of its eigenvectors, we simply multiply it with the corresponding eigenvalue
to get the same result of multiplication. The scalar eigenvalue λ replaces the
entire N 2 elements of the matrix when it is multiplied with an eigenvector.
That is why we call the λ value and the corresponding vector as eigen, which
is a German word, meaning “own”, in English. The scalar λ characterizes a
matrix with N 2 entries on its own, in a very compact form, when the matrix
is multiplied by its own (eigen) vectors.
235
x(t) = ejω0 t h(t) y(t) = H(jω0 )ejω0 t
Recall from Linear Algebra that the eigenvectors of a matrix are orthogonal
to each other and they form a basis of a vector space, where the entries of each
vector in this space are the coordinates of the vector with respect to the basis
vectors.
where ω0 = 2π/T0 is the angular frequency of the periodic input. The output
of the LTI system to the input, x(t) = ejω0 t , can be written as
Z ∞
y(t) = e jω0 t
h(τ )e−jω0 τ dτ. (6.52)
−∞
Note that the integral,
Z ∞
H(jω0 ) = h(τ )e−jω0 τ dτ, (6.53)
−∞
is just a scaling factor of the input, x(t) = ejω0 t , of the LTI system.
Therefore, when the input is a complex exponential, x(t) = ejω0 t , the cor-
responding output, y(t) = H(jω0 )ejω0 t , is just the scaled form of the input.
236
Definition 6.3: Eigenvalue of a continuous-time LTI system for a
complex exponential input x(t) = ejω0 t is defined as
Z ∞
H(jω0 ) = h(τ )e−jω0 τ dτ, (6.54)
−∞
Remark 6.5: A linear time-invariant system has eigenvalues for each har-
monic of the complex exponential. Formally speaking, when the input is an
eigenfunction which corresponds to the k th harmonic of the complex exponen-
tial function,
Exercise 6.9: Find an eigenvalue and impulse response of the following con-
tinuous time system.
237
Inserting this input into the system equation, we get
Note that in the above example, each H(jkω0 ) is an eigenvalue of the LTI
system when the input is the eigenfunction x(t) = ejkω0 .
As we increase the number of the terms, N , the function gets better ap-
proximated by the series sum. The error between the theoretical and practical
computation can be defined as
238
1 1 1
N =1 N =2 N = 50
0 0 0
−1 −1 −1
239
properties not only link the time domain and frequency domain, but they also
enable us to solve many problems, which are not mathematically tractable in
time domain. Also, the frequency domain representation of signals enables us
to observe properties of signals and systems, which are not possible to observe
in the time domain.
The most crucial characteristics of the relationship between time and fre-
quency domain is the representation of functions in these two separate domains
are one-to-one and onto,
x(t) ←→ ak . (6.67)
In other words, if a periodic function, x(t), satisfies the Dirichlet conditions,
we can uniquely obtain its Fourier series representation by finding the spectral
coefficients using the analysis equation of Fourier Theorem:
1
Z
ak = x(t)e−jkω0 t dt. (6.68)
T T
Equivalently, if the spectral coefficients, {ak }, ∀k, are given, we can ob-
tain the time domain representation of the function, x(t), uniquely, using the
synthesis equation:
∞
X
x(t) = ak ejkω0 t . (6.69)
k=−∞
Let us briefly outline the relationships among the time and frequency do-
main representation of functions and their properties.
Time Shifting Property. A time shift of the function, x(t) by the amount
of t0 , is equivalent to multiplication of its spectral coefficients by the complex
exponential, e−jkω0 t0 . Mathematically, if
240
x(t) ←→ ak and y(t) = x(t − t0 ) ←→ bk , (6.72)
then,
bk = e−jkω0 t0 ak . (6.73)
Time shifting property can be easily shown by inserting the shifted signal into
the analysis equation:
1
Z
y(t) ←→ bk = x(t − t0 )e−jkω0 t dt. (6.74)
T T
Let us replace the dummy variable of the integral by t′ = t − t0 =. Then, the
above analysis equation becomes,
1 −jkω0 t0 1
Z Z
′ −jkω0 (t0 +t′ ) ′
bk = x(t )e dt = e x(t′ )t0 e−jkω0 t dt′ = e−jkω0 t0 ak .
T T T T
(6.75)
Time Scale Property. Scaling the time of a function, x(t), does not change
its spectral coefficients, ak , but the fundamental frequency of the spectral co-
efficient is scaled to αω0 .
Formally speaking, the Fourier series representation of x(αt) is defined as,
∞
X
x(αt) = ak ejk(αω0 )t . (6.76)
k=−∞
The above synthesis equation shows that the spectral coefficients of the
scaled function x(αt) are the same as the spectral coefficients of the signal
x(t). However, the angular frequency is scaled by α. Hence, the fundamental
2π
period of x(αt) is T = αω 0
.
241
bk = a−k . (6.79)
1 ∞
Z
x(t) ∗ y(t) ←→ ck = (x(t) ∗ y(t))e−jkω0 t dt
T −∞
(6.81)
1 ∞ ∞
Z Z
= x(τ )y(t − τ )e−jkω0 t dτ dt.
T −∞ −∞
1 ∞
Z Z ∞
−jkω0 t ′
ck = x(τ )e dτ y(t′ )e−jkω0 t dt′ . (6.82)
T −∞ −∞
Above, the first and second integrals are equivalent to T ak and T bk , respec-
tively. Hence, the spectral coefficients of two convoluted periodic signals, x(t) ∗
y(t), is the multiplication of their spectral coefficients, scaled by the funda-
mental period:
x[n] ∗ y[n] ←→ T ak bk . (6.83)
242
∞ ∞
X X k+l
x(t)y(t) = ak bl e−j2π T
.
k=−∞ l=−∞
∞ ∞ (6.86)
−j2π m
X X
= ak bm−k e T .
k=−∞ m=−∞
Considering the fact that the spectral coefficients, ak vs. k and bk vs. k,
are discrete functions, the operation,
X
ak ∗ bk = am bk−m , (6.88)
∀m
1
Z X
|x(t)|2 dt = |ak |2 . (6.90)
T T
∀k
We can show Parseval’s equality by inserting the analysis equation into the
left-hand side of the above equation:
243
1 1
Z Z
2
|x(t)| dt = x(t)x∗ (t)dt
T T T T
∞ ∞ (6.91)
1
Z X X
= ak ejkω0 t a∗l le−jlω0 t dt.
T T k=−∞ l=−∞
∞ ∞
1 1
Z Z X X X
|x(t)|2 dt = ak a∗l e(k−l)jω0 t dt = |ak |2 . (6.93)
T T T T k=−∞ l=−∞ ∀k
dx(t)
←→ (jkω0 )ak . (6.94)
dt
We can derive the differentiation property by taking the derivative of both
sides of the synthesis equation with respect to t:
∞
dx(t) X
= (jkω0 )ak ejkω0 t . (6.95)
dt
k=−∞
244
Table 6.1: Summary of the continuous-time Fourier Series properties.
Periodic signal Fourier series coefficient
x(t) is periodic with fundamental period T0 ak
x(t − t0 ) ak e−jkω0 t0
x∗ (t) a∗−k
x(−t) a−k
x(t) ∗ y(t) T0 ak bk
P∞
x(t)y(t) t=−∞ al bk−l
d
dt x(t) jkω0 ak
Rt 1
−∞ x(τ )dτ (Bounded and periodic only if
jkω0
αk
a0 = 0)
a = a∗−k
k
Re{ak } = Re{a−k }
For real-valued x(t): Im{ak } = −Im{a−k }
|ak | = |a−k |
∢ak
= −∢a−k
245
Table 6.1: Summary of the continuous-time Fourier Series properties. (Contin-
ued)
∞
1
Z X
2
Parseval’s relation: |x(t)| dt = |ak |2
T0 T0
k=−∞
Table 6.2: Some popular continuous-time periodic signals and their spectral
coefficients.
Periodic signal ak or Fourier series expansion
x(t) = ∞ 1
P
n=−∞ δ(t − nT ) ak = T for all k
0, T1 < |t| ≤ 2
with fundamental period T0
(
1, 0<t<π 4 sin t sin 3t sin 5t
x(t) = π 1 + 3 + 5 + ...
−1, −π < t < 0
(
t, 0<t<π π 4 cos t cos 3t cos 5t
x(t) = 2 − π 12
+ 32
+ 52
+ ...
−t, −π < t < 0
sin t sin 3t sin 5t
x(t) = t, −π < t < π 2 1 + 3 + 5 + ...
sin t sin 3t sin 5t
x(t) = t, 0 < t < 2π π−2 1 + 3 + 5 + ...
2 4 cos 2t cos 4t cos 6t
x(t) = | sin t|, −π < t < π π − π 1·3 + 3·5 + 5·7 + ...
0, 0 < t < π − α
α 2 sin α cos t sin 2α cos 2t sin 3α cos 3t
x(t) = 1, π − α < t < π + α
π −π 1 + 2 + 3 + ...
0, π + α < t < 2π
Let us now solve some exercises to demonstrate the power of the properties
246
x(t) ak
t k
−T T -2 -1 1 2
Exercise 6.10: Find the spectral coefficients of the following impulse train,
∞
X
x(t) = δ(t − kT ), (6.96)
k=−∞
Solution: Apply the analysis equation to cover one full period of the signal
x(t),
T /2
1 1
Z
ak = δ(t)e−jkω0 t = . (6.97)
T −T /2 T
The signals and their spectral coefficients are plotted in Figure 6.14.
Exercise 6.11: Find the spectral coefficients of the derivative of the square
wave given below:
247
g(t)
q(t)
1
... ...
... ... T1
t
−T −T1 T
t
−T −T1 T1 T
Figure 6.15: Square wave of width 2T1 and period T and its derivative.
(
1, if |t| < T1
g(t) = (6.98)
0, if T1 ≤ |t| ≤ T − T1 ,
where g(t) = g(t + T ).
Solution: The plot of g(t) and its derivative are given in Figure 6.15. The
derivative q(t) of the square wave is an impulse train with alternating sign, at
the discontinuities of g(t), as follows:
∞
X ∞
X
q(t) = δ(t − kT + T1 ) − δ(t − kT − T1 ). (6.99)
k=−∞ k=−∞
is ak = T1 . Using the time shift and linearity property, we obtain the spectral
coefficients of q(t), as follows;
2j
bk =
sin(kω0 T1 ). (6.102)
T
In fact, if we use the differentiation property, we can obtain the spectral co-
efficients of g(t) from that of q(t). Let g(t) ←→ ck . Using the differentiation
property, we have bk = jkω0 ck . And, ck are
248
(
sin(kω0 T1 )
k≠ 0,
ck = 1
R kπ 2T1
(6.103)
T y(t)dt = T k = 0.
1
Z
a0 = x(t)dt (6.106)
T T
and the trigonometric coefficients are
2
Z
Bk = x(t) cos(kω0 t)dt (6.107)
T T
and
2
Z
Ck = x(t) sin(kω0 t)dt. (6.108)
T T
The relationship between the spectral coefficients and trigonometric coefficients
is given by
1 1
ak = (Bk + jCk ) and a−k = (Bk − jCk ), ∀k ≥ 1. (6.109)
2 2
Proof sketch: In the trigonometric Fourier series, replace
249
x(t)
t
π 2π
∞
X Bk Ck jkω0 t
x(t) = a0 + ( (ejkω0 t + e−jkω0 t ) + (e − e−j2kω0 t )). (6.111)
2 2j
k=1
1 1
Then, insert ak = 2 (Bk + jCk ) and a−k = 2 (Bk − jCk ), in the synthesis
equation,
∞ ∞ −1
X
jkω0 t 1X jkω0 t 1 X
x(t) = ak e = a0 + (Bk + jCk )e + (Bk − jCk )ejkω0 t
2 2
k=−∞ k=1 k=−∞
(6.112)
to show that
∞
X ∞
X
x(t) = ak ejkω0 t = a0 + (Bk cos(kω0 t) + Ck sin(kω0 t)). (6.113)
k=0 k=1
1 π −t/2 2 2
Z
a0 = e dt = − π/2 ≈ 0.504. (6.114)
π 0 π πe
250
Bk
1 Ck
0.2
0.1
−6 −4 −2 k
2 4 6
−0.1
k −0.2
−6 −4 −2 0 2 4 6
2 π −t/2 2 × 0.504
Z
Bk = e cos(2kt)dt = (6.115)
π 0 1 + 16k 2
2 π −t/2 8k
Z
Ck = e sin(2kt)dt = 0.504. (6.116)
π 0 1 + 16k 2
Figure 6.17 presents the plots of Bk and Ck .
251
x(t)
−T −T0 T0 T
Figure 6.18: A periodic function, called square wave, which repeats itself at
every period, T .
∞
X
x(t) = a0 + (Bk cos(kω0 t) + Ck sin(kω0 t)), (6.117)
| {z } | {z }
k=1 even part odd part
Solution: Note that this function is even. Thus, the spectral coefficients cor-
responding to the odd part , Ck = 0 for all k.
The spectral coefficients corresponding to the even part can be computed from
the following equation:
T1
2 4 sin(kω0 T1 )
Z
Bk = cos(kω0 t)dt = . (6.119)
T −T1 kω0 T
252
(
−t + 1, if 0 < t < 2,
x(t) = (6.120)
t + 1, if − 2 ≤ t ≤ 0
where x(t) = x(t + T ) is periodic, with T = 4. Find the Fourier series coeffi-
cients.
Solution: This is another even function. Hence, the odd part of the trigono-
metric Fourier series is zero and the even part is,
T /2 0 Z 2
2 1
Z Z
Bk = x(t) cos(kω0 t)dt = (t+1) cos(kω0 t)dt+ (−t+1) cos(kω0 t)dt.
T −T /2 2 −2 0
(6.121)
Using the integration by parts and by replacing the angular frequency ω0 =
2π/T = π/2, we obtain,
2 sin πk 8 sin( πk 2
2 ) − πk sin πk 8 sin( πk
2 )
2
Bk = + = . (6.122)
πk π2 k2 π2 k2
The coefficients, Bk can be further simplified considering the even and odd
values of k as follows:
(
4 k
2 2 (1 − (−1) ), for k is even,
Bk = π k (6.123)
0, for k is odd.
The average value, a0 , is 0. Hence, the trigonometric Fourier series represen-
tation of this function is
∞
X 8 sin( πk )2 2 π
x(t) = cos(k t). (6.124)
π2 k2 2
k=1
Solution: This is an odd function. Hence, the even part of the trigonometric
Fourier series is zero and the odd part is
T /2 1
2
Z Z
Ck = x(t) sin(kω0 t)dt = t sin(kω0 t)dt. (6.126)
T −T /2 −1
253
Using the integration by parts, we obtain
a) Find the impulse response of this system, if the unit step response is
s(t) = e−2t u(t).
b) Suppose the input to this system is x(t) = cos(πt) + sin(2πt). Find the
spectral coefficients of x(t).
c) Find and plot the spectral coefficients of the output y(t) for the input
given in part (b).
Solution:
a) Impulse response is simply the derivative of the unit step response,
254
y(t) = H(jω0 )ejω0 t , (6.131)
where the eigenvalue of the system is
Z ∞
H(jω0 ) = h(t)e−jω0 t dt. (6.132)
−∞
For the impulse response we obtain in part (a), h(t) = −2e−t u(t), the
eigenvalue of the system is obtained as follows;
Z ∞
2
H(jω0 ) = −2 e−(2+jkω0 )t dt = − . (6.133)
0 2 + jω0
Recall, also, that output y(t) can be represented by Fourier series and the
convolution integral as follows:
∞
X Z ∞
jkω0 t
y(t) = bk e = x(τ )h(t − τ )dτ. (6.134)
k=−∞ k=−∞
bk = ak H(jkω0 ). (6.136)
Since, the fundamental frequency of the input signal is ω0 = π, we obtain
the spectral coefficients of the output as follows:
2
bk = −ak . (6.137)
2 + jkπ
Insert the values of the spectral coefficients, ak , found in the previous part
into the above equation to obtain
1 1 1 1
b1 = − , b−1 = − , b2 = , b−2 = . (6.138)
2 + jπ 2 − jπ 2(π − j) 2(π + j)
255
complex exponential function, Φk (t) = ejkω0 t , for continuous-time signals,
where each k defines a harmonic, for k = 0, 1, ..., ∞.
Harmonically related exponentials bear very interesting properties. First of
all, they are periodic functions with angular frequencies, kω0 . As k increases
they represent periodic motion on a unit circle of the complex plane with
higher speeds. Secondly, they are orthogonal to each other. Thus, they span
an infinite-dimensional function space, called Hilbert space, where each pe-
riodic function is uniquely represented by a set of coordinates {ak }, called the
spectral coefficients, provided that the function satisfies the Dirichlet condi-
tions. The representation of a signal in Hilbert space is called Fourier series,
named after J. B. Fourier, a revolutionary French politician and mathemati-
cian. Fourier series representation enables us to decompose a periodic signal
into its harmonically related frequency components. Since a periodic function
is represented in terms of its frequency content, we call this specific Hilbert
space as frequency domain.
Finally, harmonically related complex exponentials are the eigenfunctions
of an LTI system. In other words, when we feed a harmonics of the complex
exponential at the input of an LTI system, the output is just the scaled version
of the input. This scale is called the eigenvalue or the transfer function of
the system and it uniquely describes an LTI system in the frequency domain.
256
Problems
1. Represent the following signals in terms of the superposition of complex
exponentials:
a) x(t) = 1 + sin(πt).
b) x(t) = cos(πt + π2 ).
π
c) x(t) = 1 + sin(πt) + cos( 10 t).
2. Does the following function satisfy Dirichlet conditions:
(
|t| for − 1 ≤ t ≤ 1
x(t) =
0 o.w.
(
1 |t| < 2
x(t) =
0 2 ≤ |t| ≤ 4.
4. Show that the inner product between two harmonically related complex
exponential functions satisfies the following equation:
Z T (
jnω0 t jkω0 t jnω0 t −jkω0 t T for n = k,
<e ,e >= e e dt =
0 0 n ̸= k.
5. Show that the functions x1 = ejω0 t and x2 = e2jω0 t are orthogonal to each
other.
πt π
x(t) = cos + 2 cos πt + .
3 2
257
c) Find the Trigonometric Fourier series representation of x(t).
πt
x(t) = 1 + sin + 4 sin (πt) .
2
cos(2kω0 )
H(jkω0 ) =
kw0
Let us define the input signal x(t) by the following function in one full
period;
(
1 0≤t<3
x(t) =
−1 3 ≤ t < 6,
(
1 |ω| < 50
H(jkω0 ) =
0 |ω| ≥ 50.
258
10. Find the eigenvalues of the LTI systems, described by the following input-
output pairs:
a) x(t) = ejt , y(t) = je5jt
b) x(t) = ejπt , y(t) = ejπt−2π .
cos 3t
c) x(t) = ej3t , y(t) = j + sin(3t).
11. Find the eigenvalue of the following differential equation, when the input
is the eigenfunction, x(t) = ejkω0 t :
2
1
0 t
−4 −3 −2 −1 1 2 3 4
−1
−2
2
1
0 t
−6 −5 −4 −3 −2 −1 1 2 3 4 5 6
−1
−2
259
x(t)
3
2
1
0 t
−6 −5 −4 −3 −2 −1 1 2 3 4 5 6
−1
(
k·j k≤2
αk =
0 otherwise
(
k·j −2 ≤ k ≤ 2
αk =
0 otherwise
(
−1 k is even
αk =
1 k is odd
(
2t 0≤x≤2
x(t) =
4 − t 2 < x ≤ 4,
260
πt
x1 (t) = cos
2
πt
x2 (t) = sin
2
x3 (t) = x1 (t)x2 (t)
261
262
Chapter 7
Fourier Series Representation
of Discrete-Time Periodic
Signals
263
by the summation operation. Thus, we do not bother to take compli-
cated integrals.
2. Furthermore, the limits of the summation of the analysis and synthesis
equation are finite. Thus, we do not have a convergence problem, nor do
we need Dirichlet conditions.
3. The spectral coefficients of discrete-time Fourier series of a periodic func-
tion are always periodic, with the fundamental period of the signal.
Let us formally introduce the Fourier series representation of discrete-time
periodic signals and investigate the above facts.
X
x[n] = ak ejkω0 n Synthesis equation (7.1)
k=<N >
1 X
ak = x[n]e−jkω0 n Analysis equation (7.2)
N
n=<N >
In the above equations, the limit of the summations, < N >, indicates N
successive integers to cover one full range of fundamental period.
Furthermore, the spectral coefficients, {ak }, are periodic with period N .
In other words, {ak } repeats with ak = ak+N , ∀k ∈ (−∞, ∞).
Since both the spectral coefficients, {ak }, and the harmonically related com-
plex exponentials, Φk [n] = ejkω0 n , are periodic, with the fundamental period of
the signal x[n], the summations of synthesis and analysis equations are evalu-
ated over one full range of the fundamental period, N.
Proof sketch: Let us start by showing that the spectral coefficients, {ak }
are periodic, with the fundamental period of the signal, x[n]. Recall that har-
monically related complex exponentials are periodic, that is, for integer value
N = 2π/ω0 , we have Φk [n] = Φk+N [n], which is easy to show:
264
1 X
ak = x[n]e−jkω0 n , (7.4)
N
n=<N >
ak = ak+N (7.5)
Next, let us show that the coefficients ak obtained from the analysis equa-
tion satisfy the synthesis equation.
In order to show that the synthesis equation can be obtained from the
analysis equation, we multiply both sides of the synthesis equation by Φr [n] =
e−jrω0 n and sum them over one period n =< N >, to obtain the following
equation:
X X X
x[n]e−jrω0 n = ak ejkω0 n e−jrω0 n . (7.6)
n=<N > n=<N > k=<N >
The r = k case is trivial. For the r ̸= k case, let c = ej(k−r)ω0 n and S be the
sum:
S = c + c2 + c3 + ... + cN . (7.9)
Multiplying both sides above by c, we obtain
cS = c2 + c3 + c4 + ... + cN +1 . (7.10)
Subtracting Equation (7.10) from (7.9) and with some arrangement, we get
265
c(1 − cN ) ej(k−r)ω0 n (1 − ej(k−r)ω0 nN )
S= = . (7.11)
1−c 1 − ej(k−r)ω0 n
Since ω0 = 2π/N and r, k, n are integers, ej(k−r)ω0 nN is equal to ej2π = 1,
which yields S = 0. Using this result in Equation (7.7), we obtain
X
x[n]e−jkω0 n = ak N, (7.12)
n=<N >
1 X
ak = x[n]e−jkω0 n . (7.13)
N
n=<N >
Remark 7.1: Although the spectral coefficients {ak } are generated for only
one full period, < N >, we need to keep in mind that they repeat themselves
at every period N for all k ∈ (−∞, ∞):
ak = ak±N . (7.14)
Since the summations of analysis and synthesis equations have finite limits,
there is no concern about the existence of spectral coefficients. This relaxes the
convergence constraints imposed by Dirichlet conditions. Furthermore, period-
icity of the spectral coefficients brings a substantial computational efficiency
in representing discrete-time periodic signals in the frequency domain. This
is not the case for the continuous-time signals, since spectral coefficients are
computed by taking the integral of two periodic functions, x(t) and ejkω0 t ,
which may not result in a periodic function.
266
distance between the functions are defined by the inner product.
An extension of the representation of continuous-time periodic functions
to that of the discrete-time functions is possible by defining a Hilbert space,
spanned by the discrete-time harmonically related complex exponential func-
tions. In this case, the inner product between two discrete-time periodic func-
tions, x[n] and y[n] is defined as
X
< x[n], y[n] >= x[n]y ∗ [n], (7.15)
n=<N >
where (∗) indicates the complex conjugate operation. This time, the limit of
the summation is finite. Thus, we can represent one period of discrete-time
functions, x[n], y[n] ∈ H, by finite length vectors, x and y:
x = aT ejω0 n . (7.21)
Using the definition of the inner product given above, we can show that
discrete-time harmonically related complex exponential functions are orthogo-
nal to each other. Mathematically, the inner product of two complex exponen-
tial functions with different harmonics is
267
(
X N
if r = k
< ejkω0 , ejrω0 >= (ejkω0 )T (ejrω0 )∗ = ej(k−r)(2π/N ) =
n=<N >
0
otherwise.
(7.22)
Hence, harmonically related discrete-time exponentials form a basis and
they span the Hilbert space of discrete-time periodic functions. Thus, the spec-
tral coefficients, each of which shows the amount of a particular harmonic
frequency, are the coordinates of a discrete-time function in this Hilbert space.
Solution:
a) This signal is periodic, provided that there exists an integer N , satisfying
the following equation:
268
x[n]
1
0.5
n
5 10 15 20 25
-0.5
-1
Figure 7.1: The plot of x[n] = sin 0.1πn. Its fundamental period is N = 20.
ak ^ak
π
2
0.5
k
−20 −10 10 20
k
−π
−20 −10 10 20 2
Figure 7.2: Magnitude and phase spectrum of x[n] = sin 0.1πn. Both |ak | vs. k
and the ∢ak vs. k are discrete periodic functions, which repeat themselves at
every N = 20.
269
fundamental frequency corresponding to kω0 for k = ±1.
Solution:
a) Spectral coefficients of a periodic signal correspond to the coordinates
in Hilbert space. Using the Euler formula for cosines and sines, we can
directly find the spectral coefficients as follows;
1 j(π/5)n
x[n] = 1 + [e − e−j(π/5)n ]+
2j
1 j(2πn/5+π/2)
[e + e−j(2πn/5+π/2) ] (7.29)
2
Arranging the terms, we obtain,
1 j(π/5)n 1
x[n] = 1 + e − e−j(π/5)n +
2j 2j
1 jπ/2 j(2π/5)n 1 −jπ/2 −j(2π/5)n
e e + e e . (7.30)
2 2
Thus, the Fourier series coefficients of this function, which are the coor-
dinates in Hilbert space are as below.
270
a0 = 1,
1 1
a1 = = − j,
2j 2
1 1
a−1 = − = j,
2j 2 (7.31)
e jπ/2 1
a2 = = j,
2 2
e−jπ/2 1
a−2 = = − j,
2 2
with ak = 0 for other values of k in the interval of summation in the
synthesis equation.
For this signal, ω0 = π/5 which implies that the period is N = 10 (ω0 =
pi/N ). Thus, the Fourier coefficients are periodic with period N = 10. In
other words, ak = ak±N .
b) In the Cartesian coordinate system, we plot the real and imaginary part
of the spectral coefficients. For real parts of the spectral coefficients, we
plot
(
1, for k = 0, ∀m,
Re{ak } = Re{ak+mN } = (7.32)
0, otherwise
For the imaginary parts of the spectral coefficients, we plot
1
2
for k = −1, 2, ∀m,
Im{ak } = Im{ak+mN } = − 12 for k = 1, −2, ∀m, (7.33)
0 otherwise
Figure 7.3 (top row) shows the plots of the real part and imaginary part
of the spectral coefficients.
c) In the polar coordinate system, we plot the magnitude of the spectral
coefficients.
(
1
for k = ±1, ±2, ∀m,
|ak | = |ak+mN | = 2 (7.34)
0 otherwise.
and the phase of the spectral coefficients,
π
−sign(k) 2 for k = ±1, ∀m,
∢ak = ∢ak+mN = sign(k) π2 for k = ±2, ∀m, (7.35)
0 otherwise.
Figure 7.3 (bottom row) shows the plots of the magnitude and phase of
271
Re{αk }
3
Im{αk }
2
1
2
1
−2N
−N
2N
k
k −1
2
−2N −N 0 N 2N
|αk |
√
^αk
10 π
2 2
1
−2N
−N
2N
2
−π k
2
−2N −N 0 N 2N k
Figure 7.3: Plot of the real and imaginary parts (top row),and the magnitude
and phase of spectral coefficients, for x[n] = 1 + sin 2π 2π
10 n + 3 cos 10 n +
cos 4π π
10 n + 2 (bottom row).
The above two examples are relatively easy to be represented in the fre-
quency domain, since the application of Euler formula directly yields the spec-
tral coefficients. The frequency content of these signals can be observed in
both time and frequency domains. However, signals, such as speech and music,
which consist of a large variety of harmonics, cannot be analyzed in the time
domain. On the other hand, the amount of spectral coefficients provides us a
measurable value for each harmonic frequency, contained in the signal.
Let us investigate the frequency content of the signal given below.
Exercise 7.3: Find the coordinates of the discrete-time periodic square wave
shown in Figure 7.4, in a Hilbert space spanned by discrete complex exponen-
tials, Φk [n] = ejkω0 n and investigate the frequency content of this signal.
272
1
... ...
n
−N −N1 0 N1 N
The summation is a finite geometric series, which has the following closed form;
!
1 jk(2π/N )N1 1 − e−jk2π(2N1 +1)/N
ak = e
N 1 − e−jk(2π/N )
1 e−jk(2π/2N ) [ejk2π(N1 +1/2)/N − e−jk2π(N1 +1/2)/N ]
=
N e−jk(2π/2N ) [ejk(2π/2N ) − e−jk(2π/N ) ]
1 sin[2πk(N1 + 1/2)/N ] (7.38)
= , for k ̸= 0, ±N, ±2N, ...
N sin(πk/N )
and
2N1 + 1
ak = , for k = 0, ±N, ±2N, ...
N
The coefficients ak for 2N1 + 1 = 5 are sketched for N = 10, 20 and 40 in
Figure 7.5 (a), (b), and c, respectively.
273
k
−8
−4
0
4
8
k
−8
−4
0
4
8
k
−8
−4
0
4
8
Figure 7.5: Fourier series coefficients for the periodic square wave of Example
3.12 from the book; plots of N ak for 2N 1 + 1 = 5 and (a) N = 10; (b) N = 20;
and c N = 40.
274
7.3. Properties of Discrete-Time Fourier
Series
Most of the properties of the discrete-time Fourier Series are similar to those
of the continuous-time Fourier series, such as linearity, time reverse, conjugate
symmetry and frequency shifting. For this reason, we suffice to provide them
in Table 7.1. The properties, listed in this table, can be easily proved by the
direct application of the analysis and synthesis equation of the discrete-time
Fourier series.
We, also, provide some popular discrete-time signals and their spectral
coefficients, in Table 7.2. It is highly recommended to the readers to derive the
spectral coefficients from the functions, x[n] of Table 7.2.
Recall that time and frequency domain representations of the signals are
one-to-one and onto. In other words, given the signal x[n] it is possible to
compute the spectral coefficients {ak }, uniquely, from the synthesis equation.
Equivalently, given the spectral coefficients {ak }, it is possible recover the
discrete-time function, x[n], uniquely, from the analysis equation. This prop-
erty is shown as follows:
Exercise 7.4: Find the discrete-time signal x[n], which has the following
spectral coefficients:
π π
ak = cos(k ) + sin(3k ). (7.40)
4 4
Solution: Using the linearity property, we can split ak into two terms, as
(1) (2)
ak = ak + ak , (7.41)
|{z} |{z}
cos(k π4 ) sin(3k π4 )
each of which represents the signal x1 [n] and the signal x2 [n], with the corre-
sponding spectral coefficients:
(1) (2)
x1 [n] ↔ ak and x2 [n] ↔ ak .
Then, linearity property implies that,
(1) (2)
x[n] = x1 [n] + x2 [n] ↔ ak = ak + ak .
275
Let us first find the signals x1 [n] and x2 [n], represented by the spectral coeffi-
(1) (2)
cients of ak and ak , then add them to find the signal x[n], as follows:
(1) (2)
The spectral coefficients ak and ak , can be written in terms of complex
exponential functions as;
π π
(1) π ejk 4 + e−jk 4
ak = cos(k ) = (7.42)
4 2
and π π
(2) π ej3k 4 − e−j3k 4
ak = sin(3k ) = , (7.43)
4 2j
respectively.
(1) (1)
The angular frequency of ak and ak is ω0 = π4 . The fundamental period is
N = ω2π0 = 8. Thus, the fundamental periods of x[n], as well as, x1 [n] and x2 [n]
are all N = 8. In other words, ak = ak±8 and x[n] = x[n ± 8].
(1) (2)
The analysis equations for ak and ak can be written as,
4
(1) 1 X π 1 π 1 π
ak = x1 [n]e−jkn 4 = ejk 4 + e−jk 4 , (7.44)
8 2 2
n=−3
and
4
(2) 1 X π 1 π 1 π
ak = x2 [n]e−jkn 4 = ej3k 4 − e−j3k 4 . (7.45)
8 2j 2j
n=−3
Comparing the left hand side and the right hand side of the above equations,
gives the signal, in −3 ≤ n ≤ 4 as follows:
x1 [1] = x1 [−1] = 4 and x1 [n] = 0 for k ̸= ±1, in the duration −3 ≤ n ≤ 4,
x2 [3] = −x2 [−3] = 4j and x[n] = 0 for n ̸= ±3, in the duration −3 ≤ n ≤ 4.
Hence, in one full period −3 ≤ n ≤ 4,
x[n] = x1 [n] + x2 [n] = 4δ[n − 1] + δ[n + 1]) + 4j(δ[n − 3] + δ[n + 3]). (7.46)
276
The periodicity, x[n] = x[n + N ] implies that
and
x[−1] = x[−1 + 8] = x[7].
Hence, x[n] can also be written in the interval of 0 ≤ n ≤ 7, as follows:
Note that, x[n] is periodic, where x[n] = x[n ± 8] for all −∞ < n < ∞.
Exercise 7.5: Find the fundamental period and the spectral coefficients of
the following discrete-time function:
6π π
x[n] = cos( n+ ) (7.48)
13 6
Solution:
The angular frequency of this function is ω0 = 6π 2π
13 . Recall that ω0 = N .m =
2π
13 .3. Hence, the fundamental period is N = 13 .
From Table 7.2, we see that the spectral coefficients of x′ [n] = cos ω0 n for
ω0 = 2πN .m is,
(
1
′ , for k = ±m, ±m ± N, ±m ± 2N, ....
ak = 2 (7.49)
0 o.w.
In this example m = 3 and N = 13. Thus, the spectral coefficients for cos ω0 n
for ω0 = 2π
N .m is
(
1
′ , for k = ±3, (±3 ± 13), (±3 ± 26), ...
ak = 2 (7.50)
0 o.w.
From Table 7.1, we see that a time shift gives a multiplicative exponential
factor in the frequency domain:
277
Hence, n0 = −13/36. Replacing the values of n0 and ω0 , we obtain
1 jk π6
(
2 .e , for k = ±3, (±3 ± 13), (±3 ± 26), ...
ak = (7.52)
0 o.w.
The spectral coefficients are complex numbers. In this case, we need two plots
for the magnitude spectrum,
(
1
, for k = ±3, (±3 ± 13), (±3 ± 26), ...
|ak | = 2 (7.53)
0 o.w.
and the phase spectrum,
(
k π6 , for k = ±3, (±3 ± 13), (±3 ± 26), ...
∠ak = (7.54)
0 o.w.
278
Table 7.1: Summary of the properties of discrete-time Fourier series.
Periodic signal Fourier series coeffi-
cient
x[n] is periodic with fundamental period N ak
x[n − n0 ] ak e−jkω0 n0
x∗n a∗−k
x[−n] a−k
(
x[n/m], if n is a multiple of m 1
x(m) [n] = m ak , period mN
0, otherwise
x[n] ∗ y[n] N ak bk
X
x[n]y[n] al bk−l
l=<N >
279
Table 7.1: Summary of the properties of discrete-time Fourier series. (Contin-
ued)
Table 7.2: Some popular discrete-time periodic signals and their spectral coefficients.
Periodic signal x[n] with fun- Spectral coefficients ak
damental period N
∞
X 1
δ(n − kN ) ak = , for all k
N
k=−∞
(
1, k = 0, ±N, ±2N, . . .
1 ak =
0, otherwise
2πm
In the following, ω0 = N and m, N are integers; otherwise, the signal is not periodic.
(
1, k = ±m, ±m ± N, ±m ± 2N, . . .
ejω0 n ak =
0, otherwise
1 , k = ±m, ±m ± N, ±m ± 2N, . . .
cos ω0 n ak = 2
0, otherwise
1
,
k = ±m, ±m ± N, ±m ± 2N, . . .
sin ω0 n ak = 2j 1
− , k = −m, −m ± N, −m ± 2N, . . .
2j
sin 2πk 1
N (N1 + 2 )
, k ̸= 0, ±N, ±2N, ...
1, |n| ≤ N1
x[n] = N ak = N sin πk
N
N1 < |n| ≤ 2N1 + 1 ,
0,
2 k = 0, ±N, ±2N, ...
N
280
2. Since both the signal and its corresponding spectral coefficients are peri-
odic, convolution property in time domain requires circular convolution
of the signals. Similarly, the multiplication property requires circular
convolution of the spectral coefficients in the frequency domain.
In the following subsections, we focus on three properties, the difference,
convolution and multiplication properties, as follows:
x[n] ↔ ak , (7.55)
the delay operation in time domain corresponds to the multiplication operation
in the frequency domain, as follows:
∞
X ∞
X ∞
X
x[n − n0 ] = ak ejkω0 (n−n0 ) = (ak e−jω0 n0 )ejkω0 n = a′k ejkω0 n
k=−∞ k=−∞ k=−∞
(7.56)
Thus, the spectral coefficients of x[n − n0 ] is a′k = ak e−jω0 n0 :
2π
x[n − n0 ] ↔ ak e−jkn0 N . (7.57)
When the input-output pairs of an LTI system are periodic, we can use the
Fourier series representation to find the spectral coefficients of the output from
the spectral coefficients of the input. Difference property converts difference
equations into algebraic equations in terms of the spectral coefficients of the
input and output. Therefore, the spectral coefficients of the output of an LTI
system is obtained from the spectral coefficients of the input, without solving
the difference equation by recursive methods.
Exercise 7.6: Consider the discrete-time LTI system represented by the fol-
lowing difference equation;
281
Solution:
a) Using the difference property, for x[n] ↔ ak , we obtain,
2π
x[n − 1] ↔ ak e−jkn N . (7.59)
Since Fourier series representation is linear, and one-to-one and onto,
we can replace the corresponding spectral coefficients into the difference
equation to obtain its frequency domain representation, which gives the
spectral coefficients of the output, in terms of the spectral coefficients of
the input;
2π
y[n] = x[n] − x[n − 1] ↔ bk = (1 − e−jk N )ak . (7.60)
b) Recall that the non-zero spectral coefficients of the input signal, x[n] =
sin(0.1πn), is obtained in the previous example as,
1 1
a1 = , a−1 = − , (7.61)
2j 2j
where ak is periodic with ak = ak±N , ∀k.
Considering the fact that the fundamental period of the input signal is
N = 20, the non-zero spectral coefficients of the output is,
1 π −1 π
b1 = (1 − e−j 10 ) b−1 = (1 − ej 10 ), (7.62)
2j 2j
where bk is periodic, so that bk = bk±20 , ∀k.
Exercise 7.7: Consider the discrete-time LTI system represented by the fol-
lowing difference equation;
Solution:
a) Using the difference property, for y[n] ↔ bk , we obtain,
2π
y[n − 1] ↔ bk e−jkn N . (7.64)
Using the linearity property, we can represent both sides of the Equation
7.61 by the spectral coefficients:
282
2π
y[n] − 0.5y[n − 1] = x[n] ↔ bk (1 − 0.5e−jkn N ) = ak . (7.65)
Leaving the spectral coefficients of bk in the right hand side of the equa-
tion, we obtain:
ak .
bk = 2π . (7.66)
1 − 0.5e−jkn N
b) From Table:7.2, we see that,
∞
X
δ[n − 2k] ↔ ak = 1/2. (7.67)
−∞
N −1 N −1 N −1
1 X 1 X X
x[n] ∗ y[n] ↔ ck = (x[n] ∗ y[n])e−jkω0 n = x[l]y[n − l]e−jkω0 n .
N N
n=0 n=0 l=0
(7.70)
Changing the dummy variable of summation to m = n − l, we obtain,
N −1 N −1
1 X X
ck = x[l]e−jkω0 l y[m]e−jkω0 m . (7.71)
N
l=0 m=0
283
In the above equation, the first sum is,
N
X −1
N ak = x[l]e−jkω0 n , (7.72)
l=0
Hence,
x[n] ∗ y[n] ↔ N ak bk . (7.74)
Remark 7.3: We keep in mind that both x[n ± N ] ↔ ak±N and y[n ± N ] ↔
bk±N are periodic, for −∞ < k < ∞ and −∞ < n < ∞.
Solution:
a) The fundamental period is,
2π
N = m ω2π0 = m 0.1π = 20
′
b) Define, x [n] = sin 0.1πn. Then, the corresponding spectral coefficients in
one full period is are
1 1
a′1 = , a′−1 = − .
2j 2j
Since ak is periodic, for all −∞ < k < ∞,
284
ak±20 = ak .
Using the linearity and time shift properties, we get,
2π
x[n] = x′ [n] + x′ [n − 1] ↔ (1 + e−jk N )ak . (7.77)
Remark 7.4: In the above example, we can use the linearity property easily,
since both terms have the same fundamental period.
Solution:
The fundamental period of y[n] is the greatest common divisor of N1 .N2 .
Indeed,
is satisfied for N1 N2 . Hence, it is also satisfied for the greatest common divisor
of N1 N2 .
Exercise 7.10: Find the spectral coefficients ak of the sequence x[n] shown
in Figure 7.6. a.
285
2
x[n]
1
... ...
−5 0 5
n
1 x1 [n]
... ...
0
n
1 x2 [n]
... ...
0
n
Figure 7.6: a) Periodic sequence x[n] and its representation as a sum of (b) the
square wave x1 [n] and c the dc sequence x2 [n].
x1 [n] ↔ bk (7.79)
and
286
x2 [n] ↔ ck , (7.80)
we can use the linearity property of Table ?? to obtain the spectral coefficients
of the signal x[n] as follows;
ak = bk + ck (7.81)
Using the result of Exercise: 5.3 for N = 5 and N1 = 1, Fourier series coeffi-
cients bk corresponding to x1 [n] can be expressed as
( sin(3πk/5)
1
, for k ̸= 0, ±5, ±10, ...
bk = 53 sin(πk/5) (7.82)
5, for k = 0, ±5, ±10, ...
The sequence x2 [n] has only a constant value, which is captured by its zeroth
Fourier series coefficient:
4
1X
c0 = x2 [n] = 1 (7.83)
5
n=0
Since the discrete-time Fourier series coefficients are periodic, it follows that
ck = 1 whenever k is an integer multiple of 5. The remaining coefficients of
x2 [n] must be zero, because x2 [n] contains only a dc component. We can now
substitute the expressions for bk and ck into ak = bk + ck to obtain
bk = 15 sin(3πk/5)
(
sin(πk/5) , for k ̸= 0, ±5, ±10, ...
ak = 8 (7.84)
5, for k = 0, ±5, ±10, ...
Exercise 7.11: Find the signal x[n], described by the following properties:
1. x[n]
P5 is periodic with period N = 6.
2. Pn=0 x[n] = 2
7 n x[n] = 1
3. n=2 (−1)
4. x[n] has the minimum power per period among the set of signals satisfying
the preceding three conditions.
Solution: We denote the Fourier series coefficients of the signal, x[n], as follows
x[n] ↔ ak . (7.85)
From Fact 2, we conclude that a0 = 1/3. Noting that (−1)n = e−jπn =
e−j(2π/6)3n , we see from Fact 3 that a3 = 1/6. From Parseval’s relation (see
Table ??), the average power in x[n] is
287
5
X
P = |ak |2 (7.86)
k=0
1
2
x[n]
1
6
... ...
n
−2 −1 0 1 2 3
Figure 7.7: Sequence x[n] that is consistent with the properties specified in the
example.
288
N −1 N −1
X X k+l
x[n]y[n] = ak bl e−jn2π N
.
(7.90)
k=0 l=0
N −1 N −1
X X m
= ak bm−k e−jn2π N . .
k=0 m=0
Remark 7.5: We keep in mind that both x[n] ↔ ak and y[n ± N ] ↔ bk}pmN
are periodic, with −∞ < k < ∞ and −∞ < n < ∞.
Exercise 7.12: Given two periodic signals, with the fundamental period
N = 7 and the corresponding Fourier series representation,
is as follows,
1 sin2 (3πk/7)
ck = . (7.95)
7 sin2 (πk/7)
Find and plot the signal, x[n].
c) Find and plot w[n].
Solution:
289
a) The signal w[n] is also periodic with N = 7. Therefore, the limits of the
summation should cover only one full period of N consecutive values of
r, which indicates a circular convolution operation.
From the Convolution property, we know that,
ck = N ak bk = 7ak bk . (7.97)
b) When x[n] = y[n]
Then, the convolution of the signal x[n] by itself has the following spectral
coefficients;
1 sin(3πk/7) sin(3πk/7) 1
ck = = ak ak (7.99)
7 sin(πk/7) sin(πk/7) 7
From Table 7.2, we can see that the spectral coefficients
sin(3πk/7)
ak = , (7.100)
sin(πk/7)
belongs to the square wave signal, with N1 = 1 and N = 7 (See; Figure
7.8a).
c) Using the periodic convolution property, we see that
X 3
X
w[n] = x[r]x[n − r] = x[r]x[n − r], (7.101)
r=⟨7⟩ r=−3
where, in the last equality, we have chosen to sum over the interval −3 ≤
r ≤ 3. Except for the fact that the sum is limited to a finite interval, the
product-and-sum method for evaluating convolution is applicable here. In
fact, we can convert this equation to an ordinary convolution by defining
a signal x̂[n] that equals x[n] for −3 ≤ n ≤ 3 and is zero otherwise. Then,
from this equation,
3
X +∞
X
w[n] = x̂[r]x[n − r] = x̂[r]x[n − r], (7.102)
r=−3 r=−∞
That is, w[n] is the aperiodic convolution of the sequences x̂[n] and x[n].
The sequences x[r], x̂[r], and x[n−r] are sketched in Figure 7.8 (a)-c. From
290
the figure, we can immediately calculate w[n]. In particular we see that
w[0] = 3; w[−1] = w[1] = 2; w[−2] = w[2] = 1; and w[−3] = w[3] = 0.
Since w[n] is periodic with period 7, we can then sketch w[n] as shown in
Figure 7.8 (d).
291
x[r]
-3 -2 -1 0 1 2 3 n
x̂[r]
-1 0 1 n
x[n − r]
n
n-7
n-1
n
n+1
w[n]
1
−7
−3
−2
−1
0
1
2
3
Figure 7.8: (a) The square-wave sequence x[r] in the example; (b) the sequence
x̂[r] equal to x[r] for −3 ≤ r ≤ 3 and zero otherwise; c the sequence x[n − r];
(d) the sequence w[n] equal to the periodic convolution of x[n] with itself and
to the aperiodic convolution of x̂[n] with x[n].
292
7.4. Discrete-Time LTI Systems with Pe-
riodic Input and Output Pairs
Consider an LTI system, represented by the impulse response h[n] and equiv-
alently by the following difference equation,
N
X M
X
ak y[n − k] = bk x[n − k], (7.103)
k=0 k=0
X X
x[n] = ak ejkω0 n → h[n] → y[n] = bk ejkω0 n (7.104)
k=<N > k=<N >
Figure: 10: An LTI system, where the periodic input-output pairs are rep-
resented by Fourier series.
This is a very crucial question, because, if we can establish a relationship
between the spectral coefficients of the input and output, then, we can just feed
the spectral coefficients of the input to receive the spectral coefficients of the
output. Then, based on the spectral coefficients of the output, we can construct
the output signal. This approach saves a great deal of cost in implementing
the LTI systems.
In order to find the relationship between the spectral coefficients of the in-
put and that of the output, we use the harmonically related complex exponen-
tial eigenfunctions and the linearity property. Then, we find the corresponding
eigenvalues of the LTI system, as explained in the next section.
293
∞
X ∞
X
y[n] = x[n]∗h[n] = h[k]e jω0 (n−k)
=ejω0 n
h[k]e−jω0 k = ejω0 n H(ejω0 )
k=−∞ k=−∞
(7.106)
where,
∞
X
H(ejω0 ) = h[k]e−jω0 k . (7.107)
k=−∞
In general, any exponential input eλn is directly passed to the output with
a scaling factor,
294
∞
X
H(eλ ) = h[k]e−λk , (7.110)
k=−∞
Arranging the above equation, we obtain the transfer function for discrete-
time LTI systems in terms of the parameters of the difference equation, as
follows;
PM
λ k=0 bk eλk
H(e ) = PN . (7.112)
λk
k=0 ak e
Hence, when the input of a discrete-time LTI system is an exponential
function, the corresponding output is just the scaled version of the input,
where the scaling factor H(eλ ) is the transfer function.
∞
X
y[n] = x[n] ∗ h[n] = h[l]ejkω0 (n−l) = ejkω0 n H(ejkω0 ) (7.114)
l=−∞
where,
295
∞
X
H(ejkω0 ) = h[l]e−jkω0 l . (7.115)
l=−∞
bk = ak H(ejkω0 ) (7.118)
∞
X
H(e jkω0
)= h[n]e−jkω0 n (7.119)
n=−∞
Solution:
a) The impulse response of this LTI system is easily obtained by replacing
the input by the impulse function,
296
Exercise 7.14: Consider an LTI system represented by the impulse response,
h[n] = αn u[n] , −1 < α < 1,
Find the Fourier series representation of the output, when the input is
x[n] = cos ω0 n, where the fundamental period is N = 4.
Solution:
We know that the spectral coefficients ak of the input and the spectral
coefficients bk of the output are related by the eigenvalue of the LTI system,
as follows:
bk = ak H(ejkω0 ). (7.123)
Let us first find the spectral coefficients of the input:
1
x[n] ↔ a1 = a−1 = . (7.124)
2
Since the period is N = 4, the spectral coefficients will repeat at every N ,
ak = ak±4 for all k.
Next, let us find the eigenvalue of the system for the eigenfunction input,
x[n] = ejω0 n , as follows,
∞ ∞
X X 1
H(ejω0 ) = h[k]e−jω0 k = αk e−jω0 k = (7.125)
1 − αe−jω0 .
k=−∞ k=0
0.5
(
π for k = ±1, (±1 ± N ), (±1 ± 2N ), (±1 ± 3N ), ...
bk = 1−αe−jk 2
0 otherwise.
(7.127)
Finally, the Fourier series representation of the output, then, becomes,
∞
X 0.5 0.5
y[n] = ak H(ejkω0 )ejkω0 n = jk π2
+ π (7.128)
−∞ 1 − αe 1 − αe−jk 2
297
Remark 7.6: The eigenvalues of a discrete-time LTI system not only relate
the harmonically related complex exponential inputs and the corresponding
outputs of the system,
bk = ak H(ejkω0 ). (7.130)
This is due to the beauty of linearity, and time-invariance, together with
the harmony of the exponential functions.
298
the discrete-time LTI system.
In summary, we represent a discrete-time periodic signal in an N -dimensional
Hilbert space spanned by harmonically related discrete complex exponentials,
where the coordinate of each function is also periodic with the same period of
the discrete-time function. Furthermore, a discrete-time LTI system is uniquely
represented by the eigenvalue of the system corresponding to the complex ex-
ponential eigenfunction, given at the input.
299
Problems
300
Find a0 , a1 , a−6 and a−3 .
7. A discrete-time real and periodic signal x[n] has the fundamental period
N = 5. The nonzero spectral coefficients of x[n] are
a0 = 4, a2 = a−2 = 4e−jπ/6 and a4 = a−4 = 2ejπ/3
Find x[n].
8. Consider the discrete-time periodic signal x[n] with N = 8 given below:
πn
x[n] = 2 − sin for 0 ≤ n ≤ 7
4
a) Find Fourier series coefficients ak of x[n].
b) Plot the magnitude and phase diagram for ak .
9. A discrete-time periodic signal x[n] has the fundamental period N = 16.
Fourier series coefficients ak and the signal x[n] satisfies the following
properties:
ak = −ak−8
x[2n + 1] = (−1)n+1
b) Find and plot x[n].
a) Find and plot the magnitude and phase of the Fourier series coeffi-
cients ak .
10. The signal x[n] is a real-valued discrete-time period signal whose funda-
mental period is N. The complex spectral coefficients of x[n] have the
following form:
ak = bk − jck
X
x[n] = ak ejk(2π/N )n
k=<N >
301
b) x[n] + x[n + N2 ], assume that N is even.
(Hint: This signal is periodic with fundamental period N/2)
c) (−1)n x[n], assume that N is even.
d) (−1)n x[n], assume that N is even.
(Hint: This signal is periodic with fundamental period 2N )
(1 − (−1)n+1 )
e) x[n]
2
12. Consider the following discrete-time signals,
πn πn π
x[n] = 1 + cos( ), y[n] = sin( + )
3 3 4
a) Find the Fourier series coefficients of x[n].
b) Find the Fourier series coefficients of y[n].
c) Use convolution property to calculate the Fourier Series coefficients
of z[n] = x[n] ∗ y[n].
13. The discrete-time periodic signals x[n] and y[n] have the same fundamen-
tal period N. Let
+∞
X
g[n] = x[k]y[n − k].
k=−∞
+∞
X
x[n] = 2δ[n − k]
n=−∞
302
is fed into a LTI system. The corresponding output of the system is found
as
5π 9π
y[n] = cos( n+ )
2 4
2,
0≤n≤3
h[n] = −1, −3 ≤ n ≤ −2
0, otherwise
Calculate the Fourier series coefficients of the output y[n] if the input to
the system is x[n] is
+∞
X
x[n] = δ[n − 6k]
n=−∞
18. Consider the discrete-time LTI system represented by the following dif-
ference equation;
303
the spectral coefficients of the input are {ak }.
b) Find the spectral coefficients, bk , of the output, when the input is,
x[n] = cos 3π
2 n.
19. Consider an LTI system represented by the impulse response,
Find the Fourier series representation of the output, when the input is
x[n] = cos ω0 n, where the fundamental period is N = 3.
20. In this programming task, we try to approximate two different periodic
functions by using their Fourier Series representations.
(a) Firstly, write a function that computes the first n+1 Fourier Series
coefficients of a given signal. Your function takes the given signal, the
period of the signal, and the number of coefficients as input. You will
need to compute the DC component and the coefficients of n har-
monic.(For safety you can compute one DC coefficient, n coefficients
for cosine components, and n coefficients for sine components.)
(c) Generate the following square wave function by dividing [-0.5, 0.5]
range into 1000 points.
(
−1 if − 0.5 < n < 0
s[n] =
1 if 0 < n < 0.5
You can assume that this function is periodic and above definition
belongs to one cycle of the signal. Compute n Fourier Series coeffi-
cients of the given function by using the function you implemented in
the first part. Then, generate the approximate function by using the
function you implemented in the second part. Plot both the original
function and the approximated function on the same plot by setting
n=[1, 5, 10, 50, 100]. (You can use plt.plot() function for better vi-
sualization.)
(d) Generate the following sawtooth function by dividing [-0.5, 0.5] range
into 1000 points. (You can use scipy.signal.sawtooth() function or
you can implement it by hand.)
304
(
1 + 2n if − 0.5 < n < 0
s[n] =
−1 + 2n if 0 < n < 0.5
Apply the procedure in the third part to the new signal. What is the
effect of increasing n?
You should write your code in Python and no library is allowed other
than matplotlib.pyplot, numpy and scipy.signal.sawtooth().
305
306
Chapter 8
Continuous Time Fourier
Transform and its Extension
to Laplace Transform
“Primary causes are unknown to us; but are subject to simple and
constant laws, which may be discovered by observation, the study of
them being the object of natural philosophy.”
Jean Baptiste Joseph Fourier
307
The answer is yes!
The generalized form of the Fourier series, which enables us to represent
both periodic and aperiodic functions in terms of their frequency content, is
called the Fourier Transform.
In this chapter, we shall extend the Fourier series representation of periodic
functions to aperiodic functions to define Fourier transforms. We shall study
the properties of Fourier transform. We shall see that Fourier transforms are
very important tools for analyzing natural systems. They are also extremely
useful to design and implement a wide range of man-made signals and systems.
However, it is not possible to find a finite Fourier transform of all functions. In
order to utilize the transform domain techniques for such functions, we shall
generalize the continuous-time Fourier transform to Laplace transform by
extending the exponential basis functions with purely imaginary exponent to
exponential functions with complex exponent.
308
should be T ≥ (T1 + T2 ), as shown in Figure 8.1. Since (−T1 , T2 ) is a finite
interval, we can repeat the function, x(t) to, generate a periodic function, x̃(t),
with finite fundamental period, T.
Note: The center part of the periodic function, x̃(t) is the aperiodic func-
tion, x(t), which is nonzero in a finite interval, (T1 , T2 ).
If we stretch the aperiodic function, x(t), such that T1 → ∞ and T2 → ∞,
then, we obtain a function with infinite period. We need to use our imagination
to think about a signal, that repeats itself at every period, T =→ ∞ . In
summary, any aperiodic function can be considered as a periodic function with
an infinite fundamental period.
Now, we can extend the Fourier series theorem to the signals of infinite
period as follows:
Recall that the Fourier series representation of a periodic signal was given
by the following synthesis and analysis equations,
∞
1
X Z
x̃(t) = ak ejkw0 t and ak = x̃(t)e−jkw0 t dt, (8.4)
T T
k=−∞
respectively.
Consider a signal, x(t) = 0 for t < −T1 and t > T2 , which can be defined
in one full period of a periodic function x̃(t). Then,
Z Z T2
−jkw0 t
T ak = x̃(t)e dt = x(t)e−jkw0 t dt. (8.5)
T −T1
X(jkw0 ) ≜ T ak . (8.6)
X(jkw0 ) is proportional to the spectral coefficients of the periodic signal,
x̃(t).
Then, we can replace ak by X(jkw0 )/T and T = 2π/w0 in the Fourier
series synthesis equation to obtain,
∞
1 X
x̃(t) = X(jkw0 )ejkw0 t
T
k=−∞
∞ (8.7)
1 X
= X(jkw0 )ejkw0 t w0 .
2π
k=−∞
Finally, we stretch the nonzero interval of x(t) and the fundamental period
of x̃(t) to infinity,
309
x̃(t)
x(t)
... ...
−T1 T2 −T −T1 T2 T
−T1 T2
Figure 8.1: Top row: Given an aperiodic function x(t), which is nonzero in a
finite interval −T1 < t < T2 , we generate a periodic signal , x̃(t) by repeating
x(t) with period, T ≥ (T1 + T2 ). Middle row: We can enlarge the nonzero
interval of x(t) and the period, T of x̃(t) as much as we like. Bottom row: We
stretch the nonzero interval, (T1 + T2 ), of x(t) to ∞.
310
and take the limit,
1 X
lim x̃(t) = x(t) = lim X(jkw0 )ejkw0 t w0 . (8.9)
T →∞ w0 →0 2π
which implies,
X(jkw0 ) ≜ T ak , (8.13)
we can uniquely obtain the weight function, X(jω) from the function, x(t)
by taking the limit of X(jkw0 ), as ω0 → 0, as follows;
Z ∞
X(jω) ≜ lim X(jkw0 ) ≜ lim T ak = x(t)e−jwt dt. (8.14)
ω0 →0 ω0 →0 −∞
The complex weight function, X(jω), which is called the Fourier trans-
form of the time domain function, x(t), generalizes the Fourier series represen-
tation of periodic functions to aperiodic functions. In the above rough formal-
ism, the idea of representing periodic functions by the weighted summation
of complex exponentials, is brilliantly extended to representing aperiodic func-
tions by weighted integral of complex exponentials.
311
8.2. Existence and Convergence of the
Fourier Transforms: Dirichlet Con-
ditions
The validity of the extension of the Fourier series of periodic signals to aperiodic
signals rely upon a very major assumption: We need to be able to uniquely
obtain the frequency domain function, X(jω), from the time domain function,
x(t) by following integral,
Z ∞
X(jω) = x(t)e−jwt dt. (8.15)
−∞
The above integral exists when the function, x(t) satisfies the Dirichlet
conditions, which can be summarized as follows:
1. The function x(t) should have finite energy,
Z ∞
|x(t)|2 dt < ∞. (8.16)
−∞
2. The function x(t) should have a finite number of maxima and minima
in a finite interval.
3. The function x(t) should have a finite number of discontinuities in a
finite interval and all the discontinuities are to be finite.
The Dirichlet conditions assure that the Fourier transform function, X(jω),
exists. In other words, the Fourier transform is finite;
Formally speaking, the absolute integral of the error e(t) between the func-
tion x(t) and x̃(t),
The satisfaction of the Dirichlet conditions is rather intuitive for the ex-
312
istence and convergence of the Fourier transform. Let us get a feeling about
the necessity and sufficiency of the Dirichlet conditions for existence and con-
vergence of the Fourier transform by a simple example given below, leaving
the formal proofs to the interested readers (Singh, P., Singhal, A., Fatimah,
B., Gupta, A., & Joshi, S. D. (2022). Proper definitions of Dirichlet condi-
tions and convergence of Fourier representations [lecture notes]. IEEE Signal
Processing Magazine, 39(5), 77-84.).
Solution:
No! This function violates the first Dirichlet condition, mentioned above.
It has an infinite energy,
Z ∞
1 2
| 2
| dt → ∞. (8.22)
−∞ 4 − t
Indeed, the integral to obtain the weight function, X(jω), does not exist,
Z ∞ Z ∞
1
X(jω) = x(t)e−jwt dt = 2
e−jwt dt → ∞. (8.23)
−∞ −∞ 4 − t
313
where the complex function, X(jw) is called the Fourier transform of x(t).
The weight of the complex exponential in the analysis equation is the function
x(t) itself.
Motivating question: What do analysis and synthesis equations
tell us?
Synthesis equation recovers a time domain phenomenon, represented by a
function, x(t) from its frequency content, where the amount of each frequency
w is measured by X(jw). Compared to the discrete spectral coefficients of
Fourier series representation, w is a continuous variable. Therefore, we can
continuously measure the frequency content of a time domain function, x(t)
by its Fourier transform, X(jw).
Note: The domains of x(t) and X(jw) are different. While the domain, w,
of X(jw) is frequency domain, the domain, t, of x(t) is time domain. The
argument of the Fourier transform X is not only the frequency variable, ω, but
jω to remind us that the function X(jw) is a complex function.
The analysis equation is even more interesting: It tells us that if we ob-
serve a physical phenomenon in the time domain, we can uniquely obtain its
representation in the frequency domain, where time completely disappears.
A physical phenomenon, which is represented by a function of time can be
uniquely represented by a function of frequency. In the frequency domain, a
physical phenomenon, such as music, speech, heartbeats, etc., is independent
of time, but it is represented by its frequency variations.
Time domain and frequency domain representations are one-to-one and
onto. Loosely speaking, if x(t) exists in the time domain, then X(jw) exists in
the frequency domain and vice versa. This fact is mathematically formalized
as follows:
x(t) ↔ ak (8.27)
314
and the Fourier transform of a continuous time aperiodic signal
315
of conjugate symmetric Fourier transforms are ωbw = 2ωc
ak X(jω)
ω
k −ωA ∆ω ωA
Figure 8.2: Left figure illustrates the discrete spectral coefficients, ak of a pe-
riodic function, x(t). At each integer value of k, spectral coefficients {ak },
measure the amount of the harmonic frequency, kw0 , which is the integer mul-
tiple of angular frequency, w0 . Right figure illustrates the Fourier transform
of an aperiodic function. As we can observe, X(jw) is a continuous function of
the frequency variable ω. This time we can measure the amount of a frequency
in an interval, which is the area of the rectangle of X(jw) · ∆w. Note that,
in this illustration, the Fourier transform, X(jw) is zero outside (wA + wB ).
This particular class of signals, called band-limited, has a special importance
to develop digital technologies.
316
Listen to Maria Callas, Luciano Pavarotti and oth-
ers for examples of different human voice band-
WATCH
widths @ https://384book.net/v0802
Solution:
a) This is an even signal, as shown in Figure 8.3. This type of function
can be used to approximate the expected amount of money we have left after
optimal gambling in a casino with non-favorable odds.
x(t)
317
Z +∞ Z 0 Z +∞
X(jω) = e−a|t| e−jωt = eat e−jωt + e−at e−jωt
−∞ −∞ 0
1 1 (8.31)
= +
a − jω a + jω
2a
= 2 .
a + ω2
Fourier transform, X(jω) does not have an imaginary part. Thus, it is a
real function, as illustrated in Figure 8.4.
X(jω)
2/a
1/a
ω
−a a
Figure 8.4: Fourier transform of the signal, x(t), depicted in Figure 8.3.
Solution:
a) This function approximates a physical phenomenon, such as a lightening
318
pulse at t = t0 , which acts for a short duration with a very high voltage.
b) Let us investigate the frequency domain representation of the impulse
function. For this purpose, we compute the Fourier transform by using the
analysis equation:
Z ∞
X(jw) = δ(t − t0 )e−jwt dt = e−jwt0 . (8.33)
−∞
Solution:
a) Rectangular pulse signal can be approximately generated by opening
and closing a switch of an electrical circuit,
b)The analysis equation gives us the Fourier transform of x(t),
T1
sin ωT1
Z
X(jω) = e−jωt dt = 2 , (8.37)
−T1 ω
as sketched in Figure 8.5 (b).
c) This is not a band-limited signal; because, X(jω) ̸= 0, for −∞ < ω < ∞.
The analysis of Figure 8.5 reveals that the time domain signal has a lim-
ited duration. The frequency content of the signal alternates and attenuates,
as ω → ∞. The high-frequency components of the signal correspond to the
319
x(t)
X(jω)
2T1
ω
− Tπ1 π
T1
−T1 T1
(a) (b)
Figure 8.5: (a) The rectangular pulse signal of the example and (b) its Fourier
transform.
discontinuities of the time domain function at −T1 and T1 . Notice that as −T1
and T1 approaches 0, the Fourier transform X(jω) gets flatter.
Exercise 8.5: Consider the signal x(t) whose Fourier transform is given be-
low,
(
1, |ω| < W
X(jω) = (8.38)
0, |ω| > W
a) Find the signal x(t).
b) Is this a band-limited signal? If yes, what is the bandwidth? Comment
on the frequency content of this signal.
Solution:
a) This transform is illustrated in Figure 10.16(a). Using the synthesis
equation, we can determine the signal, x(t), in time domain,
W
1 sin W t
Z
x(t) = ejωt dω = , (8.39)
2π −W πt
which is depicted in Figure 10.16(b).
c) This is a band-limited signal; because; X(jω) = 0, for |ω| > W. The
bandwidth of this signal is 2W.
The analysis of Figure 10.16 reveals that the frequency domain signal con-
sists of low frequencies for |ω| > W. The time domain counterpart, x(t) alter-
nates and attenuates, as t → ±∞. Notice that as W approaches 0, the time
domain function x(t) gets flatter.
320
x(jω)
x(t)
W/π
−π/W π/W
ω
−W W
(a) (b)
Figure 8.6: Fourier transform pair of the example: (a) Fourier transform, X(jω)
and (b) the corresponding time domain function, x(t).
Comparison of Figure 8.5 and Figure 10.16 shows the beautiful duality
between the analytical shape of the functions in time and frequency domains.
Sine Cardinal (Sinc) Function: The functions in the time and frequency
domains appeared in the above examples,
sin W t
x(t) =
πt
and
sin ωT1
X(jω) =
ω
are called sine cardinal, or in short, sinc functions. The general form of the
normalized sinc function is,
sin πt
x(t) = .
πt
This even function is maximum at t = 0 in the time domain and ω = 0 in
frequency domain. It keeps attenuating as t → ±∞. Replacing x(t) by h(t),
and X(jω) by H(jω). Later in Chapter 10, we call this LTI system as the ideal
low-pass filter;
(
sin πωc t 1, |ω| < ωc
h(t) = ↔ H(jω) = (8.40)
πt 0, |ω| > ωc
The sinc function is very important in establishing the relationship between
the continuous time and discrete time wolds, which lies in the foundation of the
entire digital technology, as we shall see in the Sampling theorems of Chapters
11 and 12.
321
8.6. Representation of LTI Systems in
Frequency Domain by Frequency Re-
sponse
In Chapter 6, we have seen that the response of an LTI system to the complex
exponential input with the fundamental frequency ω0 ,
322
of the frequency response at ω = kω0 , ∀k.
Recall that Fourier transform is a complex-valued function. In polar coordi-
nate system, Fourier transform of the impulse response, namely the frequency
response, is represented by,
Solution:
We have seen this impulse response in the previous chapters, where the
plot in time domain is shown in Figure 8.7.
323
a) This impulse response represents a first order differential equation, given
below;
dy(t)
+ ay(t) = x(t), (8.48)
dt
assuming that the system is initially at rest, with x(t) = 0 and y(t) = 0 for
t ≤ 0.
h(t)
1/e
t
1/a
Figure 8.7: The exponential function is obtained at the output of an LTI system
represented by a first order homogeneous differential equation, dy(t)
dt + ay(t) =
x(t).
b) For example, this system may approximately represent the velocity decay
of a car, running with a unit speed. At time t = 0, if we stop pushing the gas
pedal, the velocity will decay and approach to 0. The decay rate, a, depends
on the environmental conditions and the properties of the car.
c) Let us investigate the structure of the phenomenon represented by h(t)
in frequency domain, using the analysis equation:
Z ∞ Z ∞
1
H(jw) = h(t)e−jωt dt = e−at e−jωt dt = . (8.49)
−∞ 0 a + jw
Since H(jw) is a complex function, we need to find the magnitude and the
phase of this function:
1
| H(jw) | = √
a2
+ w2 (8.50)
w
∡H(jw) = − tan−1 ( )
a
Magnitude and phase plot of H(jw) is shown in Figure 8.8.
The magnitude spectrum is relatively high for |ω| ≤ a, compared to the
frequencies outside of this interval. It converges to zero as the absolute value
of the angular frequency, |ω| is increased. Thus, this LTI system passes the
324
|H(ω)|
1/a
1
√
a 2
a −a ω
∠H(ω)
π
2
π
4
−a ω
− π4
− π2
Figure 8.8: Magnitude and phase spectrum of the frequency response, H(jw) =
1
a+jω .
x(t) ↔ ak . (8.51)
Suppose, also, that the Fourier Transform of the function, x(t), is,
325
Motivating question: What is the relationship between the spectral co-
efficients, ak and Fourier transform X(jω) of x(t)?
In order to find an answer to the above question, let us solve the following
exercise:
Find the inverse Fourier transform, x(t), of the above frequency domain
signal.
Note: Finding the inverse Fourier transform involves taking the weighted in-
tegral of a complex function, X(jw). This may not be an easy task, which may
require contour integration. In order to avoid taking complex integrals most
of the time we employ look up tables. However, for this particular function we
can arrange Equation 9.52 we obtain,
∞ ∞ ∞ ∞
1
Z X X Z
jωt
x(t) = 2πak δ(ω − kω0 )e dω = ak δ(ω − kω0 )ejωt dω.
2π −∞ k=−∞ −∞
k=−∞
(8.55)
The integral in the right hand side of the about equation is easy to take;
Z ∞
δ(ω − kω0 )ejωt dω = ejkω0 t . (8.56)
−∞
Replacing the result of the integral in Equation: 9.53, we obtain,
∞ ∞ ∞
1
Z X X
x(t) = 2πak δ(ω − kω0 )ejωt dω = ak ejkω0 t . (8.57)
2π −∞ k=−∞ k=−∞
Interestingly, the right hand side of the above equation is the Fourier series
representation of the function, x(t), which is periodic with fundamental period,
326
2π
T =w0
.
Comparing the Fourier Transform and Fourier Series of x(t),
∞
X ∞
X
jkw0 t
x(t) = 2πak e ↔ X(jw) = 2πak δ(w − kw0 ) (8.58)
k=−∞ k=−∞
Solution:
a) Recall that there are only two nonzero spectral coefficients of this func-
tion;
1
a1 = −a−1 = .
2j
b) We can easily compute the Fourier transform by inserting the spectral
coefficients into the Equation 9.57, as follows:
∞
X π
X(jw) = 2πak δ(w − kw0 ) = (δ(w − w0 ) − δ(w + w0 )). (8.61)
j
k=−∞
327
shift of the continuous impulse functions in the Fourier transform are irrational
numbers of angular frequency, which is |ω0 | = 2πT .
ak X(jω)
1 π
2j j
−1 −ω0
k ω
1 ω0
−1
2j
− πj
Exercise 8.9: Suppose that the impulse train function in time domain is
given by the following equation;
∞
X
x(t) = δ(t − kT ). (8.62)
k=−∞
Solution:
a) Fourier series representation of x(t) is,
1 1
Z
ak = δ(t − kT )ejkw0 t dt = e−jkw0 T = . (8.63)
T T T
b) By using the Fourier series coefficients, we can find the Fourier transform
X(jw), as follows:
328
∞ ∞
X 2π X 2π
X(jw) = 2πak δ(w − kw0 ) = δ(w − k ). (8.64)
T T
k=−∞ k=−∞
x(t) αk
1/T
.... ....
t k
−2T −T T 2T 1 2 3
(a) (b)
X(jω)
.... ....
ω
− 4π
T
− 2π
T
2π
T
4π
T
(c)
Figure 8.10: Impulse train in time domain (a), its spectral coefficients (b) and
its Fourier transform (c)
c) Interestingly, the impulse train function in the time domain has an im-
pulse train function in the frequency domain. While the Fourier transform
of a continuous time impulse train is a continuous frequency impulse train,
its Fourier series representation is a discrete impulse train. Thus, the impulse
train preserves its analytical form in both frequency and time domains. In other
words, the periodic function impulse train is always impulse train in both time
and frequency domains, where
• the fundamental period of the time domain function, x(t), is T = ω2π0 ,
• the fundamental period of the Fourier transform, X(jω) in the frequency
329
domain is ω = ω0 = 2π
T ,
• the fundamental period of the spectral coefficients, ak , is k = 1.
Note: The smaller period in the time domain results in a larger period
w0 = 2πT , in the frequency domain.
This conservative behavior of the impulse train function, which preserves
the analytical form in both domains, breaks the thick wall between the time
and frequency domains and opens a wide window to the digital era, as we shall
see in Sampling theorem of Chapter 11 and 12.
So far, we have seen that Fourier transforms map a time domain function
into a new domain, called frequency domain. In this domain, the time variable
disappears and the function is represented in terms of a continuous variable of
frequencies by the following analysis equation,
Z ∞
X(jw) = x(t)e−jwt dt, (8.65)
−∞
where the time domain function can be uniquely obtained from its fre-
quency domain representation by the synthesis equation,
Z ∞
1
x(t) = X(jw)ejwt dw. (8.66)
2π −∞
Recall that the complex exponential function, in the above equations rep-
resents a waveform of frequency of ω by Euler formula,
330
phenomenon in time domain, in terms of weighted integral of wave forms, where
the weights are the Fourier transform function X(jω).
331
Table 8.1: Basic properties of Fourier transform.
Non-periodic signal Fourier transform
1
R∞ R∞
x(t) = 2π −∞ X(jω)e
jωt dω X(jω) = −∞ x(t)e−jωt dt
(can also be written with frequency f = 2π/ω)
x(t) X(jω)
y(t) Y (jω)
x∗ (t) X ∗ (j(−ω))
x(−t) X(j(−ω))
1 ω
x(at) |a| X( a )
1
x(t) ∗ y(t) 2π X(jω) ∗ Y (jω)
d
dt x(t) jωX(jω)
Rt 1
−∞ x(t)dt jω X(jω) + πX(0)δ(ω)
d
tx(t) j dω X(jω)
X(jω) = X ∗ (j(−ω))
Re{X(jω)} = Re{X(j(−ω))}
For real-valued x(t) Im{X(jω)} = Im{X(j(−ω))}
|X(jω)| = |X(j(−ω))|
∢X(jω) = −∢X(j(−ω))
332
Table 8.2: Fourier transform pairs of popular continuous time functions.
Signal x(t) Fourier transform X(jω)
∞
X ∞
X
ak ejkω0 t 2π ak δ(ω − kω0 )
k=−∞ k=−∞
K 2πKδ(ω)
δ(t) 1
δ(t − t0 ) e−jωt0
∞ ∞
X 2π X 2πk
δ(t − nT ) δ(ω − )
n=−∞
T T
k=−∞
1
πt −jsign(ω)
1
tu(t) jπδ ′ (ω) −
ω2
tn 2π(j)n δ (n) (ω)
1
e−αt u(t), Re{α} > 0
jω + α
2α
e−α|t| , Re{α} > 0
ω 2 + α2
1 h −αt i 1
e − e−βt u(t),
β−α (jω + α)(jω + β)
Re{α} > 0, Re{β} > 0
333
Table 8.2: Fourier transform pairs of popular continuous time functions. (Con-
tinued)
1
te−αt u(t), Re{α} > 0
(jω + α)2
tn−1 −αt 1
e u(t)
(n − 1)! (jω + α)n
sin W t W Wt
= , Re{α} > 0 u(ω + W ) − u(ω − W )
πt π π
√
2 π −(ω/2α)2
e−(αt) , Re{α} >0 e
α
ω0
e−αt sin (ω0 t)u(t), Re{α} > 0
(jω + α)2 + ω02
−ω0
eαt sin (ω0 t)u(−t), Re{α} > 0
(α − jω)2 + ω02
α + jω
e−αt cos (ω0 t)u(t), Re{α} > 0
(jω + α)2 + ω02
α − jω
eαt cos (ω0 t)u(−t), Re{α} > 0
(α − jω)2 + ω02
sin (ω − ω0 )T1
(cos ω0 t) [u(t + T1 ) − u(t − T1 )] T1 +
(ω − ω0 )T1
sin (ω + ω0 )T1
(ω + ω0 )T1
Periodic square wave:
∞
(
1, |t| < T1 X 2 sin kω0 T1
δ(ω − kω0 )
0, T1 < |t| ≤ T2 k=−∞
kπ
with period T
The properties of Fourier transform not only give us an insight about the
frequency content of a physical phenomenon, but they also allow us to observe
the similarities and distinctions between the behavior of time domain and
frequency domain functions, which represent that phenomenon. Furthermore,
it helps us to compute the analysis and synthesis equations, in an efficient way.
Considering the fact that the Fourier transform and its inverse requires
taking the integral of complex functions, computing the analysis and synthesis
equations may not be easy. In order to simplify the computations, we provide
the Fourier transform pairs of popular functions, in Table 8.2. The properties
334
of Table 8.1 and look-ups of Table 8.2 enable us to find the Fourier transforms
of complicated functions and their inverse, without evaluating the integrals, in
most problems.
The properties can be directly proved by employing the Fourier transform
analysis and synthesis equations. For this reason, we shall not provide a rigor-
ous proof for each of the properties. Instead, we roughly show the way how they
can be proved. The reader is strongly recommended to prove all the properties
and solve the Fourier transform pairs, given in Tables 8.1 and 8.2.
In the following, we study a selected set of the properties to grasp the time
and frequency domain representations and their relationship.
1) Linearity: Fourier transform is a linear transform. Mathematically speak-
ing, if we have two functions and their corresponding Fourier transforms,
335
Note: Complex exponential, e−jωt0 , has a magnitude of 1. Thus, the time
delay alters the phase of the frequency domain signal, X(jw), but not its
magnitude. As a result, time delay doesn’t cause the frequency content of
X(jw) to change at all.
In order to illustrate the use of the linearity and time-shift properties, let
us solve the following example:
Solution:
a) Figure 1.a shows the plot of x(t). We observe that x(t) can be expressed
as the linear combination of two signals,
1
x(t) = x1 (t − 2.5) + x2 (t − 2.5), (8.75)
2
where the signals x1 (t) and x2 (t) are the rectangular pulse signals shown
in Figure 1b and c.
b) Fourier transform of rectangular pulses, x1 (t) and x2 (t) are,
2 sin(ω/2)
x1 (t) ↔ X1 (jω) = (8.76)
ω
and
2 sin(3ω/2)
x2 (t) ↔ X2 (jω) = , (8.77)
ω
respectively.
Equation 10.11 shows that for both x1 (t) and x2 (t), time shift is t0 = 5/2.
In order to find the Fourier transform X(jω), we multiply the Fourier
5
transforms of X1 (jω) and X2 (jω) by e−jωt0 = e−jω 2 . Using the linearity
and time-shift properties, the Fourier transform becomes,
sin(ω/2) + 2 sin(3ω/2)
X(jω) = e−j5ω/2 . (8.78)
ω
336
x(t) x1 (t)
1.5
1
1
t t
1 2 3 4 − 12 1
2
(a) (b)
x2 (t)
t
− 32 3
2
(c)
Figure 8.11: Decomposing a signal into the linear combination of two simpler
signals, x1 (t) and x2 (t). a) The signal x(t) = 21 x1 (t − 2.5) + x2 (t − 2.5), b) and
c) the signals, x1 (t) and x2 (t), which is used to represent x(t).
337
Exercise 8.11: Consider the following signal,
Solution:
a) For ϕ = 0, the function is
ϕ
x(t) = cos(ω0 (t + )) (8.82)
ω0
and apply the time shift property,
j ωϕ ω
X(jω) = πe 0 (δ(ω + ω0 ) + δ(ω − ω0 )). (8.83)
Note that there are only two non-zero values of X(jω), one at ω = ω0
and the other at ω = −ω0 . Therefore,
c) Comparing the results of part (a) and (b), we observe that a phase
shift of ϕ, in time domain, does not change the frequency content of the
signal, but it multiplies the amplitude at each frequency by an amount of
ejϕ and e−jϕ .
338
For a > 0, the analysis equation becomes,
∞ ∞
1 1 jω
Z Z
τ
Y (jw) = x(at)e−jwt dt = x(τ )e−jw a dτ = X( ). (8.86)
−∞ a −∞ a a
x(t) ↔ X(jω),
in terms of X(jω).
Solution:
The signal y(t) is both time scaled and time shifted version of x(t) and it
can be written in the following form;
7
y(t) = x(3(t + )). (8.89)
3
Using the time shift and time scale properties for a = 3 and t0 = −7/3,
we find that,
7
e 3 jω jω
y(t) = x(3t + 7) ←→ Y (jω) = X( ). (8.90)
3 3
4) Time Reversal: A special case of time scale is time reversal. Applying
the time scale property for a = −1, we observe that reversing a signal in
time also reverses the frequencies in the Fourier transform:
339
Exercise 8.13: Consider the following continuous time signal:
Solution:
First, we split x(t) into two parts as follows:
340
6) Differentiation Property: Taking the derivative of a signal in time
domain corresponds to multiplying its Fourier transform by jw in the
frequency domain:
dx(t)
←→ jωX(jω). (8.100)
dt
The above property can be easily shown by taking the derivative of both
sides of the synthesis equation, as follows;
∞ ∞
dx(t) 1 d 1
Z Z
jwt
= X(jw)e dw = (jω)X(jw)ejwt dw. (8.101)
dt 2π dt −∞ 2π −∞
dn x(t)
←→ (jω)n X(jω). (8.102)
dtn
Note: If we have an nth order differential equation in the time domain, its
Fourier transform gives us an nth order algebraic equation, with the pow-
ers of (jω). Therefore, solving a differential equation in the time domain
is equivalent to solving an algebraic equation in the frequency domain.
Exercise 8.14: Solve the following differential equation using the dif-
ferentiation property, when the input is x(t) = e−3t u(t), for the initially
rest systems.
d2 y(t) dy(t)
+ − 2y(t) = x(t). (8.103)
dt dt
Solution:
The Fourier transform of the input is,
1
F [x(t)] = F [e−3t u(t)] = . (8.104)
jω + 3
Taking the Fourier transform of both sides of the differential equation
yields,
1
[(jω)2 + (jω) − 2]Y (jω) = (8.105)
jω + 3
Leaving the Fourier transform of the output in the left hand side and
factorizing the second order term, we get,
341
1
Y (jω) = . (8.106)
(jω + 3)(jω − 1)(jω + 2)
Using the method of partial fraction expansion,
1 A B C
Y (jω) = = + + ,
(jω + 3)(jω − 1)(jω) + 2) (jω + 3) (jω − 1) (jω + 2)
(8.107)
we find A = 1/4, B = 1/12, C = −1/3.
Thus, the Fourier transform of the output is,
t t ∞ ∞
1 1 X(jω) jωt
Z Z Z Z
x(t)dt = X(jω)ejωt dωdt = e dω.
−∞ 2π −∞ −∞ 2π −∞ jω
(8.112)
The above integral shows that for ω ̸= 0,
Z t
X(jω)
x(t)dt ←→ . (8.113)
−∞ jω
For ω = 0, however, the integral in the right hand side of Equation:
10.48 approaches to ∞. Hence, the above Fourier transform of the inte-
gral of function x(t) is incomplete. Using Cauchy integral theorem, (Com-
342
R
x(t) y(t)
Solution:
a) When the input of an integrator is the impulse function, the corre-
sponding output is the impulse response,
Z t
h(t) = δ(t)dτ = u(t), (8.115)
−∞
which is a unit step function.
b) Integration property o reveals that the output of an integrator for a
general input x(t) is,
Z t
X(jω)
y(t) = x(t)dτ ←→ Y (jω) = + πX(0)δ(ω). (8.116)
−∞ jω
When we replace the input by an impulse function,
F .T .
x(t) = δ(t) ←→ X(jω) = 1, (8.117)
we obtain the frequency response as follows;
1
H(jω) = + πδ(ω). (8.118)
jω
Thus, the impulse response is,
343
1
h(t) = u(t) ↔ + πδ(ω). (8.119)
jω
Exercise 8.16: Find the Fourier transform X(jw) for the signal x(t)
displayed in Figure 8.13a, without evaluating the synthesis integral.
x(t)
1
1
−1 1
−1 t + t
t −1 1
1
−1
−1
(a) (b)
Figure 8.13: (a) A signal x(t) for which the Fourier transform is to be evaluated;
(b) representation of the derivative of x(t) as the sum of two components.
Solution:
Rather than applying the Fourier integral directly to x(t), we consider
the signal
d
g(t) = x(t) (8.120)
dt
As illustrated in Figure 8.13b, g(t) is the sum of a rectangular pulse and
two impulses. The Fourier transforms of each of these component signals
may be determined from Table 8.2:
2 sin ω
G(jω) = − ejω − e−jω (8.121)
ω
Using the integration property, we obtain
G(jω)
X(jω) = + πG(0)δ(ω). (8.122)
jω
Since G(0) = 0, Fourier transform of x(t) becomes,
2 sin ω 2 cos ω
X(jω) = − . (8.123)
jω 2 jω
344
Note: If we have an integral equation in the time domain, its Fourier
transform gives us an algebraic equation. Therefore, taking an integral in
the time domain is equivalent to dividing its Fourier transform by jw and
adding the value of πX(0)δ(ω) , in the frequency domain.
8) Convolution Property: One of the most useful properties of Fourier
transform is the convolution property. This property states that convo-
lution in the time domain corresponds to multiplication in the frequency
domain. Mathematically,
Z ∞ Z ∞
′
Y (jω) = F [x(t)∗h(t)] = x(τ )e jωτ
dτ h(t′ )ejωt dt′ = X(jω)H(jω)
−∞ −∞
(8.126)
Recall that time and frequency representations of signals and systems are
one-to-one and onto. Therefore, the block diagram of an LTI system can
be represented in time and frequency domains, equivalently, as shown in
Figures 8.14 and 8.15.
Recall that the impulse response is the inverse Fourier transform of the
frequency response,
Z ∞
1
h(t) = H(jω)e−jωt dω (8.127)
2π −∞
and frequency response is the Fourier transform of the impulse response,
Z ∞
H(jω) = h(t)e−jωt dt. (8.128)
−∞
345
h1 h2
x(t) + y(t)
h3
H1 H2
x(t) + y(t)
H3
346
h(t) = δ(t − t0 ) (8.129)
a) Find the frequency response.
b) Find the system equation, which relates the input, X(jω) and output,
Y (jω), in the frequency domain.
c) Find the system equation, which relates the input, x(t) and output,
y(t), in time domain.
Solution:
a) Using the time shift property and Table 2, we obtain the frequency
response as follows;
Y (jω)
H(jω) = = e−jωt0 . (8.131)
X(jω)
Thus, the system equation in the frequency domain is,
347
∞
1
Z
x(t) = X(jω)e−jω tdω (8.136)
2π −∞
into Equation 10. 67,
∞ ∞
1
Z Z
′
Y (jω) = F [x(t)h(t)] = [ X(jω ′ )e−jω t dω ′ ]h(t)ejωt dt,
2π −∞ −∞
(8.137)
Finally, we arrange the integrals of the above equation,
∞ ∞
1
Z Z
′
Y (jω) = F [x(t)h(t)] = X(jω ′ ) h(t)ejt(ω−ω ) dtdω ′ . (8.138)
2π −∞ −∞
Note that the integral in the right hand side of the above equation is the
shifted Fourier transform of the function h(t),
Z ∞
′ ′
H(j(ω − ω )) = h(t)ejt(ω−ω ) dω ′ . (8.139)
−∞
Solution:
a) Let’s multiply a band limited signal s(t) with the cosine function p(t)
in time domain,
348
S(jw)
w
−w1 w1
1 1
M (jω) = S(jω) ∗ P (jω) = [S(j(ω − ω0 )) + S(j(ω + ω0 ))]. (8.146)
2π 2
b) Comparison of M (jω) and S(jω) shows an interesting similarity: Both
signals have the same analytical form. When we multiply a low frequency
bandwidth signal, s(t) with a cosine waveform of high frequency, the signal
in Fourier domain preserves its analytical form, but the bandwidth is
349
P (jw)
w
−w0 −w0
shifted towards the high frequencies. Also, the magnitude of the signal is
decreased by a factor of 0.5. This fact is depicted in Figure 8.18.
M (jw)
A/2
w
−w0 w0
(−w0 − w1 ) (−w0 + w1 ) (w0 − w1 ) (w0 + w1 )
F.T.
Figure 8.18: Amplitude modulation: The signal s(t) −−→ S(jω) is shifted to
F.T.
high frequencies by a carrier signal, p(t) = cos(w0 t) −−→ P (jω).
350
modulation. While m(t) is called the modulated signal, p(t) is called
carrier signal. After transmitting the modulated signal, m(t) = p(t)s(t)
to the final destination, a demodulation method is needed to reconstruct
the original signal s(t) from the modulated signal m(t).
F : S −→ S ′ . (8.147)
Then,
F(F(X)) = X, ∀X ∈ S (8.148)
A simple everyday example of duality is a coin with two sides, which
satisfies the two properties mentioned above;
1. Symmetry: The dual of head is tail. The dual of the tail is the head.
2. Involution: The dual of the dual of head is head.
Fourier transforms exhibit the above major duality properties, which link
the time and frequency domain representations of the same phenomenon.
Duality of Fourier transform follows from the fact that the analysis and
1
synthesis equations are almost identical except for a factor of 2π and the
difference of a minus sign in the exponential in the integral.
There are many remarkable symmetries and involution between the time
and frequency domains. In the following, we overview three basic dualities
of Fourier transforms.
• Duality 1: Fourier Transform of Fourier Transform
The analytical form of the Fourier transform of the Fourier transform
of a function is very similar to the analytical form of the function itself.
Formally speaking, when a time domain function has an analytical
function, in the form of x and its frequency domain representation has
an analytical form of X, these two functions are related to each other
by Fourier transform,
351
x(t) ←→ X(jω). (8.149)
If we replace the variable jw by t and take the Fourier transform of
X(t), we obtain the reflected analytical form of x, scaled by 2π, in
frequency domain, as follows:
T
1 jωT −e−jωT 2 sin(ωT )
Z
X1 (jω) = e−jωt dt = (e )= . (8.153)
−T jω ω
352
x1 (t) X1 (jw)
2T1
1 F
w
t
−T1 T1 − Tπ1 π
T1
x2 (t) X2 (jw)
W/π
F
1
t
π π w
−W W −W W
Figure 8.19: Duality property which shows the relationships between the ana-
lytical form of two functions in time and frequency domains.
c) The analytical form of x2 (t) and X1 (jω) are the same, as observed
from Figure 8.19.
353
11) Parseval’s Equality: In the above properties and examples, we observe
that the representation of signals and systems in time and frequency do-
mains, have substantially different analytical forms and structures. For
example, a periodic signal, which consists of sine and cosine functions,
has a Fourier transform consisting of shifted impulse functions at the fun-
damental frequency and its harmonics. However, the energy of the signals
in both domains does not change:
Z ∞ Z ∞
2 1
|x(t)| dt = |X(jω)|2 dω. (8.158)
−∞ 2π −∞
We can show Parseval’s equality by inserting the analysis equation into
the left hand side of Equation: 10.94, as follows;
Z ∞ Z ∞
2
|x(t)| dt = x(t)x∗ (t)dt = (8.159)
−∞ −∞
∞ Z ∞ ∞
1
Z Z
′
jωt
X(jω)e dω X ∗ (jω ′ )e−jω t dω ′ dt.
(2π)2 −∞ −∞ −∞
Considering the fact that harmonically related complex exponential func-
tions are periodic with 2π and they are orthogonal to each other,
(
2π for ω = ω ′
Z 2π
′
ejωt e−ω t dt = (8.160)
0 0 otherwise
and arranging the right hand side of Equation: 10.95, we obtain,
Z ∞
1
Z
|x(t)|2 dt = |X(jω)|2 dω. (8.161)
−∞ 2π −∞
Parseval’s equality reveals that representation of signals in Hilbert space
conserves the energy of time domain. Note that there is a factor of 1/2π
which scales the energy of time domain.
The above properties of Fourier transform simplifies a large variety of dif-
ficult problems for designing and implementing the LTI systems, analyzing
the frequency content of the signals, solving differential and integral equation,
taking convolution etc. Since time and frequency domains are one-to-one and
onto, we can freely switch between them during the steps of our design and
analysis processes, depending on our needs.
In the following section, we shall study continuous time LTI systems rep-
resented by differential equations and show an algebraic method to solve the
differential equations in the frequency domain. We observe that differentia-
tion and integration properties make our lives quite easy for designing and
analyzing LTI systems, in the frequency domain. Let us see how?
354
8.8.2. Continuous Time Linear Time Invariant
Systems in Frequency Domain
Recall that a continuous time LTI system is represented by the following ordi-
nary constant coefficient differential equation in time domain ,
N M
X dk y(t) X dk x(t)
ak = bk . (8.162)
dtk dtk
k=0 k=0
Also, recall that if the eigen function of x(t) = ejωt is the input to an
LTI system represented by the impulse response, h(t), then, the corresponding
output is,
We can also obtain the frequency response of an LTI system by using the
355
above algebraic equation. When we replace the input of an LTI system by the
impulse function in the time domain, the output becomes impulse response.
When the input is an impulse function in time domain, its Fourier transform
becomes,
dy(t)
+ y(t) = x(t), (8.173)
dt
356
a) Find impulse response.
b) Find the solution y(t), for the input
Solution:
a) If we did not know the Fourier transforms, we would replace the input by
an impulse function and solve the above differential equation for h(t). However,
taking the Fourier transform avoids solving the differential equation as follows:
First, let us take the Fourier transform of both sides of the differential equation
given above;
357
1
Y (jω) = (8.181)
(1 + jω)(2 + jω)
1 1
= − . (8.182)
1 + jω 2 + jω
By using the linearity property and Table 8.2, we find the inverse Fourier
transform of Y (jw), as follows;
358
This requires simply to replace the purely imaginary frequency variable jω of
Fourier transform with a complex variable, s = σ + jω, which consists of a real
and imaginary parts.
Formally, the Laplace transform of a continuous time function x(t) is de-
fined as,
Z ∞
L{x(t)} = X(s) = x(t)e−st dt, (8.185)
−∞
Z ∞
−σt
L{x(t)} = F {x(t)e }= x(t)e−σt e−jωt dt = X(σ + jω). (8.190)
−∞
∞
1
Z
−σt −1
x(t)e =F {X(σ + jω)} = X(σ + jω)e−jωt dω. (8.191)
2π −∞
Leaving x(t) alone in the left hand side of the equation, we obtain,
Z ∞
1
x(t) = X(σ + jω)e−t(σ+jω) dω. (8.192)
2π −∞
359
Now, let us replace s = σ + jω. Then, assuming that σ is fixed, we replace
ds = jdω in the above integral equation to obtain the inverse Laplace transform
for each value of σ, from the following synthesis equation;
σ+j∞
1
Z
x(t) = X(s)e−st dω (8.193)
2πj σ−j∞
where the weight X(s) of the complex exponential function is called the
Laplace transform of x(t), obtained from the following analysis equation;
Z ∞
X(s) = x(t)e−st dt (8.194)
−∞
Note that finding the inverse Laplace transform, using the above equation
requires contour integration, which can be done by using the Cauchy residue
theorem [see: Complex Analysis: A Modern First Course in Function Theory
Jerry R. Muir Jr., Wiley, ISBN: 978-1-118-70522-3 April 2015]. In the context
of this book we suffice to use look up tables and the properties of the Laplace
transforms for finding the inverse Laplace transforms.
Laplace transform has several advantages compared to the Fourier trans-
form. It is very handy to solve the differential equations. It is applicable to
the functions, where the Fourier transform do not exists. It is a very powerful
tool to analyze the stability of linear or nonlinear systems. It has a wide range
of applications in developing Signal, Image and Video Processing , Computer
Vision and Machine Learning Systems.
360
sided Laplace transform by the following equation
Z σ+j∞
1
x(t) = X(s)est ds. (8.196)
2πj σ−j∞
361
3) If there exists a finite t0 , such that
x(t) = 0 for t ≥ t0 ,
then, the ROC is the left hand side of the complex plane with σ < σ0 .
4) If the function is left-sided, in other words, if there exists two finite values,
t0 and t1 , such that
(
̸= 0 for t < t0 and t > t1 ,
x(t) (8.198)
= 0 otherwise,
then, the ROC is a stripe with σ0 < σ < σ1 .
In order to observe the above forms of ROC and various capabilities of
Laplace transform over the continuous time Fourier transform, let us solve the
following exercises and investigate the existences of both Fourier and Laplace
transforms.
Exercise 8.21: Consider the following continuous time right sided signal:
a) Find and compare the Laplace and Fourier transforms of this signal.
b) Find the values of a, which assures the existence of the Fourier transform
c) Find the ROC and the values of a, which assures the existence of the
Laplace transform.
d) Compare the range of a, which assures the existence of Fourier and
Laplace transforms.
Solution:
a) Fourier transform of the signal, x(t) is defined as,
Z ∞ Z ∞
−jωt
X(jω) = x(t)e dt = eat e−jωt dt = (8.200)
−∞ 0
∞
1
Z
e−t(jω−a) dt = , f or a < 0. (8.201)
0 jω − a
The above integral does not converge for a > 0.
b) Laplace transform of the signal x(t) is,
Z ∞ Z ∞ Z ∞
−st −t(s−a)
X(s) = x(t)e dt = e dt = e−t((σ−a)+jω) dt. (8.202)
−∞ 0 0
362
proaches to ∞. Taking the integral in ROC for σ ≥ a, we obtain,
1 1
= . (8.203)
s−a jω + (σ − a)
a) Find and compare the Laplace and Fourier transforms of this signal.
b) Find the values of a, which assures the existence of the Fourier transform
c) Find the ROC and the values of a, which assures the existence of the
Laplace transform.
d) Compare the region of convergence (ROC) of Fourier and Laplace trans-
forms.
Solution:
a) Fourier transform of the signal, x(t) is defined as,
0
1
Z
X(jω) = − eat e−jωt dt = , f or a > 0. (8.205)
−∞ jω − a
The above integral does not converge for a < 0.
b) Laplace transform of the signal x(t) is,
Z ∞
1 1
X(s) = x(t)e−st dt = = . (8.206)
−∞ s−a (σ − a) + jω
Therefore, the integral exists for σ − a < 0 or σ < a.
c) As in the previous example, the analytical forms of Fourier and Laplace
transforms are the same. However, the conditions of convergence changes.
While Fourier transform exists, for only positive values of a, Laplace trans-
form exits in the region of the complex plain, where the real part of s is less
then or equal to a. Since Laplace transform may exit for some restricted values
of σ and for all values of jω, the ROCs of X(s) consists of strips parallel to
the jw-axis in the s-plane.
363
jω
a σ
Exercise 8.23: Find the Laplace transform and its ROC for the following
right sided function:
Solution:
From the definition of Laplace transform;
∞ ∞
1 1
Z Z
−st
X(s) = x(t)e dt = e−(σ+jω)t dt = = . (8.208)
−∞ 0 (σ + jω) s
Note that the Laplace integral exists for σ = Re{s} > 0. Thus, ROC
is positive half of the complex plane. This is the case, when an absolutely
integrable function x(t) is right sided.
Exercise 8.24: Find the Laplace transform and its ROC for the following
limited time duration function:
Solution:
From the definition of Laplace transform;
364
jω
Figure 8.21: Region of convergence for the Laplace transform of the unit step
function, u(t).
∞ T
1
Z Z
−st
X(s) = x(t)e dt = e−(σ+jω)t dt = [1 − e−sT ]. (8.210)
−∞ 0 s
Since the time duration, t ∈ [0, T ] is bounded, the Laplace integral exists
for all values of σ. Thus, ROC is the entire complex plane. This is the case,
when an absolutely integrable function x(t) has finite duration.
Exercise 8.25: Find the Laplace transform and ROC of the following two
sided function:
Solution:
From the definition of Laplace transform;
∞ ∞
1 1
Z Z
−st
X(s) = at
(e + e )eat
dt = e−(σ+jω)t dt = + (8.212)
−∞ 0 s+a s−a
In order to find the ROC of the above Laplace transform, we need to find
the ROC of the first and the second term in the left hand side of the above
equation:
1
ROC for s+a is σ ≥ −a and
1
ROC for s−a is σ ≤ a.
365
jω
Figure 8.22: Region of convergence for the Laplace transform of x(t) = u(t) −
u(t − T ).
x(t)
1
Figure 8.23: Two sided function x(t) = e−at u(t) + eat u(−t).
366
jω
−a a σ
which may not be easy for a large class of functions. In order to avoid contour
integration, we frequently use the look-up tables and properties of the Laplace
transform. Since they are quite similar to that of the Fourier series and Fourier
transformation, we suffice to provide the list of properties and look up tables for
common transform pairs, x(t) ↔ X(s) together with ROCs, in Tables 8.3 and
8.4. The following examples demonstrate how we utilize the tables to compute
the inverse Laplace transform.
367
Table 8.3: Properties of Laplace transform.
Signal Transform Pair ROC
x(t) X(s) R
x1 (t) X1 (s) R1
x2 (t) X2 (s) R2
ax1 (t) + bx2 (t) aX1 (s) + bX2 (s) At least R1 ∩ R2
x(t − t0 ) e−st0 X(s) R
e−s0 t x(t) X(s − s0 ) Shifted version of R (i.e., s is in the ROC
if s − s0 is in R)
1 s s
x(at) |a| X( a ) Scaled ROC (i.e., s is in the ROC is in
a
R)
x∗ (t) X ∗ (s∗ ) R
x1 (t) ∗ x2 (t) X1 (s)X2 (s) At least R1 ∩ R2
d
dt x(t) sX(s) At least R
d
−tx(t) ds X(s) R
Rt 1
−∞ x(τ )d(τ ) s X(s) At least
R ∩ {Re{s} > 0}
Initial- and Final-Value Theorems:
If x(t) = 0 for t < 0 and x(t) contains no impulses or higher-order singularities at t = 0, then
x(0+ ) = lim sX(s)
s→∞
368
Table 8.4: Laplace transform pairs.
Signal Transform ROC
δ(t) 1 All s
1
u(t) s Re{s} > 0
1
−u(−t) s Re{s} < 0
tn−1 1
(n−1)! u(t) sn Re{s} > 0
tn−1 1
− (n−1)! u(−t) sn Re{s} < 0
e−αt u(t) 1
s+α Re{s} > −α
−e−αt u(−t) 1
s+α Re{s} < −α
tn−1 −αt 1
(n−1)! e u(t) (s+α)n Re{s} > −α
tn−1 1
− (n−1)! e−αt u(−t) (s+α)n Re{s} < −α
Exercise 8.26: Find the inverse Laplace transform of the following s-domain
function;
1
X(s) = , ROC for σ < −1. (8.214)
(s + 1)(s + 2)
Solution: Let us apply partial fraction expansion to simplify the Laplace func-
tion;
369
1 1 1
X(s) = = − (8.215)
(s + 1)(s + 2) s+1 s+2
In the above equation, inverse Laplace transformation of the first term is,
1
L −1 [
] = e−t u(t) (8.216)
s+1
the inverse Laplace transformation of the second term is,
1
L −1 [ ] = e−2t u(t) (8.217)
s+2
Using the linearity property, we obtain the inverse Laplace transform of X(s)
as follows:
x(t) = [e−t − e−2t ]u(t) (8.218)
Exercise 8.27: Find the inverse Laplace transform of the following s-domain
function;
3s + 2
X(s) = , ROC for σ≥0 (8.219)
s2 + 9
Solution:
Let us separate the function into two parts:
3s + 2 3s 2
X(s) =
2
= 2 + 2 . (8.220)
s +9 s +9 s +9
From the Laplace transform table, we can see that the inverse Laplace trans-
form of the first term is,
3s
L −1 [ ] = [3 cos 3t]u(t), ROC for σ > 0 (8.221)
+9 s2
and the inverse Laplace transform of the second term is,
2 2
L −1 [ ] = [ sin 3t]u(t), ROC for σ > 0 (8.222)
s2 +9 3
Using the linearity property, we obtain the inverese Laplace transform of X(s),
as follows;
3s 2 2
x(t) = L −1 [ ] + L −1 [ 2 ] = [3 cos 3t + sin 3t]u(t). (8.223)
s2+9 s +9 3
Exercise 8.28: Find the inverse Laplace transform of the following s-domain
370
function;
2 3
X(s) = , ROC for σ< . (8.224)
3 − 7s 7
Solution:
Let us factorize the constant term 3/7
2 2 1
X(s) = =− 3 (8.225)
3 − 7s 7s− 7
Using the linearity property and the look up table, we get,
2 3 2 1 3
x(t) = e 7 t u(−t) ↔ X(s) = − , ROC for σ < .. (8.226)
7 7 s − 37 7
Exercise 8.29: Find the inverse Laplace transform of the following s-domain
function;
1 3 − 2s
X(s) = + 2 ROC for σ > 3/4 (8.227)
3 − 4s s + 49
Solution:
Let us separate the function into three parts:
1 3 2s
X(s) = + 2 − 2 . (8.228)
3 − 4s s + 49 s + 49
From the Laplace transform table, we can see that the inverse Laplace trans-
form of the first term is,
1 1 3
L −1 [ ] = −( e 4 t )u(t) ROC for σ > 3/4, (8.229)
3 − 4s 4
the inverse Laplace transform of the second term is,
3 3
L −1 [ ] = ( sin 7t)u(t) ROC for σ > 0, (8.230)
s2 + 49 7
and the inverse Laplace transform of the third term is,
2s
L −1 [ ] = (2 cos 7t)u(t) ROC for σ > 0. (8.231)
s2 + 49
Thus, the inverse Laplace transform of X(s) is
1 3 3
x(t) = [− e 4 t + sin 7t − 2 cos 7t]u(t). (8.232)
4 7
371
The above exercises show that a practical method for finding the inverse
Laplace transform is to make algebraic manipulations on the s-domain function
and put it into the linear combination of the known pairs of transform table.
Then, use the linearity property to obtain the inverse transform.
Also, recall that if the eigen function of x(t) = ejωt is the input to an
LTI system represented by the impulse response, h(t), then, the corresponding
output is,
372
equation given above,
N
X M
X
k
ak s Y (s) = bk sk X(s). (8.237)
k=0 k=0
373
Definition: Transfer Function The Laplace transform of the impulse
response is called transfer function,
Z ∞
H(s) = h(t)e−st dt. (8.243)
−∞
When the frequency response of an LTI system does not converge, we can-
not represent the LTI system with an eigenvalue, in the frequency domain.
However, Laplace transform enables us to find the eigenvalue of the system,
which converges in some regions of the complex s-plane. In other words, Laplace
transform generalizes the Fourier transform by extending the purely imaginary
variable jω to a complex variable s = σ + jω. This extension enabled us to
find the Laplace transform of a continuous time function, even if the Fourier
transform does not exists. We found the regions of the complex plane , called
the region of convergence(ROC), where the Laplace transform exits.
For a more general representation of frequency response, instead of jω, we
can define a complex number, as s = σ + jw, then, the frequency response
becomes transfer function,
PM k
Y (s) k=0 bk s
H(s) = = PN , (8.244)
X(s) k=0 ak s
k
Solution:
374
jω
−a a σ
1 1
Figure 8.25: Region of convergence of the transfer function H(s) = s−2 + s−3
for ROC σ > 2.
a) This system is causal, but unfortunately the Fourier transform of the first
term does not exit. Thus, H(jω) → ∞.
b) The transfer function is the Laplace transform of the impulse response:
Z ∞ Z ∞
−st
H(s) = h(t)e dt = [e2t − e−3t ]e−st dt. (8.247)
−∞ 0
Transfer function consists of two subsystems, which are paralleled to each
other;
H(s) = H1 (s) − H2 (s) (8.248)
where,
∞
1
Z
H1 (s) = e2t e−st dt = , ROC for Re{s} > 2 (8.249)
0 s−2
and
∞
1
Z
H2 (s) = e−3t e−st dt = , for ROC Re{s} > −3. (8.250)
0 s+3
Thus,
5
H(s) = , for ROC Re{s} > 2. (8.251)
s2 +s−6
c) The ROC of the overall transfer function, H(s), lies in the intersection
of ROCs of H1 (s) and H2 (s), which includes the region of the complex
plane for σ > 2.
375
Exercise 8.31: Consider an initially at rest LTI system given by the follow-
ing differential equation;
d2 y(t) dy(t)
2
+4 + 2y(t) = 5x(t) (8.252)
dt dt
a) Find the transfer function of this system.
b) Find the impulse response of this system.
Solution:
a) Let us set the input to impulse function, x(t) = δ(t), then, the correspond-
ing output of the differential equation becomes the impulse response, h(t).
The above differential equation for impulse response is,
d2 h(t) dh(t)
+4 + 2h(t) = 5.δ(t) (8.253)
dt2 dt
From the properties, we see that
dn y(t)
↔ sn X(s),
dtn
from the Fourier transform table, we see that
Using the above transform pairs, we take the Laplace transform of both
sides of the differential equation:9.23, we obtain an equation for transfer
function;
[s2 + 4s + 2]H(s) = 5.
Finally, we get the transfer function, as follows;
5
H(s) = for ROC: σ > −2.
(s + 2)2
b) The impulse response of this system is the inverse of the transfer function.
Using the Fourier transform table, we obtain the impulse response, as
follows;
The above example demonstrates that we can obtain the transfer function
and impulse response of an LTI system, which is initially at rest, without solv-
ing the differential equation. This methods is also available in Fourier domain,
provided that the frequency response exits. In case of undefined frequency
376
responses, Laplace domain enables us to compute the transfer function and
impulse response, using a simple algebraic method.
As it is observed throughout of this chapter, the transform domains capture
different view of the physical phenomena other then time domain representa-
tions. Furthermore, the beautiful synergy created by the representations of
time and transform domains bridges the mathematics of linear algebra and
differential equations.
377
are the properties of the signals and systems in the frequency domain? Where
do we use Fourier transformations?
In order to answer the above questions, we dive into the deeper meanings
of Fourier analysis and synthesis equations, investigating the power of Fourier
transforms in solving mathematical problems and designing LTI systems.
We studied basic properties of Fourier transforms, such as linearity, time
shifting, time scaling, derivation and integration properties. We saw that con-
volution operation in time domain is transformed into multiplication operation
in frequency domain. We noticed that the energy is preserved in time and fre-
quency domains. We also studied an important concept, called duality. In short,
we observed that infinite dimensional frequency domain, spanned bu uncount-
ably many complex exponential functions has many interesting properties and
forms a fertile environment for understanding the frequency content of contin-
uous time signals. We observed that differential and integral equations become
algebraic equations in the frequency domain. Thus, solving them in the fre-
quency domain is rather easier compared to solving them in time domain. We
also, show that there is one-to one correspondences between the representa-
tion of LTI systems by impulse response, frequency response and differential
equations.
Finally, we define a new domain, called Laplace domain, where the purely
imaginary frequency domain variable (jω), is extended to a complex plain vari-
able s = σ + jω. This generalization enables us to find the Laplace transforms
of the functions, which do not exist in the frequency domain, in which the
Laplace transform exists in some regions of the complex plane called, Region
of Convergence. While Fourier Transform maps a time-domain function into
a frequency-domain function, Laplace Transform maps a time-domain func-
tion into an s-domain function, in the entire complex plane, where the the
transformed function exits in the Region of Convergence (ROC).
378
Problems
1. Consider the following continuous time signal:
(
e−2t , 0 ≤ t ≤ 1
x(t) =
0, otherwise
379
transform is,
X(jw) = δ(ω) + δ(ω − 2) + δ(ω + 2)
.
a) Find the inverse Fourier transform x(t) of this signal. Is x(t) periodic?
If yes, find the period.
b) Given an LTI system represented by the impulse response,
x(t)
... 4 ...
2
t
−6−5−4−3−2−1 0 1 2 3 4 5 6 7 8
(8.a)
380
x(t)
t
−4 −2 2 4
−2
(8.b)
9. In figure (a), x(t + 1) is given. x(t) has Fourier Transform X(jω).
x(t + 1)
t
−2 −1 0 1 2
(9.a)
a) Find ∢X(jω) and sketch it.
b) Calculate
R∞ X(jω) at ω = 0.
c) −∞ X(jω) dω
381
10. Find the Fourier Transform of the following signals:
π
a) sin(2πt + )
4
π
b) 1 + cos(12πt + )
4
∞
X sin(k π3 ) π
x(t) = p(t − k ).
k π3 3
k=−∞
13. Find the inverse Fourier transform x(t). Are these real in time domain?
a) X(jω) = u(ω + 8) − u(ω − 8)
b) X(jω) = P
cos(ω) sin(ω)
c) X(jω) = ∞ 1 |k| kπ
k=−∞ ( 8 ) δ(ω − 4 )
382
15. A continuous time signal is given below:
(t + 1)
x(t) = (u(t + 1) − u(t − 1))
2
sin2 t
x(t) = .
2π 2 t
a) Find and plot the Fourier transform of this signal.
b) Find the energy of this signal.
17. Find the inverse Fourier Transform of the signals given in the frequency-
domain.
|X(jω)|
ω
−1 1
383
∢X(jω)
1
ω
3ω
(23.a)
384
X(jω)
1
−3 −2 −1
ω
1 2 3
−1
(23.b)
a) X(jω) satisfying graphs in (a)
b) X(jω) satisfying graphs in (b)
c) X(jω) = cos(8ω + π/3)
d) X(jω) = sin(ω−3π)
ω−3π
e) X(jω) = 6{δ(w + 4) − δ(w − 4)} + 4{δ(w + π) − δ(w − π)}
18. It is given that
(
1, |ω| ≤ 2
g(t) ←→ G(jω) =
0, otherwise
g(t)
a) Find x(t) such that x(t) =
cost
g(t)
b) Find h(t) such that h(t) =
cos 16 t
19. Calculate the response corresponding to x(t) = cos(t) of the following
systems whose impulse responses are given below.
i) h1 (t) = 2u(t)
ii) h1 (t) = −4δ(t) + 10e−2t u(t).
iii) h1 (t) = 2te−t u(t)
20. The signal x(t) has the Fourier Transform X(jω) and let g(t) be a periodic
signal whose fundamental frequency is ω0 . Its Fourier Series representation
as follows:
∞
X
g(t) = an ejnω0 t
n=−∞
385
i) g(t) = cos(4t)
ii) g(t) = sin(2t) sin(4t)
g(t) = ∞
P
iii) n=−∞ δ(t − 8πn)
iv) g(t) as drawn in (a).
g(t) = 2 n=−∞ δ(t − πn) − ∞
1 P∞ P
v) n=−∞ δ(t − 2πn)
X(jω)
ω
−1 1
(a)
21. The following signal is fed to a continuous time LTI system:
∞
X
y(t) = x(t − kT ).
k=−∞
386
b) Consider x(t) = e2−t u(t − 2) and g(t) as drawn in figure (a). Find the
Fourier Transform of x(t) ∗ g(t) and then find X(jω)G(jω).
g(t)
t
−2 4
(a)
23. Find the Laplace Transform and the region of convergence for the follow-
ing signals in time-domain.
a) x(t) = (e−5t + e−6t )u(t)
b) x(t) = (e−7t + e−8t sin(8t))u(t)
c)
t 0≤t≤1
x(t) =
2−t 1≤t≤2
d) x(t) = δ(2t) + u(2t)
24. Find the functions x(t) whose Laplace Transforms and region of conver-
gences are given.
s
a) 2 , Re{s} > 0
s + 25
s+1
b) 2 ,−3 < Re{s} < −2
s + 5s + 6
s2 + 2s + 1 1
c) 2 , Re{s} >
s −s+1 2
d2 y(t) dy(t)
− − 2y(t) = x(t)
d2 t dt
a) Find the transfer function, H(s) of the impulse response of the sys-
tem.
b) Find the frequency response of this system.
387
c) Find the impulse response of this system.
d) Find a block diagram representation of this system.
s+2
H(s) =
s2 + 4s + 5
a) Find the the impulse response of the system.
b) Find the frequency response of this system.
c) Find the differential equation, which represents this system.
d) Find the response, y(t), when the input is x(t) = e−2|t| for −∞ < t <
∞.
e) Find a block diagram representation of this system.
388
27. The transfer function of causal LTI system, S1 , is given as
s2 + 2s − 3
H1 (s) =
s2 + 3s + 2
Another system, S2 , has the system function
2
H2 (s) =
s2 + 3s + 2
Assume that both systems have the same input, x(t). Let corresponding
output of S1 be y1 (t) and that of S2 be y2 (t). Find y1 (t) in terms of the
followings:
a) y2 (t)
dy2 (t)
b)
dt
d2 y2 (t)
b)
d2 t
28. Find the Laplace Transform of the following signals with their region of
convergences:
a) 2δ(t + 2) − δ(t − 3)
d
b) {u(−1 − t) + u(t − 1)}
dt
29. Consider the continuous time LTI system, represented by the following
block diagram in the s-domain:
389
x(t) + + y(t)
1
s
+ −2 −1 +
1
s
−1 −6
390
Chapter 9
Discrete Time Fourier
Transform and Its Extension
to z-Transforms
391
with arbitrary magnitude, where r ∈ R.
1
Z
x[n] = X(ejω )ejωn dω, (9.2)
2π 2π
where the weight, called the Fourier transform, is a continuous function of
frequency, which can be uniquely obtained from the time domain function by
the following analysis equation;
∞
X
jω
X(e ) = x[n]e−jωn . (9.3)
n=−∞
The synthesis equation states that a discrete time function, x[n], can
be uniquely represented by the weighted integral of waves, i.e., complex ex-
ponentials. The weight function, X(ejω ), called the discrete time Fourier
transform of x[n], is a continuous function of frequency variable, ω, which
measures the amount of wave with a particular frequency band in the signal.
392
The analysis equation shows us how to obtain the Fourier transform,
X(ejω ) of x[n], which represents the signal as a function of frequencies, in the
frequency domain. The Fourier transform representation of a signal enables us
to decompose an aperiodic discrete time signal into its frequency components,
which is embedded in the signal.
The above representation of a physical phenomenon by a function in dis-
crete time domain and continuous frequency domain is one-to-one and onto:
and
1 X
ak = x̃[n]e−jkω0 n , (9.6)
N
n=<N >
where < N > indicates the coverage of one full period in the limits of the
summations. Consider, also, a finite duration discrete time aperiodic function,
x[n], which corresponds to the center part of the periodic function, x̃[n], for
one full period,
(
x̃[n] −N1 < n < N2
x[n] = (9.7)
0 otherwise,
In the above formulation, the periodic function x̃[n] is generated by repeat-
ing an aperiodic function, x[n], with the fundamental period, N . For the time
being, let us assume that the nonzero range in the interval, N1 + N2 < N is
finite, in the above equation, as shown in Figure 9.1.
Now, let’s define a new function, in the frequency domain,
X(ejkω0 ) = N ak , (9.8)
and replace it by N ak in the analysis equation, to obtain the following
equation;
X
X(ejkω0 ) = x̃[n]e−jkω0 n . (9.9)
n=<N >
393
x[n] x̃[n]
n n
(a) (b)
Figure 9.1: A finite duration signal x[n] (a) is repeated at every fundamental
period N , to generate a periodic signal, x̃[n] (b).
Now, let’s take the limit to stretch the period N to infinity. Then, the
angular frequency converges to an infinitesimal interval,
2π
ω0 = lim → dω (9.11)
N →∞ N
In the limit, the periodic function, x̃[n] converges to the aperiodic func-
tion, x[n], which repeats itself at every N → ∞. The summation operation of
the synthesis equation converges to integral operation, yielding a continuous
frequency domain function, as follows;
1 X
lim x̃[n] = x[n] = lim ω0 X(ejkω0 )ejkω0 n ,
N →∞ N →∞ 2π
k=<N >
(9.13)
2π
1
Z
jω jωn
x[n] = X(e )e dω,
2π 0
where
∞
X
X(e ) = jω
x[n]e−jωn . (9.14)
n=−∞
394
Interestingly, due to the limit of N → ∞, the Fourier transform of a dis-
crete time function converges to a continuous frequency function. Moreover,
the transform domain function, X(ejω ) becomes periodic, as shown by the
following Lemma.
Lemma: Discrete time Fourier transform, X(ejω ) of a function x[n] is
always periodic, with 2π.
Proof: Recall that the discrete time complex exponential,
e−jωn = ejω(n+2π) = e−jωn (cos 2π + j sin 2π)
is periodic with N = 2π. Since the linear combination of periodic functions
is also periodic, the Fourier transform, X(ejω ) is periodic with N = 2π.
Motivating Question: Why does the Fourier transform, X(ejω ), of a
discrete time function have argument ejω instead of jω of the continuous time
Fourier transform, X(jω)?
This is basically because of the analytical form of the synthesis equation
of the discrete time Fourier transform, which has a summation operation in-
stead of the integral operation of the continuous time Fourier transform. The
integral operation of the continuous time synthesis equation changes the an-
alytical form of the complex exponential basis functions. On the other hand,
the sum operation of the discrete time synthesis equation keeps them as is.
Thus, the Fourier transform of a discrete time functions are always functions
of the complex exponentials, ejω . Keep in mind that, we can always use the
Euler formula,
ejω = cos ω + j sin ω,
to convert the Fourier transform into trigonometric form.
Note: The Fourier tansform X(ejω ) of a discrete time aperiodic function
x[n] is continuous and periodic with 2π. Thus, the integral of the synthesis
equation covers only one full period of 2π.
395
lim |X(ejω ) − XK (ejω )| → 0, (9.15)
K→∞
where
K
X
XK (ejω ) = x[n]e−jωn , (9.16)
n=−K
However, even if the function is not absolutely summable, the Fourier trans-
form of this function may exist. In this case, it may be possible to represent
the Fourier transform in terms of continuous time impulse functions.
In the following exercises, let us practice to find the Fourier transform of
popular discrete time functions.
Solution:
a) This function is absolutely summable,
∞ ∞
X X 1
|x[n]| = |an | = < ∞. (9.20)
n=−∞
1 − |a|
n=0
b) Let’s use the synthesis equation to find the one full period of Fourier
transform of this signal:
396
∞
X 1
X(ejω ) = an e−jωn = ,
1 − ae−jω
n=0 (9.21)
jω 1 − a(cos ω + j sin ω)
X(e ) = .
(1 − a cos ω)2 + a2 sin2 ω
Let us express this complex function in rectangular coordinate system:
1 − a cos ω a sin ω
X(ejω ) = 2
+j . (9.22)
1 − 2a cos ω + a 1 − 2a cos ω + a2
Then, the magnitude and phase spectra of the complex signal, X(ejω ) are
computed as follows:
1 a sin ω
|X(ejω )| = √ , ∡X(ejω ) = tan−1 − . (9.23)
1 − 2a cos ω + a2 1 − a cos ω
The behaviour of the magnitude and phase plot depends on the value of the
parameter, a. Figure and Figure show two plots of the magnitude and phase
spectra for positive and negative values of a.
|X(ejω )| ∠X(ejω )
tan−1 1−a
a
a>0
1
1−a
−π π
1
1+a
−2π −π π 2π
Exercise 9.2: Consider the following absolutely summable discrete time sig-
nal,
Solution:
a) This signal is sketched for 0 < a < 1 in Figure 9.4.
397
|X(ejω )| ∠X(ejω )
tan−1 1−a
a
a<0
1
1+a
−π π
1
1−a
−tan−1 1−a
a
−π π
b) Noting that −1 < a < 1, we can split the analysis equation into two
sums, to obtain the Fourier transform of this signal, as follows;
+∞
X
X(ejω ) = a|n| e−jωn
n=−∞
+∞ −1
(9.25)
X X
= an e−jωn + a−n e−jωn .
n=0 n=−∞
Both of these summations are infinite geometric series that we can evaluate
in closed form, yielding
1 aejω
X(ejω ) = +
1 − ae−jω 1 − aejω
2
(9.27)
1−a
= .
1 − 2a cos ω + a2
The Fourier transform, X(ejω ) is a real, periodic and continuous frequency
function, where the period is 2π, as illustrated in Figure 9.4, for 0 < a < 1.
398
x[n] X(ejω )
1+a
1−a
1−a
1+a
n
ω
0 −2π 0 2π
(a) (b)
Figure 9.4: (a) Signal x[n] = a|n| of the above example and (b) its Fourier
transform (0 < a < 1).
Solution:
a) The plot of x[n] is given in Figure 9.5 for N1 = 2.
b) Discrete time Fourier transform of this signal is,
N1
X
jω
X(e ) = e−jωn . (9.29)
n=−N1
jω sin ω(N1 + 12 )
X(e ) = . (9.31)
sin(ω/2)
For N1 = 2, the Fourier transform can be written as,
sin 25 ω
X(ejω ) = . (9.32)
sin(ω/2)
The above Fourier transform is a real, symmetric and periodic function
with period 2π, and it is sketched in Figure 9.5.
399
x[n]
1 X(ejw )
5
n w
0 −2π −π 0 π 2π
−N1 N1
(a) (b)
Figure 9.5: (a) Rectangular pulse signal of the above example for N1 = 2 and
(b) its Fourier transform.
Solution:
a) We employ the analysis equation;
∞
X
x[n] = δ[n] ↔ X(ejω ) = δ[n]e−jωn = 1. (9.34)
n=0
Solution:
a) We employ the analysis equation;
400
x[n] X(ejw )
n w
∞
X ∞
X
−jωn
jω
x[n] = δ[n−n0 ] ↔ X(e ) = δ[n−n0 ]e = δ[n]e−jω(n+n0 ) = e−jwn0 .
n=−∞ n=−∞
(9.36)
b) Let us consider the magnitude and the phase of this complex function
and compare it to the Fourier transform of the impulse function which was a
real function, X(ejω ) = 1. The magnitude of the shifted impulse is the same
as that of the the unshifted impulse,
|X(ejω )| = 1. (9.37)
However, the phase is
a) Find and plot the inverse discrete time Fourier transform of X(ejω ).
b) Compare time and frequency domain representation of the underlying phys-
401
ical phenomenon.
c) Give a real life example, which is represented by an impulse train.
Solution:
a) Let’s use the synthesis equation:
2π ∞ Z 2π
1
Z X
jω jωn
x[n] = X(e )e dω = δ(ω − 2πl)ejωn dω = 1, ∀n. (9.40)
2π 0 l=−∞ 0
Equivalently,
∞
X
x[n] = δ[n − l]. (9.41)
l=−∞
b) Interestingly, the discrete time impulse train in the time domain, is a con-
tinuous frequency impulse train, with amplitude 2π and period 2π, in the
frequency domain.
X(ejw ) x[n]
w n
−4π−2π 0 2π 4π 1 2
Figure 9.7: Impulse train preserves its analytic form in both time and frequency
domains. However, while it is a discrete time impulse train, in the time domain,
it becomes a continuous frequency impulse train in the frequency domain. Note
that it scaled by 2π in amplitude and has the fundamental period 2π.
c) Neurons in the brain produce action potentials, which travel along the
axons to govern the communication all over the brain. The signals generated
by these electrochemical activities are in the form of impulse trains. Thus, our
brain can be considered as a massively parallel impulse train generator and
processor.
402
Exercise 9.7: Consider a physical phenomenon represented by the discrete
time Fourier transform, given as a shifted continuous impulse train, in the
frequency domain;
∞
X
X(ejω ) = 2π δ(ω − ω0 − 2πl) (9.42)
l=−∞
a) Find and plot the inverse discrete time Fourier transform of X(ejω ). b)
Study the effect of shift by comparing your results with the previous example
of an unshifted impulse train.
X(ejw )
n
ω0 − 2π ω0 ω0 + 2π ω0 + 4π
Solution:
a) Let’s directly use the synthesis equation:
Z ω0 +π
x[n] = δ(ω − ω0 )ejωn dω = ejω0 n
ω0 −π
∞
X (9.43)
jω0 n
x[n] = e ↔ 2π δ(ω − ω0 − 2πl)
l=−∞
403
|x[n]| ∠x[n] 3ω0
2ω0
ω0
1
−2 −1
1 2 3 n
−ω0
−2 −1 0 1 2 3 n −2ω0
Figure 9.9: Magnitude and phase spectrum of the complex discrete time domain
function, x[n] = ejw0 n .
Solution:
a) Let’s find the discrete time Fourier transform of x[n] by using the syn-
thesis equation for one full period in the interval, −π ≤ ω ≤ π:
∞ N −1
X
−jωn
X 1 − e−jwN
jω
X(e ) = x[n]e = e−jωn = . (9.46)
n=−∞
1 − e−jw
n=0
sin(wN/2)
|X(ejω )| = (9.49)
sin[w/2]
404
and the phase spectrum of X(ejw ) is
w(N − 1)
∡X(ejw ) = , (9.50)
2
which are repeated at every 2π period.
For N = 4, the magnitude of X(ejw ) is
sin(2w)
|X(ejω )| = (9.51)
sin[w/2]
and the phase of X(ejw ) is
3w
∡X(ejw ) = , (9.52)
2
as shown in Figure 9.10.
5
magnitude
4
0
−4π −3π −2π −π 0 π 2π 3π 4π
3
phase
2
1
0
−1
−2
−3
−4π −3π −2π −π 0 π 2π 3π 4π
Exercise 9.9: Consider the discrete time unit step function, u[n].
a) Is this function absolutely summable?
b) Can you find the discrete time Fourier transform of this function?
Solution:
405
x[n] = u[n] − u[n − 4]
1 2 3
Figure 9.11: Magnitude and phase spectrum of X(ejw ) which is the Fourier
Transform of x[n] = u[n] − u[n − 4].
b) Finding the Fourier transform of the unit step function is a little tricky.
First let us represent the unit step function in terms of the summation of two
functions,
406
as follows;
∞ ∞ ∞
X 1 X −jωn X
F (ejω ) = f [n]e−jωn = e =π δ(w − 2πn). (9.59)
n=−∞
2 n=−∞ n=−∞
∞ 1 ∞
X 1 X −jωn 1 X −jωn 1
G(ejω ) = g[n]e−jωn = − e + e = .
n=−∞
2 n=−∞ 2 1 − e−jw
n=0
(9.60)
Therefore, the discrete time Fourier transform of the unit step function is
∞
1 X
U (ejw ) = F (ejw ) + G(ejw ) = + π δ[w − 2πn]. (9.61)
1 − e−jw n=−∞
Note: The above exercises demonstrate that although the unit step func-
tion u[n] = 0 for n < 0, we need to evaluate the analysis equation in the interval
of −∞ < n < ∞. The continuous frequency Fourier transform of discrete time
unit step function covers one period in −π < ω < π and it repeats itself at
every 2π period.
2π ∞
1
Z
F.T.
X
x[n] = X(ejω )ejωn ←→ X(ejω ) = x[n]e−jωn . (9.63)
2π 0 n=−∞
407
Motivating Question: What is the relationship between the spectral co-
efficients ak and Fourier transform of X(ejω ), when the discrete time signal
x[n] is periodic?
As we show in the previous example, the discrete time complex exponential
for the k th harmonic has the Fourier transform as the shifted impulse train, as
follows,
∞
X
x[n] = ejkω0 n ←→ X(ejω ) = 2πδ(ω − kω0 − 2πl). (9.64)
l=−∞
Let us replace x[n] in the Fourier transform equation by its Fourier series
representation. Each term in the Fourier series equation of x[n] and its Fourier
transform will be as follows:
X
x[n] = ak ejkω0 n . (9.65)
k=<N >
Each term in the right hand side of the summation in equation: 11.64 has
the following Fourier transform:
X
a0 ←→ a0 2πδ(ω − 2πl),
X
a1 ejω0 n ←→ a1 2πδ(ω − ω0 − 2πl),
X
a2 ej2ω0 n ←→ a2 2πδ(ω − 2ω0 − 2πl), (9.66)
..
.
X
aN −1 ej(N −1)ω0 n ←→ aN −1 2πδ(ω − (N − 1)ω0 − 2πl).
If we add all the terms in the left hand side of of the above transforms, we
obtain the Fourier series representation of the discrete time signal x[n]. If we
add the right hand side of the above transform, we obtain the superposition
of the shifted impulse functions, where the superposition parameters are 2πak .
In order to get an idea about the behavior of this superposition, let’s plot the
Fourier transform of the first term a0 and that of the second term a1 ejωn and
add them together as shown in Figure ??.
Figure ?? indicates that the two superposed terms in time domain generate
an impulse train, in the frequency domain,
2π
a0 + a1 ejωn ←→ 2π[a0 δ(ω) + a1 δ(ω − (N + 1))],
N
which repeats at every 2π period.
If we add all the terms in the left hand side and right hand side of the
408
2πα0 2πα0 2πα0 2πα0
−2π 0 2π 4π ω
0 2π 2π 2π
N N
(N + 1) N
(2N + 1)
2πα0
2πα1
0 2π 4π
409
Fourier transoms of Equation 11.65, we obtain the Fourier transform of a dis-
crete time periodic signal x[n] in terms of the spectral coefficients as follows:
∞
N X
X 2π
X(ejω ) = 2πak δ(ω − (k + lN )). (9.67)
N
k=0 l=−∞
We can further simplify the above equation to obtain the relationship be-
tween the Fourier transform and Fourier series representation of a periodic
signal, as follows:
∞
jω
X 2πk
X(e ) = 2πak δ(ω − ), (9.68)
N
k=−∞
2π
where ω0 = N and
X
x[n] = ak ejkω0 n ,
k=<N >
1 X (9.69)
ak = x[n]e−jkω0 n .
N
n=<N >
The above equation reveals that the Fourier transform of a periodic signal
x[n] converts the discrete time spectral coefficients of weighted and shifted
impulses into continuous time weighted and shifted impulses.
Note: While the period of the spectral coefficients is N = 2π/w0 , the
period of the Fourier transform is 2π. Therefore, the Fourier transform axis is
scaled by w0 in the frequency domain.
Solution:
a) The spectral coefficients of x[n] are,
1 2π
a1 = a−1 = , N= . (9.71)
2 ω0
b) Fourier transform of x[n] is,
410
∞
X 2πk
X(ejω ) = 2πak δ(ω − )=
N (9.72)
k=−∞
π[δ(ω − ω0 ) + δ(ω + ω0 )], for − π ≤ ω ≤ π.
and it repeats at every 2π.
c) While the spectral coefficients are discrete time impulse train with period
N , the Fourier transform is a continuous impulse train with period 2π, as shown
in Figure 9.13. In other words, the Fourier transform, X(ejω ) repeats itself with
period 2π. The spectral coefficients ak repeat with period N :
αk X(ejω )
−N −1 1 N k −ω0 ω0 2π ω
Figure 9.13: Fourier series coefficients and Fourier transform of the periodic
signal, x[n] = cosω0 n.
Solution:
a) Since the summation is bounded, this function is absolutely sumable,
provided that all the values of ck are bounded:
N2
X
x[n] = ck δ[n − k] < ∞. (9.75)
k=− N1
411
b) Discrete time Fourier transform of this function can be obtained from
the analysis equation;
∞
X N2
X N2
X
X(ejω ) = ck δ[n − k]e−jnω = ck e−jkω . (9.76)
n=−∞ k=− N1 k=− N1
where the time domain function can be uniquely obtained from its frequency
domain representation by the synthesis equation;
1
Z
x[n] = X(ejω )ejωn dω. (9.78)
2π 2π
Discrete time Fourier analysis and synthesis equations reveal that the class
of absolutely summable discrete time functions can be represented by uncount-
ably infinite waveforms, namely complex exponentials, with continuously vary-
ing frequencies. Therefore, the Fourier transform, X(ejω ), gives us a unique and
powerful way of viewing a physical phenomenon in terms of weighted sum-
mation of waveforms, where the weights are the time domain function x[n].
Furthermore, the time domain function can be uniquely recovered from its
Fourier transform. In other words, time and frequency domain representation
of a physical phenomenon is one-to-one and onto;
412
In the following sections, we shall investigate the properties of discrete time
Fourier transform. We shall use the properties to go back and forth between the
discrete time and continuous frequency domains. We shall study the frequency
content of the aperiodic discrete time signals. We shall design and implement
LTI systems in the time and frequency domains for filtering the discrete time
signals.
413
Table 9.1: Properties of the discrete time Fourier transform.
Non-periodic signal Fourier transform
∞
1
Z X
x[n] = X(ejω )ejωn dω X(ejω ) = x[n]e−jωn
2π 2π n=−∞
x∗ [n] X ∗ (e−jω )
x[−n] X(e−jω )
x(m) [n] = X(ejmω )
(
x[n/m], n is multiple of m
0, otherwise
x[n] ∗ y[n] X(ejω )Y (ejω )
1
Z
x[n]y[n] X(ejθ )Y (ej(ω−θ) )dθ
2π 2π
x[n] − x[n − 1] (1 − ejω )X(ejω )
n ∞
X 1 jω )+πX(0)
X
x[k] X(e δ(ω−2πk)
1 − ejω
k=−∞ k=−∞
d
nx[n] j X(ejω )
dω
X(ejω ) = X ∗ (e−jω )
jω −jω )}
Re{X(e )} = Re{X(e
For real-valued x[n] Im{X(ejω )} = −Im{X(e−jω )}
|X(ejω )| = |X(e−jω )|
∢X(ejω ) = −∢X(e−jω )
414
Table 9.1: Properties of the discrete time Fourier transform. (Continued)
∞
1
X Z
2
Parseval’s relation for non-periodic signals: |x[n]| = |X(ejω )|2 dω
n=−∞
2π 2π
415
Table 9.2: Fourier transform pairs of popular discrete time functions. (Contin-
ued)
1
( sin ω N1 +
1, |n| ≤ N1 2
0, |n| > N1 ω
sin
2
sin W n W W n (
= sinc 1, |ω| ≤ W
πn π π , period 2π
0 < W < π 0, W < |ω| ≤ π
416
shifting property:
∞
′
X
Y (jw) = x(n′ )e−jw(n +n0 )t = e−jωn0 X(jω). (9.86)
−∞
Solution:
a) Let’s take the Fourier transform of both sides using the time shifting
property,
1 1
Y (ejw )[1 + e−jw − e−2jw ] = X(ejw )[1 − e−jw ]. (9.88)
4 8
Let us replace the input by the impulse function,
1 − e−jw
H(ejw ) = . (9.90)
1 + 14 e−jw − 81 e−2jw
b) Impulse response of this system is the inverse Fourier transform of the
417
frequency response. By using partial fraction expansion method, we can
simplify the frequency response;
2 1
H(ejw ) = 1 −jw − 1 −jw . (9.91)
1+ 2e 1− 4e
Using the Fourier transform pairs of Table 2, we obtain the impulse re-
sponse as follows;
1 1
h[n] = 2(− )n u[n] − ( )n u[n]. (9.92)
2 4
The above exercise shows how the time difference property converts a
difference equation of time domain into an algebraic equation in the fre-
quency domain. This handy property allows us to avoid the cumbersome
recursions for finding the output y[n] and the impulse response h[n] of an
LTI system.
Solution:
Using the Fourier transform of the impulse function together with the
time shift property, we obtain,
δ[n] ↔ 1
δ[n − n0 ] ↔ e−jωn0 (9.94)
jω −jω jω
X(e ) = e +e = 2cosω
Two discrete time impulses located at n = 1 and n = −1, are represented
by a continuous time periodic Cosine function in the frequency domain,
where the period is 2π
Exercise 9.14: Find the inverse Fourier transform of the following sig-
nal:
Solution:
Recall, from the previous example,
F.T.
x[n] = δ[n − 1] + δ[n + 1] ←→ X(ejω ) = 2cosω. (9.96)
418
In order to get a multiplicative factor e−jω in the frequency domain, we
need to get a time shift with n0 = 1, in the time domain;
Hence,
1 1
y[n] = x[n − 1] = (δ[n − 2] + δ[n]) ←→ e−jω cosω. (9.99)
2 2
Note: We avoided taking the integral to find the inverse Fourier trans-
form. Instead we used the properties. Why? Because taking a complex
integral is not an easy task in most cases. It may require sophisticated
methods, which is beyond the scope of this book.
∞
X ∞
X
Y (ejw) = x[n]ejω0 n e−jwn = x[n]e−j(ω−ω0 )n = X(ej(w−ω0 ) ).
n=−∞ n=−∞
(9.101)
Comparison of time and frequency shift properties uncovers an elegant
symmetry between the shifts in time and frequency domains. A shift in
one domain corresponds to a multiplication in the other domain. This is
one of the duality properties of Fourier transforms.
4) Time Scale: Time scale in discrete time functions requires a special care,
since the domain should remain integer valued after the scaling. When we
scale time by a factor of m, we need to define a new function,
(
x[n/m], for n is integer multiple of m
y[n] = (9.102)
0 otherwise.
In other words, when m > 1, we stretch the signal x[n] by inserting zero
values into the discrete time function y[n] for the non integer values of
n/m. When m < 1, we squish the signal by skipping some of the values
419
of the function x[n].
Taking the discrete time Fourier transform of y[n], we obtain,
(P
∞ −jwn ,
n=−∞ x[n/m]e
for n is integer multiple of m
Y (ejω ) =
0, otherwise.
(9.103)
′
Changing the dummy variable of summation to n = n/m, we obtain,
(P
∞ ′ ]e−jwmn′ ,
jω n=−∞ x[n for n is integer multiple of m
Y (e ) =
0, otherwise.
(9.104)
Therefore,
(
jω X(ejmω ), for n is integer multiple of m
Y (e ) = (9.105)
0, otherwise.
Note: When we stretch the function, x[n] in time domain, for m > 1,
the frequency of the Fourier transform is increased by mn. On the other
hand, when we squish the time domain signal, for m < 1, the frequency
of the Fourier transform is decreased by mn.
5) Time Reversal: A special case of time shift property is the time reverse
property, where m = −1. Replacing the value of m in Equation:12.25, we
obtain,
420
where the Fourier transform can be represented in Cartesian coordinate
system, as follows;
1
Ev {x[n]} ↔ [Re {X(ejω )} + j Im {X(ejω )} + Re {X(ejω )} − j Im {X(ejω )}].
2
(9.112)
Hence,
Ev {x[n]} ↔ Re {X(ejω )} (9.113)
Similarly, the odd part of a function x[n] is defined as,
1
Odd {x[n]} = [x[n] − x[−n]]. (9.114)
2
Taking the Fourier transform of both sides of the above equation, we
obtain,
1
Odd {x[n]} ↔ [Re {X(ejω )} + j Im {X(ejω )} − Re {X(ejω )} + j Im {X(ejω )}].
2
(9.115)
Hence,
Odd {x[n]} ↔ Im {X(ejω )}. (9.116)
Since the Fourier transform of an even function is real, there is no imag-
inary part. Thus, the phase is 0 for all the frequencies. Mathematically,
the magnitude of an even function is,
|X(ejω | = Re {X(ejω )}
and the phase of an even function is,
∠X(ejω ) = 0.
On the other hand, the Fourier transform of an odd function is a purely
421
imaginary function. Thus, the phase spectra is a constant value at π/2.
The magnitude is the imaginary part itself. Mathematically, the magni-
tude of an even function is,
|X(ejω | = Im {X(ejω )}
and the phase of an even function is,
∠X(ejω ) = π/2.
7) Convolution Property: Convolution of two functions in the time do-
main corresponds to multiplication of their Fourier transform in the fre-
quency domain.
∞ ∞
′
X X
−jωk
jω
Y (e ) = F [x[n]∗h[n]] = x[k]e h[n′ ]e−jωn = X(jω)H(jω).
k=−∞ n′ =−∞
(9.119)
Convolution property is a direct consequence of the fact that the Fourier
transform decomposes a signal into a linear combination of complex ex-
ponential functions, {ejωn }∞
n=−∞ each of which is an eigen function of a
linear, time-invariant system,
422
modulation. The only difference is to deal with periodic convolution.
Modulation property states that multiplication of two signals in the time
domain corresponds to circular convolution of their Fourier transform
in the frequency domain, which is evaluated for one full period. Formally
speaking,
1 1
Z
jω
y[n] = x[n]h[n] ←→ Y (e ) = X(ejω )⊗H(ejω ) = X(ejθ )H(ej(w−θ) )dθ.
2π 2π 2π
(9.120)
Since the Fourier transform of a discrete time function is periodic with
2π, in the frequency domain, we apply circular convolution operation over
2π, which is indicated by the ⊗ symbol. Circular convolution brings, also,
1
a scaling factor of 2π .
In order to show the multiplication property, we take the Fourier trans-
form of the multiplication of two functions, y[n] = x[n]h[n] using the
analysis equation,
∞
X
Y (ejω ) = F [y[n]] = F [x[n]h[n]] = x[n]h[n]e−jωn , (9.121)
n=−∞
∞ Z ∞
1 X ′ ′
Y (ejω ) = F [x[n]h[n]] = X(ejω )h[n]e−jn(ω−ω ) dω ′ .
2π n=−∞ −∞
(9.124)
Note that the summation in the right hand side of the above equation is
the shifted Fourier transform of the function h(t),
∞
′ ′
X
H(ej(ω−ω ) ) = h[n]e−jn(ω−ω ) . (9.125)
n=−∞
423
12.48, we obtain,
∞
1 1
Z
Y (jω) = F [x(t)h(t)] = X(jω ′ )H(j(ω−ω ′ ))dt =
X(jω)∗H(jω).
2π
−∞ 2π
(9.126)
Modern communication systems rely on discrete-time modulation tech-
niques, rather than their continuous counterparts. Modulation property
is extensively used to increase or decrease the frequency bandwidth of
signals.
9) Parseval’s Equality: In all of the above properties and examples, we ob-
serve that the representation of signals and systems in time and frequency
domains, have substantially different analytical forms and structures. One
striking difference is that a discrete time aperiodic function is represented
by a continuous periodic function in the frequency domain. For exam-
ple, a discrete time complex exponential signal has a Fourier transform
consisting of continuous time impulse train function.
An important invariant between the two domains is the energy of a signal.
Formally speaking, the energy of the signals in both domains does not
change:
∞
1
X Z
2
|x[n]| = |X(ejω )|2 dω. (9.127)
n=−∞
2π 2π
The above relation, called Parseval Equality, shows that the energy of a
signal in time and frequency domains are preserved.
As we did in the continuous time functions, we can show Parseval’s equal-
ity by inserting the analysis equation into the left hand side of Equation:
12.51;
∞
X ∞
X
|x(t)|2 dt = x(t)x∗ (t)dt = (9.128)
n=−∞ −∞
∞ Z
1
Z
′ ′
X
jω −jωn
X(e )e dω X ∗ (ejω )e−jω n dω ′ =
(2π)2 n=−∞ 2π 2π
∞ Z Z
1 X ′
2
X(ejω )X ∗ (ejω )e−jn(ω−ω ) dωdω ′
(2π) n=−∞ 2π 2π
424
Inserting the right hand side of the above equality into Equation 12. 52,
we obtain,
Z ∞
1
Z
2
|x(t)| dt = |X(jω)|2 dω. (9.130)
T 2π −∞
Parseval’s equality reveals that representation of signals in Hilbert space
conserves the energy of time domain. Note that there is a factor of 1/2π
which scales the energy of time domain.
Exercise 9.15: Find the energy of the following discrete time impulse
response;
sin ωc n
h[n] = . (9.131)
πn
Solution:
From the definition of the energy,
∞ ∞
X
2
X sin ωc n 2
E= |h[n]| = | | . (9.132)
n=−∞ n=−∞
πn
Note that this is the energy of an ideal low pass filter. Thus, the energy
of the ideal low pass filter is proportional to its cutoff frequency.
10) Duality: A close look at the properties of discrete time Fourier transform
reveals that although the analytical forms of the time and frequency do-
main functions are mostly different, there are elegant dualities between
the time and frequency domain representations of physical phenomenon.
Duality properties between the time and frequency domain representa-
tions of discrete time signals and systems are very similar to that of the
continuous time counterpart. In the following, we study three striking
dualities of discrete time Fourier transform:
425
• Duality Between Time and Frequency Shifts: A shift in time do-
main corresponds to multiplication in the frequency domain. Similarly,
multiplication in the time domain corresponds to a shift in frequency
domain.
Time shift: x[n − n0 ] ←→ Multiplication: e−jωn0 X(ejω )
Multiplication: ejω0 n x[n] ←→ Frequency shift: X(ej(ω−ω0 )
In summary, whenever we need a shift in one of the domains, the corre-
sponding function in the other domain is just multiplied by a complex
exponential function.
• Duality Between the Convolution and Multiplication Oper-
ations: As in the continuous case, convolution in the time domain
corresponds to multiplication in the frequency domain and vice versa.
However, the convolution operation is replaced by the circular convo-
lution for the discrete time Fourier transform:
426
9.14.
Equating the right hand sides of the above Fourier series and Fourier
transform equations, we get a relationship between the Fourier series
coefficients, {cn } of the discrete time Fourier transform, X(ejω ) and its
inverse time domain signal, x[n],
cn = x[−n] . (9.139)
Therefore, the Fourier series coefficients of a discrete time Fourier trans-
form is the time domain signal itself, with reversed time direction.
427
9.5. Discrete Time Linear Time Invari-
ant Systems in Frequency Domain
Recall that a discrete time LTI system can be represented by the following
constant coefficient difference equation in time domain,
N
X M
X
ak y[n − k] = bk x[n − k]. (9.140)
k=0 k=0
Also, recall that if the eigen function of x[n] = ejω0 n is fed as an input to
an LTI, then, the corresponding output is,
428
frequency response H(ejω ). In other words, the eigenvalues are the values of
the frequency response at ω = kω0 , ∀k.
Frequency response of a discrete time LTI system is represented by the
following polar coordinate form;
jω )
H(ejω ) = |H(ejω )|ej∡H(e , (9.145)
where the real-valued functions |H(ejω )| and ∡H(ejω ) are called the magnitude
and phase spectrum respectively. Analysis of Fourier transform of a function
requires the analysis of magnitude and phase spectrum.
Generally speaking, the magnitude and phase spectrum of the frequency re-
sponse H(ejw ) indicate the frequency content of the impulse response function,
h[n].
Let us now take the discrete time Fourier transform of both sides of the
nth order difference equation given above, we obtain the following equation,
which represents a discrete time LTI system in the frequency domain;
N
X M
X
−jωk
ak e jω
Y (e ) = bk e−jωk X(ejω ). (9.146)
k=0 k=0
429
The right hand side of the above equation is equal to the ratio between the
Fourier transforms of the input and output:
PM −jωk
jω Y (ejω ) k=0 bk e
H(e ) = = N
. (9.150)
X(ejω ) −jωk
P
k=0 ak e
Exercise 9.16: Consider a discrete time LTI system given by the following
block diagram:
h1 (t)
x[n] + y[n]
h2 (t)
Figure 9.15: A discrete time linear time invariant system with two parallel
impulse responses, h1 [n] and h2 [n], joined by an adder.
n
1
Given that h1 [n] = u[n], and the Frequency response of the overall
3
5e−jω − 12
system is H(ejω ) = ,
e −2jω − 7e−jω + 12
a) Find H2 (ejw ) and h2 [n].
b) Find the difference equation, which represents this system.
Solution:
a) The overall impulse response of this system is h[n] = h1 [n] + h2 [n].
Taking the Fourier transform of both sides of the above equation we obtain,
430
5e−jω − 12
H(ejω ) = = H1 (ejω ) + H2 (ejω ). (9.152)
e−2jω − 7e−jω + 12
Fourier transform of h1 [n] is,
∞ n ∞ n
jω
X 1 −jωn
X 1 −jω
H1 (e ) = e = e
3 3
n=0 n=0 (9.153)
jω 1 3
H1 (e ) = 1 −jω = 3 − e−jω .
1 − 3e
Insert H1 (ejω ) into the overall frequency response equation to find the
Fourier transform of h2 [n]
as,
5e−jω − 12 3
H2 (ejω ) = H(ejω ) − H1 (ejω ) = −
e−2jω
− 7e−jω + 12 3 − e−jω
2e−2jω + 24e−jω − 72
= −3jω
e − 4e−2jω − 9e−jω + 36 (9.154)
1
H2 (ejω ) = −2 1 −jω .
1− 4e
5e−jw − 12 Y (ejw )
H(ejw ) = = , (9.156)
e−2jw − 7e−jw + 12 X(ejw )
which yields,
431
9.6. Representation of Discrete Time LTI
Sytems
Until now we used the word “representation” frequently to formally describe
a physical phenomenon.
Q: What does representation mean?
Representation is a general concept in mathematics. In system theory, rep-
resentation means expressing or describing a system by some mathematical
objects, such as, equations, relations, functions, graphs, trees, matri-
ces, vectors, groups, sets, manifolds etc. Representation of a system is
not unique and depends on the design goal(s) of systems.
So far, we have seen a variety of representations for LTI systems, as sum-
marized below:
A Discrete time LTI system can be represented by:
1. Impulse Response, h[n]
2. Unit Step Response, s[n]
3. Frequency Response, H(ejω )
4. Difference Equation
5. Block Diagram
The above representations are all related and one-to-one, except the block
diagram representation. Since the realization of an LTI system in a physical
environment requires a set of hardware components together with some driving
softwares, it is possible to implement it in a variety of design forms. In the
following, we summarize the relationships among the representations of an
LTI system.
Exercise 9.17: Given the following impulse response of a discrete time LTI
system,
h[n] = K0 δ[n] + K1 δ[n − 1] (9.159)
a) Find the frequency response.
b) Find the difference equation, which represents this system.
c) Find the unit step response.
432
Solution:
a) Frequency response is just the Fourier transform of the impulse response,
b) Recall that
Y (ejω )
H(ejω ) = . (9.161)
X(ejω )
Hence,
Y (ejω ) = X(ejω )[K0 + K1 e−jω ]. (9.162)
Taking the inverse Fourier transform of both sides of the above equation,
we obtain,
y[n] = K0 x[n] + K1 x[n − 1] (9.163)
Hence,
Exercise 9.18: Consider a discrete time LTI system represented by the fol-
lowing unit step response,
n
X 1
s[n] = ( )k . (9.168)
2
k=0
433
Solution:
n n−1
X 1 k X 1 k 1
h[n] = s[n] − s[n − 1] = ( ) − ( ) = ( )n u[n]. (9.169)
2 2 2
k=0 k=0
b) Frequency response is
1
H(ejω ) = F [h[n]] = 1 −jω (9.170)
1− 2e
c) Recall that,
Y (ejω )
H(ejω ) = . (9.171)
X(ejω )
Hence,
1
Y (ejω )[1 − e−jω ] = X(ejω ). (9.172)
2
Taking the inverse Fourier transform of both sides of the above equation,
we find the following difference equation;
1
y[n] − y[n − 1] = x[n]. (9.173)
2
H(ejω ) = F {h[n]}
y[n] = h[n] ∗ x[n] ↔ Y (ejω ) = X(ejω )H(ejω )
(9.174)
jωY (ejω )
H(e ) =
X(ejω )
Solution:
a) Frequency response of this system can be written as,
434
∞
X
H(ejω ) = e−jωn0 = δ[n − n0 ]e−jωn . (9.176)
n=−∞
The above equation is the Fourier transform of the shifted impulse function,
δ[n − n0 ]. Thus, the impulse response is
ak e−jωk Y (ejω )
P
jω (9.183)
H(e ) = P =
bk e−jωk X(ejω )
Note: The coefficients ak and bk of the difference equation determine the
structure of the filter represented by the frequency response, H(ejw ).
435
Exercise 9.20: Consider the following second order difference equation, which
represents an time LTI system;
Solution:
a) Taking he Fourier transform of both sides, we get the frequency response
as follows;
Y (ejω ) 1
H(ejω ) = = . (9.185)
X(ejω ) 1 − (2b cos β)e−jω + b2 e−2jω
b) In order to find the impulse response, we need to take the inverse Fourier
transform of the frequency response.
Inserting the Euler formula,
ejβ + e−jβ
cos β = .
2
into Equation:12.115 and arranging it, we can factorize the denominator as
follows:
1 1
H(ejω ) = = .
1 − b(ejβ + e−jβ )e−jω + b2 e−2jω (1 − be−j(ω−β )(1 − be−j(ω+β) )
(9.186)
Inserting the values for b = 0.5 and β = π/4 and using partial fraction
expansion, we obtain;
A B
H(ejω ) = + , (9.187)
1 − (0.5e jπ/4 )e −jω 1 − (0.5e−jπ/4 )e−jω
√ √
where A = −j 2ejπ/4 , and B = j 2e−jπ/4 .
Taking the inverse Fourier transform of Equation 12.117, we obtain the
impulse response as follows;
1
h[n] = [A(0.5ejπ/4 )n + B(0.5e−jπ/4 )n ]u[n]. (9.188)
2
or equivalently,
1
h[n] = √ [(ejπ/4 )(0.5ejπ/4 )n − (e−jπ/4 )(0.5e−jπ/4 )n ]u[n]. (9.189)
j 2
436
The above impulse response consists of complex exponential terms. However,
reorganizing the above equation and using the Euler formula, we obtain,
(0.5)n π j(n+1) π √ π
h[n] = √ [e 4 − e 4 j(n+1) ]u[n] = 2(0.5)n sin (n + 1)u[n]. (9.190)
j 2 4
Note that, in the above exercise, the coefficients A and B are complex. How-
ever, all the complex derivations yield a real discrete time impulse response.
Solution:
a) Frequency response can be obtained directly by taking the Fourier trans-
form of both sides of the difference equation and arranging it, as follows:
(9.191)
The magnitude and the phase spectra of the frequency response is as fol-
lows:
437
b0 a0 = 1
x[n] + y[n]
D D
b1 −a1
x[n − 1] + y[n − 1]
D D
b2 −a2
x[n − 2] + y[n − 2]
D D
x[n − M ] + y[n − M ]
Figure 9.16: A block diagram representation of discrete time LTI systems, with
unit delay operators, D, and adders.
438
1 asinω
|H(ejω )| = , ∡H(ejω ) = tan−1 (9.192)
1 − 2acosω + a2 1 − acosω
Note that the frequency response is a continuous and periodic function,
with period, ω = 2π.
|H(ejω )| ∠H(ejω )
1
1−2α+α2
ω
−π π
ω
−π π
Figure 9.17: Magnitude and phase spectrum of the frequency response of a first
order difference equation.
1
ω=0 : H(ejω ) = , ∡tan−1 0
1 − 2a + a2
π 1
ω= : H(ejω ) = , ∡tan−1 a (9.193)
2 1 + a2
1
ω = ±π : H(ejω ) = , ∡tan−1 0
1 + 2a + a2
b) Since there is a one to one correspondence between the impulse response
and frequency response, h[n] ←→ H(ejω ), the impulse response of this system
can be obtained by taking the inverse Fourier transform of the frequency re-
sponse, using Table 9.2, h[n] = an u[n].
c) Unit Step Response of this system is
∞
X ∞
X
s[n] = h[n] ∗ u[n] = an−k = an a−k
k=0 k=0 (9.194)
an an+1
s[n] = u[n] = u[n].
1 − a−1 a−1
d) A block Diagram Representation of this system is given in Figure 9.20.
439
h[n]
Figure 9.18: Impulse response of a first order difference equation for 0 < a < 1.
s[n]
−1
440
x[n] + y[n]
a
D
441
∞
X
F {x(t)} = X(ejω ) = x[n]e−jωn . (9.195)
n=−∞
1
I
x[n] = X(z)z n−1 dz, (9.199)
2πj
C
442
for which the function X(z) exists in the region C.
Approximate proof: Recall that the relationship between the z- trans-
form and discrete time Fourier transform is given by
1
Z
x[n]r−n = X(rejω )e−jωn dω. (9.202)
2π 2π
Leaving x[n] alone in the left hand side of the equation, we obtain,
1
Z
x[n] = X(rejω )rn e−jωn dω. (9.203)
2π 2π
Now, let us change the dummy variable of integral by defining z = rejω
and assuming that r is fixed, we obtain,
dz = rjejω dω.
1
I
x[n] = X(z)z −1 z n dz, (9.204)
2πj
C
1
I
x[n] = X(z)z n−1 dz. (9.205)
2πj
C
Note that finding the inverse z-transform, using the above equation re-
quires sophisticated methods for contour integration [see: Complex Analysis:
A Modern First Course in Function Theory Jerry R. Muir Jr., Wiley, ISBN:
978-1-118-70522-3 April 2015]. In the context of this book, we suffice to use
look up tables and the properties of z-transforms for finding the inverse of
z-transform.
z-transform has several advantages over the discrete time Fourier trans-
form. It is very handy to solve the difference equations. It is applicable to the
functions, where the discrete time Fourier transform do not exists. It is a very
powerful tool to analyze the stability of linear or nonlinear discrete time sys-
443
tems. It has a wide range of applications in developing the digital systems, and
storing, transmitting and processing digital signals.
where C is the counter-clock-wise closed path which lie in the region of con-
vergence, specific to the one sided signal x[n].
444
Im{z}
Re{z}
z-transform exits. The region, where the existence of the z-transform is assured
is called the Region of Convergence (ROC).
Definition: Region of Convergence (ROC): The Region of Conver-
gence (ROC) is defined as the set of points in the complex plane, where the
z-transform X(z) of the function x[n] exits for some values of r = |z|.
Region of convergences of the z-transform are in the form of ring centered
about the origin, in the complex plane. The radius and width of the ring
depends on the type of the time domain function, x[n].
There are four major forms of the ring for the ROC of z-transform:
1) If the function x[n] has finite duration, in other words,
(
̸= 0 for n0 < n < n1 ,
x[n] (9.208)
= 0 otherwise.
for some finite values of n0 < n1 , then, ROC covers the entire z-plane,
except z = 0. Since it also covers the circle with radius r = 1, the discrete
time Fourier transform of the function also exists.
2) If the function x[n] is right-sided, in other words, there exists a finite n0 ,
such that
x[n] = 0 for n ≤ n0 ,
then, there exits an r = r0 , such that ROC is outside of the circle, r > r0 .
3) If the function x[n] is left sided, in other words, if there exists a finite n0 ,
such that
x[n] = 0 for n ≥ n0 ,
then, the ROC is inside of the circle, 0 < r < r1 .
445
Im{z}
r1
Re{z}
Im{z}
r1
Re{z}
446
Im{z}
r1
r0
Re{z}
4) If the function x[n] is two sided, in other words, there exists two finite
values, n0 and n1 , such that
(
̸= 0 for n < n0 and n > n1 ,
x[n] (9.209)
= 0 otherwise.
then, the ROC is in the shape of the ring about the origin, r0 < r < r1 .
In order to observe the capabilities of z-transform over the discrete time
Fourier transform, let us solve the following exercises and investigate the exis-
tences of both discrete time Fourier transform and z-transforms.
Exercise 9.22: Consider the following discrete time right sided signal:
Solution:
a) Discrete time Fourier transform of the signal, x[n] is defined as,
447
∞
X ∞
X
X(ejω ) = x[n]e−jωn = an e−jωn (9.211)
n=−∞ n=0
b) The above summation diverges for a ≥ 1. Thus, it only exists for a < 1 with
the following equation;
1
X(ejω ) = , for |a| < 1. (9.212)
1 − ae−jω
Hence, the discrete time Fourier transform does not exit for |a| ≥ 1.
c) The z- transform of the signal x[n] is,
∞ ∞
X
−n
X 1
X(z) = x[n]z = an z −n = (9.213)
n=−∞
1 − az −1
n=0
x[n] = 2n u[n],
the base a = 2. Then, the discrete time Fourier transform does not exists.
However, z-transform exits for r > 2.
Exercise 9.23: Consider a slightly different version of the discrete time signal
of the previous example, which is a left sided function;
448
Im{z}
a
Re{z}
Solution:
a) Discrete time Fourier transform of the signal, x[n] is defined as,
∞
X 0
X ∞
X
−jωn n −jωn
jω
X(e ) = x[n]e = a e = a−n ejωn (9.216)
n=−∞ n=−∞ n=0
b) The above summation diverges for a ≤ 1. Thus, it only exists for a > 1 with
the following equation;
1
X(ejω ) = , for |a| > 1. (9.217)
1 − a−1 ejω
Hence, the discrete time Fourier transform does not exit for |a| ≤ 1.
c) The z- transform of the signal x[n] is,
∞ 0
X X a
X(z) = x[n]z −n = an z −n = (9.218)
n=−∞ n=−∞
a−z
This is only possible if |a−1 z| > 1, which implies that |z| < |a|. Hence the
z-transform exits for the ROC is r < |a|.
d) Comparison of the convergence properties of discrete time Fourier and
z-transform reveals that discrete time Fourier transform exists, for only a > 1.
449
Im{z}
a
Re{z}
On the other hand, z- transform exits for the ROC is r < |a|. Thus, the ROC
depends on the value of a.
Exercise 9.24: Find the z-transform and its ROC for the following right
sided function:
Solution:
From the definition of z-transform;
∞ ∞
X X 1
X(z) = x[n]z −n = z −n = . (9.221)
n=−∞
1 − z −1
n=0
Exercise 9.25: Find the z-transform and its ROC for the following limited
time duration function:
Solution:
From the definition of z- transform;
450
∞ 0 −1
nX
X 1 − (az −1 )n0
X(z) = x[n]z −n = an z −n = . (9.223)
n=−∞
1 − az −1
n=0
Since the time duration, n ∈ [0, n0 ] is bounded, the the summation of the
z-transform is finite for all values of n0 < ∞. Thus, ROC is the entire complex
plane. This is the case, when an absolutely summable function x[n] has finite
duration.
Exercise 9.26: Find the z-transform and ROC of the following two sided
function:
Solution:
From the definition of z-transform;
∞ ∞ 0
X X X 1 1
X(z) = x[n]z −n = a−n z −n + an z −n =
−1 −1
+
n=−∞ n=−∞
1−a z 1 − az −1
n=0
(9.225)
In order to find the ROC of the above z-transform, we need to find the ROC
of the first and the second term in the left hand side of the above equation:
For the first term,
1
ROC is |z| > 1/a.
1 − a−1 z −1
For the second term,
1
ROC is |z| < a.
1 − az −1
Hence, the ROC is a ring in
451
Im{z}
a
1/
Re{z}
Figure 9.27: ROC for the z-transform of x[n] = a−n u[n] + an u[−n].
1
I
x[n] = X(z)z n−1 dz, (9.226)
2πj
C
which may not be easy for a large class of functions. In order to avoid con-
tour integration, we frequently use the look-up tables and properties of the
z-transform. Since they are quite similar to that of the discrete time Fourier
transformation, we suffice to provide the list of properties and look up tables
for common transform pairs, x[n] ↔ X(z) together with ROCs, in Tables 9.3
and 9.4. The following examples demonstrate how we utilize the Tables to
compute the inverse z-transform.
452
Table 9.3: Properties of Z-transform. (Continued)
x[n − n0 ] z −n0 X(z) Rx , except possible ad-
dition or deletion of the
origin or ∞
ejω0 n x[n] X e−jω0 z
Rx
z0n x[n] X(z/z0 ) |z0 |Rx
X z −1 Inverted R (i.e., R−1 =
x[−n]
the set of points z −1 ,
where z is in R)
x∗ [n] X ∗ (z ∗ ) Rx
x∗ [−n] X ∗ (1/z ∗ ) 1/Rx
x[n] ∗ y[n] X(z)Y (z) Contains Rx ∩ Ry
x[n] − x[n − 1] (1 − z −1 )X(z) At least the intersection
of R and |z| > 0
n
X 1
x[k] X(z) At least the intersection
1 − z −1
k=−∞ of R and |z| > 1
d
nx[n] −z X(z) Rx , except possible ad-
dz
dition or deletion of the
origin or ∞
1
Re{x[n]} [X(z) + X ∗ (z ∗ )] Contains Rx
2
1
Im{x[n]} [X(z) − X ∗ (z ∗ )] Contains Rx
2j
453
Table 9.4: Z-transform pairs for popular functions. (Continued)
1
an u[n] |z| > a
1 − az −1
1
−an u[−n − 1] |z| < a
1 − az −1
az −1
nan u[n] |z| > a
(1 − az −1 )2
az −1
−nan u[−n − 1] |z| < a
(1 − az −1 )2
1 − [cos ω0 ]z −1
[cos ω0 n]u[n] |z| > 1
1 − [2 cos ω0 ]z −1 + z −2
1 − [sin ω0 ]z −1
[sin ω0 n]u[n] |z| > 1
1 − [2 cos ω0 ]z −1 + z −2
1 − [r cos ω0 ]z −1
[rn cos ω0 n]u[n] |z| > r
1 − [2r cos ω0 ]z −1 + r2 z −2
1 − [r sin ω0 ]z −1
[rn sin ω0 n]u[n] |z| > r
1 − [2r cos ω0 ]z −1 + r2 z −2
(
an , 0 ≤ n ≤ N − 1 1 − aN z −N
|z| > 0
0, otherwise 1 − az −1
Exercise 9.27: Find the inverse z-transform of the following function in the
z-domain;
0.2z
X(z) = , (9.227)
(z − 0.5)(z − 0.3)
for three different region of convergences given below:
a) ROC for |z| > 0.5.
b) ROC for |z| < 0.3.
c) ROC for 0.3 < |z| < 0.5.
Solution:
Firstly, let us apply partial fraction expansion to simplify the z-transform
function;
0.2z z z
X(z) = = − (9.228)
(z − 0.5)(z − 0.3) z − 0.5 z − 0.3
1 1
X(z) = X1 (z) − X2 (z) = −1
− .
1 − 0.5z 1 − 0.3z −1
Inverse of the z-transform of the above function depends on the ROCs
defined in parts a, b and c.
454
Im{z}
0.5
0.3 Re{z}
a) In order to obtain the inverse z-transform of the given function X(z) for
ROC |z| > 0.5, we need to get the ROC of X1 (z) as |z| > 0.5 and the ROC of
X2 (z) as |z| > 0.3, so that the intersection of both ROCs becomes |z| > 0.5.
Hence, we obtain the inverse z-transform of the first term as,
1
X1 (z) = ←→ x1 [n] = 0.5n u[n] ROC for |z| > 0.5. (9.229)
1 − 0.5z −1
Similarly, the inverse z- transformation of the second term is,
1
X2 (z) = ←→ x2 [n] = 0.3n u[n] ROC for |z| > 0.3. (9.230)
1 − 0.3z −1
Using the linearity property of z-transform, we obtain the inverse z-transform
of X(z) as follows:
where the ROC is the intersection of |z| > 0.5. and|z| > 0.3, which is |z| > 0.5.
Note: This is a right sided function.
b) In order to obtain the inverse z-transform of the given function X(z) for
ROC |z| < 0.3, we need to get the the ROC of X1 (z) as |z| < 0.5 and the ROC
of X2 (z) as |z| < 0.3, so that the intersection of both ROCs becomes |z| < 0.3.
Hence, the inverse z-transform of the first term is,
455
Im{z}
0.5
0.3 Re{z}
1
X1 (z) = ←→ x1 [n] = 0.5n u[−n−1] ROC for |z| > 0.5. (9.232)
1 − 0.5z −1
The inverse z- transformation of the second term is,
1
X2 (z) = ←→ x2 [n] = 0.3n u[−n−1] ROC for |z| > 0.3. (9.233)
1 − 0.3z −1
Finally, the inverse z-transform of X(z) as follows:
where the ROC is the intersection of |z| < 0.5. and|z| < 0.3, which is |z| < 0.3.
Note: This is a left sided function.
c) In order to obtain the inverse z-transform of X(z) for ROC 0.3 < |z| <
0.5, we need to get the the ROC of X1 (z) as |z| < 0.5 and the ROC of X2 (z)
as |z| > 0.3, so that we obtain a ring shaped region.
Hence, the inverse z-transform of the first term is,
1
X1 (z) = ←→ x1 [n] = 0.5n u[−n−1] ROC for |z| > 0.5, (9.235)
1 − 0.5z −1
the inverse z- transformation of the second term is,
456
Im{z}
0.5
0.3 Re{z}
1
X2 (z) = ←→ x2 [n] = 0.3n u[n] ROC for |z| > 0.3. (9.236)
1 − 0.3z −1
Finally, the inverse z-transform of X(z) as follows:
where the ROC is the intersection of |z| < 0.5. and|z| < 0.3, which is |z| < 0.3.
Note: This is a two sided function.
Exercise 9.28: Find the inverse z-transform of the following z-domain func-
tion;
z+2
X(z) = , ROC for all z ̸= 0. (9.238)
z
Solution:
Let us arrange the function as follows:
1
X(z) = 1 += 1 + z −1 . (9.239)
z
From the z-transform table, we can see that the inverse z- transform of the
first term is,
457
and the inverse z-transform of the second term is,
Using the linearity property, we obtain the inverese Laplace transform of X(s),
as follows;
The above exercises show that a practical method for finding the inverse
z-transform is to make algebraic manipulations on the z-domain function and
put it into the linear combination of the known pairs of transform table. Then,
use the linearity property to obtain the inverse transform.
where
∞
X
H(λ) = h[k]e−λk (9.244)
k=−∞
458
In the above formulation, if we set , λ = jω, then, the eigen function at
the input becomes x[n] = ejωn and the eigenvalue of the LTI system becomes
the discrete time Fourier transform of the impulse response, which is called
frequency response;
X∞
jω
H(e ) = h[n]e−jωn . (9.246)
n=−∞
Now let us extend the above discrete time Fourier transform to the z-
transform of the impulse response, by defining z = rejω . In this case, the eigen
function at the input becomes x[n] = reȷωn and the eigenvalue becomes the
z-transform of the impulse response.
Definition: Transfer Function of Discrete time Systems The z-
transform of the impulse response is called transfer function,
∞
X
H(z) = h[n]z −n . (9.247)
n=−∞
When the frequency response of a discrete time LTI system does not con-
verge, we cannot represent the LTI system with an eigenvalue, in the frequency
domain. However, z-transform enables us to find the eigenvalue of the system,
which converges in some regions of the complex z-plane.
Let us now establish the relationship between the transfer function and the
difference equation of an LTI system,
N
X M
X
ak y[n − k] = bk x[n − k]. (9.248)
k=0 k=0
Let us find the transfer function of an LTI system by using the above
algebraic equation: Recall, the z- transform of the impulse function is,
459
The above equation provides us the transfer function of an LTI system,
represented by an ordinary constant coefficient difference equation in time
domain and an algebraic equation in z-domain. Arranging this equation, we
obtain the transfer function, as follows:
PM −k
Y (z) k=0 bk z
H(z) = = PN , (9.252)
X(z) k=0 ak z
−k
460
Solution:
a) The transfer function is the z-transform of the impulse response. Using
the look up table and linearity property, we obtain
1 z −1
H(z) = + . (9.256)
1 − 0.5z −1 1 − 0.5z −1
b) Transfer function consists of two subsystems, which are paralleled to each
other;
H(z) = H1 (z) + H2 (z) (9.257)
where,
Y (z) 1 z −1
H(z) = = + . (9.260)
X(z) 1 − 0.5z −1 1 − 0.5z −1
Exercise 9.30: Consider an LTI system at initial rest, given by the following
difference equation;
Solution:
a) Let us set the input to impulse function, x[n] = δ[n], then, the correspond-
461
ing output of the difference equation becomes the impulse response, h[n].
The above difference equation for impulse response is,
Using the above transform pairs, we take the z-transform of both sides of
the difference equation,
[z −2 − 4z −1 + 4]H(z) = 2z −1 .
2z −1 0.5z −1
H(z) = = .
(z −1 + 2)2 (1 − 0.5z −1 )2
Note that taking the z-transform of the above difference equation does
not provide the ROC for the transfer function. In fact, there are two
alternatives for the ROC of this transfer function; The first alternative is
|z| < 0.5 and the second alternative is |z| > 0.5.
b) From the z-transform table, we observe that depending on the selection
of ROC, there are two impulse responses, which correspond to the same
difference equation: For ROC, |z| < 0.5,
The above example demonstrates that we can obtain the transfer function
and impulse response of an LTI system, which is initially at rest, without solv-
ing the differential equation. This methods is also available in Fourier domain,
provided that the frequency response exits. In case of undefined frequency
responses, Laplace domain enables us to compute the transfer function and
impulse response, using a simple algebraic method.
As it is observed throughout of this chapter, the transform domains capture
462
different view of the physical phenomena other then time domain representa-
tions. Furthermore, the beautiful synergy created by the representations of
time and transform domains bridges the mathematics of linear algebra and
recursive equations.
463
in continuous frequency domain. We also studied several duality properties
between the time and frequency domain.
We observe that difference equations become algebraic equations in the
frequency domain. Thus, solving them in the frequency domain is rather easier
compared to solving them in time domain. We also, show that there is one-to
one correspondences between the representation of LTI systems by impulse
response, frequency response and difference equations.
464
Problems
1. Find and plot the discrete time Fourier transforms of the following signals
in polar coordinate system:
1 n+1
a) x1 [n] = 2 u[n + 1]
1 |n+1|
b) x2 [n] = 2
2. Find and plot the discrete time Fourier transforms of the following signals
in Cartesian coordinate system:
a) x1 [n] = (0.5)−n u[−n + 2]
b) x2 [n] = x[n − 5], and x[n] = u[n] − u[n − 3]
|n|
c) x3 [n] = 25 u(5n − 2)
3. Find and plot the even parts and odd parts of the discrete time Fourier
transforms of the following signals:
a) x1 [n] = δ[n−2]
2 + δ[n+2]
2
b) x2 [n] = δ[n+1]
2 − δ[n−1]
2
c) x3 [n] = cos ω0 n + cos 2ω0 n
4. Find and plot the discrete time Fourier transforms of the following signals
and comment about the frequency content of these signals:
a) x1 [n] = sin π2 n
b) x2 [n] = cos π4 n + π
2
c) x3 [n] = 2 sin π6 n + π cos π3 n + π4
(
jω −j 0<ω≤π
X(e ) =
j −π < ω ≤ 0
∞
X π π
X(ejω ) = πδ(ω + 2πk) − 4πδ ω + + 2πk − 4πδ ω − + 2πk
3 3
k=−∞
465
b) Find and plot the inverse Fourier transform x[n].
c) Find and plot the even and odd parts of x[n].
7. Consider the following discrete time Fourier transform of a signal x[n]:
(
jω e−0.5jω 0 ≤ |ω| < π3
X(e ) = π
0 3 ≤ |ω| < π
a) Find and plot the magnitude and the phase of this function.
b) Find and plot the real and imaginary part of this function.
c) Find and plot the inverse Fourier transform x[n].
8. Consider an LTI system represented by the following impulse response
and frequency response pair:
h[n] ←→ H(ejω ),
where the frequency response H(ejω ) ̸= 0 in 0 ≤ ω ≤ π and it is zero
otherwise.
a) Given that H(ej(ω/3) ) = π, find the frequency response H(ejω ).
b) Find the impulse response of this system.
n
c) When the input to this system is x[n] = π1 u[n], find the output
y[n].
9. Consider an LTI system represented by the following impulse response
and frequency response pair:
h[n] ←→ H(ejω ),
with the following input-output pair;
n
2
x[n] = u[n],
3
n+1
2
y[n] = n u[n].
3
a) Find and plot the frequency response H(ejω ).
b) Find the difference equation relating the input x[n] and output y[n].
10. Consider a discrete-time LTI system with impulse response h[n] = ( 13 )n u[n].
Find the output signal y[n] for all the following inputs to this system:
a) x[n] = ( 41 )n u[n]
n
b) x[n] = (n − 2)( 52 u[n]
b) x[n] = cos(πn)
466
11. Consider an initially at rest discrete-time LTI system with impulse re-
sponse,
h[n] = (0.5)(n+2) u[n].
a) Find the frequency response of this system.
b) Find the difference equation, which represents this system.
c) Find the discrete time Fourier transform of the output, when the
input is,
π
x[n] = sin( n).
2
12. Consider an initially at rest discrete-time LTI system with impulse re-
sponse, n
1 πn
h[n] = cos u[n].
3 2
a) Find the frequency response.
b) Find the Fourier transform of the output signal y[n], when the input
signal is x[n] = cos πn
2 .
c) Find the output y[n].
13. Consider a causal LTI system whose input and output are related by the
difference equation
Find the outputs y1 [n] and y2 [n] for each of the following inputs defined
in one period:
1−0.2ejω
a) X1 (ejω ) = 1+ 1 −jω
e
2
1
b) X2 (e−jω ) = (1+0.3e−jω )(1−0.2e−jω )
14. Find the inverse discrete time Fourier transform of the signals given in
one period, asPfollows:
a) X(ejω ) = 15 k=1 e
jωk cos(kω)
b) X(ejω ) = j sin( π2 ω)
467
15. Find and plot the inverse discrete time Fourier transform of the following
signals:
a) X1 (ejω ) = ejω sin(2ω + π) , for −π < ω ≤ π
b) X2 (ejω ) = j tan( π3 ω) , for −π < ω ≤ π
16. Find the inverse x[n] of the following discrete time Fourier transform:
17. Find the discrete time Fourier transform of the following signal:
sin( π3 n) sin( π6 n)
x[n] = ∗
2πn 2πn
18. An LTI system is defined by its impulse response which is h[n] = h′ [n] +
2 n
5 u[n]. The frequency response of this system is given as follows:
60 − 20e−jω
H(ejω ) = .
2 − 9e−jω + 10e−2jω
a) Find and plot h[n].
b) Find and plor h′ [n].
c) Find and plot H ′ (ejω ).
19. Let x[n] be a discrete-time signal defined as follows:
sin(ω0 n)
x[n] = −
πn
a) Find the total energy of x[n].
b) If the discrete time Fourier transform of x[n] is X(ejω ) = 2/3, for
−π < ω ≤ π, find the value of ω0 .
20. Does the following discrete time function satisfy the Dirichlet conditions? Ver-
ify your answer.
3
X (0.5)k
X(z) = π .
k=0
4 − e− 2 k z −1
468
a) Find x[n].
b) Find the z-transform of g[n] = an x[n].
22. Consider a discrete time initially at rest LTI system, represented by the fol-
lowing difference equation:
ω
−π −π/2 π/2 π
−1
25. Consider a discrete-time LTI system with the following Fourier transforms of
the input signal x[n] and the impulse response h[n] respectively:
(a) Find and plot the discrete time Fourier transform Y (ejω ) of the out-
put.
(b) Find and plot the output y[n], in the time domain.
469
26. Consider a system consisting of parallel connection of two subsystems with the
following impulse responses:
j
h1 [n] = ( )n u[n + 5]
2
j
h2 [n] = −( )n u[n − 5]
2
a) Find and plot the frequency response of h1 [n].
b) Find and plot the frequency response of h2 [n].
c) Find and plot the frequency response of the overall system h[n] =
h1 [n] + h2 [n].
27. Consider an initially at rest LTI systems represented by the following difference
equation:
29. Find and plot the z-transform of the following signal, and specify the corre-
470
sponding region of convergence of the following signal:
n
1
x[n] = u[n − 4]
3
471
30. Let x[n] to be defined as follows:
n
−1
x[n] = u[n] + αu[−n − 2]
4
Given that the region of convergence of X(z) is 1 < |z| < 2, find the possible
values of the magnitude of the complex value α.
31. Find the z-transforms of the following signals and their Region of Conver-
gences:
a)
n
2 π
x[n] = sin n u[−n]
5 3
b)
n
2 π
x[n] = sin n u[n]
5 3
y[n] = (n + 2)x[n]
a) Find the output y[n], when the discrete time Fourier transform of the
signal x[n] is,
2
X(ejω ) = , for − π ≤ ω ≤ π.
2 − e−jω
472
b) Find and plot the discrete time Fourier transform Y (ejω ).
c) Find the z-transform of the output Y (z)
473
35. Programming - Frequency Domain Encoding
• Introduction
We are not using text messages anymore. They are very boring. Now,
almost all mainstream messaging apps support voice messages. There-
fore, as of this moment, you and I will communicate with voice mes-
sages, but I have a problem. I am paranoid about privacy. I do not trust
any Big Tech company, so I encoded my voice message with a special
encoding that only you and I know. Your task is to decode and write
my message. Don’t worry. I will give you the decoding recipe.
N −1
1 X k
Inverse Discrete F ourier T ransf orm : x[n] = X[k]ej2π N n , n = [0, .., N −1]
N
k=0
474
The complexity of naive DFT algorithm is O(n2 ). Therefore, a lot effort
was spent to improve the efficiency of DFT algorithm family. The result
is elegant divide and conquer Fast Fourier Transfrom(FFT) Algorithm,
which is chosen as one of the most important 10 algorithms in the
20th century by Science. Although the algorithm was invented by Carl
Friedrich Gauss in 1805 when he needed it to interpolate the orbit of
asteroids Pallas and Juno from sample observations, it is reinvented
and popularized during 60s. The complexity of the algorithm is O(N
logN). After that point, lots of FFT variants was proposed.
You will implement the best-known FFT algorithm. The main idea is
to divide DFT algorithm into odd and even parts. It first computes
the DFTs of the even-indexed inputs (x2m = x0 , x2 , . . . , xN −2 ) and of
the odd-indexed inputs (x2m+1 = x1 , x3 , . . . , xN −1 ), and then combines
those two results to produce the DFT of the whole sequence. This idea
can then be performed recursively to reduce the overall runtime to O(N
log N).
N/2−1 N/2−1
X −j2π X −j2π
(2n)k (2n+1)k
X[k] = x[2n]e N + x[2n + 1]e N
n=0 n=0
where O[k] and E[k] are the discrete Fourier Transforms of elements
with odd and even indices, respectively. Moreover, since we know that
the discrete Fourier Transform of a signal is periodic, we do not have to
calculate two periods in the summations, we can calculate only the first
period and then concatenate the result with itself. The only concern
−j2π
is that we are multiplying E[k] with e N . However, it has a nice
property that:
−j2π −j2π
e N (k−1+N/2) = e N (k−1)
Therefore, we can write this equation as:
−j2π
(
O[k] + E[k]e N (k−1) , if k ≤ N/2
X[k] = −j2π
(k−1−N/2)
O[k − N/2] − E[k − N/2]e N , if k > N/2
You can implement ifft() function by using fft() function. Think about
that.
475
• Hints
(a) You can check your fft() function by comparing numpy.fft.fft(). If
the individual differences is below 10−7 for our input, your function
works correctly.
(b) For simplicity, you can assume that the length of the input file is
2n , where n ∈ N
(c) Complexity of Fast Fourier Transform algorithm is O(N logN).
Please be careful about the complexity.
(d) To read the sound data, you can use scipy.io. It also returns the
sample rate of the audio file. It is very useful to determine the
frequency bins.
(e) Please be careful about the frequency bins of your implementation
even if they are not required to complete the problem. They may
be out of order.
• Regulations
(a) You should add the plot of frequency domain magnitude of encoded
and decoded signal and the time domain plots to your solutions to
see the difference between two signals. That means, your solution
must contain 4 different plots.
(b) You should write the secret message to your solution. You can find
the encoded message in encoded.wav
(c) You should use Python3 during the problem.
(d) You are not allowed to use any library other than numpy, mat-
plotlib.pyplot and scipy.io
(e) You are not allowed to use numpy.fft in the problem, you should
implement your own fft() and ifft() function.
476
Chapter 10
Linear Time Invariant
Systems as Filters
respectively.
We studied the basic properties of LTI systems, such as memory, causality,
stability convertibility. We studied how an LTI system relates the input and
output signals. But, where and when do we use LTI systems? What do they
do to the input signals? How do they change the input signal to produce an
output signal?
477
The answers to the above questions are many folded and depend on the
application areas. One very important area, where the LTI systems are widely
used is the filtering. LTI systems act as a filter to change the structure of
the input signals.
Motivating Question: What is a filter?
In general, filters are devices, which separate the unwanted stuff from a
pool of objects to obtain the wanted stuff. The pool may contain anything,
such as water, air, chemicals, soils, etc.
In the context of signals and systems, the “pool” contains signals. LTI
systems are considered as filters to ”clean-up” the input signals.
Recall that Fourier series representation enables us to decompose a periodic
input signal into harmonically related complex exponentials. The amount of
each harmonic frequency is measured by the spectral coefficients of the Fourier
Series, {ak }. We may want to eliminate some of the unwanted harmonics of
complex exponential functions. These components may correspond to a type
of noise in a speech recording or some unwanted objects in an image.
Later, we extended the Fourier series representation to Fourier transforms,
where we could represent a time domain signal by a continuous frequency
spectrum. In order to manipulate and/or reshape the frequency content of an
input signal for generating a desired signal at the output, we can design an LTI
system, which suppresses some of the frequencies or emphasizes some others.
For example, we may want to change the frequency content of a signal to isolate
some musical instruments in an orchestra or accentuate the voice of the singer.
Motivating Question: How can we design an LTI System to filter the in-
put signal, which generates an output signal in a desired form? In other words,
how can we design an LTI system, which outputs a signal with a prescribed
frequency content?
At the core of the answers to the above questions resides the frequency
response or transfer function of the LTI systems.
478
X X
x[n] = ak ejkω0 n → h[n] → y[n] = ak H(ejkω0 )ejkω0 n .
k=<N > k=<N >
Figure 10.1: When the input of a discrete time LTI system is the superposition
of the eigenfunctions, the output is the superposition of the input, scaled by
the k th eigenvalue, which is the frequency response H(ejω ), for ω = kω0 .
bk = ak H(ejkω0 ), (10.3)
as shown in Figure 10.1. In the above equation, the k th eigenvalue is the fre-
quency response of an LTI system at ω = kω0 and can be calculated from the
impulse response as follows;
∞
X
H(e jkω0
)= h[n]e−jω0 nk . (10.4)
n=−∞
bk = ak H(jkω0 ), (10.5)
where the scaling factor is the k th eigenvalue of the continuous time LTI system,
which is defined as the frequency response at ω = kω0 ,
Z ∞
H(jkω0 ) = h(t)e−jkω0 t dt, (10.6)
−∞
as shown in Figure 10.2.
As in the discrete time case, k th eigenvalue of a continuous time LTI system
scales each spectral coefficient, at the output, i.e, H(jkω0 ) multiplies ak to
generate bk .
Therefore, frequency response of an LTI system reshapes the frequency
content of periodic signals by scaling the spectral coefficients of the input signal.
For example, the complex exponential functions ejkω0 for the frequencies kω0
may correspond to the noise embedded in a discrete time input signal. In this
case, we design an LTI system, where the frequency response H(ejkω0 ) = 0 for
the corresponding k-values. At the output of the filter, we obtain the spectral
479
∞
X ∞
X
x(t) = ak ejkω0 t → h(t) → y(t) = ak ejkω0 t H(jkω0 )
k=−∞ k=−∞
Figure 10.2: When the input of a continuous time LTI system is the super-
position of the eigen functions , ejkω0 t , the output is the superposition of the
same eigen functions. However, each weight, ak at the input is scaled by the
k th eigenvalue of the LTI system, at the output, where the scaling factor is the
frequency response at ω = kω0 .
coefficients,
bk = H(ejkω0 )ak = 0,
which corresponds to the noise, vanishes, yielding a ”clean” signal. This process
of reshaping the spectral coefficients of the input signals is called filtering.
x(t) = ejωt
and eigenfunction of a discrete time LTI system as,
x[n] = ejωn ,
where kω0 → ω. In this case, the output of the LTI system for the contin-
uous time LTI system becomes,
480
Similarly, the output of a discrete time LTI system becomes,
In the above approach, rather than defining the eigenvalue of an LTI sys-
tem for each integer multiple of the fundamental frequency, kω0 , we define a
function with the continuous frequency variable ω. This generalization, allows
us to represent the eigenvalues of LTI systems by the frequency response, in
the frequency domain. Hence, in the limit,
Y (jω) = H(jω)X(jω)
and the relationship between the input and output signal for the discrete time
LTI system is given by
Hence, the frequency content of an aperiodic input signal can be easily scaled
by the frequency response to increase or decrease the amount of predefined
481
frequency range in the signal and change the frequency content of the signal
to generate a desired signal at the output. All we need to do is to design
an appropriate frequency response, H(jω) for a continuous time system and
H(ejω ) for a discrete time system, which attenuates the undesired frequency
ranges and amplifies the desired ones to shape up the frequency content of the
input signal.
We can further represent the eigenvalues of an LTI system by the trans-
fer function H(s) in Laplace domain for continuous time systems and by the
transfer functions H(z) in z-domain for discrete time systems. However, in the
rest of the chapter, we use frequency response to represent the eigenvalues of
the LTI systems, assuming that the Fourier transform of the impulse response
exists.
482
Selecting the cutoff frequencies and the bandwidths of a frequency response
is an important design issue and it depends on the application domains. For
example, if we need to chop an additive noise corresponding to the high fre-
quency components of the input signal, we first identify the bandwidth of the
noise. Then, we set the cutoff frequency to the the lowest limit of the band-
width. The frequency response of the LTI system with this cutoff frequency
removes the noise in the input signal by eliminating the spectral coefficients
corresponding to the noise at the output.
The cutoff frequencies of the frequency response of the continuous time sys-
tems can be selected as high as the dynamic range of the equipment. However,
since the frequency response of discrete time systems is periodic with = 2π,
the cutoff frequency of the discrete time systems should lie within the limits
of the fundamental period, |ωc | ≤ π.
483
2. Real Filters, which are designed with a smooth frequency response
to avoid discontinuities. These filters gradually attenuate the undesired fre-
quencies and reach the cutoff frequencies smoothly. Real filters avoids most of
the problems of ideal filters, such as Gibbs problem, which creates undesired
fluctuations at discontinuities.
Depending on the frequency content, LTI filters can be classified under four
headings:
1. Low pass filters, which suppress the high frequency ranges of the input
signal and pass relatively lower frequencies. In other words, a low pass filter
has a frequency response, which has high magnitudes in low frequencies and
low magnitudes in high frequencies, to suppress or eliminate the high frequency
ranges of the input signal, at the output.
2. High pass filters, which is rather the complement of the low pass filters.
They suppress the low frequency ranges and pass relatively higher frequency
ranges of the input signal, at the output.
3. Band pass filters, which passes the frequency ranges of the input signal
corresponding to the desired interval of frequencies.
4. Band stop filters, which suppress the frequency ranges of the input
signal in a desired interval of frequencies.
The filters defined above can be designed for both discrete time systems or
continuous time systems.
The sections below overview the ideal and real filters for low pass, high pass,
band pass and band reject filters. We illustrate how an LTI system behaves as
a filter and shapes the frequency content of an input signal for both continuous
time and discrete time cases.
484
Mathematically, an ideal filter outputs the following spectral coefficients
for periodic inputs, for continuous time systems,
(
ak for H(jkω0 ) = 1
bk = (10.13)
0 for H(jkω0 ) = 0.
Similarly, an ideal low pass filter outputs the following spectral coefficients for
periodic inputs, for the discrete time systems,
(
ak for H(ejkω0 ) = 1
bk = (10.14)
0 for H(ejkω0 ) = 0.
When the input signal is aperiodic, an ideal filter yields the following out-
put, for continuous time systems,
(
X(jω) for H(jkω) = 1
Y (jω) = (10.15)
0 for H(jkω) = 0.
Similarly, when the input signal is aperiodic, an ideal filter yields the following
output for the discrete time systems,
(
X(ejω ) for H(ejkω ) = 1
Y (ejω ) = (10.16)
0 for H(ejkω ) = 0.
In the following subsections, we overview the ideal filters for discrete time
and continuous time systems.
485
H(jω)
ω
−ωc ωc
H(jω)
··· ···
ω
−π −ωc ωc π
486
H(jω)
ω
−ωc ωc
H(jω)
··· ···
ω
−π −ωc ωc π
(
1 for |ω| ≥ ωc
H(jω) = (10.19)
0 otherwise.
and for discrete time system is,
(
jω 1 for |ω| ≥ ωc
H(e ) = (10.20)
0 otherwise.
for one period, in −π ≤ ω ≤ π and repeats at every period of 2π. Note that,
H(ejω ) = H(ej(ω+2kπ) ) for all k.
487
H(jω)
ω
−ωc2 −ωc1 ω c1 ω c2
488
H(jω)
··· ···
ω
−π −ωc ωc π
H(jω)
ω
−ωc2 −ωc1 ω c1 ω c2
Exercise 10.1: Consider a discrete time ideal low pass filter, given by the
489
H(jω)
··· ···
ω
−π −ωc2 −ωc1 ω c1 ω c2 π
(
1 for |ω| < ωc
Hlp (ejω ) = (ωc is the cutoff frequency) (10.25)
0 otherwise
Solution:
This filter is depicted in Figure 10.13.
In order to find the impulse response, we can easily take the inverse Fourier
transform of the frequency response:
Z ωc
1 1 sinωc n
h[n] = ejωn dω = (ejωc n − e−jωc n ) = (10.26)
2π −ωc 2πjn πn
Note: Ideal Low Pass filters are NOT causal: h[n] ̸= 0 for n < 0.
b) Recall the convolution property,
490
H(jω) H(jω)
ω ω
−ωc ωc −ωc ωc
(a) (b)
H(jω) H(jω)
ω ω
−ω2 −ω1 ω1 ω2 −ω2 −ω1 ω1 ω2
(c) (d)
Figure 10.11: Ideal filters, with lowpass (a), high pass (b), band pass (c) and
band reject (d) frequency responses.
Exercise 10.2: Find the impulse response of the discrete time high pass
filter, represented by the following frequency response;
(
1, for |ω| ≥ ωc
Hhp (ejω ) = (10.29)
0, otherwise.
Solution:
The frequency response of the above high pass filter can be represented as
491
X(ejω )
−ωm ωm
Figure 10.12: One full period of the Fourier transform of an input, for a discrete
time band-limited signal, with cutoff frequency, wc . Keep in mind that this
Fourier transform is periodic and repreats itself at every 2π.
We already obtained the impulse response of the low pass filter in the
previous example. Thus, taking the inverse Fourier transform of the above
frequency response, gives,
sin ωc n
h[n] = δ[n] − . (10.31)
πn
Note: Ideal high bass filters are also non causal. In fact, all the ideal filters
are non causal. Therefore, they are not realizable in the real life applications.
However, they are very useful to design real filters as they form a quality
metric, when the designed filter is compared to its ideal counterpart.
492
H(ejω )
0
−2π −ωc ωc 2π
Figure 10.13: Frequency response of an ideal low pass filter. Note that since it
is a discrete time LTI system, the frequency response is periodic with w = 2π.
(
1, |ω| < ωm
X(jω) = (10.33)
0, |ω| > ωm
where ωc < ωm .
d) Compare the input and output of this filter in time and frequency do-
mains.
493
h[n]
Figure 10.14: Impulse response of a discrete time ideal low pass filter.
d) The only difference between the input and output signals in the frequency
domain is the bandwidth. While the bandwidth of the input signal is 2ωm ,
the bandwidth of the output signal is the same as the bandwidth of the filter,
which is 2ωc < 2ωm .
In the time domain, the bandwidth of the input signal is decreased at the
output. Hence, the sinc function of the input becomes flatter around the origin
at the output signal.
Exercise 10.4:
494
Y (ejω )
−ωc ωc 2π
Figure 10.15: The frequency domain representation of the output signal, when
an input signal is filtered by a low-pass filter, with cutoff frequency, w0 .
b) Find the output y(t) of this filter when the input is X(jω) = 1.
c) Compare the input and output pair of this filter in the time and frequency
domains.
Solution
a) Band pass filter can be represented by a shifted low pass filter,
ωc1 + ωc2
Hbp = Hlp (j(ω − )).
2
From the Fourier transform properties, we know that
495
x(jω)
ω
−W W
(a)
x(t)
W/π
−π/W π/W
(b)
Figure 10.16: a) Frequency response H(jω) of a continuous time low pass filter
with the cutoff frequency |ωc |, (b) the corresponding impulse response, h(t).
496
BWbp = ωc2 − ωc1 .
The cutoff frequency of the corresponding low pass filter is,
ωc2 − ωc1
ωc = .
2
Therefore, the impulse response of the band pass filter is ,
j sin π( ωc1 −ω
ωc1 +ωc2
2
c2 )
hbp = e . 2 .
πt
b) From the Fourier transform table,
(
1 for ωc1 ≤ |ω| ≤ ωc2 ,
Y (jω) = X(jω).Hbp (jω) = Hbp (jω) = (10.38)
0 otherwise,
497
10.4. Discrete Time Real Filters
Discrete time real filters approximate the ideal filters by smoothing the discon-
tinuities of the frequency response. The smoothing effect in frequency domain
truncates the infinite impulse response (IIR) to make a finite impulse response
(FIR) functions.
Let us study few discrete time real filters and their frequency and impulse
responses.
Solution:
a) Impulse response, h[n] can be easily obtained by replacing the input
with the impulse function, as follows:
1
h[n] = (δ[n] + δ[n − 1]) (10.41)
2
b) Frequency response H(ejω ) can be obtained from its definition,
498
∞
X 1 1 ω ω ω ω ω
jω
H(e ) = h[k]e−jωk = (1 + e−jω ) = e−j 2 (ej 2 + e−j 2 ) = e−j 2 cos .
2 2 2
k=−∞
(10.42)
Equivalently, we could obtain the frequency response from the difference
equation by replacing the input with the eigenfunction, x[n] = ejωn and the
corresponding output, y[n] = H(ejω )ejωn .
Then, the above difference equation becomes,
1
y[n] = H(ejω )ejωn = (ejωn + ejω[n−1] ). (10.43)
2
Finally, arranging the above equation, we obtain the frequency response of
this LTI system, as follows;
ω ω
H(ejω ) = e−j 2 cos
. (10.44)
2
The impulse response and frequency response of this LTI System is one-to-
one and onto, e.g.,
1 ω ω
h[n] = (δ[n] + δ[n − 1]) ↔ H(ejω ) = e−j 2 cos . (10.45)
2 2
Note: Since the impulse response of this filter has finite time duration
between 0 ≤ n ≤ 1, this is a FIR (Finite Impulse Response) filter.
c) The spectral coefficients, bk of the output signal, y(t), is obtained from,
ak
bk = ak H(ejkω0 ) = (1 + e−jkπ ), (10.46)
2
where {ak } are the spectral coefficients and ω0 = π is the angular frequency
of the input signal, x(t), corresponding to the fundamental period, T = 2.
d) Now, let us investigate the effect of H(ejω ) on changing the spectral
coefficients of the input, {ak } to generate the spectral coefficients of the output,
{bk }.
In order to observe how this filter shapes the input signal, we can plot the
magnitude and phase of the frequency response, given below:
Magnitude of the frequency response: |H(ejω )| = cos ω2 .
Phase of the frequency response: ∠H(ejω ) = −ω 2 .
The plot of the magnitude and phase spectrum of this filter is given in
Figure 10.17.
Recall that frequency response scales the spectral parameters of the input
to generate the spectral parameters of the output by
bk = ak H(ejkω0 ). (10.47)
499
|H(ejω )|
ω
−π 0 π
(a)
^H(ejω )
π/2
ω
−π 0 π
−π/2
(b)
Figure 10.17: Magnitude and phase spectrum of a low pass filter, represented
ω
by the frequency response, H(ejω ) = e−j 2 cos ω2 . Note that both magnitude
and phase plots are periodic, with periods of the angular frequency, ω = 2π.
The plots show only one full period of the magnitude and phase.
500
The type of the filter is, basically, specified by the magnitude of the fre-
quency response. When the magnitude of the frequency response is high, at
a particular harmonic, kω0 , the corresponding spectral parameter gets rela-
tively larger, increasing the contribution of that harmonic frequency to the
signal. Conversely, when the magnitude of the frequency response gets low,
the corresponding harmonics get attenuated.
Phase of the frequency response delays the harmonics, depending on its
value at a certain frequency. Large phase shifts result in more delays in the
corresponding harmonics.
An analysis of the magnitude plot reveals that the filter of this example
attenuates the high frequency components of the input signal, as the frequency
approaches to |π|. Therefore, this is a low pass filter. Unlike an ideal low pass
filter with a discontinuity a cutoff frequency, ωc , this filter gradually suppresses
the high frequency components, as ω → π. For example; if the input is a voice
recording, the filter decreases the treble voices, making the sound more bass.
The phase plot of the frequency response shows simply the phase angle we
get between the output and input, as a function of frequency, ω. In Figure
10.17, we observe that the phase shift between the input and output signals
increases as the frequency increases.
e) The output of this LTI system, can be easily obtained by the convolution
of the input and impulse response, as follows;
1
h[n] = (δ[n] + δ[n − 1]), (10.49)
2
respectively.
The input signal consists of superposition of two signals,
501
sin(0.05πn) cos(πn)
n n
(a) (b)
(c)
Figure 10.18: The input signal is defined as the addition of two signals, a) x1 [n]
and b) x2 [n]. c) Addition of x1 [n] and x2 [n] yields x[ n] = sin 0.005πn + cos πn.
The signal, x1 [n] has a relatively low fundamental frequency, which is ω0 =
0.05π, compared to the signal x2 [n] which has the fundamental frequency of
ω0 = π.
1
y[n] = ( (δ[n] + δ[n − 1])) ∗ (sin 0.005πn + cos πn)
2 (10.51)
1
= (sin 0.005πn + sin 0.005π(n − 1)).
2
Comparison of Figure 10.18 and 10.19 shows that the ripples of the input
are nicely smoothed by the low pass filter, which takes the average of the
consecutive signals, in time domain.
Loosely speaking, a low pass filter smooths the input signal, depending on
the cutoff frequency, ωc . The lower the cutoff frequency results in smoother
signal, obtained at the output.
502
y[n]
Figure 10.19: The plot of the output signal y[n] = h[h]∗x[n] when the input and
impulse responses are x[n] = sin 0.005πn+cos πn, and h[n] = 12 (δ[n]+δ[n−1]),
respectively.
503
|H(ejω )| ∠H(ejω )
π
2 2
ω
−π π
ω
−π π
Figure 10.20: One full period of the magnitude and phase plots of the frequency
response, H(ejw ) = 1−ae1−jw , for the difference equation, y[n]−ay[n−1] = x[n],
in the interval, −π ≤ ω ≤ π.
n
X 1 − an+1
s[n] = u[n] ∗ h[n] = ak = u[n], (10.57)
1−a
k=0
respectively.
Note: The impulse response of this filter has an infinite time duration in
0 ≤ n ≤ ∞. Hence, it is an IIR filter. However, considering the exponential
decay of the function, it approaches very close to zero for large values of n.
Furthermore, it does not have any discontinuities in one full period. Therefore,
it can be realized with practically good approximation.
Solution:
a) Impulse response is,
504
1
h[n] = (δ[n] − δ[n − 1]). (10.59)
2
This a FIR filter, with only two nonzero values at n = 0 and n = 1.
b) Frequency response is,
1 1 −jω
H(ejω ) =− e = j sin(ω/2)e−jω/2 . (10.60)
2 2
Magnitude and phase spectrum of the above frequency response is as fol-
lows:
1. The magnitude spectrum: |H(ejω )| = | sin(ω/2)|
2. Phase spectrum: ∠H(ejω ) = tan−1 (cot(ω/2))
|H(jω)|
∠H(jω)
1 π
2
w
−π π
w − π2
−π π
Figure 10.21: Magnitude and phase plot of the frequency response, H(ejω ) =
j sin(ω/2)e−jω/2 .
The analysis of Figure 10.21 reveals that this filter suppresses low frequency
component and gradually passes the high frequency components of the spectral
coefficients of the input signal. Therefore, it is a high pass filter.
505
The following LTI system is called first order autoregressive model:
Solution:
a) Impulse response of this model can be obtained by setting y[n] = h[n]
and x[n] = δ[n], and leaving h[n] in the left hand side of the equation alone,
c) Let us replace,
506
quency at ω = ωc . In this case the numerator becomes
1 − ej(ωc−ωc) = 1 − 1 = 0. (10.68)
1 − e−j(ω−ωc )
H(ejω ) = ≈ 1. (10.69)
1 − 0.99e−j(ω−ωc )
This filter is called notched filter. It eliminates a very narrow band around
the frequency, ω = ωc . Notch filters are special types of band-stop filters,
which attenuates a signal in a predefined frequency interval around, ωc to very
low levels and pass the rest unaltered.
A notch filter is basically a band-stop filter with a narrow stopband.
When we take a look at its frequency response, we can see a very narrow ”V”
shape. Hence the name ”Notch”.
Suppose, we have a noisy audio recording. Suppose also that the actual
signal lies in the interval of f = 60 − 160 Hz and the noise occurs just around
90 Hz. Low pass or high pass filters do not offer a solution to remove the noise.
That is where the notch filters come in handy. If we set, ωc = 2π × 90, the
above notch filter eliminates the noise at 90 Hz.
(f2 − f1 )
t
f1 f2
507
0
−5
−10
−15
−20
−25
−30
−35
100 101 102 103
d dx(t)
x(t) → → y(t) = (10.70)
dt dt
a) Find the frequency response of this filter.
b) Find the spectral coefficients of the output signal in terms of the spectral
coefficients of the input signal.
c) Comment on the effect of the filter on the output signal. What type of
a filter is this?
508
which directly gives us the frequency response of the system as the scaling
factor of the complex exponential as follows;
|H(jω)|
∠H(jω)
π
2
− π2
Figure 10.24: Magnitude and phase plots of the frequency response, H(jω) =
jω. of the first derivative filter.
The analysis of the magnitude plot of the frequency response of the first deriva-
tive filter, in Figure 10.24 reveals that this filter linearly attenuates the low
frequency components of the signal. For example; if the input signal is a voice
recording, the filter will trim the low frequency components yielding a more
treble voice at the output.
The phase plot shows that there is a constant phase shift of |π|, at all frequen-
cies, which results in a constant delay between the input and output signals.
509
that it is initially at rest.
dy(t)
a + y(t) = x(t). (10.73)
dt
This filter attenuates the high frequency components of an input signal
at the output of the system. The degree of attenuation is determined by the
constant coefficient, a, of the differential equation.
Let us answer the following questions to investigate the behavior of the
above first order constant coefficient differential equation.
a) Find the block diagram representation of this filter.
b) Find the frequency response of this filter.
c) Find the real and imaginary part of the frequency response, can you
comment on the type of the filter by analyzing real and imaginary part of the
frequency response?
d) Find and plot the magnitude and phase of the frequency response and
comment on the type of filter.
e) Find the impulse response and unit step response of this filter.
a R
x(t) + y(t)
−1
b) Let’s first find the frequency response, as a scaling factor, H(jω) of the
eigen function x(t) = ejωt , of this system, as follows;
dy(t)
= (jω)H(jω)ejωt (10.75)
dt
and insert it in the differential equation,
510
to find the frequency response,
1 1 − ajω
H(jω) = = . (10.77)
1 + ajω 1 + a2 ω 2
c) Real and imaginary part of this complex frequency response can be obtained,
as follows;
1
Re{H(jω)} = (10.78)
1 + a2 ω 2
and
−ajω
Im{H(jω)} = . (10.79)
1 + a2 ω 2
By analysing the real and imaginary part it is not easy to observe the type of
the filter.
d) Using the definitions, we compute the magnitude, given below,
1
|H(jω)| = (Re{H(jω)}2 + Im{H(jω)}2 ) 2 (10.80)
and phase,
Im{H(jω)}
∠H(jω) = tan−1 , (10.81)
Re{H(jω)}
we compute the magnitude of the frequency response as follows;
s
1 (aω)2 1 + a2 ω 2
|H(jω)| = + = . (10.82)
(1 + a2 ω 2 )2 (1 + a2 ω 2 )2 (1 + a2 ω 2 )2
Simplifying the above equation, we obtain the magnitude and the phase of the
frequency response, as follows,
1
|H(jω)| = √ (10.83)
1 + a2 ω 2
and
511
|H(jω)|
−1 1 ω
α
0 α
∠H(jω)
π/4
1/α
−1/α ω
−π/4
Figure 10.26: Magnitude and the phase plot of the frequency response of the
first order differential equation.
dh(t)
a + h(t) = δ(t) (10.85)
dt
Homogeneous solution:
Z 0+ Z 0+ Z
a dh(t) + h(t)dt = δ(t)dt = 1 (10.87)
0− 0−
1/a
t
Figure 10.27: The impulse response and unit step response of a low pass filter
represented by a first order differential equation.
Note: This is an IIR filter with an exponential decay and it has no discon-
tinuities. Thus, it can be realized with satisfactory approximations for large
t.
The unit step response can be easily obtained by taking the integral of the
impulse response, as follows;
Z t
1 t −τ
Z
s(t) = h(τ )dτ = e a dτ
−∞ a 0 (10.91)
t
= (1 − e− a )u(t).
dy(t) dx(t)
+ ay(t) = . (10.92)
dt dt
a) Find the block diagram representation of this filter.
b) Find and plot the frequency response of this filter and comment on the
type of the filter.
c) Find the impulse response and unit step response of this filter.
513
d
ẏ R y(t)
x(t) dt
+
tion, as follows;
|H(jw)|
∠H(jw)
π/2
1
w
w
−π/2
Figure 10.29: Magnitude and the phase plots of the frequency response,
jω
H(jω) = a+jω .
As it is observed from the magnitude and phase plots of the frequency re-
514
sponse, this filter attenuates the low frequency components of the input signal.
The degree of attenuation is determined by the constant coefficient, a, of the
differential equation.
515
Problems
1. A discrete time filter, which averages K consecutive input signals, is given
as follows:
K−1
1 X
y[n] = x[n − k].
K
k=0
a) Find and plot the magnitude and phase of the frequency response of
this filter.
b) What type of filter is this?
c) Find the output, when the input is x[n] = sin(0.2n) for K= 2 and
K=3.
d) What happens to the output y[n], as we increase K?
(
1 |ω| < ωc
H(jω) =
0 |ω| ≥ ωc
a) Find and plot the impulse response of this filter, for |ωc | = 50π radi-
ans/second. Indicate the cutoff frequency on the plot.
b) Find impulse response as |ωc | → ∞. What type of a filter is this?
c) Given that the input signal x(t) is periodic with coefficients ak and
fundamental period of the input is T = 1 seconds, what are the
spectral coefficients of the output in terms of ak , for ωc = 50π radi-
ans/second?
d) Suppose that y(t) = x(t) , find the Fourier series coefficients of the
input x(t) for ωc = 20π radians/second?
3. A continuous-time ideal high-pass filter is represented by the following
frequency response
(
1 |ω| ≥ ωc
H(jω) =
0 |ω| < ωc
a) Find and plot the impulse response of this filter, for |ωc | = 50π radi-
ans/second. Indicate the cutoff frequency on the plot.
b) What happens to the impulse response of the high-pass filter, as we
516
increase the cutoff frequency to |ωc | = 100π radians/ second?
c) Given that the input signal x(t) is periodic with coefficients ak and
fundamental period of the input is T = 0.1, what are the spectral
coefficients of the output in terms of ak , for ωc = 60π radians/second?
d) Suppose that y(t) = x(t) , find the Fourier series coefficients of the
input x(t) for ωc = 40π radians/second?
4. A continuous time ideal band pass filter is represented by the following
frequency response:
(
1 for ωc1 ≤ |ω| ≤ ωc2 ,
Hbp (jω) = (10.96)
0 otherwise.
a) Find and plot the impulse response of this filter, for |ωc1 | = 50π
radians/second and |ωc2 | = 100π radians/second . Indicate the cutoff
frequencies on the plot.
b) What happens to the analytical form of the impulse response of the
filter, as we increase the cutoff frequency to |ωc1 | = 150π radians/sec-
ond and |ωc2 | = 200π radians/second?
c) Given that the input signal x(t) is periodic with coefficients ak and
fundamental period of the input is T = 0.01, what are the spectral
coefficients of the output in terms of ak , for ωc = 50π radians/second?
200 + 2ω 2
H(jω) =
−ω 2 − 110jω + 1000
8 + 8jω
H(jω) =
(4 + jω)(2 + jω)
517
b) Find and plot the magnitude and phase of the frequency response.
c) What type of a filter is this?
d) Find and plot the output y(t), when the input is X(jω) = e−2jω .
7. A continuous-time LTI system is represented by the following equation:
a) Find the Fourier transform of the output, when the input is x(t) =
sin(ω0 t + ϕ0 ).
b) Find and plot the magnitude and phase of the frequency response of
this system.
c) Comment on the behavior of the system.
d) Find and plot the output y(t), when the input is X(jω) = e−2jπω .
8. A discrete-time LTI system is represented by the following equation:
a) Find and plot the magnitude and phase of the frequency response of
this system.
b) Find the spectral coefficients of of the output y(t),when the input is
x[n] = cos(ω0 n + ϕ0 ).
c) Comment of the behavior of the system.
9. An initially at rest discrete time filter is represented by the following
difference equation:
a) Find and plot the magnitude and phase of the frequency response of
this system.
b) Find the impulse response of this filter.
c) Suggest an ideal high pass filter, which approximates this system.
10. An initially at rest discrete time LTI system is represented by the following
difference equation:
518
y[n] = 3y[n − 1] − 2y[n − 2] + x[n] − 4x[n − 1]
a) Find and plot the magnitude and phase of the frequency response of
this system.
b) What type of a filter is this system?
c) Suggest an ideal filter, which approximates the above filter. Be specific
about the bandwidth and cutoff frequencies.
11. Consider the impulse response of the low pass Gaussian filter, given below:
1 t2
h(t) = √ e− 2σ2 ,
2πσ
where σ is the standard deviation of the filter.
a) Find the transfer function of this filter.
b) Find the equation, which represents this filter.
c) What type of a filter is this? Discuss about the effect of the parameter
σ on the structure of the filter.
d) Find the ideal filter, which approximates the above transfer function.
12. Consider the transfer function of a second-order Butterworth filter, given
below:
1
H(s) = .
(s + ejπ/4 )(s + e−jπ/4 )
d2 y(t) dy(t)
2
+5 + 4y(t) = x(t)
dt dt
a) Find and plot the magnitude and phase of the frequency response of
this system.
b) Find and plot the impulse response.
519
c) What type of a filter is this system?
d) Suggest an ideal filter, which approximates the above system.
d2 y(t) dy(t)
5 +2 + 5y(t) = 3x(t)
dt2 dt
a) Find and plot the magnitude and phase of the frequency response of
this system.
b) Plot a block diagram representation of this filter.
c) What type of a filter is this system?
d) Suggest an ideal filter, which approximates the above filter. Be specific
about the bandwidth and cutoff frequencies.
a) Find and plot the magnitude and phase of the frequency response of
this system.
b) Find the unit step response of this system.
c) What type of a filter is this system?
d) Suggest an ideal filter, which approximates the above filter. Be specific
about the bandwidth and cutoff frequencies.
16. An initially at rest discrete time LTI system is represented by the following
frequency response:
H(ejω ) = 1 + 0.5e−jω
a) Plot the magnitude and phase of the frequency response of this sys-
tem.
520
b) Find and plot the step response of this system.
c) Find the difference equation, which represents this system.
d) What type of a filter is this system?
17. An initially at rest discrete time LTI system is represented by the following
frequency response:
1 + 2e−2jω
H(ejω ) =
1 + 0.5e−jω
a) Plot the magnitude and phase of the frequency response of this sys-
tem.
b) Find and plot the impulse response of this system.
c) What type of a filter is this system?
d) Suggest an ideal filter, which approximates the above filter.Be specific
about the bandwidth and cutoff frequencies.
18. An initially at rest discrete time LTI system is represented by the following
frequency response:
1
H(ejω ) =
(1 − 0.25e−jω )(1 + 0.75e−jω )
a) Plot the magnitude and phase of the frequency response of this sys-
tem.
b) Find and plot the impulse response of this system.
c) What type of a filter is this system?
d) Plot a block diagram representation of this system.
521
522
Chapter 11
Continuous Time Sampling
523
x1 (t)
x2 (t)
x3 (t)
−3T −2T −T 0 T 2T 3T t
Figure 11.1: Given finitely many discrete points, we can define infinitely many
functions, such as, x1 (t), x2 (t), x3 (t), . . . etc., passing from these discrete points.
Intuitively, it looks impossible to define finitely many samples to represent a
continuous time signal, without losing information.
524
x(t) × xp (t) = x(t)p(t): Sampled signal
P
p(t) = δ(t − nT )
11.1. Sampling
A continuous time signal x(t) is sampled by multiplying it with an impulse
train of period T ,
X∞
p(t) = δ(t − nT ),
n=−∞
x(t) → X(jω)
525
x(t) p(t)
1
t t
0 −3T −2T −T 0 T 2T 3T
x(t)
xp (t)
t
−3T −2T −T 0 T 2T 3T
526
X(jω)
x(t)
F
... ... ←−−→
ω
t −ωM ωM
Figure 11.4: A band-limited signal x(t) ranges −∞ < t < ∞, in time domain.
However, since it is band-limited in the frequency domain, X(jω) = 0 outside
the interval −wM < w < wM .
∞
X
xp (t) = x(t)p(t) = x(kT )δ(t − kT ) (11.2)
k=∞
∞
1 1
Z
Xp (jω) = X(jω) ∗ P (jω) = X(jθ)P (j(ω − θ))dθ. (11.3)
2π 2π −∞
Thus, impulse train sampling involves the convolution of the Fourier trans-
form of the signal with that of the impulse train, in the frequency domain.
Recall that impulse train preserves its analytical form in both time and
the frequency domain (see; Exercise 8.9). Hence, the Fourier transform of the
impulse train is also an impulse train, given below;
∞ ∞
X 2π X
p(t) = δ(t − kT ) ←→ P (jω) = δ(ω − kωs ), (11.4)
T
k=−∞ k=−∞
527
∞
1 X
Xp (jω) = X(j(ω − kωs ). (11.5)
T
k=−∞
p(t) P (jω)
F
←−−→
t ω
−T 0 T 2T −ωs 0 ωs 2ωs
Figure 11.5: Impulse train in time domain (left) and its Fourier transform:
p(t) ↔ P (jω) (right). While the fundamental period of p(t) is T and its ampli-
tude is 1, in time domain; the fundamental frequency of P (jω) is ws = 2π/T
and the amplitude is 2π/T , in frequency domain.
xp (t) = x(t)p(t),
528
Figure 11.6: Sampled signal in time and frequency domains.
Solution:
1
a) Sampling period of the impulse train function is T = 3 second, whereas the
sampling frequency is ωs = 2π
T = 6π radian/second.
b) The sampled signal in time domain is,
∞
X
xp (t) = x(t)p(t) = x(kT )δ(t − kT ). (11.6)
k=−∞
Inserting the function x(t) = sin ω0 t for ω0 = π/2 and T = 1/3, we obtain
∞
X π k
xp (t) = x(t)p(t) = sin( k)δ(t − ). (11.7)
6 3
k=−∞
529
x(t) = sin( π2 t) p(t)
1 1
... ...
0 t ... ...
0 2 4
t
−1 0 2 4
xp (t)
1
... ...
0 t
0 2 4
−1
|Xp (jω)|
3π ^Xp (jω)
π
2
... ...
... ... π
2 ω
−6π − π2 6π
ω
−6π − π2 π
6π − π2
2
Figure 11.8: Plot of the magnitude and phase of Xp (jω) in Exercise 11.1.
Recall that Fourier transform pair for the function sin ω0 t is,
Inserting the Fourier transform of x(t) = sin ω0 t in Equation 11.8, for ω0 = π/2
we obtain
∞
X π π
Xp (jω) = 3πj (δ(ω + − 6kπ) − δ(ω − − 6kπ)), (11.10)
2 2
k=−∞
The above exercise shows that the sampled signal in time domain and
frequency domain both consist of impulse trains. The sampled signal in time
domain is weighted by the amplitude of the sine function at every sampling
530
instance k/3. Hence, the envelope of the sampled signal is a sinusoidal function,
x(t) = sin π2 t. In the frequency domain, the impulse train of the sampled signal
is weighted with the same scalar, which is 3πj at every sampling frequency,
kωs = 6kπ for all k ∈ (−∞, ∞) .
xp (t) = x(t)p(t),
Solution:
a) The sampled signal in time domain is,
∞
X ∞
X
xp (t) = x(t)p(t) = x(kT )δ(t − kT ) = (−1)k δ(t − 10−3 k), (11.13)
k=−∞ k=−∞
Thus, the sampling period is T = 10−3 seconds and the sampling frequency is
ωs = 2π 3
T = 2 × 10 π radian/second.
b) Inserting the function x(t) = cos ω0 t and noting that the sampling period
is T = 10−3 seconds, we obtain,
∞
X
xp (t) = x(t)p(t) = cos(10−3 ω0 k)δ(t − 10−3 k). (11.14)
k=−∞
Hence, we need
The smallest value, should satisfy 10−3 ω0 = π. Hence, the angular frequency
of x(t) should be at least w0 = 103 π radian/second.
c) The sampled signal in transform domain is,
531
∞
1 X
Xp (jω) = X(j(ω − kωs )). (11.16)
T
k=−∞
Recall that Fourier transform pair for the function cos ω0 t is,
Inserting the Fourier transform of x(t) in Equation 13.16, for ω0 = 103 π radi-
an/second , we obtain,
∞
X
Xp (jω) = 103 π (δ(ω+103 π−2×103 kπ)+δ(ω−103 π−2×103 kπ). (11.18)
k=−∞
x(t) ←→ X(jω)
11.3. Reconstruction
Reconstruction of the original signal,
x(t) ←→ X(jω)
532
for reconstruction:
(
T for |ω| < ωc
H(jω) = (11.19)
0 otherwise.
where ωc is the cutoff frequency of
Pthe filter and T is the sampling period
of the impulse train function, p(t) = ∞ k=−∞ δ(t − kT ).
H(jω)
−ωc ωc
The above reconstruction filter, H(jω) is just an ideal low pass filter, scaled
by the fundamental period of the impulse train, T , to recover the amplitude
of the continuous time signal X(jω), in the frequency domain.
Note: Selection of the cutoff frequency wc is crucial in designing the recon-
struction filter, H(jω). The cutoff frequency wc should fully cover the band-
width 2ωM of the signal X(jω), for a correct reconstruction.
Once, we design the reconstruction filter H(jω), with the parameters T and
ωc , all we need to do is to multiply the sampled signal with the reconstruction
filter, in the frequency domain, as follows;
533
X(jω)
x(t)
F −1
−−−−−→ ... ...
ω
−ωM ωM t
Figure 11.10: Reconstructed signal Xr (jω) = X(jω) and its inverse Fourier
transform.
Sampling Reconstruction
x(t) × H(jω) xr (t)
P∞
p(t) = k=−∞ δ(t − kT )
...
Figure 11.11: Sampling a continuous time signal x(t) and reconstruction of the
sampled signal xp (t) to obtain the original continuous time signal, x(t).
Find the reconstructed signal, xr (t), for the following angular frequencies
and phases of the signal x(t):
a) ω0 = 500π and θ = π/4.
b) ω0 = 1000π and θ = π/2.
534
x(t) × H(jω) xr (t)
P∞
p(t) = k=−∞ δ(t − kT )
535
The Fourier transform of the reconstructed signal is,
Xr (jω) = 0 (11.29)
Note that selecting the cutoff frequency of the low pass filter is an important
design issue. In order to be able to reconstruct the original signal from the
sampled signal, the cutoff frequency of the low pass filter should be selected to
cover the bandwidth of the original signal.
11.4. Aliasing
In the above analysis and derivations of sampling and reconstruction, we made
a very major assumption: We assumed that the sampling period T = 2π/ws
is small enough, so that the sampling frequency ws becomes large enough
to generate the sampled signal Xp (jω) with non-overlapping original signal,
X(jω), as it repeats itself at every sampling frequency.
Mathematically speaking, we assumed that ωM < 2ωs . This assumption
assures that the sampled signal is made of non-overlapping original signals,
X(jω), scaled by 1/T and is repeated every ws , in the frequency domain.
Therefore, we can design a reconstruction filter with a cut-off frequency, which
can cover the entire bandwidth of the continuous time signal, X(jω) by a
reconstruction filter.
Motivating Question: What if ωs < 2ωM ?
When we enlarge the sampling period T = 2π/ωs , the sampling frequency
ωs gets smaller. If we keep enlarging the sampling period, at a certain point,
the sampling frequency gets so small that ωs < 2ωM . This process is called
undersampling.
In this case, the original signal X(jω) starts to overlap as it repeats at each
sampling frequency and the sampled signal cannot capture all the information
embedded in the original signal, as indicated in Figure 11.13. When ωs <
2ωM , some of the information about the signal is shaded under the overlaps.
Even if we design a low pass filter, which covers the entire bandwidth of the
original signal, the output of the filter does not provide the original signal.
This phenomenon is called as aliasing.
In summary, aliasing is an effect that causes an information loss of the
original signal, x(t), during the sampling process due to undersampling of
the original signal. It causes distortions or artifacts, when a signal is recon-
536
Xp (jω) Xp (jω)H(jω)
ω ω
−ωs−ωM ωM ωs −ωc ωc
Figure 11.13: Aliasing: If ωs < 2ωM , then, T1 X(jω)’s in the sampled signal
Xp (jω) overlap with each other. The analytical form of the signal, in overlapped
frequencies is distorted and it becomes impossible to recover the original signal
from its sampled version by low pass filtering.
structed from its samples using an ideal low pass filter with any bandwidth.
The reconstructed signal, xr (t), is no longer equal to the original continuous
time signal, x(t). In the following examples, we study the effect of aliasing on
the reconstructed signal.
Exercise 11.4: Suppose that we need to sample the following periodic signal:
Solution:
a) The bandwidth of X(jω) is 2ω0 . In order to avoid aliasing, we need to obtain
non-overlapping X(jω)’s in the sampled signal Xp (jω). This requires that ws
should be slightly larger than 2w0 . Therefore, the sampling period should be
Ts < π/w0 .
Note: As the sampling period, Ts gets smaller, in time domain; the sampling
frequency, ws gets larger, in frequency domain. In other words, getting more
537
x(t) X(jω)
π π
t
2π
T = w0
−ω0 ω0
Figure 11.14: Cosine function with period T in time domain and its Fourier
transform of two impulses at |w0 | = 2π/T .
samples in the time domain makes the original signal X(jω) fall far apart from
each other, in the sampled signal Xp (jω) of the frequency domain.
b) When the sampling frequency is ωs = 23 ω0 , the sampling period becomes
4π
Ts = 3w 0
. The sampled signal in time domain has the following form:
∞
X
xp (t) = x(t)p(t) = x(kTs )δ(t − kTs ). (11.31)
k=−∞
Note that, since ωs = 23 w0 < 2ω0 , the original signal has overlaps in the
sampled signal (See: Figure: 11.19) . Hence, there is aliasing. The original
signal cannot be reconstructed from the sampled signal.
Let’s now try to reconstruct the original signal by low pass filtering the sampled
signal in the frequency domain, using the following equation,
Xr (jw) = Xp (jw)H(jw),
538
Figure 11.16: Reconstruction of the signal from its samples, by low pass fil-
tering. In order to recover the original signal x(t), the cutoff frequency of the
filter H(jω) should be slightly greater than w0 .
when ωs = 23 ω0 .
In order to reconstruct the signal from its sampled version, we design an ideal
low pass filter,
(
Ts for |ω| < ωc
H(jω) = (11.33)
0, otherwise,
where the cutoff frequency is selected in |ωs − ω0 | < |ωc | < |ω0 |.
In this case, the reconstructed signal in the frequency domain will be,
The above analysis and example brings one of the most influential theorems
of the modern age: Sampling theorem.
539
x(t)
Xp (jω) H(jω)
T
t
−ωs −ω0 ω0 ωs
540
p(t) x(t)
Ts
0 t
X(jω)
t
−
3ω0 −ω0 ω0 ωs = 3ω0
2 2
(ωs − ω0 )
541
width 2ωM .
2. The sampling frequency ωs should be greater than the Nyquist rate, ωN =
2ωM .
If the above two conditions are satisfied, then it is theoretically possible to
reconstruct the original signal exactly from its sampled version.
542
x0 (t)
(
1 for 0 < t < T
h0 (t) = (11.36)
0 otherwise
Suppose that we feed the impulse train sampled signal,
∞
X
xp (t) = x(t)p(t) = x(kT )δ(t − kT ),
k=−∞
at the input of the zero order hold filter h0 (t). Then, the corresponding output
becomes,
y0 (t) = xp (t) ∗ h0 (t).
Motivation Question: What does y0 (t) look like?
Let’s evaluate the convolution of the input xp (t) and the impulse response
h0 (t):
" ∞ #
X
y0 (t) = x(kT )δ(t − kT ) ∗ h0 (t). (11.37)
k=−∞
543
h0 (t)
The above derivations establish the relationship between the impulse train
sampling, which outputs xp (t) and zero order hold sampling, which outputs
x0 (t), in the time domain. Formally speaking, zero order hold sampled signal
x0 (t) is the output of an LTI system represented by the zero order hold filter
h0 (t), when it is fed by the impulse train sampled signal, xp (t):
Notice that zero order hold filter is the shifted version of the following
impulse response, indicated in Figure 11.21:
(
1 for −T /2 < t < T /2
h(t) = (11.40)
0 otherwise.
Recall that Fourier transform of h(t) is the following Sinc function:
sin(ωT /2)
H(jω) = (11.41)
ω
We can use the time shift property to compute the Fourier transform of
544
h(t)
t
−T /2 T /2
Figure 11.21: The impulse response function h(t) is the shifted version of h0 (t).
In other words, h0 (t) = h(t − T /2)
sin(ωT /2)
h0 (t) = h(t − T /2) ←→ H0 (jω) = e(−jωT /2) . (11.42)
ω
The above equation shows that sampling with zero order hold corresponds
to filtering the impulse train sampled signal Xp (jω) with a Sinc function,
sin(ωT /2) −j ωT
H0 (jω) = e 2 . (11.43)
ω
There is a very elegant duality between the impulse train sampling and
zero-order hold sampling:
Impulse train sampling involves multiplication in the time domain and
convolution in the frequency domain:
545
Figure 11.22: Block diagram representation of sampling with zero order hold.
Figure 11.23: The reconstruction filter hr (t) receives the zero order hold sam-
pled signal x0 (t) = xp (t) ∗ h0 (t) and outputs xr (t) = x(t).
to find a filter Hr (jω) which outputs X(jω) for the input X0 (jω).
Motivating Question: How to define the LTI filter,
hr (t) ↔ Hr (jω),
so that the output of this filter is,
546
H(jω) = H0 (jω)Hr (jω), (11.46)
then,
ωT ωs ωs
|H(jω)| = for − ≤ω≤ (11.49)
2 sin(ω(T /2)) 2 2
and
ωT ωs ωs
∡Hr (jω) = for − ≤ω≤ , (11.50)
2 2 2
respectively.
|Hr (jω)|
∠Hr (jω)
π/2
1
ω
ω
−ωs /2 ωs /2 −π/2
Figure 11.24: Magnitude and phase plots of the reconstruction filter, Hr (jω),
for zero order hold sampled signal. Hr (jω) is called the ideal compensation
filter.
Figure 11.24 show that the reconstruction filter Hr (jω), for zero order hold
sampling is a low-pass filter. This filter slightly suppresses the lower frequencies
around the origin.
Let’s compare the reconstruction filters H(jω) for impulse train sampling
and Hr (jω) for zero order hold sampling. Both of them are low pass filters.
547
However, H(jω) is an ideal low pass filter, whereas, Hp (jω) somehow compen-
sates for the process of zero order hold.
xp (t) ←→ Xp (jω)
by a realizable signal, so that instead of zero order hold we can use the ap-
proximated form of impulse train sampling?
Let’s start by analyzing the structure of the reconstruction filter h(t) ↔
H(jω), for impulse train sampling, in the time domain.
Formally speaking,
∞
X
xr (t) = x(t) = xp (t) ∗ h(t) = x(nT )h(t − nT ), (11.51)
n=−∞
ωc T sin(ωc t)
h(t) = . (11.52)
πωc t
Inserting the impulse response into the convolution equation, xr (t) = xp (t)∗
h(t), we get,
∞
X ωc T sin(ωc (t − nT ))
xr (t) = x(nT ) . (11.53)
n=−∞
π ωc (t − nT )
548
Note: The reconstructed signal xr (t) = x(t) is just the superposition of
shifted Sinc functions, each of which is weighted by the value of x(t) at nT ,
namely, x(nT ).
Rather than taking the superposition of the shifted Sinc functions, we sim-
ply connect the peak values of the reconstructed signal to obtain a linear
interpolation. This method of sampling is called first order hold.
x(t)
t t
Figure 11.25: Left: Reconstructed signal in time domain from impulse train
sampled signal, xp (t) which is obtained by the superposition of the shifted
Sinc functions. Right: Approximating the reconstructed signal by linear inter-
polation to obtain first order hold sampled signal.
First order hold sampling offers a practical method for sampling a continu-
ous time signal in time domain. At the first step, we find the bandwidth, 2ωM ,
of the signal x(t). Then, set the sampling rate as the Nyquist rate, which is
ωs = ωN = 2ωM .
Then, we set corresponding sampling period to,
2π
T = .
ωN
Finally, we simply create the sampled signal by connecting the selected
points of x(nT ) for all n by a straight line, in time domain.
549
11.9. Chapter Summary
Can we select a set of time points x(nT ) from a continuous time function x(t),
which represents the function x(t) without losing any information? As we all
know, a continuous time function is represented by uncountably many points
(t, x(t)), where t ∈ R is a real number. Thus, intuitively, neglecting infinitely
many points at every interval between x(nT ) and x((n ± 1)T reveals that we
lose a great amount of information about the function. Fortunately, this is not
a valid statement, provided that the signal in the frequency domain is band
limited, in other words, the signal has nonzero values only in a finite interval
of frequencies, in the transform domain.
In this chapter, we studied the famous Sampling Theorem proved by Claude
Shannon, which states that a continuous time band limited signal can be sam-
pled without losing any information. The original signal can be reconstructed
from its sampled version uniquely, provided that the sampling rate ωs = 2π/T
is at least twice the bandwidth, ωM , of the original signal, called the Nyquist
rate, ωN . Mathematically, for a unique sampling and reconstruction, the fol-
lowing inequality should be satisfied:
550
fact that impulse train sampling is nothing but the superposition of the Sinc
function generated at every sampling point T . This superposition can be simply
approximated by connecting the sampled signal with a straight line.
551
Problems
1. Consider a signal x(t) whose Nyquist rate is ωN . Find the Nyquist rate
for each of the following signals in terms of ωn .
a) x(t − 2) + x(t + 2))
b) x(2t) + x(t − 2))
dx(t)
c)
dt
d) x2 (t)
e) x(t)cosω0 t
2. Find the Nyquist rate for each of the following signals.
a) x(t) = 1 + cos(4000πt) + sin(8000πt)
b) x(t) = sin(8000πt)
πt
c) x(t) = ( sin(16000πt)
πt )2
3. A continuous time-signal,
is fed to an ideal low pass filter, h(t) ←→ H(jω) with cutoff frequency
wc = 2000π to obtain the output signal y(t) = h(t) ∗ x(t). Suppose that
impulse-train sampling is performed as yp (t) = y(t)p(t), where
∞
X
p(t) = δ(t − nT ).
n=−∞
a) Find and plot the magnitude and phase of the Fourier transform of
the output, Y (jω).
b) Find the largest possible period T , which avoids aliasing.
c) Find and plot the reconstructed signal yr (t), when the sampling pe-
riod is T = 2 ∗ 10−3 and for T = 2 ∗ 10−4 .
d) Suppose that the sampling period is T = 2 ∗ 10−4 . What is the valid
interval of cut-off frequency of the low pass filter for reconstruction,
sin(3000πt)
x(t) =
πt
is fed to an ideal low pass filter, h(t) ←→ H(jω) with cutoff frequency
552
wc = 2000π to obtain the output signal y(t) = h(t) ∗ x(t). Suppose that
impulse-train sampling is performed as yp (t) = y(t)p(t), where
∞
X
p(t) = δ(t − nT ).
n=−∞
y(t) = x(t)z(t).
553
7. A continuous-time system is given in the following figure.
cos(4000πt)
The frequency response of the ideal low pass filter is shown in the following
figure.
H(jω)
ω
−4000π 4000π
554
x(t) × H(jω) y(t)
sin(100πt)
Figure P7.a
H(jω)
ω
−800π 800π
Figure P7.b
a) Find and plot the Fourier transform of the signal, obtained at the
output of the multiplier:
b) Find the output y(t) of the low pass filter given in Figure 7.a.
555
9. Consider the following input signal,
sin(100πt)
x(t) = ,
πt
which is fed to a system to create the following output
P∞
p(t) = n=−∞ δ(t − nT )
Figure P10
a) Roughly plot the input signal, x(t).
b) Find and plot the sampled signal xp (t) ↔ Xp (jω), for the sampling
frequency ωs = 10, 000π.
c) Find the Nyquist rate of the sampled signal xp (t) = x(t)p(t).
d) Find the bandwidth of low-pass filter, H(jω) to reconstruct the orig-
inal signal from its sampled version without loosing any information.
11. Consider the system given in Figure P11.a, which is fed by a band limited
signal,
(
1 for ω ≤ ωm
X(jω) =
0 o.w.
556
x(t) × G(jω) y(t)
P∞ n
p(t) = n=−∞ (−1) δ(t − nT )
Figure P11.a
The band pass filter G(jω) has the form, given in Figure P11.b
G(jω)
ω
−2π − Tπ π
T
2π
T T
Figure P11.b
a) Find and plot the Fourier transform of xp (t) = x(t)p(t), when the
sampling period is T = 3ωπm
b) Find and plot the Fourier transform of y(t) for T = 3ωπm .
c) Define a system, which reconstructs the input signal x(t) from the
output signal y(t).
12. Consider the system shown in Figure P12, where the frequency response
of the filter is given as follows,
(
j if, ω > 0
H(jω) =
−j if, ω < 0.
The input signal x(t), to this system is band-limited with the Fourier
transform X(jω) = 0, for |ω| > 1000π.
557
sin(wc t)
h(t) ×
x(t) + y(t)
cos(wc t)
Figure P12
558
a) Find the Fourier transform of the output signal, y(t) in terms of the
Fourier transform of the input signal x(t).
b) Can we reconstruct x(t) from y(t), for ωc = 500π? Verify your answer.
13. A sampling system is illustrated in Figure P13.a,
P∞
e−j2πt p(t) = n=−∞ δ(t − nT )
Figure P13.a
where the low pass filter H(jω) has the cutoff frequency, |ωc | = π, as
shown in Figure P13.b.
H(jω)
ω
−wc wc
Figure P13.b
The input to this system is shown in Figure P13.c.
X(jω)
ω
−3π −π π 3π
Figure P13.c
a) Find the Fourier transform of the output of the multiplier, g(t) =
x(t)e−j2πt .
b) Find the Fourier transform of the output of the low pass filter, y(t) =
g(t) ∗ h(t).
c) Find the maximum sampling period T , which recovers the input signal
x(t) from the sampled signal yp (t).
d) Suggest a system, which recovers x(t) from yp (t).
559
14. An LTI system, represented by a band limited frequency response
(
1 for ω ≥ 1000π
H(jω) =
0 o.w.
a) Find the output y(t) of this system for x(t) = sin 2000π.
b) Find the maximum sampling period Tmax to recover the signal y(t)
from the sampled signal yp (t) = y(t)p(t), where
X
p(t) = δ(t − nT ).
c) Find and plot the sampled signal yp (t) = y(t)p(t) for T = Tmax /2.
560
Chapter 12
Discrete Time Sampling and
Processing
561
Suppose that we need to process a speech signal to reduce the noise or to
decompose orchestral music into its instruments by a digital computer. The
classical sampling theorem does not allow us to process a continuous time
sampled signal in a digital machine. Also, we cannot design a computer vi-
sion system, for example, to extract an object from a given image dataset by
classical sampling methods.
Motivating Question 1: Considering the fact that the sampled signal
is still in continuous time, how do we process a continuous-time signal by a
digital computer?
The answer to the above question requires conversion of a sampled signal
into a discrete time signal, where we define the function only at integer values
of time. This process is called C/D conversion (continuous to discrete time
conversion).
Motivating Question 2: After we process the discrete time signal by a
digital computer, how do we reconstruct the continuous time counterpart of
the discrete signal?
The answer to the above questions require a conversion of a discrete time
signal into a continuous time signal. This process is called D/C conversion
(discrete to continuous time conversion).
562
period, T , of the signal.
A discrete time signal exists only at integer values of time. Therefore, one
needs to convert a continuous time output of a sampled signal into a discrete
time signal. The conversion is simple: We replace the continuous time impulse
functions placed at every sampling period T by discrete time impulses, placed
at every integer value, as shown in Figure 12.2. Mathematically, given a con-
tinuous time signal x(t), let us define the value of this function at every point
nT as,
xc (t) = x(nT ), ∀n. (12.1)
Then, we define the discrete time counterpart of this continuous time signal
as,
xp (t)
xd [n]
0 T 2T t −4 −3 −2 −1 0 1 2 3 4 n
xp (t)
xd [n]
0 T 2T t −4 −3 −2 −1 0 1 2 3 4 n
In the time normalization process, the value of x(t) is kept the same at
every t = nT value of time to generate the discrete time signal x[n]. However,
563
the time axis of x[n] is normalized by 1/T . Upper row of Figure 12.2 shows
that the continuous time impulses are placed at every sampling period T = T1
(left). The corresponding discrete time impulses are placed at every integer
value of time. The time axis is replaced by integer values at every period, T . In
the bottom row of this figure, we double the sampling period, as T = 2T1 . The
corresponding discrete time function is presumably smoother (left). However,
the time axis is replaced by integer values at every period T = 2T1 .
Note: As can be observed in Figure 12.2, when we make time normaliza-
tion, the analytic form of the discrete time signal changes as we change the
sampling period, T . Furthermore, the information about the sampling period
T disappears after time normalization. No matter what the sampling period of
the continuous time signal is, the time axis of the corresponding discrete time
function consists of integer values of n.
564
∞
X
xp (t) = xc (nT )δ(t − nT ), (12.4)
n=−∞
where xp (nT ) is the value of the continuous time signal x(t) at nT for all values
of n. Recall also that F {δ(t − nT )} = e−jωnT , then the Fourier transform of
xc (t) is,
∞
X
Xp (jω) = xc (nT )e−jωnT . (12.5)
n=−∞
Considering the fact that xc (nT ) = xd [n], for all n and comparing the
Fourier transforms of Xp (jω) and Xd (ejω ), we can obtain the relationship
between the Xd (ejω ) and Xp (jω) as follows;
jω jω
Xd (e ) = Xp (12.7)
T
∞
1 X w − 2πn
Xd (ejw ) = X(j( )) (12.8)
T n=−∞ T
Comparison of Xd (ejω ) and Xp (jω) in Figure 12.4 shows that the only dif-
ference between these two functions is the scale T in the frequency axis. While
the continuous sampled signal, Xp (jw) is periodic with 2π/T , the discrete
counterpart, Xd (ejw ) is periodic with 2π.
Although x(t) is a continuous time signal and xd [n] is a discrete time signal,
565
Xp (jω)
xc (t) 1
T
xp (t)
{ 2π
T = ωs
−ωs ωs = 2π
T
Xd (ejω )
xc (t) 1
T
xd (t)
{
2π
T = ωs −2π 2π
Figure 12.4: Comparison of the continuous time sampled signal Xp (jw) and
its discrete time counterpart Xd (ejw ), in the frequency domain.
their Fourier transforms are both continuous. Furthermore, the analytical form
of X(jω) is preserved in both Xd (ejω ) and Xp (jω) in the frequency domain.
However, due to time normalization, sampling period and/or frequency disap-
pears in Xd (ejω ). This reveals that we can recover the original continuous time
signal from its discrete version, provided that the sampling period or sampling
frequency is given.
10−3
xd [n] = xc ( n)
3
a) What is the sampling frequency in Hertz and the angular frequency in
radian/second.
b) Can we reconstruct xc (t) from its discrete time counterpart xd [n] without
losing information?
566
Solution
10−3
a) The sampling period is T = 3 seconds. Therefore, the sampling frequency
fs is
1 1
fs = = 10−3
= 3000 Hz.
T
3
b) No, because there is aliasing, where the sampling frequency is smaller then
the bandwidth of the signal:
567
∞
X
p(t) = δ(t − nT ), (12.11)
n=−∞
where ωs = 2π/T is the sampling frequency of the continuous time input signal
x(t). Then, we design a low pass filter, H(jω) with the cutoff frequency wc ,
to cover the bandwidth of the discrete time signal Yd (ejw ) and low pass filter
the impulse train sampled signal yp (t) ↔ Yp (jw), in the frequency domain to
reconstruct the continuous counterpart of the discrete time signal Yd (ejω ), as
follows;
568
Figure 12.5: D/C Conversion: Recovering a continuous time signal from its
discrete counterpart.
time function yd [n] in between the sampled time instances to obtain the con-
tinuous time function y(t). For this reason, D/C conversion is sometimes called
interpolation.
Now, we know how to perform C/D and D/C conversion. Thus, we can
design the discrete time counterpart of a given continuous time LTI system
and vice versa. Let’s give some examples below.
dx(t)
←→ jωX(jω). (12.14)
dt
dx(t)
y(t) = ←→ Y (jω) = jωX(jω). (12.15)
dt
The frequency response of the differentiation subsystem is,
569
Y (jω)
H(jω) = = jω, for − ∞ < ω < ∞. (12.16)
X(jω)
Motivating Question: How can we find the discrete time counterpart
Hd (ejω ) of a continuous time differentiator H(jω)?
The continuous time differentiator is not band-limited. According to the
sampling theorem, it cannot be sampled without losing information about the
analytical shape of the frequency response function. One way of converting the
continuous time differentiator into its discrete time counterpart is to chop the
frequency spectrum after a predefined value to create a band limited frequency
response. Then, we can apply sampling to this band-limited function.
Let’s define the band-limited differentiator as follows:
(
jω, if |ω| < ωc
Hc (jω) = (12.17)
0, otherwise,
where ωc is the cutoff frequency and determined by considering the design
issues about the underlying physical phenomenon. Then, the magnitude of
Hc (jω) is,
(
ω, if |ω| < ωc
|Hc (jω)| = (12.18)
0, otherwise
and the phase is,
π/2,
if 0 < ω < ωc
∢Hc (jω) = −π/2, if − ωc < ω < 0 (12.19)
0, otherwise.
Since the function Hc (jω) is now band-limited, we can sample it and re-
construct the original signal from its sampled version.
Now, we can apply the C/D conversion methods to find the discrete-time
version of a band limited differentiator Hd (ejw ) from the continuous time band
limited frequency response Hc (jω)?
At the very first step, we need to find the Nyquist rate of the band limited
function Hc (jω), which is,
ωN = 2ωc .
Then, we select a sampling frequency ωs ≥ ωN .
Let’s set the sampling frequency to the Nyquist rate, ωN = ωs = 2ωc . The
corresponding sampling period is,
2π π
Ts = = . (12.20)
ωs ωc
570
|Hc (jω)|
ωc
ω
−ωc ωc
∠Hc (jω)
π
2
ω
ωc
− π2
Figure 12.7: Magnitude and phase plots of the continuous time band-limited
differentiator, Hc (jω).
Figure 12.8: Discrete time counterpart of a band limited continuous time dif-
ferentiator: Magnitude and Phase spectrum.
Finally, we apply Equation 5.8 for discrete version of band limited differ-
entiator as follows;
∞
1 X ω − 2πn
Hd (ejω ) = Hc (j( )). (12.21)
Ts n=−∞ Ts
Notice that the discrete version of the band limited differentiator is periodic
with 2π. For one full period, the magnitude and phase of Hd (ejω ) are,
(
ω
jω , if |ω| < ωc
|Hd (e )| = Ts (12.22)
0, otherwise
571
and
π/2,
if 0 < ω < ωc
∢Hd (e ) = −π/2, if − ωc < ω < 0
jω
(12.23)
0, otherwise.
sin(πt/T )
x(t) = . (12.24)
πt
a) Find the discrete time counterpart, xd [n] of the input x[n].
b) Find the output, y(t) of the continuous time differentiator.
c) Find the discrete time output, yd [n] of the digital differentiator.
d) Find the discrete time impulse response of the digital differentiator.
Solution:
a) The discrete time counterpart of x(t) is simply obtained by time normal-
ization of its continuous counterpart as follows:
sin(πn)
xd [n] = xc (nT ) = . (12.25)
πnT
Note: The discrete time function xd [n] is indefinite at n = 0, i.e, it
approaches to ∞, for n = 0.
In order to find the value of xd [n], as n → 0, we use L’Hopital’s rule: We
take the derivative of the numerator and the denominator, which is,
π cos(πn) 1
xd [0] = lim = . (12.26)
n→∞ πT
T
572
For the rest of the values n ̸= 0, xd [n] = 0.
Therefore, the discrete time counterpart of the input is
1
xd [n] = δ[n]. (12.27)
T
xd [n]
1
T
Figure 12.10: Discrete time counterpart xd [n] is time normalized version of the
continuous time input x(t).
cos(πn) sin(πn)
yd [n] = yc (nT ) = − . (12.29)
πT n πT 2 n2
Note: There is a problem in the representation of the above function. It
is indefinite, i.e, approaches to 0/∞ for n = 0.
In order to find the limiting value of yd [n] at n = 0, we apply L’Hopital’s
rule:
π sin(πn) π cos(πn)
yd [n] = − − = 0, (12.30)
πT 2πT 2 n
and for n ̸= 0, the discrete time counterpart of the output becomes,
(−1)n
yd [n] = yc (nTs ) = . (12.31)
nT 2
d) Finally, we need to find the discrete time counterpart of the impulse re-
573
sponse, hd [n].
The discrete time output of a digital differentiator can be written in the
following compact form:
(−1)n
(
nT 2
, if n ̸= 0
yd [n] = yc (nT ) = (12.32)
0, otherwise.
Recall the discrete time convolution, which relates the input to the output
through the impulse response as follows:
1
yd [n] = xd [n] ∗ hd [n] =
δ[n] ∗ hd [n]. (12.33)
T
Then, the discrete time impulse response is,
(−1)n
(
hd [n] = nT , if n ̸= 0 (12.34)
0, otherwise.
574
y(t) = x(t − t0 ), (12.35)
the discrete time counterpart, yd [n] can be directly obtained by time nor-
malization,
Exercise 12.3:
Solution:
a) Let us take the Fourier transform of y(t), which is the direct application
of time shift property,
575
|Hc (jω)| ^Hc (jω)
1 slope:∆
ωc
Ω
−ωc
ω
−ωc ωc
|Hd (ejΩ )| ^Hd (ejΩ )
π∆
T
1
−π π Ω
ω
−π π
Figure 12.11: The magnitude and phase plots of frequency responses of the
band-limited continuous time system, represented by y(t) = x(t − t0 ) and its
discrete time counterpart, Hd (ejw ).
In the above equation, the sampling period is T = 2πωc . Considering the fact
that discrete time counterpart of the band-limited frequency response is always
periodic with ω = 2π, we can extend the cut-off frequency to ωc = 2π. Since
Y (ejω ) = H(ejω )X(ejω ), this extension will not change the bandwidth of the
output signal, which is the same as that of the input signal. Hence,
( t0
jω e−jω T , for |ω| < π
Hd (e ) = (12.42)
0 otherwise
and repeats at every 2π period.
576
Motivating Question: What if we need to sample a discrete time signal?
If we can manage to extend the sampling theorem to discrete time, we can
further reduce the data used to represent signals and systems without losing
their information content. Sampling in discrete time signals is sometimes called
down-sampling because it results in a type of compression, when the signal
is represented by a sequence of numbers, in the form of a time series.
(
x[n], if n is integer multiple of N
xp [n] = x[n]p[n] = (12.43)
0, otherwise
where, N is the integer sampling period and the discrete time impulse train is
defined as,
∞
X
p[n] = δ[n − kN ]. (12.44)
k=−∞
Note: The major difference between the continuous time and discrete time
sampling is that sampled signal, x[n] is set to 0 values between each sampling
period N .
577
2. Since the Fourier transform of a discrete time function is periodic with
2π, the cutoff frequency of the band limited signal cannot exceed 2π. Hence,
the bandwidth of the discrete time signal should be small enough, i.e.,
ωs ≥ ωN = 2ωM . (12.46)
Otherwise, if ωs < 2ωM , then there are overlaps in Xp (ejω ), which results
in aliasing.
The above constraints on the sampling frequency ws , Nyquist frequency
wN and cutoff frequency wM of the signal shape up the analytical form of the
sampled signal xp [n] ↔ Xp (ejω ).
Let us now investigate the effect of the above constraints on the sampling
of the discrete time signal x[n] ←→ X(ejw ) on structure of the sampled signal,
in both time and frequency domain.
Recall the Fourier transform pair of discrete time impulse train was,
∞ ∞
X
jω 2π X
p[n] = δ[n − kN ] ←→ P (e ) = δ(ω − kωs ). (12.47)
N
k=−∞ k=−∞
∞
1 1 X
Xp (ejw ) = X(ejw ) ∗ P (ejw ) = X(ej(w−kws ) ) (12.48)
2π N
k=−∞
Note: There are two types of periodicity in both P (ejw ) and Xp (ejw ).
The first periodicity comes from the nature of discrete time Fourier transform,
which is 2π. The second periodicity comes from the repetition of the discrete
time signal at each sampling frequency, kws for all k = 0, ±1, ±2, ..... The
relationship between these two periodicities affect the result of discrete time
sampling.
Note: We assume that
x[n] ←→ X(ejω )
578
P (ejω )
2π
N
ω
ωs 2ωs 2π
Xp (ejω )
1
N
ω
ωM ωs 2ωs 2π
Figure 12.13: Fourier transform P (ejω ) of discrete time impulse train p[n] =
δ[n − kN ] (above) and Fourier transform of the sampled signal Xp (ejω ) of
P
a discrete time signal xp [n] (below).
x[x] X(ejw )
w
n −2π −ωM ωM 2π
xp [x] Xp (ejw )
w
n −ωM ωM ωs 2π
Figure 12.14: Time and frequency domain representations of the discrete time
signal and its sampled version. We delete the values of x[n] in between each
sampling period N . Hence, the sampled signal in time domain becomes xp [n] =
0 in between each sampling period kN and (k + 1)N .
579
is a band-limited signal and the bandwidth 2ωM is small enough so that when
we sample the signal with a sampling frequency ωs , we can squish the repeated
signals in the 2π period without any overlaps.
Exercise 12.4: A discrete time signal y[n] is obtained by impulse train sam-
pling of a signal x[n], as follows;
∞
X
y[n] = x[n]δ[n − kN ],
k=−∞
where the band limited signal x[n] has the Fourier transform,
π
X(ejω ) = 0 for ≤ |ω| ≤ π.
4
Find the largest value for the sampling period N , satisfying the Nyquist
rate.
Solution: Fourier transform of the output signal, Y (ejω ) is the periodic repe-
titions of X(ejω ) at every ωs = 2π
N . The Nyquist rate is achieved, when
ωs = 2ωc ,
where ωc is the cutoff frequency of X(ejω ). Since the Fourier transform of the
input is given as,
π
X(ejω ) = 0 for ≤ |ω| ≤ π,
4
which is periodic with 2π, the nonzero part of the input is,
2π π
≥2 .
N 4
Hence, the Nyquist rate for the largest sampling interval is achieved at N = 4.
580
12.5. Reconstruction of Discrete Time
Signal from its Sampled Counter-
part
Practically speaking, down-sampling deletes the values of the discrete time
function between each sampling period kN and (k+1)N . Instead of the deleted
values we insert 0s in the sampled signal xp [n]. In order to recover the original
signal x[n] from the sampled signal xp [n], we would like to fill up the zero
values with the original values of x[n].
Mathematically speaking, given the sampled signal,
xp [n] = x[n]p[n],
where p[n] is an impulse train with sampling period N , our goal is reconstruct
the original discrete time signal x[n], without losing any information. This
reconstruction process is sometimes called up-sampling.
We assume that the signal is band limited with the cutoff frequency ωM
and it is properly sampled with the sampling frequency ωs = 2πN to satisfy the
Nyquist rate,
ωs = 2ωM . (12.49)
If these constraints are satisfied, then we can design a reconstruction filter
H(ejω ), which recovers the original signal x[n] = xr [n] from its sampled version
xp [n] without losing any information.
N ωc sin(ωc π)
h[n] = ←→ H(ejω ). (12.51)
π ωc π
581
H(ejω )
ω
−2π −ωc ωc 2π
Figure 12.16: Frequency response, H(ejω ) of the reconstruction filter for dis-
crete time sampling. This is a low pass filter which recovers the original signal
by Xr (ejω ) = X(ejω ) = Xp (ejω ).H(ejω ).
X(ejω )
ω
−π − 2π
9
2π
9
π
582
b) The largest sampling frequency is to be the Nyquist rate:
4π
ωs = .
9
Hence, the sampling period should satisfy,
2π
N≤ ≤ 9/2.
ωs
The maximum integer, which satisfies the above inequality is Nmax = 4.
583
x[n] X(ejw )
n w
−ωc ωc π 2π
xp [n] Xp (ejw )
1
F N
n w
−2π −ωs ωs 2π
Figure 12.18: When a discrete time signal x[n] is down-sampled, we only keep
the values of this signal at integer multiples of N . In the frequency domain, this
process corresponds to inserting the analytical form of the original function at
every ωs .
Lets define a decimated discrete time signal xde [n], as the sequence of the
selected values of the sampled signal. Formally speaking, the decimated signal
and its discrete time Fourier transform is,
∞
X ∞
X
xde [n] = xp [nN ] ←→ Xde (ejω ) = xde [n]e−jωn = xp [nN ]e−jωn
n=−∞ n=−∞
(12.54)
Therefore, the relationship between the decimated signal Xde (ejω ) and its
sampled version Xp (ejω ), in the frequency domain can be written as follow:
584
Xb (ejw )
1
N
w
−2π −ωs −N ωM N ωM ωs 2π
585
Problems
1. Consider an A/D converter system, shown in Figure P1, where the Fourier
transform of the continuous time input is,
(
|ω| for |ω| < 10π
X(jω) =
0 o.w.
Figure P1
a) Find and plot the Fourier transform of the sampled signal Xp (jω),
when the sampling periods are T1 = 0.05 seconds and T2 = 0.1 sec-
onds.
b) Find and plot the Fourier transform of the discrete time signal Xd (ejω )
obtained at the output of the converter, for T = 0.05 seconds and
T = 0.1 seconds.
2. Consider a D/C converter shown in Figure P2, where the signal,
sin 104 π
xd [n] =
πn
and the impulse response is,
sin π4 n
hd [n] =
πn
Figure P2
a) Find the Fourier transform of the output Yd (ejω ).
b) Find the continuous counterpart yp (t) ↔ Yp (jω), obtained at the
output of the D/C converter for T = 0.05 milliseconds.
586
c) Find the Fourier transform of the continuous time output signal
Y (jω) = Yp (jω)H(jω),
when the cutoff frequency of the low pass filter H(jω) is ωc = 2π/T .
3. A discrete time band-limited signal x[n], defined by the following Fourier
transform; (
A for |ω| < π/4
X(ejω ) =
0 otherwise,
and repeats at every 2π period. We down-sample the signal x[n] to gen-
erate a signal g[n] , as follows:
(
x[n/2] for n = 0, ±2, ±4, ±6...
g[n] =
0, otherwise
a) Find and plot x[n] and g[n]. Comment on the differences and simi-
larities between the two signals.
b) Find and plot G(ejω ). What is the effect of down sampling on the
signal in terms of the bandwidth?
4. A discrete time LTI system, which give the following output, in −π <
ω ≤ π interval:
j (ω− π3 )
X(e
) π3 < ω ≤ π2
π
Y (ejω ) = X(ej (ω+ 3 ) ) − π2 < ω ≤ − π3
0 o.w.
587
(a) Find and plot the output signal Y (ejω ). What is the cutoff frequencies
and the bandwidth of the output Y (ejω ).
(b) Find and plot the Frequency response of this system. What is the
bandwidth of the frequency response.
(c) Find the continuous time counterpart Hc (jω) of the discrete time
frequency response, Hd (ejω ), for the sampling periods T = 0.1 and
T = 1 seconds.
5. A continuous time signal xc (t) is band limited with the Fourier transform
Xc (jω) = 0 for |ω| ≥ 3000π radian/second . The discrete time counterpart
of this signal is,
−3
10
xd [n] = xc n
2
3π
b) Xd (ejω ) = 0 for ∥ω| ≥ 2
π
c) Xd (ejω ) = Xd (ej(ω− 2 ) )
6. A discrete time band limited signal xd [n] has the Fourier transform Xd (ejω ) =
0 for 2π
5 ≤ |ω| < π. Its continuous time counterpart is,
∞
sin 104 π(t − k · 10−4 )
X
−4
xc (t) = 2 · 10
πt − 2π · 10−4 k
k=−∞
d 1
y(t) = x t −
dt 3
588
b) Find the discrete time counterpart of the frequency response by defin-
ing a band-limited differentiator, where the cutoff frequency is ωc =
2π/3.
c) Find the discrete time impulse response h[n] of this system.
8. A discrete time band stop filter is represented by the following frequency
response:
(
π 5π
1 |ω| ≤ and |ω| ≥
H(ejω ) = 6 6 |ω| ≤ π
0 o.w.
y[n] = x[7n].
a) Find and plot the output y[n] of this system, when the input is,
sin( π7 n)
x[n] = .
πn
b) Find a continuous counterpart of y[n].
c) Find the output g[n] = h[n] ∗ y[n], where h[n] ↔ H(ejω ) is band stop
filter with the following frequency response:
(
π 3π
1 |ω| ≤ and |ω| ≥
H(ejω ) = 2 2 |ω| ≤ π
0 o.w.
10. A band limited continuous time signal x(t) with the Fourier transform
X(jω) = 0 for |ω| > 2500π, is sampled by an impulse train, as follows:
∞
X
xp (t) = x(nT )δ(t − nT )
n=−∞
589
b) Can we find a discrete counterpart x[n] of this signal by C/D conver-
sion method such that we can recover the original continuous time
signal x(t)? Explain your answer.
11. A signal x(t) with Fourier transform X(jω) undergoes impulse-train sam-
pling to generate the following:
∞
X
xp (t) = x(nT )δ(t − nT )
n=−∞
where T = 10−4 .
If it is known that X(jω) = 0 for |ω| > 7500π, does the sampling theorem
guarantee that x(t) can be recovered exactly from xp (t)?
590
Index
591
stable system, 110
superposition property, 112
symmetry group, 26
system with memory, 104
z-transform, 442
592
Bibliography
J K Aggarwal. Notes on Nonlinear Systems, volume 1. Van Nostrand Reinhold
New York, NY, 1972.
593
Hwei P Hsu. Schaum’s Outline of Signals and Systems, volume 3. McGraw-Hill
Education, 2013.
B P Lathi and Roger Green. Linear Systems and Signals, volume 3. Oxford
University Press, 2017.
Alan V Oppenheim, Alan S Willsky, Syed Hamid Nawab, and Jian-Jiun Ding.
Signals and Systems, volume 2. Prentice hall Upper Saddle River, NJ, 1997.
Abraham Peled and Bede Liu. Digital Signal Processing, volume 1. John Wiley
Sons, Inc., 1976.
Donald G Schultz and James L Melsa. State Functions and Linear Control
Systems, volume 1. Prentice hall Upper Saddle River, NJ, 1997.
594
David L Verbyla and Kang-tsung (Karl) Chang. Processing Digital Images in
Geographic Information Systems, volume 1. OnWord Press Santa Fe, NM,
1997.
James S Walker. Signals and Systems, volume 2. John Wiley Sons, Inc., 2002.
595