Digital Signal Processing 1
Digital Signal Processing 1
Modules / Lectures
Introduction
Simple Operations and properties of Sequences
Discrete-Time Systems
Time-Domain Representation for Linear Time-Invariant Systems
The Discrete Time Fourier Transform
Discrete fourier series and Discrete fourier transform
The Z-transform
Discrete time processing of continous time signals
Digital Filters
3
Objectives
In this lecture you will learn the following
First of all we will try to look into the formal definitions of the terms 'signals'.
Then we talk of signal processing in brief, about the classification of signals and some properties of
signals.
Chapter 1 : Introduction
We are all immersed in a sea of signals. All of us from the smallest living unit, a cell, to the most complex
living organism (humans), receive signals all the time and continue to process them. Survival of any
living organism depends upon its ability to process the signals appropriately.
What is a Signal?
Anything which carries information is a signal. e.g. human voice, chirping of birds, smoke signals,
gestures (sign language), fragrances of the flowers.
Many of our body functions are regulated by chemical signals, blind people use sense of touch. Bees
communicate by their dancing pattern.
Modern high speed signals are: voltage changer in a telephone wire, the electromagnetic field
emanating from a transmitting antenna,variation of light intensity in an optical fiber.
Thus we see that there is an almost endless variety of signals and a large number of ways in which
signals are carried from on place to another place.
A signal is a real (or complex) valued function of one or more real variable(s).When the function
depends on a single variable, the signal is said to be one-dimensional and when the function depends on
two or more variables, the signal is said to be multidimensional.
Examples of a one dimensional signal: A speech signal, daily maximum temperature, annual rainfall at a
place
An example of a two dimensional signal: An image is a two dimensional signal, vertical and horizontal
coordinates representing the two dimensions.
Four Dimensions: Our physical world is four dimensional(three spatial and one temporal).
5
The signal processor may be an electronic system, a mechanical system or even it might be a computer
program.
The word digital in digital signal processing means that the processing is done either by a digital
hardware or by a digital computer.
Relies on numerical calculations
The method may or may not give results in real time..
The choice of choosing between analog or digital signal processing depends on the application. One has
to compare design time,size and thecost of the implementation.
6
Classification of signals
We use the term signal to mean a real or complex valued function of real variable(s) and denote the
signal by x(t)
The variable t is called independent variable and the value x of t as dependent variable.
When t takes a vales in a countable set the signal is called a discrete time signal. For example
t ε {0, T, 2T, 3T, 4T,...}
t ε {....-1, 0 ,1,...}
t ε {1/2, 3/2, 5/2, 7/2,...}
For convenience of presentation we use the notation x[n] to denote discrete time signal. When both the
dependent and independent variables take values in countable sets (two sets can be quite different) the
signal is called Digital Signal.
When both the dependent and independent variable take value in continous set interval, the signal is
called an Analog Signal.
Notation:
When we write x(t) it has two meanings. One is value of x at time t and the other is the pairs (x(t), t)
allowable value of t. By signal we mean the second interpretation.
Note that in {x(t)} and {x[n]} are dummy variables ie. {x[n]} and {x[t]} refer to the same signal. Some
books use the notation x [.] to denote {x[n]} and x[n] to denote value of x at time n.
{x(t)} refers to the whole waveform,while x[n] refers to a particular value.
Most of the books do not make this distinction clean and use x[n] to denote signal and x[n0] to denote
a particular value.
Elementary Signals
There are several elementary signals that occur prominently in the study of digital signals and digital signal
processing.
(c) EXPONENTIALSEQUENCE:
The complex exponential signal or sequence {x[n]} is defined by x[n] = C αn
where C and α are, in general, complex numbers.
Note that by writing α = eβ , we can write the exponential sequence as x[n] = c eβn
Real exponential signals:
: If C and are real, we can have one of the several type of behavior illustrated below
8
(d)SINUSOIDAL SIGNAL:
and
The general discrete time complex exponential can be written in terms of real exponential and
sinusiodal signals.
9
Thus for |α| = 1 , the real and imaginary parts of a complex exponential sequence are sinusoidal.
|α| < 1, they correspond to sinusoidal sequence multiplied by a decaying exponential,
|α| > 1 , they correspond to sinusiodal sequence multiplied by a growing exponential.
Here >> indicates the MATLAB prompt to type in a command, stem(n,x) depicts the data contained in
vector x as a discrete time signal at time values defined by n. One can add title and lable the axes by
suitable commands. To generate step sequence we can use the following program
Note that, in this program, the base alpha is a scalar but the exponent is a vector, hence use of the
operator to denote element-by-element power.
10
Recap
In last lecture you have learnt the following
Signals are functions of one or more independent variables.
Systems are physical models which gives out an output signal in response to an input signals.
Trying to identify real-life examples as models of signals and systems, would help us in understanding
the subject better.
Congratulations, you have finished Lecture 1. To view the next lecture select it from the left hand side
menu of the page
11
Objectives
In this lecture you will learn the following
In this chapter we will learn some of the operations performed on the sequences.
Sequence Addition
Scalar Multiplication
Sequence Multiplication
Shifting
Reflection
Sequence addition:Let {x[n]} and {y[n]}be two sequences. The sequence addition is defined as term by term
addition. Let {z[n]} be the resulting sequence
where each term z[n] = x[n] + y[n]We will use the following notation
Scalar multiplication:Let a be a scalar. We will take a to be real if we consider only the real valued signals,
and take to be a complex number if we are considering complex valued sequence. Unless otherwise
stated we will consider complex valued sequences. Let the resulting sequence be denoted by {w[n]}
{w[n]} = a {x[n]}
is defined by
w[n] = ax[n]
each term is multiplied by a We will use the notation
a {w[n]} = {aw[n]}
Note: If we take the set of all sequences and define these two operations as addition and scalar
multiplication they satisfy all the properties of a linear vector space.
Sequence multiplication:
Let {x[n]} and {y[n]} be two sequences, and {z[n]} be resulting sequence
{z[n]} = {x[n]}{y[n]}
where z[n] = x[n] y[n]
The notation used for this will be {x[n]} {y[n]} = {x[n] y[n]}
where is the operation of shifting the sequence right by n0 unit. The terms are defined by y[n] =
x[n - n0]. We will use short notation {x[n - n0]} to denote shift by n0.
13
{x[n-2]}
A negative value of n0 means shift towards
right.
{x [n+1]}
A positive value of n0 means shift towards left.
Reflection:Let {x[n]} be the original sequence, and {y[n]} be reflected sequence, then y[n] is defined by
y[n] = x[-n]
{x[n]}
14
We will denote this by {x[-n]}When we have complex valued signals, sometimes we reflect and do the
complex conjugation, ie, y[n] is defined by y[n] = x*[-n], where * denotes complex conjugation. This
sequence will be denoted by {x*[-n]}.We will learn about more complex operations later on.
Some of these operations commute, ie. if we apply two operations we can interchange their order and
some do not commute. For example scalar multiplication and reflection commute.
Then v[n] = z[n] for all n. Shifting and scaling do not commute.
We can combine many of these operations in one step, for example {y[n]} may be defined as y[n] = 2x [3-n].
A signal is referred to as an energy signal, if and only if the total energy of the signal E x is finite.
Power of a signal: If {x[n]} is a signal whose energy is not finite, we define power of the signal as
An energy signal has a zero power and a power signal has infinite energy. There are signals which are
neither energy signals nor power signals. For example {x[n]} defined by x[n] = n does not have finite power
or energy.
Periodic Signals:
An important class of signals that we encounter frequently is the class of periodic signals. We say that a
signal {x[n] is periodic with period N, where N is a positive integer, if the signal is unchanged by the time
shift of N ie.,
{x[n]} = {x[n + N]}
or x[n] = x[ n + N ] for all n.
Since {x[n]} is same as {x[n+N]} , it is also periodic so we get
{x[n]} = {x[n+N]} = {x[n+N+N]} = {x[n+2N]}
Generalizing this we get {x[n]} = {x[n+kN]}, where k is a positive integer. From this we see that {x[n]} is
periodic with 2N, 3N,... The fundamental period N0 is the smallest positive value N for which the signal
is periodic.
The signal illustrated below is periodic with fundamental period N 0 = 4
FIGURE
By change of variable we can write {x[n]} = {x[n+N]} as {x[m-N]} = {x[m]} and then arguing as before,
we see that
{x[n]} = {x[n+kN]},
16
for all integer values of k positive, negative or zero. By definition, period of a signal is always a positive
integer N.
Except for a all zero signal all periodic signals have infinite energy. They may have finite power. Let
{x[n]} be periodic with period N, then the power P x is given by
where k is largest integer such that kN -1 ≤ M. Since the signal is periodic, sum over one period will be
same for all terms. We see that k is approximately equal to M/N (it is integer part of this) and for large
M we get 2M/N terms and limit 2M/(2M +1) as M goes to infinite is one we get
Given any real valued signal {x[n]} we can write it as a sum of an even signal and an odd signal.
Consider the signals
Ev ({x[n]}) = {xe[n]} = {1/2 (x[n] + x[-n])}
and Od ({x[n]}) = {xo[n]} = {1/2(x[n] -x [-n])}
17
or
Recap
In last lecture you have learnt the following
Congratulations, you have finished Lecture 2. To view the next lecture select it from the left hand side
menu of the page
19
Objectives
In this lecture you will learn the following
We will try understand..."what are Discrete Time Systems?"
Discrete-Time Systems:
A discrete-time system can be thought of as a transformation or operator that maps an input sequence
{x[n]} to an output sequence {yk[n]}
Invertibility:
A system is said to be invertible if the input signal {x[n]} can be recovered from the output signal {y k[n]}.
For this to be true two different input signals should produce two different outputs. If some different
input signal produce same output signal then by processing output we can not say which input
produced the output.
That is the system produces an all zero sequence for any input sequence. Since every input sequence
gives all zero sequence, we can not find out which input produced the output.
The system which produces the sequence {x[n]} from sequence {yk[n]} is called the inverse system. In
communication system, decoder is an inverse of the encoder.
Causality :
A system is causal if the output at anytime depends only on values of the input at the present time and
in the past.
y[n] = f(x[n], x[n-1],...)
All memoryless systems are causal. An accumulator system defined by
is noncausal.
For real time system where n actually denoted time causality is mportant. Causality is not an essential
constraint in applications where n is not time, for example, image processing. If we are doing processing
on recorded data, then also causality may not be required.
Stability :
There are several definitions for stability. Here we will consider bounded input bonded output (BIBO)
stability. A system is said to be BIBO stable if every bounded input produces a bounded output. We say
that a signal {x[n]} is bounded if
|x[n]| < M < ∞ for all n
The moving average system
is stable as y[n] is sum of finite numbers and so it is bounded. The accumulator system defined by
is unstable. If we take {x[n]} = {u[n]}, the unit step then y[0] = 1, y[1] = 2, y[2] = 3, are y[n] = n +1, n ≥ 0
so y[n]grows without bound.
Time invariance :
A system is said to be time invariant if the behavior and characteristics of the system do not change
with time.Thus a system is said to be time invariant if a time delay or time advance in the input signal
leads to identical delay or advance in the output signal. Mathematically if
{y[n]} = T ({x[n]})
then {y[n-n0]} = T({x[n-n0]}) for any n0
22
The two expression look different, but infact they are equal. Let us change the index of summation by
l = k - n0 in the first sum then we see that
Hence, {y[n]} = {y[n-n0]} and the system is time-invariant. As a second example consider the system
defined by y[n] = nx[n]
if
while
and so the system is not time-invariant. It is time varying. We can also see this by giving a counter
example. Suppose input is then output is all zero sequence. If the input is then
output is which is definitely not a shifted version version of all zero sequence.
Linearity :
This is an important property of the system. We will see later that if we have system which is linear and
time invariant then it has a very compact representation. A linear system possesses the important
property of superposition: if an input consists of weighted sum of several signals, the nthe output is also
weighted sum of the responses of the system to each of those input signals. Mathematically let
be the response of the system to the input and let be the response of the system to the
input. Then the system is linear if:
Additivity: The response to is
Homogeneity: The response to is , where is any real number if we are considering
only real signals and is any complex number if we are considering complex valued signals.
Continuity: Let us consider be countably infinite number of signals such that
The additivity and continuity properties can be replaced by requiring that system is additive for
countably infinite number of signals i.e. response to
is
Most of the books do not mention the continuity property. They state only finite additivity and
homogeneity. But from finite additivity we can not deduce countable additivity. This distinction
becomes very important in continuous time systems.
A system can be linear without being time invariant and it can be time invariant without being linear. If
a system is linear, an all zero input sequence will produce a all zero output sequence. Let denote the
all zero sequence, then. If then by homogeneity property
or,
Consider the system defined by
This system is not linear. This can be verified in several ways. If the input is all zero sequence , the
output is not an all zero sequence. Although the defining equation is a linear equation is x and y the
system is nonlinear. The output of this system can be represented as sum of a linear system and
another signal equal to the zero input response. In this case the linear system is
Such systems correspond to the class of incrementally linear system. System is linear in term of
differnce signal i.e if we define and. Then in terms of and the
system is linear.
24
Recap
In last lecture you have learnt the following
What are Discrete Time Systems
Congratulations, you have finished Lecture 3. To view the next lecture select it from the left hand side
menu of the page
25
In this chapter we will consider several methods for describing relationship between the input and
output of linear time-invariant systems.
Consider the product of signal and the impulse sequence. We know that
and
(4.1)
26
Fig 4.1
Given an arbitrary sequence we can write it as a linear combination of shifted unit impulses ,
th
where the weights of their combination are x[k], the k term of the sequence. For any given n, in the
summation
there is only one term which is non-zero and so we do not have to worry about the convergence.
Consider the unit step sequence {u[n]}. Since , and , it has representation
27
We use linearity property of the system to represent its response in terms of its response shifted
impulse sequences. The time invariance further simplifies their representation. Let be the input
signal and be the output sequence, and T( ) represent the linear system
using (4.1)
Note that without countable additivity property the last step is not justified (From finite additivity we
can not get countable additivity). Let us define
i.e. is the response of the system to a delayed unit sample sequence. Then we see
Then
(4.2)
This result is know as convolution of sequences and. Thus output signal for an LTI system is
convolution of input signal and the impulse response. This operation is symbolically represented
by
(4.3)
28
We see that equation (4.2) expresses the response of an LTI system to an arbitrary signal in terms of the
systems response to unit impulse. Thus an LTI system is completely specified by its impulse response.
The nth term in the equation (4.2) is given by
(4.4)
This is known as convolution sum. To convolve two sequences, we have to calculate this convolution
sum for all values of n. Since right hand side is sum of infinite series, we assume that this sum is well
defined.
Example:
Fig 4.2
Since only and one non zero we have
29
Fig 4.3
Here we have done calculation according to equation (4.2).
Fig 4.4
One can see easily that for other value of n is all zero sequence and for these value of n,
output is zero.
31
If and are sequences, then the following useful properties of the discrete time
convolution can be shown to be true
1. Commutativity
2. Associativity
`
5. Delay operation
6. Multiplication by a constant
Note that these properties are true only if the convolution sum (4.4) exists for every n.
If the input output relation is defined by convolution i.e. if
For a given sequence , then the system is linear and time invariant. This can be verified using the
properties of the convolution listed above. The impulse response of the systems is obviously.
In terms of LTI system, commutative property implies that we can interchange input and impulse
response.
Fig 4.5
32
The distributive property implies that parallel interconnection of two LTI system is an LTI system with
impulse response as sum of two impulse responses.
Fig 4.6
The associativity property implies that series connection of two LTI system is an LTI system. Where
impulse response is convolution of individual responses. The commutativity property implies that we
can interchange the order of the two system in series.
Fig 4.7
Since an LTI system is completely characterized by its impulse response, we can specify system-
properties in terms of impulse response.
1. Memoryless system: From equation (4.4) we see that an LTI system is memory less if and only if.
2. Causality for LTI system: The output of a causal system depends only on preset and past-values
of the input. In order for a system to be causal must not depend on for. From
equation (4.4) we see that for this to be true, all of the terms that multiply values
of for must be zero.
33
put to get
or
Thus impulse response for a causal LTI system must satisfy the condition h[n] = 0 for n <
0.
If the impulse response satisfies this condition, the system is causal. For a causal system we can
write
or
We say a sequence is causal if , for n < 0.
3. Stability for LTI system: A system is stable if every bounded input produces a bonded output.
Consider input such that for all n.
(4.5)
then
and is bounded for all n, and hence system is stable. Therefore equation (4.5) is sufficient
condition for system to be stable. This condition is also necessary. This is prove by showing that if
condition (4.5) is violated then we can find a bounded input which produces an unbounded output. Let
Let
So y[0] is unbounded. Thus, the stability of a discrete time linear time invariant system is equivalent to
absolute summability of the impulse response.
35
(4.6)
The constants, is input sequence and is output sequence. We can solve equation (4.6) in a
manner analogous to the differential equation solution, but for discrete time we can use a different
approach. Assume that. We can write
(4.7)
In order to find we need previous N values of the output. Thus if we know the input
sequence and a set of initial condition we can find values of.
then
Let us take
This system is not linear for all values of the initial condition. For a linear system all zero input sequence
must produce a all zero output sequence. But if C is different from zero, then output sequence is not an
all system is linear. System is not time invariant in general. Suppose input is than we have
It is obvious that second sequence is not a shifted version of the first sequence unless. The system is
linear time invariant if we assume initial rest condition, i.e. if then. With initial rest
condition the system described by constant coefficient-linear difference equation is linear, time
invariant and causal.
36
The equation of the form (4.7) is called recursive equation if , since it specifies a recursive
algorithm for finding out the output sequence. In special case , we have
(4.8)
Here is completely specified in terms of the input. Thus this equation is called non-recursive
equation. If input , then we see that the output is equal to impulse response
The impulse response is non-zero for finitely many values. A system with the property that impulse
response is non-zero only for finitely many values is known as finite impulse response (FIR) system. A
system described by non-recursive equation is always FIR. A system described recursive equation
generally has a response which is non-zero for infinite duration and such systems one known as infinite
impulse response system (IIR). A system described by recessive equation may have a finite impulse
response.
Systems described by constant coefficient linear difference equation can be implemented very easily as
we shall see in a later chapter.
37
Objectives
In this lecture you will learn the following
Representation of Aperiodic signals
In the previous chapter we used the time domain representation of the signal. Given any signal {x[n]}
we can write it as linear combination of basic signals. Another representation of signals that has been
found very useful is frequency domain representation. In the mid 1960s an algorithm for calculation of
the Fourier transform was discovered, known as the Fast-Fourier Transform (FFT) algorithm. This
spurred the development of digital signal processing in many areas.
The Fourier representation of signals derives its importance from the fact that exponential signals are
eigenfunctions for the discrete time LTI systems. What we mean by this is that if is input signal to
an LTI system then output is given by. Let us consider an LTI system with impulse response. Then the
output is given by
=
where assuming that the summation in right-hand side converges. Thus output is
same exponential sequence multiplied by a constant that depends on the value of.
Fig 5.1
The constant for a specified value of is the eigenvalue associated with eigenfunction.
In the analysis of LTI system, the usefulness of decomposing a more general signal in terms of
eigenfunctions can be seen from the following example. Let correspond to a linear combination of
two exponentials
From the eigenfunction property and superposition property the response is given by
More generally if
=
then =
39
Thus if input signal can be represented by a linear combination of exponential signals, the output can
also be represented by a linear combination of same exponentials, moreover the coefficient of the
linear combination in the output is obtained by multiplying, , the coefficient in the input
representation by corresponding eigen value The procedure outlined above is useful if we can
represent a large class of signals in terms of complex exponentials. In this chapter we will consider
representation of aperiodic signals in terms of signals.
Let be discrete time signal such that that is sequence is absolutely summable.
The sequence can be represented by a Fourier integral of the form
(5.1)
where
(5.2)
Equation (5.1) and (5.2) give the Fourier representation of the signal. Equation (5.1) is referred as synthesis
equation or the inverse discrete time Fourier transform (IDTFT) and equation (5.2)is Fourier transform in the
analysis equation.
Fourier transform of a signal in general is a complex valued function, we can write
(5.3)
where is the real part of and is imaginary part of the function. We can also use a
polar form
(5.4)
where is magnitude and is the phase of. We also use the term Fourier spectrum or simply,
the spectrum to refer to. Thus is called the magnitude spectrum and is called the phase
spectrum.
40
From equation (5.2) we can see that is a periodic function with period i.e.. We can interpret (5.1)
as Fourier coefficients in the representation of a perotic function. In the Fourier series analysis our attention
is on the periodic function, here we are concerned with the representation of the signal. So the roles of the
two equation are interchanged compared to the Fourier series analysis of periodic signals.
Now we show that if we put equation (5.2) in equation (5.1) we indeed get the signal.
Let
where we have substituted from (5.2) into equation (5.1) and called the result as.
Since we have used n as index on the left hand side we have used m as the index variable for the sum
defining the Fourier transform. Under our assumption that sequence is absolutely summable we can
interchange the order of integration and summation. Thus
(5.5)
if then
and
if then
=0
Thus in equation (5.5) there is only one non-zero term in RHS, corresponding to , and we get. This
result is true for all values of n and so equation (5.1) is indeed a representation of signal in terms
eigenfunctions
41
In above demonstration we have assumed that is absolutely summable. Determining the class of
signals which can be represented by equation (5.1) is equivalent to considering the convergence of the
infinite sum in equation (5.2). If we fix a value of then, RHS of equation (5.2) is a complex valued
series, whose partial sum is given by
The limit as if the partial sum exists if the series is absolutely summable.
by triangle inequality
Since the limit exists by our assumption the limit exists for every.
Furthermore it can be shown that the series converges uniformly to a continuous function of.
If a sequence has only finitely many non-zero terms then it is absolutely summable and so the Fourier
transform exists. Since a stable sequence is by definition, an absolutely summable sequence, its Fourier
transform also exits.
Example: Let
Thus the Fourier transform of the sequence exists if. The Fourier transform is
(5.6)
Where the last equality follows from sum of a geometric series, which exists if i.e..
Absolute summability is a sufficient condition for the existence of a Fourier transform. Fourier transform
also exists for square summable sequence.
For such signals the convergence is not uniform. This has implications in the design of discrete system for
filtering.
We also deal with signals that are neither so absolutely summable nor square summable. To deal with some
of these signals we allow impulse functions, which is not an ordinary function but a generalized function as
a Fourier transform. The impulse function is defined by the following properties
(a)
(c) if is continuous at
Since is a periodic function, let us consider
(5.7)
43
Since there is only one impulse in the interval of integration. Thus we can say that (5.7) represents Fourier
(5.8
)
as only one term corresponding to will be there in the interval of the integration
So the signal is when Fourier transform is given by (5.8). More generally if x[n] is sum of an
arbitrary set if complex exponentials
(5.9
)
Thus is a periodic impulse train, with impulses located at the frequencies of each of the
complex exponentials and at all points that are multiples of from these frequencies. An interval of
contains exactly one impulse from each of the summation in RHS of (5.9)
44
Example: Let
Hence
In this section we use the following notation. Let and be two signal, then their DTFT is denoted
by and. The notation
is used to say that left hand side is the signal x[n] whose DTFT is is given at right hand side.
If
and
then
This follows easily from the defining equation (5.2).
If
then
4. Time Reversal
This follows from property 3. If x[n] is real valued then , so and hence
which implies
and
That is real part of the Fourier transform is an even function of and imaginary part is an odd function of.
The magnitude spectrum is given by
Thus the phase spectrum is an odd function of. We denote the symmetric and antisymmetric part of a
function by
For continuous time signals we know that the Fourier transform of is given by. However if we define
a signal we run into difficulty as the index must be an integer. Thus if is an integer
say , then we get signal. This consists of taking sample of the original signal. Thus the DTFT
of this signal looks similar to the Fourier transform of a sampled signal. The result that resembles the
Fig 5.2
Here we can note the time frequency uncertainly. Since is expanded sequence, the Fourier
transform is compressed.
We have
This is the eigenfunction property of the complex exponential mentioned in the beginning of the chapter.
The fourier syntaxis equation (5.1) for the x[n] can be interpreted as a representation of in terms of
linear combinations of complex exponential with amplitude proportional to. Each of these complex
exponential is an eigenfunction of the LTI system and so the amplitude in the decomposition
Thus if
then
(5.20)
convolution in time domain becomes multiplication in the frequency domain. The fourier transform of the
impulse response is known as frequency response of the system.
This looks like convolution of two functions, only the interval of integration is to. and
one periodic functions, and equation (5.21) is called periodic convolution. Thus
The frequency response of systems characterized by linear constant coefficient difference equation.
As we have seen earlier, constant coefficient linear difference equation with zero initial condition can be
used to describe some linear time invariant systems.
(5.22)
Taking fourier transform of both sides of equation (5.22) and using linearity and time shifting property of
the Fourier transform we get
or
(5.23)
Thus we see that the frequency response is ratio of polynomials in the variable. The numerator coefficients
are the coefficients of in equation (5.22) and denominator coefficients are the coefficients
Example 2: Consider an LTI system initially at rest described by the difference equation
We can use the inverse fourier transform to get the impulse response
Recap
In last lecture you have learnt the following
Congratulations, you have finished Lecture 5. To view the next lecture select it from the left hand side
menu of the page
55
In the last chapter we studied fourier transform representation of aperiodic signal. Now we consider
periodic and finite duration sequences
As is continues time periodic signal, we would like to represent in terms of discrete time complex
exponential signals are given by
(6.1)
All these signals have frequencies is that are multiples of the some fundamental frequency, , and
thus harmonically related.
These are two important distinction between continuous time and discrete time complex exponential.
The first one is that harmonically related continuous time complex exponential are all distinct
for different values of k , while there are only N different signals in the set.
The reason for this is that discrete time complex exponentials which differ in frequency by integer
multiple of are identical. Thus
So if two values of k differ by multiple of N , they represent the same signal. Another difference
between continuous time and discrete time complex exponential is that for different k have
period which changes with k. In discrete time exponential, if k and N are relative prime than the
period is N and not N/k. Thus if N is a prime number, all the complex exponentials given by (6.1) will
have period N. In a manner analogous to the continuous time, we represent the periodic signal as
(6.2)
where
56
(6.3)
In equation (6.2) and (6.3) we can sum over any consecutive N values. The equation (6.2) is synthesis
equation and equation (6.3) is analysis equation. Some people use the faction 1 /N in analysis equation.
From (6.3) we can see easily that
Thus discrete Fourier series coefficients are also periodic with the same period N.
Example 1:
So, and , since the signal is periodic with periodic with period 5, coefficients are
also periodic with period 5, and.
Now we show that substituting equation (6.3) into (6.2) we indeed get.
(6.4)
Now the sum
if n - m multiple of N
and for ( n - m ) not a multiple of N this is a geometric series, so sum is
57
As m varies from 0 to N - 1, we have only one value of m namely m = n , for which the inner sum if non-
zero. So we set the RHS of (6.4) as.
Here we use the notation similar to last chapter. Let be periodic with period N and discrete
Fourier series coefficients be then the write
where LHS represents the signal and RHS its DFS coefficients
2. Linearity of DFS:
If
3. Shift of a sequence:
(6.5)
(6.6)
To prove the first equation we use equation (6.3). The DFS coefficients are given by
let n - m = l , we get
We can prove the relation (6.6) in a similar manner starting from equation (6.3)
4. Duality:
5.
From equation (6.2) and (6.3) we can see that synthesis and analysis equation differ only in sign of the
exponential and factor 1/N. If is periodic with period N , then is also periodic with
period N. So we can find the discrete fourier series coefficients of sequence.
Thus
59
comparing this with (6.3) we see that DFS coefficients of are the original periodic
sequence is reversed in time and multiplied by N. This is known as duality property. If
(6.7)
then
(6.8)
6. Time reversal:
putting m = - n we get
8. Time scaling:
Let us define
sequence is obtained by inserting ( m - 1) zeros between two consecutive values of. Thus
Thus is also periodic, but period is mN. The DFS coefficients are given by
putting
If we define then is periodic with period equal to least common multiple (LCM) of
M and N. The relationship between DFS coefficients is not simple and we omit it here.
9. Difference
10. Accumulation
Let us define
will be bounded and periodic only if the sum of terms of over one period is zero,
(6.15)
as inner sum can be recognized as from the synthesis equation. Thus
The sum in the equation (6.15) looks like convolution sum, except that the summation is over one
period. This is known as periodic convolution. The resulting sequence is also periodic with
period N. This can be seen from equation (6.15) by putting m + N instead of m.
The Duality theorem gives analogous result when we multiply two periodic sequences.
The DFS coefficients are obtained by doing periodic convolution of and and multiplying
the result by 1/N. We can also prove this result directly by starting from the analysis equation. The
periodic convolution has properties similar to the aperiodic (linear convolution).It is cumulative,
associative and distributes over additions of two signals.
The properties of DFS representation of periodic sequence are summarized in the Table 6.1
62
4.
5.
6.
7.
8.
(viewed as periodic with period mN)
(periodic with period mN)
9.
10.
(periodic only if )
11.
12.
13.
14.
15.
16.
Table 6.1
Example:
Consider the periodic impulse train
then
(6.16)
Note that defined by equation (6.16) will always be a periodic sequence with period N,
whether is of finite length N or not. But when has finite length N, we can recover the
sequence from by defining
(6.17)
This is because of has finite length N , then there is no overlap between terms
and for different values of.
Recall that if
n = kN + r, where
then n modulo N = r ,
i.e. we add or subtract multiple of N from n until we get a number lying between 0 to N - 1. We will use
((n))N to denote n modulo N. Then for finite length sequences of length N equation (6.16) can be
written as
(6.18)
We can extract from using equation (6.17). Thus there is one-to- one correspondance
between finite length sequences of length N , and periodic sequences of period N.
Given a finite length sequence we can associate a periodic sequence with it.
This periodic sequence has discrete Fourier series coefficients which are also periodic with
period N. From equations (6.2) and (6.3) we see that we need values of for
and for 0 = k = N - 1. Thus we define discrete Fourier transform of finite length sequence as
where is DFS coefficient of associated periodic sequence. From we can get by the
relation.
65
then from this we can get using synthesis equation (6.2) and finally using equation
(6.17). In equations (6.2) and (6.3) summation interval is 0 to N - 1, we can write X [k ] directly in terms
of x[n], and x[n] directly in terms of X[k] as
(6.19)
with this notation, DFT analysis and synthesis equations are written a follows
Analysis equation:
(6.20)
Synthesis equation:
(6.21)
If we use values of k and n outside the interval 0 to N - 1 in equation (6.20) and (6.21), then we will not
get values zero, but we will get periodic repetition of and respectively. In defining DFT, we
are concerned with values only in interval 0 to N - 1. Since a sequence of length M can also be
considered a sequence of length , we also specify the length of the sequence by saying N-
point-DFT, of sequence.
transform and discrete Fourier transform. The DFT values can be considered as samples
of
(6.22)
Since discrete Fourier transform is similar to the discrete Fourier series representation, the properties
are similar to DFS representation. We use the notation
1. Linearity
If two finite length sequence have length M and N , we can consider both of them with length greater
than or equal to maximum of M and N. Thus if
then
where all the DFTs are N-point DFT. This property follows directly from the equation (6.20)
Fig 6.1
We can see that is not a shift of sequence. Using the propertiesof the modulo arithmetic we
have
and
(6.23)
68
The shift defined in equation (6.23) is known as circular shift. This is similar to a shift of sequence in a
circular register.
Fig 6.2
(6.24)
and
(6.25)
4. Duality
We have the duality for the DFS coefficient given by , retaining one period of the
sequences the duality property for the DFT coefficient will become
5. Symmetry properties
We can infer all the symmetry properties of the DFT from the symmetry properties of the associated
periodic sequence and retaining the first period. Thus we have
and
Since
(6.26)
69
(6.27)
and are referred to as periodic conjugate symmetric and periodic conjugate anti-
symmetric parts of. In terms if these sequence the symmetric properties are
6. Circular convolution
We saw that multiplication of DFS coefficients corresponds of periodic convolution of the sequence.
Since DFT coefficients are DFS coefficients in the interval, , they will correspond to DFT of
the sequence retained by periodically convolving associated periodic sequences and retaining their first
period.
and then
Since we get
70
(6.30)
Properties of the Discrete Fourier transform are summarized in the table 6.2
Finite length sequence (length N) N-point DFT (length N)
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
Output of a linear time invariant-system is obtained by linear convolution of input signal with the
impulse response of the system. If we multiply DFT coefficients, and then take inverse transform we will
get circular convolution. From the examples it is clear that result of circular convolution is different from
the result of linear convolution of two sequences. But if we modify the two sequence appropriately we
can get the result of circular convolution to be same as linear convolution. Our interest in doing linear
convolution results form the fact that fast algorithms for computing DFT and IDFT are available. These
algorithms will be discussed in a later chapter. Here we show how we can make result of circular
convolution same as that of linear convolution.
(6.31)
as x[k] = 0 for. For hence. Similarly
for , so. Hence is possibly nonzero only for.
Now consider a sequence , DTFT is given by
writing
We get
If we take
we see that
(6.32)
72
However, if the length of is greater than may not be equal to for all values of l.
The sequence in equation (6.31) has the discrete Fourier transform
where and are N-point DFTs of and respectively. The sequence resulting
as the inverse DFT of is then by equation (6.32).
Thus, the circular convolution of two-finite length sequences can be viewed as linear convolution,
followed time aliasing, defined by equation (6.32). If N is greater than or equal to ( L + M - l ), then there
will be no time aliasing as the linear convolution produces a sequence of length ( L + M - l ). Thus we can
use circular convolution for linear convolution by padding sufficient number of zeros at the end of a
finite length sequence. We can use DFT algorithm for calculating the circular convolution.
73
=
where
(7.1)
Thus if the input signal is then output signal is. For real (i.e for ), equation (7.1)
is same as the discrete-time fourier transform. The in equation (7.1) is known as the bilateral z-
transform of the sequence. We define for any sequence of a sequence as
(7.2)
= (7.3)
This shows that is Fourier transform of the sequence. When the z-transform reduces to
the Fourier transform of. From equation (7.3) we see that for convergence of z-transform that Fourier
transform of the sequence converges. This will happen for some r and not for others. The
(7.4)
Fig 7.1
(7.5)
75
Fig 7.2
Here the ROC is inside the circle of radius. Comparing equation (7.4) and (7.5) we see that algebraic
form of and are same, but ROC are different and they correspond to two different
sequences. Thus in specifying z-transform, we have to give functional form and the region of
convergence.
Now we state some properties of the region of convergence
1. The ROC of consists of an annular region in the z-plane, centered about the origin. This
property follows from equation (7.3), where we see that convergence depends on only.
2. The ROC does not certain any poles. Since at poles does not converge.
3. The ROC is a connected region in z-plane. This property is proved in complex analysis.
4. If is a right sided sequence, i.e. , for , and if the circle is in the
ROC, then all finite values of , for which will also be in the ROC.
For a right sided sequence
is finite.
The first summation is finite as it consists of a finite number of terms. In the second summation
note that each term is less than as. Since is finite by our assumption that
circle with radius lies in ROC, the second sum is also finite. Hence values of z such
that lies in ROC, except when. At , the first summation will became infinite. So
if , i.e. the sequence is causal, the value will lie in the ROC.
5. If is left sided sequence, i.e. and lies in the ROC, the values of
function also lie in the ROC.
The proof is similar to the property 4. The point , will lie in the ROC if the sequence is
purely
anticausal
6. If is non zero for, , then ROC is entire z-plane except possibly , and/or.
In this case the consists of finite number of terms and therefore it converges if each term
infinite which is the case when is different from 0 or. lies in ROC, if ,
and lies in the ROC if.
7. If is two-sided sequence and if circle is in ROC, then ROC will consist of annular
region in z-plane, which includes. We can express a two sided sequence as sum of a right sided
sequence and a left sided sequence. Then using property 4 and 5 we get this property. Using
property 2 and 3 we see what ROC will be banded by circles passing through the poles.
77
(7.6)
the symbol indicates contour integration, over a counter clockwise contour in the ROC of. If consists
of ratio of polynomials one can use Cauchy integral theorem to calculate the contour integral. There are
some other alternative procedures also, which will be considered after discussing the properties of z-
transform.
78
1. Linearity
The z-transform of a linear combination of two sequence is given by
ROC contains
The algebraic form follows directly from the definition, equation (7.2). The linear combination is such
that some zero's can cancel the poles, then the region of convergence may be larger. For example if the
linear combination is a finite-length sequence, the ROC is entire z-plane except
at , like individual ROCs are. If the intersection of and is null set, the z-transform of the
linear combination will not exist.
2. Time shifting
If we shift the time sequence, we get
changing variable,
4. Differentiation of :
If we differentiate term by term we get
Thus
, except possibly
The ROC does not change (except , ). This follows from the property that is an
analytic function.
6. Time Reversal
We have
putting
7. Convolution of sequence
ROC contains
=
81
If there is pole-zero cancelation, the ROC will be larger than the common ROC of two sequence.
Convolution property plays an important role in analysis of LTI system. An LTI system, which produces a
delay of , has the transfer function , therefore delay of units is often depicted by
Fig 7.3
ROC contains
We can use the contour integration and the equation (7.6) to calculate inverse z-transform. This
equation has to be evaluated for all values of , which can be quite complicated in many cases. Here
we give two simple methods for the inverse transform computation.
where and are polynomials in. If degree of the numerator polynomial is greater
than or equal to the degree N of the denominator polynomial , we can divide by and
re-express as
where the degree of polynomial is strictly less than that of. For simplicity let us assume that all
where
Example: Let
=
84
The inverse z-transform depends on the ROC. If ROC is , then ROCs associated with each term is
outside a circle(so that common ROC is outside a circle), sequences are causal. Using linearity property
If the ROC is , the ROC of the term should be outside the circle , and ROC
If has multiple poles, the partial fraction has slightly different form. If has a pole of order s
If there are more multiple poles, there will be more terms like the third term.
85
Using linearity and differentiation properties we get some useful z-transform pairs given in Table 7.2
All
1.
3.
4.
5.
6.
7.
8.
9.
Example 2:
=
87
impulse response respectively. The is referred to as system function or transfer function of the
system. For on the unit circle , reduces to the frequency response of the system,
provided that unit circle is in the ROC for.
A causal LTI system has impulse response such that. Thus ROC of is exterior of a circle in z-
plane including. Thus a discrete time LTI system is causal if and only if ROC is exterior of a circle which
includes infinity.
An LTI system is stable if and only if impulse response is absolutely summable. This is equivalent to
saying that unit circle is in the ROC of.
For a causal and stable system ROC is outside a circle and ROC contains the unit circle. That means all the
poles are inside the unit circle. Thus a causal LTI system is stable if and if only if all the poles inside unit
circle.
88
We take the z-transform of both sides and use linearity and the time shift property to get
Thus the system function is always a rational function. We can write it by inspection. Numerator
polynomial coefficients are the coefficients of and denominator coefficients are coefficients
of. The difference equation by itself does not provide information about the ROC, it can be determined
by conditions like causality and stability.
The use of z-transform allows us to replace time domain operation such as convolution time shifting etc
with algebraic operations.
Fig 7.4
89
Fig 7.5
The z-transform of the interconnection of linear system can be obtained by algebraic means. For
example consider the feed back connection in figure 7.6
Fig 7.6
We have
=
or
90
Even though this course is primarily about the discrete time signal processing, most signals we
encounter in daily life are continuous in time such as speech, music and images. Increasingly discrete-
time signals processing algorithms are being used to process such signals. For processing by digital
systems, the discrete time signals are represented in digital form with each discrete time sample as
binary word. Therefore we need the analog to digital and digital to analog interface circuits to convert
the continuous time signals into discrete time digital form and vice versa. As a result it is necessary to
develop the relations between continuous time and discrete time representations.
T is called sampling period, the reciprocal of T is called the sampling frequency. The frequency domain
representation of is given by its Fourier transform
where the frequency-domain representation of is given by its discrete time fourier transform
To establish relationship between the two representation, we use impulse train sampling. This should
be understood as mathematically convenient method for understanding sampling. Actual circuits can
not produce continuous time impulses. A periodic impulse train is given by
(8.1)
Fig 8.1
(8.2)
using sampling property of the impulse , we get
91
(8.3)
Fig 8.2
where
Using the property that it follows that
(8.4)
Thus is a periodic function of with period , consisting of superposition of shifted
replicas of scaled by. Figure 8.3 illustrates this for two cases.
92
Fig 8.3
Sampling Theorem
Let be a bandlimited signal with , for. Then is uniquely determined by its
samples , if
The frequency is called Nyquist rate, while the frequency is called the Nyquist frequency.
The signal can be reconstructed by passing through a lowpass filter.
93
Fig 8.4
(8.5)
Assuming we get
(8.6)
The above expression (8.5) shows that reconstructed continuous time signal is obtained by
shifting in time the impulse response of low pass filter by an amount nT and scaling it in
amplitude by a factor for all integer values n. The interpolation using the impulse
response of an ideal low pass filter in (8.6) is referred to as bandlimited interpolation, since it
implements reconstruction if is bandlimited and sampling frequency satisfies the condition of the
sampling theorem. The reconstruction is in the mean square sense i.e.
Hence
Thus at the sampling instants the signal values of the original and reconstructed signal are same for any
sampling frequency.
94
(8.7)
Since , we get the DTFT
(8.8)
comparing them we see that
or
(8.9)
Comparing equation (8.4) and(8.9) we see that is simply a frequency scaled version of
with frequency scaling specified by. This can be thought of as a normalization of frequency axis so that
Fig 8.5
95
(8.10)
Fig 8.6
The ideal system that takes sequence as input and produces given equation (8.5) is called
ideal discrete to continuous time convertor and is depicted in Figure (8.7)
Fig 8.7
Fig 8.8
The over all system has as input and as output. We have the following relations among the
signals.
96
and
(8.11)
If , for and we use ideal lowpass reconstruction filter then only the term for k = 0
is passed by the filter and we get
Thus if is bandlimited and sampling rate is above the Nyquist rate, the output is related to the
input by
where
(8.12)
That is overall system is equivalent to a linear time invariant system for bandlimited signal.
The LTI property of the system depends on two factors. First the discrete time system is LTI and second
the input signals are bandlimited to half the sampling frequency
Example
Let us consider the system in figure 8.8 with
The frequency response is periodic with period. For a bandlimited input signal, sampled above the
Nyquist rate, the overall system will behave like a LTI continuous time system with
97
Thus the equivalent system is ideal lowpass system with cut off frequency. With a fixed discrete time
filter by changing T we can change the cut off frequency of the equivalent system. Spectra for various
signals are depicted in figure 8.9.
FIGURE 8.9
From figure (8.9) we can see that ever if there is same aliasing due to sampling, if the components are
filtered out by the discrete time system, the over all transfer function will remain same. Thus the
requirement is
instead of for no aliasing.
98
Figure 8.10
We have
Therefore the overall system behaves as a discrete time system where frequency response is
(8.13)
Example
Let us consider a discrete time system with frequency response
but when is not an integer, we can not write the above equation. Suppose that we implement this
using system in figure (8.10). Then we have
(8.14)
So that overall system has frequency response. The equation (8.13) represents a time delay secs in
continuous time whether is integer or not, thus
99
The signal is bandlimited interpolation of and is obtained by sampling. Thus y[n] are
samples of band limited signal delayed by.
Fig 8.11
FIGURE 8.12
100
(8.15)
where
Thus we get
(8.16)
Figure 8.13 illustrates signals and their spectra
101
102
FIGURE 8.13
of do not overlap) and the signal can be recovered from by passing through an ideal
low-pass filter with gain equal to N and cut off equal to
FIGURE 8.14
If , there will be aliasing, and so will be different from. However as in continuous time
case
with we get
103
The sampled signal in equation (8.13) has ( N - 1) samples out of every N samples as zeros. We define a
new sequence which retains only the non zero values
(8.17)
this is called a decimated sequence, whatever may be the value of. The DTFT of the decimated request
is given by
(8.18)
For the signal shown in figure (8.13) the sequence and its spectrum are illustrated in figure
(8.15)
104
Fig 8.15
If the original signal was obtained by sampling a continuous time signal, the process of
decimation can be viewed as reduction in the sampling rate by a factor of N. With this interpretation,
the process of decimationis often referred as down sampling. The block diagram for this is shown in
figure (8.16)
Fig 8.16
There are situations in which it is useful to convert a sequence to a higher equivalent sampling rate. This
process is referred to as upsampling or interpolation. This process is reverse of the downsampling.
Given a sequence we obtain an expanded sequence by inserting (L - 1) zero.
(8.19)
The interpolated sequence is obtained by low pass filtering of
105
(8.20)
(8.21)
Signals and their spectra interpolation are shown in figure (8.17)
106
107
Fig 8.17
We can get a non integer change in rate if it is ratio of two integers by using upsampling and
downsampling operations.
108
In many applications of signal processing we want to change the relative amplitudes and frequency
contents of a signal. This process is generally referred to as filtering. Since the Fourier transform of the
output is product of input Fourier transform and frequency response of the system, we have to use
appropriate frequency response.
Fig 9.1
109
The ideal filters have a frequency response that is real and non-negative, in other words, has a zero
phase characteristics. A linear phase characteristics introduces a time shift and this causes no distortion
in the shape of the signal in the passband.
Since the Fourier transfer of a stable impulse response is continuous function of , can not get a stable
ideal filter.
Filter specification
Since the frequency response of the realizable filter should be a continuous function, the magnitude
response of a lowpass filter is specified with some acceptable tolerance. Moreover, a transition band is
specified between the passband and stop band to permit the magnitude to drop off smoothly. Figure
(9.2) illustrates this
110
Fig 9.2
In the stopband
The frequencies and are respectively, called the passband edge frequency and the stopband
edge frequency. The limits on tolerances and are called the peak ripple value. Often the
specifications of digital filter are given in terms of the loss function , in dB.
The loss specification of digital filter are
Some times the maximum value in the passband is assumed to be unity and the maximum passband
deviation, denoted as is given the minimum value of the magnitude in passband. The
maximum stopband magnitude is denoted by. The quantity is given by
111
Fig 9.3
If the phase response is not specified, one prefers to use IIR digital filter. In case of an IIR filter design,
the most common practice is to convert the digital filter specifications to analog low pass prototype
filter specifications, to determine the analog low pass transfer function meeting these
specifications, and then to transform it into desired digital filter transfer function. This methods is used
for the following reasons:
1. Analog filter approximation techniques are highly advanced.
2. They usually yield closed form solutions.
3. Extensive tables are available for analog-design.
4. Many applications require the digital solutions of analog filters.
The transformations generally have two properties (1) the imaginary axis of the s-plane maps into unit
circle of the z-plane and (2) a stable continuous time filter is transformed to a stable discrete time filter.
In the impulse variance design procedure the impulse response of the impulse response of the
discrete time system is proportional to equally spaced samples of the continues time filter, i.e.,
where Td represents a sampling interval, since the specifications of the filter are given in discrete time
domain, it turns out that Td has no role to play in design of the filter. From the sampling theorem we
know that the frequency response of the discrete time filter is given by
112
Since any practical continuous time filter is not strictly bandlimited there issome aliasing. However, if the
continuous time filter approaches zero at high frequencies, the aliasing may be negligible. Then the
frequency response of the discrete time filter is
We first convert digital filter specifications to continuous time filter specifications. Neglecting aliasing, we
get specification by applying the relation
(9.2)
where is transferred to the designed filter H(z), we again use equation (9.2) and the parameter
Td cancels out.
Let us assume that the poles of the continuous time filter are simple, then
Then
We see that a pole at in the s-plane is transformed to a pole at Td in the z-plane. If the
continuous time filter is stable, that is , then the magnitude of will be less than 1, so
the pole will be inside unit circle. Thus the causal discrete time filter is stable. The mapping of zeros is not
so straight forward.
113
Example:
Design a lowpass IIR digital filter H(z) with maximally flat magnitude characteristics. The passband edge
frequency is with a passband ripple not exceeding 0.5dB. The minimum stopband attenuation
at the stopband edge frequency of is 15 dB.
We assume that no aliasing occurs. Taking , the analog filter has , the
passband ripple is 0.5dB, and minimum stopped attenuation is 15dB. For maximally flat frequency
response we choose Butterworth filter characteristics. From passband ripple of 0.5 dB we get
at passband edge.
at stopped edge
This is for normalized frequency of 1 rad/s. Replace s by to get , from this we get
Bilinear Transformation
This technique avoids the problem of aliasing by mapping axis in the s-plane to one revaluation of
the unit circle in the z-plane.
If is the continues time transfer function the discrete time transfer function is detained by
replacing s with
(9.3)
Rearranging terms in equation (9.3) we obtain.
Substituting , we get
If , it is then magnitude of the real part in denominator is more than that of the numerator and so.
Similarly if , than for all. Thus poles in the left half of the s-plane will get mapped to the
poles inside the unit circle in z-plane. If then
rearranging we get
115
or
(9.5)
or
(9.6)
The compression of frequency axis represented by (9.5) is nonlinear. This is illustrated in figure 9.4.
Fig 9.4
Because of the nonlinear compression of the frequency axis, there is considerable phase distortion in the
bilinear transformation.
Example
116
We use the specifications given in the previous example. Using equation (9.5) with we get
1.
2.
5. is called maximally flat at origin, since all order derivative exist and they are zero at
The poles of a Butterworth filter lie on circle of radius in s-plane.
There are two types of Chebyshev filters, one containing ripples in the passband (type I) and the other
containing a ripple in the stopband (type II). A Type I low pass normalizer Chebyshev filter has the
magnitude squared frequency response.
with
Chebyshev filters have the following properties
1. The magnitude squared frequency response oscillates between 1 and within the
passband, the so called equiripple and has a value of at , the normalized cut off
frequency.
2. The magnitude response is monotonic outside the passband including transitionand stopband.
3. The poles of the Chebysher filter lie on an ellipse in s-plane.
An elliptic filter has ripples both in passband and in stopband. The square magnitude frequency response
is given by
117
The transformations all take the form of replacing the in by some function of.
cutoff cutoff
LPF HPF
LPF BPF
LPF BSF
Starting with a set of digital specifications and using the inverse of the design equation given in table 9.1,
a set of lowpass digital requirements can be established. A LPF digital prototype filter is then
selected to satisfy these requirements and the proper digital to digital transformation is applied to give
the desired.
118
Example
Using the digital to digital transformation, find the system function for a low-pass digital filter that
satisfies the following set the requirements (a) monotone stop and passband (b)-3dB cutoff frequency
of (c) attenuation at and past is at least 15dB.
Because of monotone requirement, a Butterworth filter is selected. The required n is given by
rounded to 2.
For we get from table 9.1. , From standard tables (or MATLAB) we find
standard 2 nd order Butterworth filter with cut off and then apply the digital transform to get
If represents the impulse response of a discrete time linear system a necessary and sufficient
condition for linear phase is that have finite duration N , that it be symmetric about its mid
point, i.e.
For N odd
For N even we get a non-integer delay, which will cause the value of the sequenceto change, [See
continuous time implementation of discrete time system, for interpretation of non-integer delay].
One approach to design FIR filters with linear phase is to use windowing.
The easiest way to obtain an FIR filter is to simply truncate the impulse response of an IIR filter.
If is the impulse response of the designed FIR filter, then an FIR filter with
impulseresponse can be obtained as follows.
For example if is ideal low pass filter and is rectangular window is measured version
of the ideal low pass frequency response.
Fig 9.5
In general, the index the main lobe of , the more spreading where as the narrower the
main lobe (larger N), the closer comes to. In general, we are left with a trade-off of making N
large-enough so that smearing is minimized, yet small enough to allow reasonable implementation.
120
Much work has been done on adjusting to satisfy certain main lobe and side lobe requirements.
Some of the commonly used windows are give in below.
(a) Rectangular
(c) Hanning
(d) Harming
(e) Blackman
(f) Kaiser
The main lobe width and first side lobe attenuation increase as we proceed down the window listed
above.
121
An ideal lowpass filter with linear phase and cut off is characterized by
Since this is symmetric about , if we change and use one of the windows listed
above the will get linear phase FIR filter. Transition width and minimum stopped attenuation are listed
in the Table 9.3.
A system with input and output could be realized by the following constant coefficient
difference equation
122
The output is seen to be weighted sum of input and past inputs and past
outputs. Another realization can be obtained by uniting as product of two transfer
functions and , where contains only the denominator or poles and contains
only the numerator or zeros as follows
where
Fig 9.7
The output of the filter is obtained by calculating the intermediate result obtained from operating
on the input with filter and then operating on w[n] with filter.Thus we obtain
or
123
and
or
Fig 9.8
Upon close examination of Fig 9.8, it can be seen that the two branches of delay elements can be
combined as they both refer to delayed versions of and upon simplification, the direct form II
canonical realization is obtained as shown in figure 9.9.
124
In this form the number of delay element is max (M,N). It can be shown that this is the minimum number
of delay elements that are required to implement the digital filter. This does not mean that this is the
best realization. Immunity to roundoff and quantization are very important considerations.
An important special case that is used as building block occurs when. Thus is ratio of two qualities
in , called biquadratic section, and is given by
The alternative form is found to be useful for amplitude scaling for improving performance file filter
operation. This form is shown in figure 9.10.
Fig 9.10
125
Fig 9.11
could be broken up in many ways; however the most common method is to use biquadratic
sections. Thus
by letting and equal to zero we get bilinear section. Even among the biquadratic sections we
have many choices as how we pair poles and zeros. Also the order of the sections can be different
Example:
Final cascade realization of
Divides both numerator and denominator by and factoring 8 as , one possible rearrangement
for is
Fig 9.12
126
Parallel Realizations:
The transfer function H ( z ) could be written as a sum of transfer functions as
follows:
One parallel form results when are all selected to be of the following form for
If , we will have a section of FIR filter, obtained by performing long division. Once
denominator polynomial has degree more than the numerator polynomial we perform the partial
fraction expansion. The resulting structure is shown in figure 9.13.
Fig 9.13
Example:
Find the parallel form for the filter given in last example.
using direst form realization for individual section we get the structure shown in figure 9.14.
127
Fig 9.14
Apart from these there exist a number of other realizations like lattice form, state variable realization etc.
128
129
130
131
132