EEE304 Week1
EEE304 Week1
H
X Y
EEE304
Lecture 1.1a: Review of basic signals
and their properties: Steps and Impulses
Unit Step
1 if t 0
• Unit step: u (t )
0 otherwise
• The unit step serves as a set indicator, i.e., whether an argument belongs to a set or not.
It is useful in writing compact expressions for “rule-based” functions
sin t if t 0
• E.g.., x(t ) sin t u (t ) cos(2t ) (1 u (t ))
cos 2t otherwise
du1 (t )
u1 (t ) 1 (t )
dt
…
…
du5 (t )
u5 (t ) 5 (t )
dt
…
…
dfn
u(t ) lim n un (t ) (t ) lim n n (t )
Some common applications of the impulse
• Key properties of the impulse (sampling) x( ) ( ) x(0) ( ), ( )d 1
u (0 ) u (0 ) 1
Product with a discontinu ous function : u (t ) (t ) (t ) (t ), ( is even)
2 2
Product and integratio n : u ( ) ( 1)d u (1) ( 1)d 1 ( 1)d 1
u (0 ) u (0 ) 1
Product and integratio n around a discontinu ity : u ( 1) ( 1)d ( 1)d
2 2
1
Integration with the impulse on the boundary : u ( ) ( )d u (0 ) ( )d
0 0 2
Some common applications of the step
• Using steps to alter the interval of integration
Lower limit of integratio n and forward steps : x( )u ( 1)d x( )d
1
1
Upper limit of integratio n and backward steps : x( )u (1 )d x( )d
min(1,t )
Upper limit of integratio n and backward steps : x( )u (t )u (1 )d x( )d
t
Upper and lower limit of integratio n and steps : x( )u (t )u ( 1)d x( )d u(t - 1)
1
Signal parametrization
• The response of an LTI system to an impulse characterizes its response to
arbitrary signals. At the heart of this result is the so-called “signal
parametrization” in terms of shifted impulses
Shifted Approximate
impulses ramp
(with offset) d0*0+d1*1+
d0, d1, d2, d2*2+d3*3+
… d4*4+…
Discrete-time development
1 if n 0
• Unit delta, or (Kronecker) impulse: (n) u (n) u (n 1)
0 otherwise
(an ordinary sequence)
• Signal parametrization in terms of shifted impulses
1
H ( s)
s 1
1
H ( s)
s 1
Computation details (CT)
It is a good practice to derive here the formulae of the various responses
mentioned in the last example:
t
(t ) (t ) ( t ) t
H [u (t )] u ( )e u (t )d e d u (t ) e e u (t 0) (1 et )u (t )
0
0
t (t 1)
H [ pulse(t )] H [u(t ) u(t 1)] (1 e )u(t ) (1 e )u(t 1)
Now, adding the five one-second pulse responses to obtain the five-second
pulse response is a tedious but straightforward exercise (the
intermediate terms cancel out).
Impulses and LTI systems (DT)
• The discrete-time analog also starts with the input parametrization:
x(n) x(k ) (n k )
k
Then, operating with the system on both expressions of the input signal
H [ x(n)] H x(k ) (n k ) x(k )H [ (n k )] x(k )h(n k ) y(n)
k k k
k 0
n
Sn ...
k 1 2 3 n 1
k 0
(1 ) S n 0 n1
n 1
1
Sn
(1 )
Computational Details (DT)
• Thus,
( n1)
1 1 ( n)
( n)
H [ pulse(n)] H [u (n)] H [u (n 1)] u ( n) u (n 1)
1
( n) u(n) u(n 1)
1 1 1 1
(n)
(n)
1
( n) u(n) u(n 1) 1
( n) ( 1)u(n) (n) nu(n)
1 1 1 1
z
H ( z)
z 0.5
MATLAB sample code for the examples
t=[-10:.01:10]; % define a time vector
n=1; % pick n for the step approximation
u0=max(0,min(1,n*t+1/2)); % define shifted steps
u1=max(0,min(1,n*(t-1)+1/2));
u2=max(0,min(1,n*(t-2)+1/2));
u3=max(0,min(1,n*(t-3)+1/2));
u4=max(0,min(1,n*(t-4)+1/2));
d1=([diff(u1) 0]*100); % compute derivatives (approx)
d0=([diff(u0) 0]*100);
d2=([diff(u2) 0]*100);
d3=([diff(u3) 0]*100);
d4=([diff(u4) 0]*100);
plot(t,[d0 ;d1-2 ;d2-4 ;d3-6; d4-8]); pause % plot results
n jn
• DT Exponential: e sTn
z e
n
(cosn j sin n)
n
2
• When = 1, the exponential is periodic with period N if and only if
N
• When = 1, the exponential has magnitude 1.
• Note: in rad/sec, T in rad/sec sec/sample rad/sample
Exponentials and LTI systems (CT)
• Parametrization of the output of LTI systems in terms of exponentials
(transfer function)
H [ x(t ) e st ] x( )h(t )d x(t )h( )d e s (t ) h( )d e st es h( )d H ( s)e st y (t )
st st
e 1 H ( s )e e( 0.1 j )t
e ( 0.1 j )t H ( s)
s 1 (0.1 j ) 1
Here, the Laplace transform of the impulse response (h(t)), also known as the
transfer function, arises naturally as the coefficient of the output exponential.
2j c j 2j c j
c j c j
1 1
ds Y ( s ) H ( s ) X ( s )
st st
X ( s ) H ( s )e ds Y ( s )e
2j c j 2j c j
Note: H[x(t)] is bad notation. Writing it, we simply mean that this is the response of the system H with input x, a time
function. The response, or output, is itself a time function. A more precise and unambiguous notation would be
y = H[x] and its value at time t would be y(t) = H[x](t).
Discrete-time LTI systems in the
frequency domain
• Parametrization of the output of linear systems in terms of exponentials
(transfer function)
H [ x ( n) z ] x ( k ) h( n k ) x ( n k ) h( k ) z
n n k
h( k ) z n
z k
h( k ) z H ( z ) y ( n)
n
k k k k
H
X Y
• Time-Invariance: H [ x] T H [ x]
H T
T [ x] H T [ x]
=?
T H
• Stability: Bounding of system output with a sequence of inequalities,
e.g.,
| y (t ) | x( )h(t )d | x( ) || h(t ) | d Bx | h(t ) | d Bx | h(t ) | d Bx (H )
System properties: Examples I
• Some examples of systems and the properties they satisfy are:
• y(t ) x( )h(t )d Linear, Time-Invariant (LTI)
H [ x] T H [ x]
H T
T [ x] H T [ x]
T H
System properties: Examples I
• Some examples of systems and the properties they satisfy are:
• y(t ) x( )h(t )d Linear, Time-Invariant (LTI)
• Memoryless, if and only if h(n) k (n), for some constant k. Here, (n) is the
Kronecker delta.
etc.
• Fact: Any signal can be written as a sum of a right-sided and a left-sided one.
x(t ) x (t ) x (t ) x(n) x (n) x (n)
4 3 2 1
Another example:
x x o o x
For the ROC 1, all poles should be inverted as
right-sided. Thus, writing the PFE of X(s), we
have (same PFE):
1
Z {z /( z a) RS } a nu (n)
1
But, Z {z /( z a) LS } a nu (n 1)
Examples of ROC of transforms (DT)
( z 1)( z 2)
• As an example, consider the Z transform X ( z)
( z 3)( z 1)( z 2)
• We sketch its pole-zero plot (poles = ‘x’, zeros = ‘o’)
As another example
• Consequently, we can ascertain all the system properties from its Transfer
Function (TF), as well as, its Impulse Response (IR)
• Some common problem statements:
o Given an IR, determine the ROC of the corresponding TF
o Given a TF and ROC, determine the corresponding IR
o Given a TF and ROC determine the system properties (without explicitly finding the IR)
o Given a TF determine the ROC that corresponds to certain system properties.
y H [ x] h * x
• Stable, if and only if its ROC contains the j axis. In this case, poles with
negative real parts correspond to right-sided functions and poles with positive
real parts correspond to left-sided functions.
*: iff for rational transfer functions, otherwise / in ROC only implies right/left-sided
impulse response.
Examples of LTI system properties
(Frequency Domain, CT)
Determine the transfer function ROC for an LTI system to be stable/causal:
1
• H (s)
( s 1)(s 2) Causal: ROC= {s : 1 Re s} Stable: ROC= {s : 1 Re s}
1
• H (s)
( s 1)(s 2) Causal: ROC= {s : 2 Re s} Stable: ROC= {s : Re s 1}
1
• H (s)
( s )(s 2) Causal: ROC= {s : 2 Re s} Stable: ROC=
1
• H (s)
( s 1)(s 2) Causal: ROC= {s : 2 Re s} Stable: ROC= {s : 1 Re s 2}
y H [ x] h * x
• Stable, if and only if its ROC contains the unit circle. In this case, poles with
modulus (magnitude) less than one correspond to right-sided functions and
poles with modulus greater than one correspond to left-sided functions.
Examples of LTI system properties
(Frequency Domain, DT)
Determine the transfer function ROC for an LTI system to be stable/causal:
1
• H ( z)
( z 0.1)( z 0.2)
Causal: ROC= {z : 0.2 | z |} Stable: ROC= {z : 0.2 | z |}
1
• H ( z)
( z 1.1)( z 2)
Causal: ROC= {z : 2 | z |} Stable: ROC= {z :| z | 1.1}
1
• H ( z)
( z 1)( z 2)
Causal: ROC= {z : 2 | z |} Stable: ROC=
1
• H ( z)
( z 0.1)( z 2)
Causal: ROC= {z : 2 | z |} Stable: ROC= {z : 0.1 | z | 2}
Notes on system properties and
response computations
• Fourier transform = Laplace evaluated at s = jw, if ROC includes the jw-
axis. E.g., impulse responses of stable systems, energy signals
• Power signals have Fourier transforms containing impulses and their
Laplace transforms are different (at s = jw).
• Increasing exponentials or polynomials do not have a Fourier transform
• Analysis of transient responses is easier with Laplace
• After PFE, poles should be inverted according to their location relative to the
ROC
• Stability: ROC (of IR) must include the jw axis (CT) or the unit circle (DT). For causal
systems (ROC includes +inf) this implies that all the poles must be in the left half-
plane (CT) or inside the unit circle (DT).
Computation of system responses
Computation of system responses
Computation of system responses
Computation of system responses
EEE304
Lecture 1.7b: Examples of system
response computations
Computation of system responses
Computation of system responses
Computation of system responses
Computation of system responses
MATLAB code for the examples
display('Problem 1')
e=exp(1);
H=1/e*tf(1,[1 1]);
H.iodelay=1
HH=ss(H)-ss(tf(1,[1 2])); % convert to state space for MATLAB to handle delays
[m,p]=bode(HH,1)
x=1/e*(e^-j)/(j+1)-1/(j+2) % alternative computation
abs(x)
angle(x)*180/pi
display('Problem 2')
num=[1 0],den=conv([1 0],conv([1 -1],[1 -2]))
[r,p,k]=residue(num,den)
display('Problem 3')
num=[1 0],den=conv([1 -1],conv([1 -0.1],[1 -0.2])) % factor out one z in num
[r,p,k]=residue(num,den)
display('Problem 4')
H=tf([1 0],[1 -.2],1)*tf(1,[1 -.1],1)
[m,p]=bode(H,2*pi/12)
z=exp(j*2*pi/12) % alternative computation
x=z/(z-.1)/(z-.2)
angle(x)
abs(x)