discrete time signal
TRANSCRIPT
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 1/97
Discrete Time Signal
Time-Domain Representation
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 2/97
Discrete Time Signal: Time-Domain
Representation• Signals represented as sequences of
numbers, called samples
• Sample value of a typical signal or
integer in the range
• x [n] defined only for integer values of n
and undefined for non-integer values of n
• Discrete-time signal represented by { x [n]}
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 3/97
Discrete Time Signal: Time-Domain
Representation• Discrete-time signal may also be written
as
{ } ,...9.2,7.3,2.0,1.1,2.2,2.0...,][ −−=↑
n x
a sequence o num ers ns e races:
• In the above,
etc.• The arrow is placed under the sample at
time index n = 0
,1.1]1[,2.2]0[,2.0]1[ ==−=− x x x
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 4/97
Discrete Time Signal: Time-Domain
Representation• Some alternative representation of
discrete time signal
– Graphical representation – unc ona represen a on
– Tabular representation
– Sequence representation
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 5/97
Graphical representation
• Graphical representation of a discrete-time
signal with real-valued samples:
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 6/97
Functional representation
=n 3,1,.........1
==
elsewhere,..0
.,.........
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 7/97
Tabular representation
n … -2 -1 0 1 2 3 4 5 …
x n … 0 0 0 1 4 1 0 0 …
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 8/97
Sequence representation
=
↑
,...0,1,4,1,0,0,0...,)(n x (Infinite form)
(Finite form)
=
↑
0,1,4,1,0)(n x
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 9/97
Some Elementary Discrete-Time
Signals• Unit sample sequence (Unit Impulse) is
denoted as δ(n) and is defined as
• It is a signal that is zero everywhere,
except at n = 0 where its value is unity
≠≡
0,0
,)(
nnδ
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 10/97
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 11/97
Some Elementary Discrete-Time
Signals• Unit Step Signal is denoted as u(n) and is
defined as
<
≥≡
0,0
0,1)(
n
nnu
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 12/97
Some Elementary Discrete-Time
Signals• Unit Ramp Signal is denoted as ur (n) and
is defined as
<
≥≡
0,0
0,)(
n
nnnur
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 13/97
Some Elementary Discrete-Time
Signals• Exponential Signal is a sequence of the
form x(n) = an for all n
• If the parameter a is real, then x(n) is areal si nal.
• If the parameter a is complex valued, itcan be expressed as a = re jθ, where r andθ
are now the parameters. Hence, x(n),can be express as x(n) = r ne jθn = r n(cosθn+ jsinθn)
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 14/97
Some Elementary Discrete-Time
Signals• Exponential Signal
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 15/97
Some Elementary Discrete-Time
Signals• Exponential Signal
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 16/97
Classification of Discrete Time
Signals• Energy and Power Signals
• Periodic and Aperiodic Signals
• Symmetric (even) and Antisymmetric (odd)gna s
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 17/97
Energy and Power Signals
• Energy is defined as ,if E
is finite, i.e., o < E < ∞ , then x(n) is called
∑+∞
∞−
= 2
)(n x E
nergy gna . owever, many s gna s
that have an infinite energy, have a finite
average power. Average power is defined
as
∑−
∞→ +=
N
N N
ave n x N
P 2
)(12
1lim
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 18/97
Energy and Power Signals
• If the signal energy of x(n) is define over
the interval (-N, N ) as
=
N
n x E 2
)(
• then , (subscript N to E
emphasize that EN
is the energy of the
signal x(n))
• and therefore,
− N
N N
E E ∞→
= lim
N N
ave E N
P 12
1lim
+=
∞→
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 19/97
Energy and Power Signals
• Note: if E is finite, then Pave = 0 and on
the other hand, if E is infinite, the average
power P may be either finite or infinite. If P
,
a power signal.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 20/97
Energy and Power Signals
Example: Consider the following finite
discrete signals
1. x(n) = –1δ(n – 0) + 2δ(n – 1) – 2δ(n – 2) .
Find the energy and power in both signals.
,, −=↑
n x
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 21/97
Energy and Power Signals
Example: Consider the following discrete
periodic and nonperiodic signals. For the
periodic signal find the period N and also
.
signals, find the total energy.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 22/97
Energy and Power Signals
(a) (b) (c)
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 23/97
Periodic and Aperiodic Signals
• A signal is periodic with period N (N>0 ), if andonly if x (n + N ) = x (n) for all n
• The smallest value of N for which x(n+N ) holds
is called the (fundamental) period. If there is no,
called nonperiodic or aperiodic.
• Energy of periodic signals is infinite but it might
be finite over a period. On the other hand, theaverage power at the periodic signal is finite andis equal to the P ave over a single period. Hence,periodic signals are power signals.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 24/97
Symmetric (even) and
Antisymmetric (odd) Signals• A real-valued signal x(n) is called
symmetric (even) if
x (n) = x (− n)
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 25/97
Symmetric (even) and
Antisymmetric (odd) Signals• On the other hand, a signal x(n) is called
antisymmetric (odd) if
x (n) = − x (− n)
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 26/97
Symmetric (even) and
Antisymmetric (odd) Signals• Any signal can be written as:
x(n) = xe(n)+ xo(n)
−= 1
[ ]
−−= )()(
2
1)(
2
n xn xn x
Where
o
e
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 27/97
Block Diagram Representation of
Discrete-Time Systems• An Adder – performs the addition
operation (memoryless) of two signal
sequences to form another (the sum)
, .
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 28/97
Block Diagram Representation of
Discrete-Time Systems• Constant multiplier – applying a scale
factor on the input x(n), this operation is
memoryless.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 29/97
Block Diagram Representation of
Discrete-Time Systems• Signal multiplier – multiplication of two
signal sequences to form another (the
product) sequence, denoted as y(n). This
.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 30/97
Block Diagram Representation of
Discrete-Time Systems• Unit delay element – is a special system
that simply delays the signal passing
through it by one sample.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 31/97
Block Diagram Representation of
Discrete-Time Systems• Unit advance element – is a special
system that simply moves the input signal
passing through it ahead by one sample.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 32/97
Classification of Discrete-Time
Systems• Static versus Dynamic Systems
• Time invariant versus Time-variant
Systems • near versus non near
• Causal versus anticausal
• Stable versus Unstable Systems
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 33/97
Static versus Dynamic Systems
• Static Systems ≡ memory less ≡ the
output doesn’t depend on past or future
values of the input.
either infinite or finite memory.
Example:2)()(2)( n xn xn y +=
∑=
−= N
k
k n xn y
0
)()(
∑∞
=
−=0
)()(k
k n xn y
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 34/97
Time invariant versus Time-variant
Systems• Time-invariant – its input-output
characteristics do not change with time.
• Time-variant – its input-outputcharacteristics chan e with res ect totime.
• A relaxed system Γ is time-invariant if
x (n)→ y (n) x (n − k )→y (n − k )
Example:)1()()( −−= n xn xn y )()( nnxn y =
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 35/97
Causal versus anticausal
• Causal - if the output at any time depends only
on present and past values of the inputs and not
on future values of the input.
• Anti-Causal - if the output at any time dependsonly on future values of the input and not on the
present and past values of the inputs.
Example
y(n) = x(-n)
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 36/97
Linear versus nonlinear
• Linear system – is one that satisfies thesuperposition principle (additive andhomogenous).
• Nonlinear system – does not satisfy the.
• Superposition Principle – The response of thesystem to a weighted sum of signals be equal tothe corresponding weighted sum of theresponses (outputs) of the system to each of theindividual input signals.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 37/97
Linear versus nonlinear
• A relaxed Γ system is linear if and only if
Γ[a1x1(n) + a2x2(n)] = a1Γ[x1(n)] + a2Γ[x2(n)]
• For any arbitrary input sequences x1(n)an x2 n , an any ar rary cons an s a1
and a2
Example:
y(n) = nx(n) y(n) = x2(n)
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 38/97
Stable versus Unstable Systems
• A system is Stable if any bounded input
produces bounded output (BIBO).
Otherwise, it is unstable.
Example:
Consider the nonlinear system described
by the input-output equation
y(n) = y2(n-1) + x(n) where: x(n) = Cδ(n)
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 39/97
Impulse and Step Responses
• The response of a discrete-time system toa unit sample sequence {δ[n]} is called theunit sample response or simply, the
impulse response, and is denoted by{h[n]}
• The response of a discrete-time system toa unit step sequence {µ[n]} is called the
unit step response or simply, the stepresponse, and is denoted by {s[n]}
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 40/97
Impulse Response
• Example - The impulse response of the
system
y[n] =α1
x[n]+α2
x[n −1]+α3
x[n − 2]+α4
x[n − 3]
h[n] =α1δ[n]+α2δ[n −1]+α3δ[n − 2]+α4δ[n − 3]
The impulse response is thus a finite-length
sequence of length 4 given by
{ h[n]} = {α1, α2, α3, α4}
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 41/97
Time-Domain Characterization
of LTI Discrete-Time System• Input-Output Relationship -
A consequence of the linear, timeinvariance property is that an LTI discrete
time system is completely characterizedby its impulse response.
Note: Knowing the impulse response onecan compute the output of the system forany arbitrary input
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 42/97
Time-Domain Characterization
of LTI Discrete-Time System• Let h[n] denote the impulse response of a
LTI discrete-time system
• Compute its output y [n] for the input:
= − − −. . 0.75δ[n − 5]
• As the system is linear, compute its
outputs for each member of the inputseparately and add the individual outputsto determine y [n].
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 43/97
Time-Domain Characterization
of LTI Discrete-Time System• Since the system is time-invariant
input output
δ[n + 2]→h[n + 2] δ[n − 1]→h[n −1]
δ[n − 2]→h[n − 2]
δ[n − 5]→h[n − 5]
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 44/97
Time-Domain Characterization
of LTI Discrete-Time System• Likewise, as the system is linear
input output
0.5δ[n + 2]→0.5h[n + 2]
1.5δ[n −1]→1.5h[n −1] − δ[n − 2]→−h[n − 2]
0.75δ[n − 5]→0.75h[n − 5]
• Hence because of the linearity property:
y [n] = 0.5h[n + 2]+1.5h[n −1] − h[n − 2]+ 0.75h[n− 5]
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 45/97
Time-Domain Characterization
of LTI Discrete-Time System• Any arbitrary input sequence x [n] can be
expressed as a linear combination of delayed
and advanced unit sample sequences in the form
∞
• The response of the LTI system to an input x [k ]δ[n − k ] will be x [k ]h[n − k ]
∑−∞=
−=k
k nk xn x ][][][ δ
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 46/97
Time-Domain Characterization
of LTI Discrete-Time System• Hence, the response y [n] to an input
∑∞
−∞=
−=k
k nk xn x ][][][ δ
which can be alternately written as
∑∞
−∞=
−=k
k nhk xn y ][][][
∑∞
−∞=
−=k
k hk n xn y ][][][
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 47/97
Time-Domain Characterization
of LTI Discrete-Time System• The summation
∑∑ ∞
−∞=
∞
−∞=
−=−=k k
k hk n xk nhk xn y ][][][][][
x [n] and h[n] and represented compactly as
][][][ nhn xn y ⊗=
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 48/97
Convolution Sum
• Properties :
• Commutative property:
•
][][][][ n xnhnhn x ⊗=⊗
• Distributive property:
])[][(][][])[][( n ynhn xn ynhn x ⊗⊗=⊗⊗
])[][][][])[])[(][( n yn xnhn xn ynhn x ⊗+⊗=+⊗
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 49/97
Convolution Sum
1) Time-reverse h[k ] about k = 0 to form h[-k ]
2) Shift to the right by n sampling periods if n
> 0 or shift to the left by n sampling-
3) Form the product v[k] = x[k]h[n-k ]
4) Sum all samples of v [k ] to develop the n-
th sample of y [n] of the convolution sum
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 50/97
Convolution Sum
The impulse response of a linear time-invariant
system is
}1,1,2,1{)( −=
↑nhDetermine the response of the system to the
input signal
Answer:
}1,3,2,1{)( ↑
=n x
...}0,0,1,2,3,8,8,4,1,0,0{....)( −−=↑
n y
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 51/97
Structure for the Realization of
Linear Time-Invariant Systems• Consider the first order system
y(n) = -a1y(n-1) + b0x(n) + b1x(n-1)
which is realized as
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 52/97
Structure for the Realization of
Linear Time-Invariant Systems• This realization uses separate delays
(memory) for both the input and output
signal samples and it is called a direct
.
Note: this system can be viewed as two
linear time-invariant systems in cascade.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 53/97
Structure for the Realization of
Linear Time-Invariant Systems• The first is a nonrecursive, system
described by the equation
1−+= n xbn xbnvwhereas the second is a recursive system
described by the equation
)()1()( 1 nvn yan y +−−=
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 54/97
Structure for the Realization of
Linear Time-Invariant Systems• These structure can be generalize by
∑ ∑= =
−+−−= N
k
M
k
k k k n xbk n yan y1 0
)()()(
where:
∑=−=
M
k
k k n xbnv0
)()(
∑=
+−−= N
k
k nvk n yan y1
)()()(
(Nonrecursive System)
(Recursive System)
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 55/97
Structure for the Realization of
Linear Time-Invariant Systems• Interchanging the order of the cascaded
linear time-invariant systems, the overallsystem response remains the same.
• The first s stem described b the e uation
whereas the second system is describedby the equation
)1()()( 10 −+= n xbn xbn y
)()1()( 1 n xn yanw +−−=
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 56/97
Structure for the Realization of
Linear Time-Invariant Systems
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 57/97
Structure for the Realization of
Linear Time-Invariant Systems• Combining the two common delay of the
two system, this new realization requires
only one delay for the auxiliary quantity
,
terms of memory requirements. It is called
direct form II structure and it is used
extensively in practical applications
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 58/97
Structure for the Realization of
Linear Time-Invariant Systems
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 59/97
Structure for the Realization of
Linear Time-Invariant SystemsExample:
Draw the equivalent direct form I and
direct form II of the given difference
1.
2.
)(866.0)2(64.0)1(8.0)( n xn yn yn y +−−−=
)1()()2(4)1(4)( −−=−+−− n xn xn yn yn y
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 60/97
Structure for the Realization of
Linear Time-Invariant SystemsExample:
Write the equivalent difference equation
based from the given direct form II.a.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 61/97
Structure for the Realization of
Linear Time-Invariant Systemsb.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 62/97
Linear Time-Invariant Systems
Characterized by Constant Coefficient
Difference Equations• Consider the first order difference equation
∑ ∑= =
−+−−= N
k
M
k
k k k n xbk n yan y1 0
)()()(
or equivalently to,
1)()( 0
1 0
≡−=−∑ ∑= =
ak n xbk n ya N
k
M
k
k k
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 63/97
Linear Time-Invariant Systems
Characterized by Constant Coefficient
Difference Equations• The integer N is called the order of the
difference equation or the order of thesystem.
• The general solution of the N-order
considered by the following:
– Linearity
– Time invariance – Stability
• A recursive system may be relaxed ornonrelaxed, depending on the initial
conditions.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 64/97
Linear Time-Invariant Systems
Characterized by Constant Coefficient
Difference Equations• A system is linear if it satisfies the
following three requirements:
1. the total response is equal to the sum of
the zero-in ut and zero-state res onses[i.e. y(n) =yzi(n) +yzs(n)}.
2. The principle of superposition applies tothe zero-state response (zero-state linear),yzi(n) = 0, (relaxed system)
3. The principle of superposition applies tothe zero-input response (zero-input linear).
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 65/97
Linear Time-Invariant Systems
Characterized by Constant Coefficient
Difference Equations• Since
1)()( 0
1 0
≡−=−∑ ∑= =
ak n xbk n ya N
k
M
k
k k
• The system described is time invariantsince the coefficients ak and bk are
constants and independent on time.• Therefore the recursive system described
by a linear constant coefficient differenceequation is linear and time invariant.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 66/97
Solution of Linear Constant
Coefficient Difference Equations• Direct method
• Indirect method (z-transform)
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 67/97
Solution of Linear Constant
Coefficient Difference Equations
• The direct solution method assumes that
the total solution is the sum of two parts:
y(n) = yh(n) + y
p(n)
w ere:
yh(n) = homogeneous or complementary
solution
yp(n) = particular solution
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 68/97
Homogenous Solution of a
Difference equation
• Given
1)()( 0
1 0
≡−=−∑ ∑= =
ak n xbk n ya N
k
M
k
k k
assume x(n) = 0
homogeneous solution
0)(1
∑=
=− N
k
k k n ya
∑=
−= N
k
k h k n yan y
1
)()(
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 69/97
Homogenous Solution of a
Difference equation
( ) 0...
0...
2
2
1
1
2
2
1
1
=++++
=++++
−−−
−−−
N
N N N N n
N n
N
nnn
aaa
aaa
λ λ λ λ
λ λ λ λ
• In general, it has N roots which denote asλ1, λ2, … λN. The roots can be real orcomplex valued. In practice thecoefficients a1, a2, …, aN are usually real.Complex valued roots occur as complexconjugate pairs. Some of the N roots maybe identical, in which case multiple roots
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 70/97
Homogenous Solution of a
Difference equation
• Roots are real and distinct
n
N N
nn
h C C C n y λ λ λ +++= ...)( 2211
1, 2,…, N coefficients.
• Since the input, x(n) = 0, the
homogeneous solution can be used toobtain the zero-input response of thesystem.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 71/97
Homogenous Solution of a
Difference equation
Example:
Determine the homogeneous solution of
the system described by the first-order
)()1()( 1 n xn yan y =−+
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 72/97
Homogenous Solution of a
Difference equation
Example:
Determine the zero-input response of the
system described by the homogeneous
-
0)2(4)1(3)( =−−−− n yn yn y
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 73/97
Particular Solution of the Difference
Equation
• The particular solution, yp(n), is a form that
depends on the form of the input x(n), that
required to satisfy the difference equation
1)()( 0
1 0
≡−=−∑ ∑= =
ak n xbk n yak k
k k
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 74/97
Particular Solution of the Difference
EquationTABLE 2.1 General form of the Particular Solution forseveral types of input signals
Input Signal,x(n) Particular Solution, yp(n)
A constant K
AMn KMn
AnM K0nM + K1n
M-1 + … +KM
AnnM An(K0nM + K1n
M-1 + … +KM)
Acosω0n K1cosω0n + K2sinω0n Asinω0n K1cosω0n + K2sinω0n
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 75/97
Particular Solution of the Difference
Equation
Example:
Determine the particular solution of the
first order difference equation
y n + a1y n- = x n a1 <
when the input x(n) = u(n)
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 76/97
Particular Solution of the Difference
Equation
Example:
Determine the particular solution of the
difference equation
y n = y n- – y n- + x n
when the forcing function x(n) = 2n, n ≥ 0
and zero elsewhere
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 77/97
Total Solution of the difference
equation
• The linearity property of the linear
constant-coefficient difference equation
allow to add the homogeneous solution
obtain the total solution.
y(n) = yh(n) + yp(n) or y(n) = yzi(n) + yzs(n)
where:yzi(n) = zero input response
yzs(n) = zero state response or force
res onse
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 78/97
Total Solution of the difference
equation
• The resultant sum y(n) contains the
constant parameters {Ci} embodied in the
homogeneous solution component, yh(n).
satisfy the initial conditions.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 79/97
Total Solution of the difference
equation
Example:
Determine the response, y(n), n ≥ 0, of the
system described by the second-order
when the input sequence is
x(n) = 4nu(n)
)1(2)()2(4)1(3)( −+=−−−− n xn xn yn yn y
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 80/97
Total Solution of the difference
equation
Example:
Determine the response, y(n), n ≥ 0, of thesystem described by the second-order
difference e uation
when the input sequence is
x(n) = 2n
u(n)and the initial conditions are y(0) =-1 andy(1) = 1
)1()()2(9)1(6)( −−=−+−− n xn xn yn yn y
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 81/97
Impulse response of a Linear Time-
Invariant Recursive System
• The impulse response of a linear time-
invariant system was defined as the
response of the system to a unit sample
=. ., .
• In the case of a recursive system, h(n) is
simply equal to the zero-state response of
the system when the input x(n) = δ(n) andthe system is initially relaxed.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 82/97
Impulse response of a Linear Time-
Invariant Recursive System
• Consider a linear time-invariant recursivesystem, the zero-state response isexpressed in terms of the convolution
summation n
• When the input is an impulse, x(n) = δ(n),it reduces to
and
0
−=k
zs
)()( nhn y zs = 0)( =n y p
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 83/97
Impulse response of a Linear Time-
Invariant Recursive System
Example:
Determine the impulse response, h(n), for
the system described by the second-order
)1(2)()2(4)1(3)( −+=−−−− n xn xn yn yn y
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 84/97
Crosscorrelation and
Autocorrelation Sequences
• Consider a two real signal sequences x(n)
and y(n) each of which has finite energy.
The crosscorrelation of x(n) and y(n) is a
xy ,
or, equivalently as
∑∞
−∞=
±±=−=n
xy l l n yn xl r ,...2,1,0)()()(
∑∞
−∞=
±±=+=n
xy l n yl n xl r ,...2,1,0)()()(
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 85/97
Crosscorrelation and
Autocorrelation Sequences
where:
l – is the time shift parameter
xy(subscripts) – indicate the sequencese ng corre a e . e or er o e
subscripts, with x preceding y, indicates
the direction in which one sequence is
shifted, relative to the other.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 86/97
Crosscorrelation and
Autocorrelation Sequences
• In some special case where y(n) = x(n),
the autocorrelation of x(n), is defined as
the sequence
or, equivalently as
∑−∞=
±±=−=n
xx l l n xn xl r ,...2,1,0)()()(
∑∞
−∞=
±±=+=n
xx l n xl n xl r ,...2,1,0)()()(
C
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 87/97
Crosscorrelation and
Autocorrelation Sequences
Example:
Determine the crosscorrelation sequence
of the given sequences
Ans.
,...0,0,3,2,1,7,3,1,2,0,0....)( −−=↑
n x
,...0,0,5,2,1,4,2,2,1,1,0,0....)( −−−=↑
n y
3,5,7,16,18,13,7,0,33,14,36,19,9,10)( −−−−−=↑
l r xy
C l i d
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 88/97
Crosscorrelation and
Autocorrelation Sequences
Example:
Determine the autocorrelation of the given
sequence
1,3,3,1↑
=n x
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 89/97
Seatwork
Draw the equivalent direct form I and
direct form II of the given difference
equation
.
b.
−−−−
)4(3)2(2)1()()( −−−+−−= n xn xn xn xn y
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 90/97
Seatwork
Example:
Write the equivalent difference equation
based from the given direct form II.a.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 91/97
Seatwork
b.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 92/97
Seatwork
b.
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 93/97
Seatwork
Determine the response, y(n), n ≥ 0, of the
system described by the second-order
difference equation
when the input sequence is
x(n) = (-1)nu(n)
−−=−−−
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 94/97
Seatwork
Determine the response, y(n), n ≥ 0, of the
system described by the second-order
difference equation
when the input sequence is
x(n) = (-1)nu(n)
and the initial conditions are y(0) =1 and
y(1) = 2
−−=−−−
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 95/97
Seatwork
Determine the impulse response, h(n), for
the system described by the second-order
difference equation
)1()()2(4)1(4)( −−=−+−− n xn xn yn yn y
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 96/97
Seatwork
Determine the crosscorrelation sequence
of the given sequences
= ,,,↑
1,2,1,1)(↑
=n y
8/9/2019 Discrete Time Signal
http://slidepdf.com/reader/full/discrete-time-signal 97/97
Seatwork
Determine the autocorrelation of the given
sequence1,4,6,4,1)(
↑
=n x