Professional Documents
Culture Documents
Continuous Time: Time-Domain System Analysis
Continuous Time: Time-Domain System Analysis
1
Impulse Response Impulse Response
an y( n ) ( t ) + an−1 y( n−1) ( t ) + + a1 y′ ( t ) + a0 y ( t )
an y( n ) ( t ) + an−1 y( n−1) ( t ) + + a1 y′ ( t ) + a0 y ( t )
= bm x( m ) ( t ) + bm−1 x( m−1) ( t ) + + b1 x′ ( t ) + b0 x ( t )
= bm x( m ) ( t ) + bm−1 x( m−1) ( t ) + + b1 x′ ( t ) + b0 x ( t )
Case 2: m = n
Case 1: m < n
In this case the highest derivative of the excitation and
If the response contained an impulse at time t = 0 then
response are the same and the response could contain an
the nth derivative of the response would contain the nth
impulse at time t = 0 but no derivatives of an impulse.
derivative of an impulse. Since the excitation contains
Case 3: m > n
only the mth derivative of an impulse and m < n, the
In this case, the response could contain an impulse at
differential equation cannot be satisfied at time t = 0.
time t = 0 plus derivatives of an impulse up to the
Therefore the response cannot contain an impulse or any
(m − n)th derivative.
derivatives of an impulse.
Case 3 is rare in the analysis of practical systems.
Example
Let a system be described by y′ ( t ) + 3y ( t ) = x ( t ) . If the excitation
x is an impulse we have h′ ( t ) + 3h ( t ) = δ ( t ) . We know that
h ( t ) = 0 for t < 0 and that h ( t ) is the homogeneous solution for
t > 0 which is h ( t ) =Ke−3t . There are more derivatives of y than
of x. Therefore the impulse response cannot contain an impulse.
So the impulse response is h ( t ) = Ke−3t u ( t ) .
2
Impulse Response Impulse Response
Example h ( t ) = ( −3 / 16 ) e−3t / 4 u ( t ) + (1 / 4 )δ ( t )
The original differential equation is 4 h′ ( t ) + 3h ( t ) = δ ′ ( t ) .
Substituting the solution we get
⎧ d ⎫
⎪ 4 dt ⎡⎣( −3 / 16 ) e u ( t ) + (1 / 4 )δ ( t ) ⎤⎦ ⎪
−3t / 4
⎨ ⎬ = δ ′ (t )
⎪+3 ⎡( −3 / 16 ) e −3t / 4
u ( t ) + (1 / 4 )δ ( t ) ⎤⎦ ⎪⎭
⎩ ⎣
⎪⎧ 4 ⎡⎣( −3 / 16 ) e δ ( t ) + ( 9 / 64 ) e u ( t ) + (1 / 4 )δ ′ ( t ) ⎤⎦ ⎪⎫
−3t / 4 −3t / 4
⎨ ⎬ = δ ′ (t )
⎩⎪+3 ⎡⎣( −3 / 16 ) e u ( t ) + (1 / 4 )δ ( t ) ⎤⎦
−3t / 4
⎭⎪
− ( 3 / 4 ) e−3t / 4δ ( t ) + ( 9 / 16 ) e−3t / 4 u ( t ) + δ ′ ( t ) − ( 9 / 16 ) e−3t / 4 u ( t ) + ( 3 / 4 )δ ( t ) = δ ′ ( t )
δ ′ (t ) = δ ′ (t ) Check.
Exact
Excitation
Approximate
Excitation
3
The Convolution Integral The Convolution Integral
Let x ( t ) be this smooth waveform and let it be approximated The approximate excitation is a sum of rectangular pulses.
by a sequence of rectangular pulses.
T p = 0.1 s
x (t ) = ∫ x (τ )δ (t − τ ) dτ y (t ) = ∫ x (τ ) h (t − τ ) dτ
−∞ −∞
4
The Convolution Integral A Graphical Illustration of the
Another (quicker) way to develop the convolution integral is
Convolution Integral
∞
The convolution integral is defined by
to start with x ( t ) = ∫ x (τ )δ (t − τ ) dτ which follows directly
∞
−∞
x (t ) ∗ h (t ) = ∫ x (τ ) h (t − τ ) dτ
from the sampling property of the impulse. If h ( t ) is the impulse
−∞
if x ( t ) = ∫ x (τ )δ (t − τ ) dτ , then y (t ) = ∫ x (τ ) h (t − τ ) dτ .
−∞ −∞
5
A Graphical Illustration of the
A Graphical Illustration of the
Convolution Integral
Convolution Integral
The process of convolving to find y(t) is illustrated below.
e− (t − τ ) / RC
∞ ∞
vout ( t ) = ∫ x (τ ) h (t − τ ) dτ = ∫ u (τ ) u ( t − τ ) dτ
−∞ −∞
RC
t >0: vout ( t ) = ∫ u (τ ) u ( t − τ ) dτ
−∞
RC
1 ⎡ e− (t − τ ) / RC ⎤
t t
1
vout ( t ) = e− (t − τ ) / RC dτ = − ( t − τ ) / RC
t
∫
RC 0
⎢
RC ⎣ −1 / RC ⎦ 0 ⎣
⎥ = ⎡ −e ⎤⎦ = 1 − e−t / RC
0
6
The Unit Triangle Function System Interconnections
⎧1 − t , t < 1⎫
tri ( t ) = ⎨ ⎬ = rect ( t ) ∗ rect ( t )
If the output signal from a system is the input signal to a second
⎩0 , t ≥ 1⎭ system the systems are said to be cascade connected.
It follows from the associative property of convolution that the
impulse response of a cascade connection of LTI systems is the
convolution of the individual impulse responses of those systems.
Cascade
Connection
The unit triangle, is the convolution of a unit rectangle with
Itself.
Systems Described by
Stability and Impulse Response Differential Equations
The most general form of a differential equation describing an
N M
LTI system is ∑ ak y (k ) ( t ) = ∑ bk x (k ) ( t ). Let x ( t ) = Xe st and
k=0 k=0
A system is BIBO stable if its impulse response is let y ( t ) = Ye st . Then x( k ) ( t ) = s k Xe st and y( k ) ( t ) = s kYe st and
N M
absolutely integrable. That is if
∞
∑ a s Ye k
k st
= ∑ bk s k Xe st .
∫ h (t ) dt is finite.
k=0 k=0
∑
M
N M
Y bk s k
Ye st ∑ ak s k = Xe st ∑ bk s k ⇒ = k=0
∑
N
k=0 k=0 X ak s k
k=0
7
Systems Described by Systems Described by
Differential Equations
Differential Equations
Now let x ( t ) = Xe jω t and let y ( t ) = Ye jω t .
The transfer function for systems of this type is
This change of variable s → jω changes the transfer function
∑
M
bk s k bM s M + bM −1s M −1 + + b2 s 2 + b1s + b0
H (s) = k=0
= to the frequency response.
∑ aN s N + aN −1s N −1 + + a2 s 2 + a1s + a0
N
ak s k bM ( jω ) + bM −1 ( jω )
M M −1
+ + b2 ( jω ) + b1 ( jω ) + b0
2
H ( jω ) =
k=0
aN ( jω ) + aN −1 ( jω ) + + a2 ( jω ) + a1 ( jω ) + a0
N N −1 2
This type of function is called a rational function because it is
a ratio of polynomials in s. The transfer function encapsulates Frequency response describes how a system responds to a
all the system characteristics and is of great importance in signal sinusoidal excitation, as a function of the frequency of that
and system analysis. excitation.
Systems Described by
MATLAB System Objects
Differential Equations
A MATLAB system object is a special kind of variable in
MATLAB that contains all the information about a system.
It is shown in the text that if an LTI system is excited by a
It can be created with the tf command whose syntax is
sinusoid x ( t ) = Ax cos (ω 0t + θ x ) that the response is
sys = tf(num,den)
( )
y ( t ) = Ay cos ω 0t + θ y where Ay = H ( jω 0 ) Ax and where num is a vector of numerator coefficients of powers of s, den
θ y = H ( jω 0 ) + θ x . is a vector of denominator coefficients of powers of s, both in descending
order and sys is the system object.
»H1 = tf(num,den) ;
Discrete Time
»H1
Transfer function:
s^2 + 4
----------------------------------------
s ^ 5 + 4 s ^ 4 + 7 s ^ 3 + 15 s ^ 2 + 31 s + 75
8
Impulse Response Impulse Response
Discrete-time LTI systems are described mathematically Since the impulse is applied to the system at time n = 0,
by difference equations of the form that is the only excitation of the system and the system is
a0 y [ n ] + a1 y [ n − 1] + + aN y [ n − N ] causal the impulse response is zero before time n = 0.
= b0 x [ n ] + b1 x [ n − 1] + + bM x [ n − M ]
h[n] = 0 , n < 0
For any excitation x [ n ] the response y [ n ] can be found by
After time n = 0, the impulse has come and gone and the
finding the response to x [ n ] as the only forcing function on the
excitation is again zero. Therefore for n > 0, the solution of
right-hand side and then adding scaled and time-shifted
the difference equation describing the system is the
versions of that response to form y [ n ].
homogeneous solution.
If x [ n ] is a unit impulse, the response to it as the only forcing
function is simply the homogeneous solution of the difference h [n] = yh [n] , n > 0
equation with initial conditions applied. The impulse response Therefore, the impulse response is of the form,
is conventionally designated by the symbol h [ n ]. h [n] = yh [n] u [n]
9
Impulse Response Example Impulse Response Example
The impulse response is then
⎡( 0.1665 + j0.1181) ( −0.333 + j0.4714 )n ⎤
h[n] = ⎢ ⎥ u[n]
⎢⎣ + ( 0.1665 − j0.1181) ( −0.333 − j0.4714 ) ⎥⎦
n
h [ n ] = ( 0.5722 ) ⎢ − j 2.1858n ⎥
u[n]
⎢⎣ + ( 0.1665 − j0.1181) e ⎥⎦
(
⎡ 0.1665 e j 2.1858n + e− j 2.1858n ) ⎤
h [ n ] = ( 0.5722 ) ⎢ ⎥ u[n]
n
(
⎢⎣ + j0.1181 e j 2.1858n − e− j 2.1858n )⎥⎦
h [ n ] = ( 0.5722 ) ⎡⎣ 0.333cos ( 2.1858n ) − 0.2362 sin ( 2.1858n ) ⎤⎦ u [ n ]
n
System
Excitation
y [ n ] = x [ −1] h [ n + 1] + x [ 0 ] h [ n ] + x [1] h [ n − 1] +
System
where h [ n ] is the impulse response. This can be written in
Impulse
a more compact form
Response
∞
y[n] = ∑ x[ m]h[n − m]
m=−∞
System
called the convolution sum.
Response
10
A Convolution Sum Example A Convolution Sum Example
11
Numerical Convolution Numerical Convolution
nx = -2:8 ; nh = 0:12 ; % Set time vectors for x and h
x = usD(nx -1) - usD(nx - 6) ; % Compute values of x
h = tri((nh- 6) / 4) ; % Compute values of h
y = conv(x,h) ; % Compute the convolution of x with h
%
% Generate a discrete - time vector for y
%
ny = (nx(1) + nh(1)) + (0:(length(nx) + length(nh) - 2)) ;
%
% Graph the results
%
subplot(3,1,1) ; stem(nx,x,'k','filled') ;
xlabel('n') ; ylabel('x') ; axis([-2,20,0,4]) ;
subplot(3,1,2) ; stem(nh,h,'k','filled') ;
xlabel('n') ; ylabel('h') ; axis([-2,20,0,4]) ;
subplot(3,1,3) ; stem(ny,y,'k','filled') ;
xlabel('n') ; ylabel('y') ; axis([-2,20,0,4]) ;
Numerical Convolution
Numerical Convolution
Continuous-time convolution can be approximated using the
conv function in MATLAB.
∞
( ) ( ) ( ) ∫ x (τ ) h (t − τ ) dτ
y t = x t ∗h t =
−∞
∞ ⎛ t − nTs − Ts / 2 ⎞
( ) ∑ h ( nT ) rect ⎜⎝
h t ≅ s
Ts ⎟
⎠
n=−∞
Numerical Convolution
Stability and Impulse Response
The integral can be approximated at discrete points in time as
( ) ∑ x ( mT ) h (( n − m)T )T
∞
y nTs ≅ s s s
m=−∞ It can be shown that a discrete-time BIBO-stable system
This can be expressed in terms of a convolution sum as has an impulse response that is absolutely summable.
∞
( )
y nTs ≅ Ts ∑ x ⎡⎣ m⎤⎦ h ⎡⎣ n − m⎤⎦ = T x ⎡⎣ n ⎤⎦ ∗ h ⎡⎣ n ⎤⎦ s
That is,
∞
∑ h [ n ] is finite.
m=−∞
( )
where x ⎡⎣ n ⎤⎦ = x nTs and h ⎡⎣ n ⎤⎦ = h nTs . ( ) n=−∞
12
System Interconnections System Interconnections
Systems Described by
Unit Impulse Response and Unit Difference Equations
Sequence Response The most common description of a discrete-time system is a
difference equation of the general form
In any LTI system let an excitation x [ n ] produce the response N M
backward difference of the unit sequence response and, y [ n − k ] = z − kYz n and ∑ ak z − kYz n = ∑ bk z − k Xz n . Rearranging
k=0 k=0
conversely that the unit sequence response is the accumulation
∑
M
N M
Y bk z − k
of the unit impulse response. Yz n
∑a z −k
= Xz n
∑b z −k
⇒ = k=0
∑
k k N
k=0 k=0 X
k=0
ak z − k
Systems Described by
Frequency Response
Difference Equations
Let x [ n ] = Xe jΩn . Then y [ n ] = Ye jΩn and x [ n − k ] = e− jΩk Xe jΩn and
The transfer function is
∑ k = 0 bk z − k
M
y [ n − k ] = e− jΩkYe jΩn . Then the general difference equation
−1 −2 −M
b0 + b1z + b2 z + + bM z
H (z) = =
∑ a0 + a1z −1 + a2 z −2 + + aN z − N
N −k
k=0
ak z description of a discrete-time system
N M
or, alternately,
∑ a y[n − k ] = ∑ b x[n − k ]
k k
∑
M −k M −1
bk z b0 z + b1z
M
+ + bM −1z + bM k=0 k=0
H (z) = k=0
= zN −M becomes
∑ a0 z N + a1z N −1 + + aN −1z + aN
N
k=0
ak z − k N M
The transform can be written directly from the difference Ye jΩn ∑ ak e− jΩk = Xe jΩn ∑ bk e− jΩk
k=0 k=0
equation and vice versa.
13
Frequency Response
Frequency Response Example
14