Professional Documents
Culture Documents
Emb DSP1
Emb DSP1
Emb DSP1
2/1/2013
Amit Kulkarni
What Is DSP?
Analog Computer
a bit loud
Digital Computer
DSP
ADC 1010 1001 DAC
OUTPUT
2/1/2013
Amit Kulkarni
Communication Ports
Serial Parallel
PORTS
Multiply
0 1 0 1 5 x 8 x x 4 x x 2 x xShifted 1 x and 0011 0011 0011 0011 3
MAC Operation Typically 70 Clock Cycles With Ordinary Processors Typically 1 Clock Cycle With Digital Signal Processors
. . .
2/1/2013
Amit Kulkarni
5 ns
1976
1998 YEARS
2/1/2013
Amit Kulkarni
Digital Computers
von Neuman Machine
A
INPUT/ OUTPU T
Harvard Architecture
A A
ARITHMETIC LOGIC UNIT INPUT/ OUTPUT
STORED PROGRAM
D
STORED DATA
2/1/2013
Amit Kulkarni
DSP Development
ADD A, B 11100010010100001001
ASSEMBLER HIGH-LEVEL LANGUAGE
CODE
TEST
EMULATOR
S/W DESIGN
N DSP
OK?
Y
PRODUCT
2/1/2013
Amit Kulkarni
2/1/2013
Amit Kulkarni
Programmability
One Hardware = Many Tasks
SOFTWARE 1 SOFTWARE 2 SOFTWARE N LOW-PASS FILTER MUSIC SYNTHESIZER
. .
SAME HARDWARE
. . MOTOR CONTROL
2/1/2013
Amit Kulkarni
Analog Variability
Analog Circuits are affected by
Temperature Aging
Tolerance of Components
Two Analog Systems using the same design and components may differ in performance
1k + 10 years =
1.1k
2/1/2013
Amit Kulkarni
10
Digital Repeatability
Perfect Reproducibility
Nearly identical performance from unit to unit Performance not affected by tolerance No drift in performance due to temperature or aging Guaranteed accuracy
2/1/2013
Amit Kulkarni
11
Performance
Some special functions are best implemented digitally
Lossless Compression
frequency f1 f2
frequency
2/1/2013
Amit Kulkarni
12
2/1/2013
Amit Kulkarni
13
Analog Advantages
Low cost and simplicity in some applications
Attenuators/amplifiers Simple filters
Wide bandwidth (GHz) Low signal levels Infinite effective sampling rate
Infinite resolution in frequency No aliasing/reconstruction issues
2/1/2013
Amit Kulkarni
14
Nearly identical performance from unit to unit Matched circuits cost less
High noise immunity In many applications DSP offers higher performance and lower cost
CD players versus phonographic turntable
2/1/2013
Amit Kulkarni
15
Analog circuits are required to pre-process low level signals before ADC Analog filters may be required to limit the bandwidth of signals
Anti-alias (before ADC) and reconstruction filters (after DAC)
2/1/2013
Amit Kulkarni
16
Number Systems
Represent numbers digitally
Decimal 2 Digit Number Digit Number 128 27 7 64 26 6 32 25 5 16 24 4 8 23 3 4 22 2 2 21 1 1 20 0
0 2
7
0 2
6
0 2
5
0 2
4
0 2
3
0 2
2
2+ 2
1
1= 2
0
7 0
6 0
5 0
4 0
3 0
2 0
1 1
0 1 0000 0011
Decimal 26 in binary
Decimal 2
Digit Number
0 2
7
0 2
6
0 2
5
16+ 2
4
8+ 2
3
0 2
2
2= 2
1
0 2
0
26
7 0
6 0
5 0
4 1
3 1
2 0
1 1
0 0 0001 1010
2/1/2013
Amit Kulkarni
17
8+ 2
3
4+ 2
2
2+ 2
1
1= 2
0
15
Binary Hex
1 F
1111 F
0 2
7
0 2
6
0 2
5
16+ 2
4
8+ 2
3
0 2
2
2= 2
1
0 2
0
26
7 0
6 0 1
5 0
4 1
3 1
2 0 A
1 1
0 0 0001 1010 1A
2/1/2013
Amit Kulkarni
18
Signed Integers
Signed magnitude integers
Signed Decimal 2 3 -2 -3 Hex Sign 00 00 00 02 00 00 00 03 80 00 00 02 80 00 00 03 0 0 1 1 Binary Number 000 0000 0000 0000 0000 0000 0000 0010 000 0000 0000 0000 0000 0000 0000 0011 000 0000 0000 0000 0000 0000 0000 0010 000 0000 0000 0000 0000 0000 0000 0011
2/1/2013
Amit Kulkarni
19
2/1/2013
Amit Kulkarni
20
Twos Complement
Conversion to twos complement notation
Action
Signed integer Strip sign bit Invert Add one Twos complement Hex
Decimal
Sign -2 1 0 1 1 1 F
Binary
Number 000 0000 0000 0000 0000 0000 0000 0010 000 0000 0000 0000 0000 0000 0000 0010 111 1111 1111 1111 1111 1111 1111 1101 1 111 1111 1111 1111 1111 1111 1111 1110 F F F F F F E
Hex
Sign FF FF FF FE 00 00 00 03 00 00 00 01 1 0 0
2/1/2013
Amit Kulkarni
21
Who Cares?
DSP is a key enabling technology for many types of electronic products DSP-intensive tasks are the performance bottleneck in many computer applications today Computational demands of DSP-intensive tasks are increasing very rapidly In many embedded applications, general purpose microprocessors are not competitive with DSPoriented processors today 2012 market for DSP processors: $6 billion
2/1/2013 Amit Kulkarni 25
2/1/2013
Amit Kulkarni
27
2/1/2013
Amit Kulkarni
28
2/1/2013
Amit Kulkarni
29
2/1/2013
Amit Kulkarni
30
Contd..
Conversely, we can break down our real world signal into these same sine waves. This combination of sine waves is unique; any real world signal can be represented by only one combination of sine waves.
2/1/2013
Amit Kulkarni
31
2/1/2013
Amit Kulkarni
32
Spectrum Examples
2/1/2013
Amit Kulkarni
34
Review
Signal classification Signal operations Fourier Series representation of periodic signals Continuous time Fourier transform and signal spectra
2/1/2013
Amit Kulkarni
35
Classification of Signals
Continuous and discrete-time signals Continuous and discrete-valued signals Even and odd signals Periodic signals, non-periodic signals Deterministic signals, random signals Causal and anticausal signals Right-handed and left-handed signals Finite and infinite length
2/1/2013 Amit Kulkarni 36
Discrete-time signal
- It is defined only at discrete instants of time : x[n]=x(nT)
2/1/2013
Amit Kulkarni
37
Digital signal
2/1/2013 Amit Kulkarni 38
2/1/2013
Amit Kulkarni
39
2/1/2013
Amit Kulkarni
40
Non-periodic signals
2/1/2013 Amit Kulkarni 41
Random signals
- There is uncertainty before its actual occurrence.
2/1/2013
Amit Kulkarni
42
causal signal
2/1/2013 Amit Kulkarni
anticausal signal
noncausal signal
43
2/1/2013
Amit Kulkarni
44
2/1/2013
Amit Kulkarni
45
2/1/2013
Amit Kulkarni
46
x( )d
47
2/1/2013
Amit Kulkarni
2/1/2013
Amit Kulkarni
48
2/1/2013
Amit Kulkarni
49
2/1/2013
Amit Kulkarni
50
The incorrect way of applying the precedence rule. (a) Signal x(t). (b) Time-scaled signal v(t) = x(2t). (c) Signal y(t) obtained by shifting v(t) = x(2t) by 3 time units, which yields y(t) = x(2(t + 3)).
The proper order in which the operations of time scaling and time shifting (a) Rectangular pulse x(t) of amplitude 1.0 and duration 2.0, symmetric about the origin. (b) Intermediate pulse v(t), representing a time-shifted version of x(t). (c) Desired signal y(t), resulting from the compression of v(t) by a factor of 2.
2/1/2013
Amit Kulkarni
51
Elementary Signals
Exponential signals x(t ) = Beat Sinusoidal signals x (t ) = A cos( t + ) Exponentially damped sinusoidal signals x(t ) = Ae at cos( t + )
2/1/2013
Amit Kulkarni
52
Elementary Signals
Step function
x (t ) = u (t )
2/1/2013
Amit Kulkarni
53
(a) Rectangular pulse x(t) of amplitude A and duration of 1 s, symmetric about the origin. (b) Representation of x(t) as the difference of two step functions of amplitude A, with one step function shifted to the left by and the other shifted to the right by ; the two shifted signals are denoted by x1(t) and x2(t), respectively. Note that x(t) = x1(t) x2(t).
2/1/2013
Amit Kulkarni
54
Elementary Signals
Impulse function
x (t ) = (t )
(a) Evolution of a rectangular pulse of unit area into an impulse of unit strength (i.e., unit impulse). (b) Graphical symbol for unit impulse. (c) Representation of an impulse of strength a that results from allowing the duration of a rectangular pulse of area a to approach zero.
2/1/2013
Amit Kulkarni
55
Elementary Signals
Ramp function
x(t ) = r (t )
2/1/2013
Amit Kulkarni
56
system
output signal
2/1/2013
Amit Kulkarni
57
Properties of Systems
Stability Memory Invertibility Time Invariance Linearity
2/1/2013
Amit Kulkarni
58
Stability(1)
BIBO stable : A system is said to be bounded-input bounded-output stable iff every bounded input results in a bounded output. Its Importance : the collapse of Tacoma Narrows t |bridge, x(t ) | M t | y (t ) | M y < suspension pp .45 x <
2/1/2013
Amit Kulkarni
59
Dramatic photographs showing the collapse of the Tacoma Narrows suspension bridge on November 7, 1940. (a) Photograph showing the twisting motion of the bridges center span just before failure. (b) A few minutes after the first piece of concrete fell, this second photograph shows a 600-ft section of the bridge breaking out of the suspension span and turning upside down as it crashed in Puget Sound, Washington. Note the car in the top righthand corner of the photograph.
2/1/2013 Amit Kulkarni 60
Stability(2)
Example pp.46 - y[n]=1/3(x[n]+x[n-1]+x[n-2]) - y[n]=rnx[n], where r>1
Memory
Memory system : A system is said to possess memory if its output signal depends on past values of the input signal Memoryless system (example) i (t ) = 1 v(t ) R
i (t ) = 1 L
v( )d
62
Memory or memoryless?
2/1/2013
Amit Kulkarni
63
Causality
Causal system : A system is said to be causal if the present value of the output signal depends only on the present and/or past values of the input signal. Non-causal system (example) y[n]=x[n]+1/2x[n-1] y[n]=x[n+1]+1/2x[n-1]
2/1/2013
Amit Kulkarni
64
Invertiblity(1)
Invertible system : A system is said to be invertible if the input of the system can be recovered from the system output. H:xy, H-1:yx H-1{y(t)}= H-1{H{x(t)}}, H-1H=I
H x(t)
2/1/2013 Amit Kulkarni
H-1 y( t ) x(t)
65
Invertiblity(2)
(Example) y (t ) = 1 L
x ( )d x(t ) = L
d y (t ) dt
y (t ) = x 2 (t )
2/1/2013
Amit Kulkarni
66
2/1/2013
Amit Kulkarni
68
y (t ) = 1
x( )d L
x(t ) y (t ) = R(t )
2/1/2013
Amit Kulkarni
69
Linearity(1)
Linear system : A system is said to be linear if it satisfies the principle of superposition.
x(t ) = ai xi (t )
i =1
y (t ) = H {x(t )} = H { ai xi (t )}
i =1
= ai H {xi (t )} = ai yi (t )
i =1 i =1
2/1/2013 Amit Kulkarni 70
Linearity(2)
x1(t) x2(t) . . . xN(t) a1 x1(t) a2 . . . aN . . . H y(t) xN(t) x2(t) H . . . H H a1 a2 . . . aN . . . y(t)
2/1/2013
Amit Kulkarni
71
Linearity(3)
Examples y[ n] = nx[n] -
y (t ) = x (t ) x (t 1)
x(t ) = a1 x1 (t ) + a2 x2 (t )
2/1/2013 Amit Kulkarni 72
Theme Examples
Example of multiple propagation paths in a wireless communication environment.
2/1/2013
Amit Kulkarni
73
2/1/2013
Amit Kulkarni
74
2/1/2013
Amit Kulkarni
75
Fourier transform
and
w =
1 ~ f ( x) = 2
(3)
Since, on one hand the function with period T has also the periods kT for any integer k, and on the other hand any non-periodic function can be considered as a function with infinite period, we can run the T to infinity, and obtain the Riemann sum with w, converging to the integral:
T 1 ~ iwx iwt e e f ( t )dt dw f ( x) = 2 T
2/1/2013 Amit Kulkarni
(4)
76
F ( w ) := F { f ( t )} :=
The function
iwt e f ( t )dt
(5)
1 F { F ( w )} := 2
1
iwx e F ( w )dw
(6)
2/1/2013
Amit Kulkarni
77
Example 1
The Fourier transform of
1 | t | 1 f ( t ) := 0 | t |> 1
1
is
w0 w=0
2/1/2013
Amit Kulkarni
78
Fourier Integral
If f(x) and f(x) are piecewise continuous in every finite interval, and f(x) is absolutely integrable on R, i.e.
converges, then
1 1 [ f ( x ) + f ( x + )] = 2 2
2/1/2013
Amit Kulkarni
79
F {af ( t ) + bg ( t )} = aF { f ( t )} + bF { g ( t )} = aF ( w ) + bG ( w )
Proof is by substitution into (5).
Scaling:
1 w F { f (ct )} = F( ) |c| c
2/1/2013
Amit Kulkarni
80
Time shifting:
F { f ( t t 0 )} = e iwt 0 F ( w )
Proof:
F { f ( t t 0 )} =
4.
f ( t t 0 )e iwt dt = e iwt 0
f ( u)e iwu du
Frequency shifting:
F {e iwt 0 f ( t )} = F ( w w 0 )
Proof:
F {e iw0 t f ( t )} =
2/1/2013
iwt 0 iwt ( ) e f t e dt = F ( w w 0 )
Amit Kulkarni
81
Symmetry:
F { F ( t )} = 2f ( w )
Proof: The inverse Fourier transform is
therefore
1 1 f ( t ) = F { f ( w )} = 2 1 2f ( w ) = 2
iwt F ( w ) e dw
itw F ( t ) e dt = F { F ( t )}
2/1/2013
Amit Kulkarni
82
Modulation:
1 F { f ( t ) cos( w 0 t )} = [ F ( w + w 0 ) + F ( w w 0 )] 2 1 F { f ( t ) sin( w 0 t )} = [ F ( w + w 0 ) F ( w w 0 )] 2
Proof: Using Euler formula, properties 1 (linearity) and 4 (frequency shifting):
Differentiation in time
7.
Transform of derivatives
F { f ( n ) ( t )} = ( iw ) n F ( w )
In particular
F { f ' ( t )} = iwF ( w )
Proof:
and
F { f '' ( t )} = w 2 F ( w )
2/1/2013
Amit Kulkarni
84
Example 2
The property of Fourier transform of derivatives can be used for solution of differential equations:
y 4 y = H ( t )e 4 t
0 t < 0 H (t ) = 1 t 0
F { y} 4 F { y } = F { H ( t )e
Setting F{y(t)}=Y(w), we have
4t
1 }= 4 + iw
1 iwY ( w ) 4Y ( w ) = 4 + iw
2/1/2013 Amit Kulkarni 85
Example 2
Then
1 1 Y (w) = = (4 + iw )( 4 + iw ) 16 + w 2
1 4|t | y( w ) = F {Y ( w )} = e 8
1
Therefore
2/1/2013
Amit Kulkarni
86
Frequency Differentiation
F {t n f ( t )} = i n F ( n ) ( w )
In particular
F {tf ( t )} = iF ( w )
and
F {t 2 f ( t )} = F ( w )
2/1/2013
Amit Kulkarni
87
Convolution
The convolution of two functions f(t) and g(t) is defined as:
f *g
Theorem:
F { f * g } F { f }F { g }
Proof:
1 F { f ( t ) g( t )} [ F * G ]( w ) 2
iwt F { f * g} = e f ( u) g ( t u)du dt = iwu iw ( t u ) e f ( u) g ( t u)d ( t u) e du = F { f }F { g }
2/1/2013
Amit Kulkarni
88
Fundamentals
2/1/2013
Amit Kulkarni
89
CHAPTER
y (t ) = x( ){h1 (t ) + h2 (t )} d
= x ( )h(t )d = x (t ) h(t )
2/1/2013
Amit Kulkarni
CHAPTER
Figure 2.2 Interconnection of two LTI systems. (a) Cascade connection of two systems. (b) Equivalent system. (c) Equivalent system: Interchange system order.
2/1/2013 Amit Kulkarni 91
CHAPTER
y(t) = z( )h2 (t )d
-
(2.3)
z( ) = x( ) h1( ) = x( )h1( )d
-
(2.4)
h(t v) = h1 ( )h2 (t v )d
(2.6)
CHAPTER
{x(t) h1(t)} h2 (t) = x(t) {h1(t) h2 (t)} (2.7) 4. Commutative property: Write h(t) = h1(t) h2(t) as the integral
h(t ) = h1 ( )h2 (t )d
Interchanging the order of the LTI systems in the cascade without affecting the result:
(2.9)
{x[n] h1[n]} h2 [n] = x[n] {h1[n] h2 [n]} (2.10) Commutative property for discrete-time case: h1[n] h2 [n] = h2 [n] h1[n] (2.11)
2/1/2013 Amit Kulkarni 93
CHAPTER
Example 2.1 Equivalent System to Four Interconnected Systems Consider the interconnection of four LTI systems, as depicted in Fig. 2.20. 2.20 The impulse responses of the systems are h1[n] = u[n], h2 [n] = u[n + 2] u[n], h3[n] = [n 2], and h4 [n] = nu[n]. Find the impulse response h[n] of the overall system.
Figure 2.3 Interconnection of systems for Example 2.11. <Sol.> 1. Parallel combination of h1[n] and h2[n]: h12[n] = h1[n] + h2[n] Fig. 2.4(a 2.4(a). ).
2/1/2013 Amit Kulkarni 94
CHAPTER
Figure 2.4 (a) Reduction of parallel combination of LTI systems in upper branch of Fig. 2.20. (b) Reduction of cascade of systems in upper branch of Fig. 2.21(a). (c) Reduction of parallel combination of systems in Fig. 2.21(b) to obtain an equivalent system for Fig. 2.20.
2/1/2013
Amit Kulkarni
95
CHAPTER
2. h12[n] is in series with h3[n]: h123[n] = h12[n] h3[n] h123[n] = (h1[n] + h2[n]) h3[n] 3. h123[n] is in parallel with h4[n]: h[n] = h123[n] h4[n] Fig. 2.4(b).
h[n] = (h1[n] + h2 [n]) h3 [n] h4 [n], h12 [n] = u[n] + u[n + 2] u[n] = u[n + 2]
Convolving h12[n] with h3[n] gives
CHAPTER
2.3 Relation Between LTI System Properties and the Impulse Response
2.3.1 Memoryless LTI Systems 1. The output of a discrete-time LTI system:
k =
h[k ]x[n k ]
(2.3)
CHAPTER
2. To be memoryless, y[n] must depend only on x[n] and therefore cannot depend on x[n k] for k 0. A discrete-time LTI system is memoryless if and only if
h[k ] = c [k ]
Continuous-time system: 1. Output:
c is an arbitrary constant
y (t ) = h( )x(t )d ,
h ( ) = c ( )
c is an arbitrary constant
2.3.2 Causal LTI Systems The output of a causal LTI system depends only on past or present values of the input. Discrete-time system: 1. Convolution sum: y[ n] = L + h[ 2] x[n + 2] + h[1]x[ n + 1] + h[0]x[n]
+ h[1]x[n 1] + h[2]x[ n 2] + L.
2/1/2013 Amit Kulkarni 98
CHAPTER
y (t ) = h( ) x(t )d .
y(t) = h( )x(t )d .
0
h( ) = 0 for < 0
2.3.3 Stable LTI Systems A system is BIBO stable if the output is guaranteed to be bounded for every bounded input. y[n] M y Output: Discrete-time case: Input x[n ] M x
2/1/2013 Amit Kulkarni 99
CHAPTER
k =
h[k ]x[n k ]
a+b a + b
ab = a b
k =
h[k ]x[n k ] h[ k ] x[ n k ]
k =
x[n k ] M x
y[n] Mx h[k]
k =
(2.28)
Hence, the output is bounded, or |y[n]| for all n, provided that the impulse response of the system is absolutely summable. 3. Condition for impulse response of a stable discrete-time LTI system:
2/1/2013 Amit Kulkarni 100
CHAPTER
k =
h[k ] < .
Continuous-time case: Condition for impulse response of a stable continuous-time LTI system:
h ( ) d <
Example 2.2 Properties of the First-Order Recursive System The first-order system is described by the difference equation
h[n] = nu[n]
Is this system causal, memoryless, and BIBO stable? <Sol.> 1. The system is causal, since h[n] = 0 for n < 0. 2. The system is not memoryless, since h[n] 0 for n > 0. 3. Stability: Checking whether the impulse response is absolutely summable?
2/1/2013 Amit Kulkarni 101
CHAPTER
k =
h[ k ] = = <
k =0 k =0
Note: A system can be unstable even though the impulse response has a finite value. 1. Ideal integrator:
y(t) = x( )d
(2.29)
Input: x() = (), then the output is y(t) = h(t) = u(t). h(t) is not absolutely integrable Ideal integrator is not stable! 2. Ideal accumulator:
y[n] =
k =
x[k ]
Impulse response: h[n] = u[n] h[n] is not absolutely summable Ideal accumulator is not stable!
2/1/2013 Amit Kulkarni 102
CHAPTER
2.3.4 Invertible Systems and Deconvolution A system is invertible if the input to the system can be recovered from the output except for a constant scale factor. 1. h(t) = impulse response of LTI system, Fig. 2.5 inv 2. h (t) = impulse response of LTI inverse system
Figure 2.5 Cascade of LTI system with impulse response h(t) and inverse system with impulse response h-1(t). 3. The process of recovering x(t) from h(t) x(t) is termed deconvolution. 4. An inverse system performs deconvolution.
(2.12)
CHAPTER
Example 2.3 Multipath Communication Channels: Compensation by means of an Inverse System Consider designing a discrete-time inverse system to eliminate the distortion associated with multipath propagation in a data transmission problem. Assume that a discrete-time model for a two-path communication channel is
(2.32)
1) For n < 0, we must have hinv[n] = 0 in order to obtain a causal inverse system
2/1/2013 Amit Kulkarni 104
CHAPTER
k =
h [k ] =
inv
k =
is finite.
For |a| < 1, the system is stable. Table 2.2 summarizes the relation between LTI system properties and impulse response characteristics.
2/1/2013
Amit Kulkarni
105
CHAPTER
s[ n] = h[ n]* u[ n] =
k =
h[k ]u[n k ].
CHAPTER
s[n] =
k =
h[k ].
The step response is the running sum of the impulse response. Continuous-time LTI system:
s(t) = h( )d
(2.16)
The step response s(t) is the running integral of the impulse response h(t). Express the impulse response in terms of the step response as
and
h(t ) =
d s (t ) dt
Example 2.14 RC Circuit: Step Response The impulse response of the RC circuit depicted in Fig. 2.6 is
t 1 RC h(t ) = e u (t ) RC
Figure 2.6 RC circuit system with the voltage source x(t) as input and the voltage measured across the capacitor y(t), as output.
107
CHAPTER
1. Step response:
1 RC s(t ) = e u ( )d . RC
t
0, s(t ) = 1 t RC e u ( )d RC
0, t<0 s(t ) = 1 t RC e d t 0 0 RC 0, t<0 = t RC 1 e , t 0
Fig. 2.7
t<0 t0
2/1/2013
Amit Kulkarni
108
CHAPTER
ak y[n k] = bk x[n k]
k =0 k =0
(2.18)
The order of the differential or difference equation is (N, M), representing the number of energy storage devices in the system. Ex. RLC circuit depicted in Fig. 2.8 1. Input = voltage source x(t), output = loop current 2. KVL Eq.: Often, N M, and the order is described using only N.
Ry ( t ) + L
2/1/2013
d 1 t y ( t ) + y ( ) d = x ( t ) dt C
Amit Kulkarni 109
CHAPTER
Figure 2.8
Example of an RLC circuit described by a differential equation.
1 d d2 d y (t ) + R y (t ) + L 2 y (t ) = x (t ) C dt dt dt
Ex. Accelerator modeled in Section 1.10:
N=2
d2 y (t ) + 2 y (t ) = x (t ) y (t ) + Q dt dt
2 n
n d
N=2
where y(t) = the position of the proof mass, x(t) = external acceleration.
2/1/2013
Amit Kulkarni
110
CHAPTER
1 y[n 2] = x[n] + 2x[n 1] (2.19) N=2 4 Difference equations are easily rearranged to obtain recursive formulas for computing the current output of the system from the input signal and the past outputs. y[n] + y[n 1] +
Ex. Eq. (2.36) can be rewritten as
M N
1 y [ n] = a0
1 b x n k ] k [ a0 k =0
a y [n k ]
k =1 k
Ex. Consider computing y[n] for n 0 from x[n] for the second-order difference equation (2.37). <Sol.> 1. Eq. (2.37) can be rewritten as
1 y[n 2] 4
(2.20)
111
CHAPTER
1 y[ 1] 4
y [ N ] , y [ N + 1] ,..., y [ 1] ,
The initial conditions for Nth-order differential equation are the N values
y (t )
t =0 ,
d y (t ) dt
t = 0
d2 , 2 y (t ) dt
, ...,
t =0
d N 1 y (t ) N 1 dt
t =0
2/1/2013
Amit Kulkarni
112
CHAPTER
Example 2.4 Recursive Evaluation of a Difference Equation Find the first two output values y[0] and y[1] for the system described by Eq. (2.38), assuming that the input is x[n] = (1/2)nu[n] and the initial conditions are y[ 1] = 1 and y[ 2] = 2. <Sol.> 1. Substitute the appropriate values into Eq. (2.20) to obtain
1 1 y [ 0] = 1 + 2 0 1 ( 2 ) = 4 2
2. Substitute for y[0] in Eq. (2.40) to find
y [1] =
1 1 1 3 + 2 1 (1) = 1 2 2 4 4
Example 2.5 Evaluation of a Difference Equation by means of a Computer A system is described y the difference equation
CHAPTER
of the system, the system output when the input is zero and the initial conditions are y[ 1] = 1 and y[ 2] = 2, and the output in response to the sinusoidal inputs x1[n] = cos(n/10), x2[n] = cos(n/5), and x3[n] = cos(7n/10), assuming zero initial conditions. Last, find the output of the system if the input is the weekly closing price of Intel stock depicted in Fig. 2.9, 2.9 assuming zero initial conditions. <Sol.> 1. Recursive formula for y[n]:
2. Step response: Fig. 2.9(a 2.9(a). ). 3. Zero input response: Fig. 2.9(b 2.9(b). ). 4. The outputs due to the sinusoidal inputs x1[n], x2[n], and x3[n]: Fig. 2.9(c 2.9(c), ), (d), and (e). 5. Fig. 2.9(f 2.9(f) ) shows the system output for the Intel stock price unit. A comparison of peaks in Figs. 2.8 2.8and 2.9(f 2.9(f) ) Slightly delay!
2/1/2013
Amit Kulkarni
114
CHAPTER
2/1/2013
Amit Kulkarni
115
CHAPTER
2/1/2013
Amit Kulkarni
116
CHAPTER
2/1/2013
Amit Kulkarni
117
CHAPTER
CHAPTER
Fig. 2.9(e 2.9(e). ). Figure 2.9 Illustration of the solution to Example 2.16. (a) Step response of system. (b) Output due to nonzero initial conditions with zero input. (c) Output due to x1[n] = cos (1/10n). (d) Output due to x2[n] = cos (1/5n). (e) Output due to x3[n] = cos(7/10n).
2/1/2013
Amit Kulkarni
119
CHAPTER
Figure 2.9f Output associated with the weekly closing price of Intel stock.
2/1/2013
Amit Kulkarni
120
CHAPTER
y (t) = c ierit
(h) i= 0
(2.41)
3. Characteristic eq.:
a r
k =0
=0
(2.23)
a y( ) [n k ] = 0
h k =0 k
y [n] = c irin
(h) i=1
(2.43)
3. Characteristic eq.:
2/1/2013
a r
k =0
=0
(2.24)
121
Amit Kulkarni
CHAPTER
If a root rj is repeated p times in characteristic eqs., the corresponding solutions are r r r Continuous-time case: e j t , te j t , ..., t p 1e j t Discrete-time case:
Example 2.6 RC Circuit: Homogeneous Solution The RC circuit depicted in Fig. 2.10 is described by the differential equation
y ( t ) + RC
d y (t ) = x (t ) dt
dt
1 + RCr1 = 0
y
(h)
4. Homogeneous solution:
( t ) = c1e
V
122
2/1/2013
Amit Kulkarni
CHAPTER
Example 2.7First-Order Recursive System: Homogeneous Solution Find the homogeneous solution for the first-order recursive system described by the difference equation
y [ n ] y [ n 1] = x [ n ]
<Sol.> 1. Homogeneous Eq.: 2. Homo. Sol.:
y [ n ] y [ n 1] = 0
y ( h ) [ n ] = c1r1n
3. Characteristic eq.:
r1 = 0
r1 =
4. Homogeneous solution:
y ( h ) [ n ] = c1 n
2.6.2 The Particular Solution A particular solution is usually obtained by assuming an output of the same general form as the input. Table 2.3
2/1/2013 Amit Kulkarni 123
CHAPTER
Example 2.8 First-Order Recursive System (Continued): Particular Solution Find a particular solution for the first-order recursive system described by the difference equation
y [ n ] y [ n 1] = x [ n ]
y [n] = c p
( p)
()
1 2
CHAPTER
cp
()
1 2
cp
()
1 2
n 1
()
1 2
c p (1 2 ) = 1
3. Particular solution:
(2.25)
n
( p)
1 1 [ n] = 1 2 2
Example 2.9 RC Circuit (continued): Particular Solution Consider the RC circuit of Example 2.6 and depicted in Fig. 2.10 2.10. Find a particular solution for this system with an input x(t) = cos(0t). <Sol.> d 1. Differential equation: y ( t ) + RC y (t ) = x (t )
dt
y ( p ) (t ) = c1 cos( t ) + c2 sin( t )
3. Substituting y(p)(t) and x(t) = cos(0t) into the given differential Eq.:
2/1/2013 Amit Kulkarni 125
CHAPTER
RC0 c1 + c2 = 0
4. Coefficients c1 and c2:
c1 =
1 1 + ( RC 0 )
2
and
c2 =
1 + ( RC 0 ) RC0
RC0
5. Particular solution:
y(
p)
(t ) =
1 1 + ( RC0 )
cos ( 0t ) + 2
1 + ( RC0 )
sin (0t )
2.6.3 The Complete Solution Complete solution: y = y (h) + y (p) y (h) = homogeneous solution, y (p) = particular solution The procedure for finding complete solution of differential or difference equations is summarized as follows:
2/1/2013 Amit Kulkarni 126
CHAPTER
Procedure 2.3: Solving a Differential or Difference equation 1. Find the form of the homogeneous solution y(h) from the roots of the characteristic equation. 2. Find a particular solution y(p) by assuming that it is of the same form as the input, yet is independent of all terms in the homogeneous solution. 3. Determine the coefficients in the homogeneous solution so that the complete solution y = y(h) + y(p) satisfies the initial conditions. Note that the initial translation is needed in some cases. Example 2.21 First-Order Recursive System (Continued): Complete Solution Find the complete solution for the first-order recursive system described by the difference equation
1 y[n 1] = x[n] (2.46) 4 if the input is x[n] = (1/2)n u[n] and the initial condition is y[ 1] = 8. <Sol.> n ( h) 1 1. Homogeneous sol.: y [ n] = c y[n]
1 4
()
2/1/2013
Amit Kulkarni
127
CHAPTER
2. Particular solution:
1 y [ n] = 2 2
( p)
1 1 y[n] = 2( )n + c1( )n 2 4
(2.47)
y [ 0] = x [ 0] + 1 4 y [ 1]
0 0
y [0] = x [0] + (1 4) 8 = 3
1 1 3 = 2 + c1 2 4
5. Final solution:
c1 = 1
n n
1 1 y [ n] = 2 + 2 4
for n 0
Example 2.10 RC Circuit (continued): Complete Response Find the complete response of the RC circuit depicted in Fig. 2.10 to an input x(t) = cos(t)u(t) V, assuming normalized values R = 1 and C = 1 F and assuming that the initial voltage across the capacitor is y(0) = 2 V.
2/1/2013 Amit Kulkarni 128
CHAPTER
( t ) = ce
t RC
V
sin ( t ) V
0 = 1
y(
p)
(t ) =
1 1 + ( RC )
cos ( t ) + 2
RC 1 + ( RC )
2
3. Complete solution:
1 1 y ( t ) = ce t + cos t + sin t V 2 2
4. Coefficient c1 determined by I.C.:
R = 1 , C = 1 F
2 = ce
0+
1 1 1 + cos 0+ + sin 0+ = c + 2 2 2
5. Final solution:
3 1 1 y ( t ) = e t + cos t + sin t V 2 2 2
2/1/2013
Amit Kulkarni
129
CHAPTER
Example 2.11 Financial Computations: Loan Repayment The following difference equation describes the balance of a loan if x[n] < 0 represents the principal and interest payment made at the beginning of each period and y[n] is the balance after the principal and interest payment is credited. As before, if r % is the interest rate per period, then = 1 + r/100.
y [ n ] = y [ n 1] + x [ n ]
Use the complete response of the first-order difference equation to find the payment required to pay off a $20,000 loan in 10 periods. Assume equal payments and a 10% interest rate. <Sol.> 1. We have = 1.1 and y[ 1] = 20,000, and we assume that x[n] = b is the payment each period. 2. The first payment is made when n = 0. The loan balance is to be zero after 10 payments, thus we seek the payment b for which y[9] = 0. 3. Homogeneous sol.:
y(
h)
[ n] = ch (1.1)n
Amit Kulkarni 130
4. Particular solution:
2/1/2013
CHAPTER
y(
p)
[ n] = c p
Substituting y(p)[n] = cp and x[n] = b into the difference equation y[n] 1.1y[n 1] = x[n], we obtain
c p = 10b
3. Complete solution:
(2.48)
Fig. 2.12.
b=
11(1.1) 10
= 3, 254.91
131
2/1/2013
Amit Kulkarni
CHAPTER
Figure 2.12 Balance on a $20,000 loan for Example 2.23. Assuming 10% interest per period, the loan is paid off with 10 payments of $3,254.91.
2/1/2013 Amit Kulkarni 132
2/1/2013
Amit Kulkarni
133
Outline
Transforms in context of problem solving Convolution Dirac delta function (t) Fourier Transform Sampling Laplace Transform
2/1/2013
Amit Kulkarni
134
Way to reframe a problem in a way that makes it easier to understand, analyze and solve.
2/1/2013
Amit Kulkarni
135
= EASY
Transformed equation
= HARD
2/1/2013
Amit Kulkarni
136
2/1/2013
Amit Kulkarni
137
Typical Problem
Given an input signal x(t), what is the output signal y(t) after going through the system?
RCy ' (t ) + y (t ) = x (t )
To find a solution, we can integrate. Ugh!
2/1/2013 Amit Kulkarni 139
Convolution
Math operator (symbol *) that takes two input functions (x(t) and h(t)) and produces a third (y(t))
y (t ) = x (t ) h(t ) = x (t )h ( )d
Expresses the amount of overlap of one function x(t) as it is shifted over another function h(t). Way of blending one function with another.
2/1/2013
Amit Kulkarni
140
Frame-by-frame convolution
Can be visualized as flipping one function (x), sliding it, and doing the dot product.
2/1/2013
Amit Kulkarni
141
Smoothing
2/1/2013
Amit Kulkarni
142
2/1/2013
Amit Kulkarni
143
2/1/2013
Amit Kulkarni
144
2/1/2013
Amit Kulkarni
145
2/1/2013
Amit Kulkarni
146
2/1/2013
Amit Kulkarni
147
Convolution Properties
Convolution is a linear operation and therefore has the typical linear properties:
Commutativity Associativity Distributivity Scalar multiplication
2/1/2013
Amit Kulkarni
148
t
2/1/2013
*
Amit Kulkarni
t
149
2/1/2013
Amit Kulkarni
150
Fourier Transform
Jean-Baptiste Fourier had crazy idea (1807): Any periodic function can be rewritten as a weighted sum of sines and cosines of different frequencies. Called Fourier Series
2/1/2013
Amit Kulkarni
151
Square-Wave Deconstruction
2/1/2013
Amit Kulkarni
152
Other examples
2/1/2013
Amit Kulkarni
153
FT
Frequency Domain
Real: Cosine Coefficients
f t
FT
f
2/1/2013 Amit Kulkarni 154
Convention: Upper-case to describe transformed variables: Transform: F{ x(t) } = X() or X(f) Inverse:
2/1/2013
(=2f)
2/1/2013
Amit Kulkarni
156
Complex plane
Complex number can be represented:
Combination of real + imaginary value:
x +iy
Amplitude + Phase A and
2/1/2013
Amit Kulkarni
157
Alternative representation of FT
Complex numbers can be represented also as amplitude + phase.
Real Amplitude
f t
FT
+
Imaginary
OR
+
Phase
2/1/2013
Amit Kulkarni
158
FT
Amplitude Spectrum
t
2/1/2013 Amit Kulkarni
FT
f
159
Real
Real
2/1/2013 Amit Kulkarni 160
Real
Real
DC component
2/1/2013
Amit Kulkarni
161
2/1/2013
Amit Kulkarni
162
2/1/2013
Amit Kulkarni
163
2/1/2013
Amit Kulkarni
164
FT of Delay (t)
Amplitude + phase is easier to understand: Amplitude:
Gives you information about frequencies/tones in a signal.
Phase:
More about when it happens in time.
2/1/2013
Amit Kulkarni
166
Important FT Properties
Addition Scalar Multiplication Convolution in time t
F {a (t ) + b(t )} = A( ) + B( )
F {ka (t )} = kA( )
F { X (t ) H ( )} = 2x (t )h(t )
1
2/1/2013 Amit Kulkarni 167
FT time
frequency duality
Frequency Domain
wide narrow Convolution Multiplication Sinc Box Gauss Real+Even (just cosine) Im + Odd (just sine) Etc..
168
Time Domain
narrow wide Multiplication Convolution Box Sinc Gauss Real + Even Real + Odd Etc..
2/1/2013 Amit Kulkarni
Result
= EASY
X(), H()
X()H()
= HARD
2/1/2013
- 5 kHz
5 kHz
AM radio)
170
FT: Solution
x(t)=?
t
-15 kHz
|X(f)|
|Y(f)|
15 kHz
*
f
-15 kHz 15 kHz
=
f
-20 kHz -10 kHz 10 kHz 20 kHz
FT Gaussian Blur
Space
Frequency
x
f f
=
f
2/1/2013
Amit Kulkarni
172
Sampling Theorem
In order to be used within a digital system, a continuous signal must be converted into a stream of values. Done by sampling the continuous signal at regular intervals. But at which interval?
2/1/2013
Amit Kulkarni
173
Sampling Theorem
Sampling can be thought of multiplying a signal by a pulse train:
...
x(t)
t
x
... t
=
... ... t
2/1/2013
Amit Kulkarni
174
Aliasing
If sampling rate is too small compared with frequency of signal, aliasing WILL occur:
2/1/2013
Amit Kulkarni
175
fs FT
... ... f
2/1/2013
Amit Kulkarni
176
-fmax
fmax
2f m f s<
ax
2/1/2013
Amit Kulkarni
177
Laplace transform
Introduced by Pierre Simon Marquis de Laplace (17491827). Practically used by Oliver Heaviside (1850-1925) Transform relationship between x(t) and X(s):
Laplace Transform
x(t)
X(s)
2/1/2013
Amit Kulkarni
179
Laplace Transform
Formal definition:
L[ f (t )] = F ( s ) = f (t )e dt
Compare this to FT:
0
st
F ( ) =
Small differences:
f (t )e it dt
-s instead of -i
2/1/2013 Amit Kulkarni 180
Definition:
X ( s ) = x ( t ) e st dt
1 st x(t) = X ( s ) e ds 2j j
where s is a complex variable that is defined as s=+jw .
+ j
2/1/2013
Amit Kulkarni
181
Laplace transform
Definition:
X (s) = x (t ) =
st x ( t ) e dt
1 2 j
+ j
j
X ( s ) e + st ds
X (s) =
st x ( t ) e dt 0
+ j
x (t ) =
2/1/2013 Amit Kulkarni
X ( s ) e + st ds
182
X ( s ) | s = + j 2 f =
0 0
( + j 2 f ) t x ( t ) e dt
X( + j 2 f) =
] [ x ( t ) e e
t
j 2 ft
dt
-j 2ft dt y(t) e
183
1
1 s 1 s2 1 s+a
f (t ) = 1 f (t ) = t
f (t ) = e at
f (t ) = sin(t )
at
s2 + 2
Damped Sine f (t ) = e
2/1/2013
sin(t )
( s + a )2 + 2
184
Amit Kulkarni
f 1(t )f 2( ) d = F1 ( s ) F2 ( s )
Derivation
2/1/2013
d L f (t ) = sF ( s ) f (0 ) dt
Amit Kulkarni 185
Relates the output of a linear system (or component) to its input. Describes how a linear system responds to an impulse. All linear operations allowed
Scaling, addition, multiplication.
2/1/2013
Amit Kulkarni
186
RC Circuit Revisited
Time e Domain
RC
dy +y=x dt
Laplace Domain
1 s
1 1 + RCs
1 1 1 = 1 s(1 + RCs ) s +s RC
2/1/2013
Amit Kulkarni
187
B( s ) = bm s m + ... + b1s + b0 Poles are the values of s for which B(s) = 0 Zeros are the values of s for which A(s) = 0 Poles and zeros are complex Order of system = # poles = m
2/1/2013 Amit Kulkarni 188
1
1 s 1 s2 1 s+a
f (t ) = 1 f (t ) = t
f (t ) = e at
f (t ) = sin(t )
at
s2 + 2
Damped Sine f (t ) = e
2/1/2013
sin(t )
( s + a )2 + 2 -a-i,-a+i
190
Amit Kulkarni
2/1/2013
Amit Kulkarni
191
2/1/2013
Increasing Frequency
Amit Kulkarni
192
2/1/2013
Increasing Frequency
Amit Kulkarni
193
MATLAB functions
fourier laplace ifourier ilaplace Search for these functions and their syntax in MATLAB help
2/1/2013
Amit Kulkarni
194
T{.}
x[n]
y [n]
y [n] = x [n nd]
A memoryless system
y[n] = x[n]
k =
x[k ]
Moving average
1 y[n] = ( x[n 1] + x[n] + x[n + 1] + x[n + 2]) 4
1 y[n] = M1 + M 2 + 1
k = M1
M2
x[n k ]
Memory:
A system is memoryless if y[n] = f ( x[n] )
i.e. it sees only present values.
Causality
A system is causal if the output y[n] depends only on present and/or past values.
On-line systems are causal by definition
Time-invariance
A system is time invariant if a shift in the input causes a corresponding shift of the output.
For all n0 x1 [n] = x [n-n0] gives y1[n] = y [n-n0]
Stability
A system is stable if every bounded input sequence produces a bounded output
i.e. it never diverges. If |x[n]| Bx < then |y[n]| By <
Linearity
Linear systems obey the principle of superposition.
1) Additive property.
T {x1[n] + x2[n]} = T {x1[n]} + T {x2[n]} = y1[n] + y2[n]
2) Scaling property
T {a x1[n]} = a T {x1[n]} = a y[n] Altogether: T {a x1[n] + b x2[n]} = a T{x1[n]} + b T{x2[n]}
Exercise:
Which properties (linearity, causality, time-invariance, stability and memory) posses the following systems:
a) y[n] = 3 x[n] 4 x[n-1] b) y[n] = 2 y[n-1] + x[n+2] c) y[n] = n x[n] d) y[n] = cos (x[n]) e) y[n] = log10 (x[n]) f) y[n] = x[n]4 g) The accumulator system h) The ideal delay system i) The moving average system
x[n] =
k =
x[k ] [n k ]
= =
k =
x[k ] h [n]
k
k =
x[k ] h[n k ]
Convolution sum
y[n] =
k =
x[k ] h[n k ]
Convolution sum
Note that:
x[n] = x[k ] [n k ]
A linear time-invariant system can be completely characterized by its input response h[n] [n] LTI h[n]
Convolution is distributive
x[n] (h1[n] + h2[n]) = x[n] h1[n] + x[n] h2[n]
Cascade connection:
y[n] = h1[n] [ h2[n] x[n] ] = [ h1[n] h2[n] ] x[n]
x[n]
h2
h1
y[n]
=
x[n] h1h2 y[n]
Parallel connection
y[n] = h1[n] x[n] + h2[n] x[n] ] = [ h1[n] + h2[n] ] x[n]
h1 x[n] h2 + y[n]
=
x[n] h1+h2 y[n]
k =
h[k ] <
h[n] = 0
n<0
2/1/2013
Amit Kulkarni
212
Content
Introduction z-Transform Zeros and Poles Region of Convergence Important z-Transform Pairs Inverse z-Transform z-Transform Theorems and Properties System Function
2/1/2013 Amit Kulkarni 213
Why z-Transform?
A generalization of Fourier transform Why generalize it?
FT does not converge on all sequence Notation good for analysis Bring the power of complex variable theory deal with the discrete-time signals and systems
2/1/2013
Amit Kulkarni
214
Definition
The z-transform of sequence x(n) is defined by
X ( z) =
Let z = ej.
n =
x ( n) z
n
Fourier Transform
X (e ) =
2/1/2013 Amit Kulkarni
n =
x ( n)e
j n
215
Y (s ) = L{y (t )} = L{x(t T )} = e
1
Ts
X (s )
Ts
=e
Ts
z =e
2/1/2013
Amit Kulkarni
216
z-Plane
X ( z) =
n =
x ( n) z
Im
z = e j
X (e ) =
n =
x ( n)e
j n
Re
z-Plane
X(z) Im
z = e j
Re Im Re
2/1/2013
Amit Kulkarni
218
Periodic Property of FT
X(z) X(ej)
Im Re
Can you say why Fourier Transform is a periodic function with period 2?
2/1/2013
Amit Kulkarni
219
Definition
Give a sequence, the set of values of z for which the ztransform converges, i.e., |X(z)|<, is called the region of convergence.
| X ( z ) |=
n =
n x ( n ) z =
n =
n | x ( n ) || z | <
Im
r Re
Rx <| z |< Rx +
ROC = {z = re | Rx < r < Rx + }
j
2/1/2013
Amit Kulkarni
221
Stable Systems
A stable system requires that its Fourier transform is uniformly convergent.
Im Fact: Fourier transform is to evaluate ztransform on a unit circle. A stable system requires the ROC of ztransform to include the unit circle. Re
2/1/2013
Amit Kulkarni
222
x(n)
...
-8 -7 -6 -5 -4 -3 -2 -1 1 2 3 4 5 6 7 8 9 10
2/1/2013
Amit Kulkarni
223
X ( z) =
n =
a u (n)z
n n =0
1 | az |<
n =0
| az 1 |< 1
| z |>| a |
= a n z n = (az 1 ) n
n =0
2/1/2013 Amit Kulkarni
1 z X ( z ) = (az ) = = 1 1 az za n =0
1 n
| z |>| a |
224
a
Re
a
Re
2/1/2013
Amit Kulkarni
225
-8 -7 -6 -5 -4 -3 -2 -1
1 2 3 4 5 6 7 8 9 10
2/1/2013
...
x(n)
Amit Kulkarni
226
X ( z ) = a u ( n 1)z
n n =
1
1 | a z|< n =0
| a 1 z |< 1
| z |<| a |
= a n z n
n =
= a n z n
n =1
= 1 a n z n
n =0
1 z X ( z ) = 1 (a z ) = 1 = 1 1 a z z a n=0
1 n
| z |<| a |
227
2/1/2013
Amit Kulkarni
a
Re
a
Re
2/1/2013
Amit Kulkarni
228
Zeros: The values of zs such that X(z) = 0 Poles: The values of zs such that X(z) =
2/1/2013 Amit Kulkarni 229
X ( z) =
z , za
| z |>| a |
a
Re
2/1/2013
Amit Kulkarni
230
X ( z) =
z , za
| z |<| a |
a
Re
2/1/2013
Amit Kulkarni
231
Im
Re
ROC is bounded by poles and is the exterior of a circle. ROC does not include any pole.
2/1/2013
Amit Kulkarni
232
Im
0 n N 1
n
N 1
= ( az )
n =0
N 1
1 n
Im
1 (az 1 ) N = 1 az 1
1 zN aN = N 1 z za
Always Stable
2/1/2013 Amit Kulkarni 234
Properties of ROC
A ring or disk in the z-plane centered at the origin. The Fourier Transform of x(n) is converge absolutely iff the ROC includes the unit circle. The ROC cannot include any poles Finite Duration Sequences: The ROC is the entire z-plane except possibly z=0 or z=. Right sided sequences: The ROC extends outward from the outermost finite pole in X(z) to z=. Left sided sequences: The ROC extends inward from the innermost nonzero pole in X(z) to z=0.
2/1/2013
Amit Kulkarni
235
a b
c
Re
2/1/2013
Amit Kulkarni
236
a b
c
Re
2/1/2013
Amit Kulkarni
237
a b
c
Re
2/1/2013
Amit Kulkarni
238
a b
c
Re
2/1/2013
Amit Kulkarni
239
a b
c
Re
2/1/2013
Amit Kulkarni
240
Z-Transform Pairs
Sequence
( n ) ( n m ) u ( n) u ( n 1)
z-Transform
1
z m 1 1 z 1 1 1 z 1
1 1 az 1
1 1 az 1
a u ( n)
a u ( n 1)
n
| z |>| a |
| z |<| a |
241
2/1/2013
Amit Kulkarni
Z-Transform Pairs
Sequence
[cos 0 n]u (n) [sin 0 n]u ( n)
[r cos 0 n]u (n)
n
z-Transform
1 [cos 0 ]z 1 1 [2 cos 0 ]z 1 + z 2
[sin 0 ]z 1 1 [2 cos 0 ]z 1 + z 2 1 [r cos 0 ]z 1 1 [2r cos 0 ]z 1 + r 2 z 2 [r sin 0 ]z 1 1 [2r cos 0 ]z 1 + r 2 z 2
ROC
| z |> 1 | z |> 1 | z |> r | z |> r
a n 0
2/1/2013
0 n N 1 otherwise
Amit Kulkarni
1 a N zN 1 az 1
| z |> 0
242
Linearity
Z [ x(n)] = X ( z ),
Z [ y (n)] = Y ( z ),
z Rx
z Ry
Z [ax(n) + by (n)] = aX ( z ) + bY ( z ),
z Rx R y
Overlay of the above two ROCs
2/1/2013
Amit Kulkarni
243
Shift
Z [ x(n)] = X ( z ), z Rx
Z [ x(n + n0 )] = z X ( z )
n0
2/1/2013 Amit Kulkarni
z Rx
244
Z [ x(n)] = X ( z ),
Z [a x(n)] = X (a z )
n
2/1/2013 Amit Kulkarni
z | a | Rx
245
Differentiation of X(z)
Z [ x(n)] = X ( z ), z Rx
dX ( z ) Z [nx(n)] = z dz
2/1/2013 Amit Kulkarni
z Rx
246
Conjugation
Z [ x(n)] = X ( z ), z Rx
Z [ x * (n)] = X * ( z*)
2/1/2013 Amit Kulkarni
z Rx
247
Reversal
Z [ x(n)] = X ( z ), z Rx
Z [ x(n)] = X ( z )
2/1/2013 Amit Kulkarni
z 1 / Rx
248
z Rx
z Rx
249
1 2j
[ X ( z ) X * ( z*)]
Amit Kulkarni
x(0) = lim X ( z )
z
2/1/2013 Amit Kulkarni 250
Convolution of Sequences
Z [ x(n)] = X ( z ), Z [ y (n)] = Y ( z ), z Rx z Ry
Z [ x(n) * y (n)] = X ( z )Y ( z )
2/1/2013 Amit Kulkarni
z Rx R y
251
Convolution of Sequences
x ( n) * y ( n) =
k =
x(k ) y (n k )
k =
x(k ) y(n k )z
n =
Amit Kulkarni
k =
x(k ) z k
n =
n y ( n ) z
= X ( z )Y ( z )
2/1/2013 252
Shift-Invariant System
x(n) y(n)=x(n)*h(n)
h(n)
X(z)
2/1/2013 Amit Kulkarni
H(z)
Y(z)=X(z)H(z)
253
Shift-Invariant System
X(z)
Y ( z)
H(z)
Y ( z) H ( z) = X ( z)
2/1/2013 Amit Kulkarni 254
k =0 N
r =0
Y ( z ) ak z
k =0
= X ( z ) br z
r =0
H ( z ) = br z
r =0
2/1/2013 Amit Kulkarni
k =0
ak z
255
H ( z) =
H ( z) =
A (1 cr z )
1 1 ( 1 d z r ) k =1 r =1 N
Re
2/1/2013
Amit Kulkarni
257
H ( z) =
A (1 cr z )
1 1 ( 1 d z r ) k =1 r =1 N
1 Re
2/1/2013
Amit Kulkarni
258
Example
Consider the causal system characterized by
y (n) = ay (n 1) + x(n)
Im
1 H ( z) = 1 1 az
h( n) = a u ( n)
n
2/1/2013 Amit Kulkarni
Re
259
Example:
z z1 H ( z) = ( z p1 )( z p2 )
j 0
p1 z1 p2
260
j 0
Re
H (e
2/1/2013
)=
(e j0
e j0 z1 p1 )(e j0 p2 )
Amit Kulkarni
|H(e )|=?
Example:
H(e )=?
z1
z z1 H ( z) = ( z p1 )( z p2 )
j 0
p1
e
j 0
Re
H (e
2/1/2013
)=
(e j0
e j0 z1 p1 )(e j0 p2 )
p2
261
Amit Kulkarni
|H(e )|=?
Example: |H(ej)| = | | ||
H(e )=?
z1
| |
p1
e
1 3
j 0
Re
H(ej) = 1(2+ 3 )
2/1/2013 Amit Kulkarni
p2
262
Example
20 10
dB Im
0 -10 0 2 1 2 4 6 8
a
2/1/2013 Amit Kulkarni
Re
0 -1 -2 0 2 4 6 8
263