EC6303 Notes PDF
EC6303 Notes PDF
EC6303 Notes PDF
com
UNIT I
www.rejinpaul.com
www.rejinpaul.com
SIGNAL
Signal is a physical quantity that varies with
respect to time , space or any other
independent variable
Eg x(t)= sin t.
the major classifications of the signal
are:
(i) Discrete time signal
(ii) Continuous time signal
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
SIGNAL
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
Fourier Series
The Fourier series represents a periodic signal in terms of
frequency components:
p 1
ik0n
x(n) = Xk e x( t ) = Xk e ik0 t
k =0 k =
We get the Fourier series coefficients as follows:
1 p 1 1p
Xk = x ( n )e ik 0n X k = x ( t )e ik 0 t dt
p n=0 p0
The complex exponential Fourier coefficients are a sequence of
complex numbers representing the frequency component 0k.
www.rejinpaul.com
www.rejinpaul.com
Fourier series
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
UNIT II
www.rejinpaul.com
www.rejinpaul.com
Fourier Transform
www.rejinpaul.com
www.rejinpaul.com
H ( f ) = h (t )e 2ift dt
h (t ) = H ( f )e 2ift df
www.rejinpaul.com
www.rejinpaul.com
1p 1 p/2
X k = x ( t )e ik 0 t dt = x ( t ) e ik 0 t
dt
p0 p p / 2
to aperiodic signals as well. The continuous-time Fourier
series is not defined for aperiodic signals, but we call the
formula
X() = x( t )e i t dt the (continuous time)
Fourier transform.
www.rejinpaul.com
www.rejinpaul.com
Inverse Transforms
If we have the full sequence of Fourier coefficients for a periodic
signal, we can reconstruct it by multiplying the complex
sinusoids of frequency 0k by the weights Xk and summing:
p 1
x(n) = Xk e ik0n x( t ) = Xk eik0 t
k =0 k =
1 i n 1 i t
x(n) =
2
X()e d x( t ) =
2
X()e d
www.rejinpaul.com
www.rejinpaul.com
in in i0
X( ) = x(n)e = (n)e =e =1
n = n =
The delta functions contain all frequencies at equal amplitudes.
Roughly speaking, thats why the system response to an impulse
input is important: it tests the system at all frequencies.
www.rejinpaul.com
www.rejinpaul.com
Laplace Transform
Lapalce transform is a generalization of the Fourier transform in the sense
that it allows complex frequency whereas Fourier analysis can only
handle real frequency. Like Fourier transform, Lapalce transform allows
us to analyze a linear circuit problem, no matter how complicated the
circuit is, in the frequency domain in stead of in he time domain.
Mathematically, it produces the benefit of converting a set of differential
equations into a corresponding set of algebraic equations, which are much
easier to solve. Physically, it produces more insight of the circuit and
allows us to know the bandwidth, phase, and transfer characteristics
important for circuit analysis and design.
Most importantly, Laplace transform lifts the limit of Fourier analysis to
allow us to find both the steady-state and transient responses of a linear
circuit. Using Fourier transform, one can only deal with he steady state
behavior (i.e. circuit response under indefinite sinusoidal excitation).
Using Laplace transform, one can find the response under any types of
excitation (e.g. switching on and off at any given time(s), sinusoidal,
impulse, square wave excitations, etc.
www.rejinpaul.com
www.rejinpaul.com
Laplace Transform
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
system
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
Time-Invariance &Causality
X(n-k) y(n-k)
www.rejinpaul.com
www.rejinpaul.com
Convolution
The input and output signals for LTI
systems have special relationship in terms
of convolution sum and integrals.
Y(t)=x(t)*h(t) Y[n]=x[n]*h[n]
www.rejinpaul.com
www.rejinpaul.com
UNIT III
www.rejinpaul.com
www.rejinpaul.com
Sampling theory
The theory of taking discrete sample values (grid of color
pixels) from functions defined over continuous domains
(incident radiance defined over the film plane) and then
using those samples to reconstruct new functions that are
similar to the original (reconstruction).
Sampler: selects sample points on the image plane
Filter: blends multiple samples together
www.rejinpaul.com
www.rejinpaul.com
Sampling theory
For band limited function, we can just
increase the sampling rate
However, few of interesting functions in
computer graphics are band limited, in
particular, functions with discontinuities.
It is because the discontinuity always falls
between two samples and the samples
provides no information of the discontinuity.
www.rejinpaul.com
www.rejinpaul.com
Sampling theory
www.rejinpaul.com
www.rejinpaul.com
Aliasing
www.rejinpaul.com
www.rejinpaul.com
Z-transforms
Fordiscrete-time systems, z-transforms play
the same role of Laplace transforms do in
continuous-time systems
Bilateral Forward z-transform Bilateral Inverse z-transform
1
H [ z] =
n =
h[n ] z n h[n] =
2 j R
H [ z ] z n +1dz
www.rejinpaul.com
www.rejinpaul.com
Region of Convergence
Region of the complex Four possibilities (z=0
z-plane for which is a special case and
forward z-transform may or may not be
converges Im{z} included) Im{z}
Entire Disk
plane Re{z} Re{z}
Im{z} Im{z}
Intersection
Complement of a disk and
of a disk Re{z} complement Re{z}
of a disk
www.rejinpaul.com
www.rejinpaul.com
Z-transform Pairs
h[n] = [n] h[n] = an u[n]
0
[n] z = [n] z = 1
a u[n] z
n n
H [ z] = H [ z] = n n
n = n =0
n =
Region of convergence:
a
n
= a n z n =
entire z-plane n =0 n =0 z
1 a
= if <1
h[n] = [n-n1]1 1
a z
H [ z ] = [n 1] z = [n 1] z n = z 1 z
n = n =1
Stability
Rule #1: For a causal sequence, poles are
inside the unit circle (applies to z-transform
functions that are ratios of two polynomials)
Rule #2: More generally, unit circle is
included in region of convergence. (In
continuous-time, the imaginary axis would
be in the region of convergence
n
Z 1
of the
a u[n] for z > a
Laplace transform.) 1
1 a z
Inverse z-transform
c + j
1
f [n] =
2j c j
F [z ]z n 1dz
Example
X [ z] =
z 2 + 2z +1 Ratio of polynomial z-
3 1
z2 z +
2 2
domain functions
1 + 2 z 1 + z 2 Divide through by the
X [ z] =
3 1
1 z 1 + z 2 highest power of z
2 2
Factor denominator into
1 + 2 z 1 + z 2
X [ z] = first-order factors
1 1 1
1 z 1 z( )
2 Use partial fraction
X [ z ] = B0 +
A1
+
A2 decomposition to get
1 1 1 z 1
1 z
2
first-order terms
www.rejinpaul.com
www.rejinpaul.com
Example (cont)
2
1 2 3 1
z z + 1 z 2 + 2 z 1 + 1 Find B0 by
2 2
z 2 3z 1 + 2 polynomial division
5 z 1 1
1 + 5 z 1
X [ z] = 2 +
1 1 1
Express in terms of
1 z 1 z ( )
2 B0
1 + 2 z 1 + z 2 1+ 4 + 4
A1 = = = 9
1 z 1 z 1 = 2
1 2
Solve for A1 and A2
1 + 2 z 1 + z 2 1+ 2 +1
A2 = = =8
1 1
1 z 1
2 z 1 =1 2
www.rejinpaul.com
www.rejinpaul.com
Example (cont)
Express X[z] in terms of B0, A1, and A2
9 8
X [ z] = 2 +
1 1 1 z 1
1 z
2
Use table to obtain inverse z-transform
n
1
x[n] = 2 [n] 9 u[n] + 8 u[n]
2
Z-transform Properties
Linearity
a1 f1 [n] + a2 f 2 [n] a1 F1 [z ] + a2 F2 [z ]
n =1
www.rejinpaul.com
www.rejinpaul.com
Z-transform Properties
Convolution definition
f1 [n] f 2 [n] = f [m] f [n m]
m =
1 2
Take z-transform
Z { f1 [n] f 2 [n]} = Z f1 [m] f 2 [n m] Z-transform definition
m =
= f1 [m] f 2 [n m] z n Interchange summation
n = m =
Substitute r = n - m
= f [m] f [n m]z
m =
1
n =
2
n
Z-transform definition
=
m =
f1 [m] f 2 [r ]z (r + m )
r =
m
= f1 [m]z f 2 [r ]z r
m= r =
= F1 [z ]F2 [z ]
www.rejinpaul.com
www.rejinpaul.com
UNIT IV
www.rejinpaul.com
www.rejinpaul.com
Introduction
Impulse response h[n] can fully characterize a LTI
system, and we can have the output of LTI system as
www.rejinpaul.com
www.rejinpaul.com
phase
Y (e j ) = X ( e j ) + H ( e j )
www.rejinpaul.com
www.rejinpaul.com
System Function
a y[n k ] = b x[n k ]
k =0
k
k =0
k
N M
k
a z
k =0
k
Y ( z ) = k X (z )
b z k
k =0
Compute the z-transform
M
Y (z ) k
b z
k =0
k
H (z ) = = N
X (z )
k
a z
k =0
k
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
Second-order System
Suppose the system function of a LTI system is
(1 + z 1 )2
H ( z) = .
1 1 3 1
(1 z )(1 + z )
2 4
www.rejinpaul.com
www.rejinpaul.com
h[n] <
n =
a 1 a 1 Re a b
Re Re
www.rejinpaul.com
www.rejinpaul.com
G ( z ) = H ( z ) H i ( z ) = 1 g [n ] = h[n ] hi [n ] = [n ]
1 1
Hi ( z) = j
H i (e ) =
H ( z) H ( e j )
The ROCs of H ( z ) and H i ( z ) overlap.
must
Useful for canceling the effects of another system
See the discussion in Sec.5.2.2 regarding ROC
www.rejinpaul.com
www.rejinpaul.com
All-pass System
A system of the form (or cascade of these)
1
z a pole : a = re j
H Ap (Z ) =
1 az 1 zero : 1 / a* = r 1e j
j j
e a 1 a * e
H Ap (e j ) = j
= e j
j
1 ae 1 ae
H Ap (e j ) = 1
www.rejinpaul.com
www.rejinpaul.com
Causal/stable: ek , d k < 1
www.rejinpaul.com
www.rejinpaul.com
0.8
Re
4 3 0.5
2
3 4
pole : re j reciprocal
& conjugate
zero : r 1e j
www.rejinpaul.com
www.rejinpaul.com
Minimum-Phase System
Minimum-phase system: all zeros and all poles are
inside the unit circle.
The name minimum-phase comes from a property of the
phase response (minimum phase-lag/group-delay).
Minimum-phase systems have some special properties.
When we design a filter, we may have multiple choices to
satisfy the certain requirements. Usually, we prefer the
minimum phase which is unique.
All systems can be represented as a minimum-phase
system and an all-pass system.
www.rejinpaul.com
www.rejinpaul.com
UNIT V
www.rejinpaul.com
www.rejinpaul.com
Example
y[n] = a1y[n 1] + a2y[n 2] + b0x[n]
www.rejinpaul.com
www.rejinpaul.com
Direct Form I
N M
a y[n k ] = b x[n k ]
k =0
k
k =0
k
www.rejinpaul.com
www.rejinpaul.com
Direct Form I M
k
b
k =0
z k
H(z ) = N
1 ak z k
Transfer function
can
be written as
k =1
M
1 k
H z = H2 z H1 z =
( ) ( ) ( ) bk z
N
k k = 0
1 ak z
k =1
M k
V z = H1 z X z = bk z X(z )
( ) ( ) ( ) M
k =0 v[n] = b x[n k ]
k
N
1 ak z
k
k =1
www.rejinpaul.com
www.rejinpaul.com
Alternative Representation
Replace order of cascade
LTI systems
M
1
H(z ) = H (z )H (z ) = b z k
1
1 2 k N
k =0
az
k =1
k
k
N
w[n] = a w[n k ] + x[n]
k
k =1
1
W(z ) = H2 (z )X(z ) = X(z ) M
N y[n] = b w[n k ]
k
1 ak z
k
k =0
k =1
M
Y (z ) = H1 (z )W(z ) = bk z k W(z )
k =0
www.rejinpaul.com
www.rejinpaul.com
M
y[n] = b w[n k ]
k =0
k
www.rejinpaul.com
www.rejinpaul.com
Direct Form II
No need to store the same data
twice in previous system
So we can collapse the delay
elements into one chain
This is called Direct Form II or
the Canonical Form
Theoretically no difference
between Direct Form I and II
Implementation wise
Less memory in Direct II
Difference when using
finite-precision arithmetic
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
Example
Representation of Direct Form II with signal
flow graphs w1 [n] = aw4 [n] + x[n]
w2 [n] = w1 [n]
w3 [n] = b0w2 [n] + b1w4 [n]
w4 [n] = w2 [n 1]
y[n] = w3 [n]
www.rejinpaul.com
www.rejinpaul.com
Determination of System
Function from Flow Graph
w1 [n] = w4 [n] x[n]
w2 [n] = w1 [n]
w3 [n] = w2 [n] + x[n]
w4 [n] = w3 [n 1]
y[n] = w2 [n] + w4 [n]
W1 (z ) = W4 (z ) X(z ) X(z ) z 1 1
( )
W2 (z ) =
W2 (z ) = W1 (z ) 1 z 1 Y (z ) z 1
H(z ) = =
W3 (z ) = W2 (z ) + X(z ) X(z )z 1 (1 ) X(z ) 1 z 1
W4 (z ) =
W4 (z ) = W3 (z )z 1 1 z 1 h[n] = n 1u[n 1] n +1u[n]
Y (z ) = W2 (z ) + W4 (z ) Y (z ) = W2 (z ) + W4 (z )
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
M1
b0k + b1k z 1 b2k z 2
H(z ) = 1
k =1 1 a1k z a2k z 2
www.rejinpaul.com
www.rejinpaul.com
Example
1 2 1 1
H(z ) =
1 + 2z + z (1 + z =
)(1 + z )
1 2 1 1
1 0.75z + 0.125z (1 0.5z )(1 0.25z )
1 1
=
(1 + z ) (1 + z )
1 1
(1 0.5z ) (1 0.25z )
www.rejinpaul.com
www.rejinpaul.com
Example
Partial Fraction Expansion
1 + 2z 1 + z 2 18 25
H(z ) = = 8 +
1 0.75z 1 + 0.125z 2 (1 0.5z 1
) ( 1 0.25z 1 )
www.rejinpaul.com
www.rejinpaul.com
Transposed Forms
Linear signal flow graph property:
Transposing doesnt change the input-output
relation 1
H(z ) = 1
Transposing:1 az
Reverse directions of all branches
Interchange input and output nodes
Example:
www.rejinpaul.com
www.rejinpaul.com
Example
Transpose
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
www.rejinpaul.com
M M / 2 1 M
y[n] = h[k ]x[n k ] = h[k ]x[n k ] + h[M / 2]x[n M / 2] + h[k ]x[n k ]
k =0 k =0 k = M / 2 +1
M / 2 1 M / 2 1
= h[k ]x[n k ] + h[M / 2]x[n M / 2] + h[M k ]x[n M + k ]
k =0 k =0
M / 2 1
= h[k ](x[n k ] + x[n M + k ]) + h[M / 2]x[n M / 2]
k =0
www.rejinpaul.com
www.rejinpaul.com
Structures for Linear-Phase FIR
Systems
Structure for even M
www.rejinpaul.com