Professional Documents
Culture Documents
(b) Nonperiodic
(c) Periodic
Fundamental period = 3s
(d) Periodic
Fundamental period = 2 samples
(e) Nonperiodic
(f) Periodic:
Fundamental period = 10 samples
(g) Nonperiodic
(h) Nonperiodic
(i) Periodic:
Fundamental period = 1 sample
π 2
l.43 y ( t ) = 3 cos 200t + ---
6
2 π
= 9 cos 200t + ---
6
π
= --- cos 400t + --- 1
9
2 3
9
(a) DC component = ---
2
π
(b) Sinusoidal component = --- cos 400t + ---
9
2 3
9
Amplitude = ---
2
1
200
Fundamental frequency = --------- Hz
π
1.44 The RMS value of sinusoidal x(t) is A ⁄ 2 . Hence, the average power of x(t) in a 1-ohm
2
resistor is ( A ⁄ 2 ) = A2/2.
2π
N = ------
Ω
N -1
1
P = ---- ∑ x [ n ]
2
N
n=0
N -1
2 2πn
cos ---------- + φ
1
∑A
2
= ----
N N
n=0
2 N -1 2
A 2πn
---------- + φ
= ------
N ∑ cos N
n=0
π⁄ω 1
∫–π ⁄ ω --4- ( cos ( ωt ) + 1 )
2
E = dt
1 π⁄ω
= --- ∫
2
( cos ( ωt ) + 2 cos ( ωt ) + 1 ) dt
2 0
1 π ⁄ ω 1
--- cos ( 2ωt ) + --- + 2 cos ( ωt ) + 1 dt
1
= --- ∫
2 0 2 2
1 3 π
= --- --- ---- = 3π ⁄ 4ω
2 2 ω
5 2
E = 2 ∫ x ( t ) dt
0
2
4 5
= 2 ∫ ( 1 ) dt + 2 ∫ ( 5 – t ) dt
2 2
0 4
1 5
4 3
= 2 [ t ] t=0 + 2 – --- ( 5 – t )
3 t=4
2 26
= 8 + --- = ------
3 3
1.50 (a)
x(5t)
1.0
-1 -0.8 0 0.8 1 t
(b) x(0.2t)
1.0
-25 -20 0 20 25 t
3
1.51
x(10t - 5)
1.0
t
0 0.1 0.5 0.9 1.0
1.52 (a)
x(t)
1
t
-1 1 2 3
-1
y(t - 1)
t
-1 1 2 3
-1
x(t)y(t - 1)
1
1
t
-1 2 3
-1
4
1.52 (b)
x(t + 1)
x(t - 1)
1
1
t
-1 1 2 3 4
-1
y(-t)y(-t)
1
t
-2 -1 1 2 3 4
-1
x(t - 1)y(-t)
1
t
-2 -1 1 2 3 4
-1
1.52 (c)
-2
t
-1 1 2 3
-1
-2 -1
t
1 2 3 4
x(t + 1)y(t - 2)
-2 -1 1 2 3 4
t
5
1.52 (d)
x(t)
1
t
-3 -2 -1 1 2 3
-1
y(1/2t + 1)
6 -5 -4 -3 -2 -1
1 2 4 6 t
-1.0
x(t - 1)y(-t)
1
t
-3 -2 -1 1 2 3
-1
1.52 (e)
x(t)
1
-4 -3 -2 -1
t
1 2 3
-1
y(2 - t)
1 2 3
t
-4 -3 -2 -1
x(t)y(2 - t)
-1
t
1 2 3
-1
6
1.52 (f)
x(t)
t
-2 -1 1 2
-1
y(t/2 + 1)
1.0
-5 -3 -2 -1
t
-6 1 1 2 3
-1.0
x(2t)y(1/2t + 1)
+1
-0.5
t
-1 1 2
-1
1.52 (g)
x(4 - t)
1
t
-7 -6 -5 -4 -3 -2
-1
y(t)
t
-2 -1 1 2 4
x(4 - t)y(t) = 0
t
-3 -2 -1 1 2 3
7
1.53 We may represent x(t) as the superposition of 4 rectangular pulses as follows:
g1(t)
1
1 2 3 4
t
g2(t)
1
11 2 3 4
t
g3(t)
1
1 2 3 4
t
g4(t)
1
1 2 3 4
t
0
To generate g1(t) from the prescribed g(t), we let
g 1 ( t ) = g ( at – b )
where a and b are to be determined. The width of pulse g(t) is 2, whereas the width of
pulse g1(t) is 4. We therefore need to expand g(t) by a factor of 2, which, in turn, requires
that we choose
1
a = ---
2
The mid-point of g(t) is at t = 0, whereas the mid-point of g1(t) is at t = 2. Hence, we must
choose b to satisfy the condition
a(2) – b = 0
or
b = 2a = 2 --- = 1
1
2
Hence, g 1 ( t ) = g --- t – 1
1
2
Proceeding in a similar manner, we find that
g 2 ( t ) = g --- t – ---
2 5
3 3
g3 ( t ) = g ( t – 3 )
g 4 ( t ) = g ( 2t – 7 )
Accordingly, we may express the staircase signal x(t) in terms of the rectangular pulse g(t)
as follows:
8
x ( t ) = g --- t – 1 + g --- t – --- + g ( t – 3 ) + g ( 2t – 7 )
1 2 5
2 3 3
1.54 (a)
x(t) = u(t) - u(t - 2)
t
0 1 2
(b)
x(t) = u(t + 1) - 2u(t) + u(t - 1)
-2 0 1 2
t
-1 3
-1
(c)
x(t) = -u(t + 3) + 2u(t +1) -2u(t - 1) + u(t - 3)
-3 1 2 3
t
0
-1
(d)
x(t) = r(t + 1) - r(t) + r(t - 2)
t
-2 -1 0 1 2 3
(e)
x(t) = r(t + 2) - r(t + 1) - r(t - 1)+ r(t - 2)
1
t
-3 -2 -1 0 1 2
9
1.55 We may generate x(t) as the superposition of 3 rectangular pulses as follows:
g1(t)
1
t
-4 -2 0 2 4
g2(t)
1
t
-4 -2 0 2 4
g3(t)
1
t
-4 -2 0 2 4
All three pulses, g1(t), g2(t), and g3(t), are symmetrically positioned around the origin:
1. g1(t) is exactly the same as g(t).
2. g2(t) is an expanded version of g(t) by a factor of 3.
3. g3(t) is an expanded version of g(t) by a factor of 4.
g 2 ( t ) = g --- t
1
3
g 3 ( t ) = g --- t
1
4
That is,
x ( t ) = g ( t ) + g --- t + g --- t
1 1
3 4
1.56 (a)
x[2n]
o 2 o
o n
-1 0 1
(b)
x[3n - 1]
2 o
o1
o n
-1 0 1
10
1.56 (c)
y[1 - n]
o o o o o1
2 3 4 5
o n
-4 -3 -2 -1 0 1
-1 o o o o
(d)
y[2 - 2n]
o o o o1
2 3 4 5
o n
-3 -2 -1 1
-1 o o o o
(e)
x[n - 2] + y[n + 2]
o 4 o
o3 o
2 o o
1 o o o o
-7 -6 -5 -4 -3
o n
-2 -1 0 1 2 3 4 5 6 7 8
o o o o o
(f)
x[2n] + y[n - 4]
o 1 o o o o
-5 -4 -3 -2 2 3
o n
-1 4 5 6 7
o o o o o -1 o o
11
1.56 (g)
x[n + 2]y[n - 2]
-5 -4 -3 -2 -1 1
o o o o n
o o 1
o o2
o 3 o
(h)
x[3 - n]y[-n]
3 o
2 o o
1 o o
o o o o o n
-3 -2 -1 1 2 3 4 5 6 7 8
(i)
x[-n] y[-n]
o 3
o 2
o 1
o 1 2 3 4 5 6
o o o o o n
-5 -4 -3 -2 -1
-1 o
-2 o
-3 o
(j)
x[n]y[-2-n]
o 3
1
-2 -1 1 2 3 4 5 6
o o o o o o o o n
-6 -5 -4 -3
o -1 o
-2 o
-3 o
12
1.56 (k)
x[n + 2]y[6-n]
3 o
o 1
-8 -7 -6 -5 -4 -3
o o o o o o o o o n
-2 -1 1 2 3 4 5 6
o -1
o -2
o -3
(b) Periodic
Fundamental period = 30 samples
(c) Nonperiodic
(d) Periodic
Fundamental period = 2 samples
(e) Nonperiodic
(f) Nonperiodic
(g) Periodic
Fundamental period = 2π seconds
(h) Nonperiodic
(i) Periodic
Fundamental period = 15 samples
1.58 The fundamental period of the sinusoidal signal x[n] is N = 10. Hence the angular
frequency of x[n] is
2πm
Ω = ----------- m: integer
N
The smallest value of Ω is attained with m = 1. Hence,
2π π
Ω = ------ = --- radians/cycle
10 5
13
1.59 The amplitude of complex signal x(t) is defined by
2 2 2 2 2 2
xR( t ) + xI ( t ) = A cos ( ωt + φ ) + A sin ( ωt + φ )
2 2
= A cos ( ωt + φ ) + sin ( ωt + φ )
= A
1
2
-∆/2
t
0 ∆/2
- 12
14
The output of a differentiator in response to x(t) has the corresponding waveform:
y(t)
1 δ(t - 1 )
1/∆ 2 2
∆/2 t
-∆/2 0
1 δ(t + ∆ )
2 2
y(t) consists of the following components:
1. Rectangular pulse of duration ∆ and amplitude 1/∆ centred on the origin; the area
under this pulse is unity.
2. An impulse of strength 1/2 at t = ∆/2.
3. An impulse of strength -1/2 at t = -∆/2.
1.62 We are given a triangular pulse of total duration ∆ and unit area, which is symmetrical
about the origin:
x(t)
2/∆
slope = -4/∆2
slope = 4/∆2
area = 1
t
-∆/2 0 ∆/2
15
(a) Applying x(t) to a differentiator, we get an output y(t) depicted as follows:
y(t)
∆/2
t
-∆/2
area = 2/∆
-4/∆2
(b) As the triangular pulse duration ∆ approaches zero, the differentiator output
approaches the combination of two impulse functions described as follows:
• An impulse of positive infinite strength at t = 0-.
• An impulse of negative infinite strength at t = 0+.
(c) The total area under the differentiator output y(t) is equal to (2/∆) + (-2/∆) = 0.
In light of the results presented in parts (a), (b), and (c) of this problem, we may now make
the following statement:
When the unit impulse δ(t) is differentiated with respect to time t, the resulting output
consists of a pair of impulses located at t = 0- and t = 0+, whose respective strengths
are +∞ and -∞.
Equation (5) describes the operator H that defines the output y(t) in terms of the input x(t).
16
1.64 Memoryless Stable Causal Linear Time-invariant
(a) ✓ ✓ ✓ x ✓
(b) ✓ ✓ ✓ ✓ ✓
(c) ✓ ✓ ✓ x ✓
(d) x ✓ ✓ ✓ ✓
(e) x ✓ x ✓ ✓
(f) x ✓ ✓ ✓ ✓
(g) ✓ ✓ x x ✓
(h) x ✓ ✓ ✓ ✓
(i) x ✓ x ✓ ✓
(j) ✓ ✓ ✓ ✓ ✓
(k) ✓ ✓ ✓ ✓ ✓
(l) ✓ ✓ ✓ x ✓
Let
k
S { x(n)} = x(n – k )
We may then rewrite Eq. (1) in the equivalent form
1 2 3
y [ n ] = a0 x [ n ] + a1 S { x [ n ] } + a2 S { x [ n ] } + a3 S { x [ n ] }
1 2 3
= ( a0 + a1 S + a2 S + a3 S ) { x [ n ] }
= H { x[n]}
where
1 2 3
H = a0 + a1 S + a2 S + a3 S
. . .
(a) Cascade implementation of operator H:
x[n]
S S S
a0 a1 a2 a3
Σ
y[n]
17
(b) Parallel implementation of operator H:
a0
.. S1 a1
x[n]
. S2 a2
Σ y[n]
S3 a3
1.67 The memory of the discrete-time described in Problem 1.65 extends 3 time units into the
past.
1.68 It is indeed possible for a noncausal system to possess memory. Consider, for example, the
. .
system illustrated below:
x[n] x(n - l)
x(n + k) Sk Sl
ak a0 al
y[n]
l{x[n]}
That is, with S = x[n - l], we have the input-output relation
y [ n ] = a0 x [ n ] + ak x [ n + k ] + al x [ n – l ]
This system is noncausal by virtue of the term akx[n + k]. The system has memory by
virtue of the term alx[n - l].
18
1.69 (a) The operator H relating the output y[n] to the input x[n] is
1 2
H = 1+S +S
where
k
S { x[n]} = x[n – k ] for integer k
. .
feedback implementation of the inverse operator Hinvis described in Fig. 2
x[n]
S S
Fig. 1 y[n]
Operator H
y[n]
+
Σ
-
- . x[n]
S . S
Fig. 2
Inverse Operator Hinv
1.70 For the discrete-time system (i.e., the operator H) described in Problem 1.65 to be time-
invariant, the following relation must hold
n0 n0
S H = HS for integer n0 (1)
where
n
S 0 { x [ n ] } = x [ n – n0 ]
and
1 2
H = 1+S +S
We first note that
n n 1 2
S 0H = S 0(1 + S + S )
n n +1 n0 + 2
= S 0+S 0 +S (2)
Next we note that
n0 1 2 n0
HS = (1 + S + S )S
19
n 1+n 2+n
= S 0+S 0 0
+S (3)
From Eqs. (2) and (3) we immediately see that Eq. (1) is indeed satisfied. Hence, the
system described in Problem 1.65 is time-invariant.
This circuit, consisting of the series combination of the resistor R(t) and capacitor C, is
time variant because of R(t).
The input of the circuit, v1(t), is defined in terms of the output v2(t) by
dv 2 ( t )
v 1 ( t ) = R ( t )C --------------- + v 2 ( t )
dt
Doubling the input v1(t) results in doubling the output v2(t). Hence, the property of
homogeneity is satisfied.
Moreover, if
N
v1 ( t ) = ∑ v1, k ( t )
k=1
then
N
v2 ( t ) = ∑ v2, k ( t )
k=1
where
dv 2, k ( t )
v 1, k ( t ) = R ( t )C ------------------- + v 2, k ( t ) , k = 1,2,...,N
dt
We therefore conclude that the time-varying circuit of Fig. P1.71 is indeed linear.
20
Let y1(t) and y2(t) be the outputs of this system produced by the inputs x1(t) and x2(t),
respectively. Let x(t) = x1(t) + x2(t), and let y(t) be the corresponding output. We then note
that
p
y ( t ) = ( x1 ( t ) + x2 ( t ) ) ≠ y1 ( t ) + y2 ( t ) for p ≠ 0, 1
Hence the system described by Eq. (1) is nonlinear.
1.74 The system configuration shown in Fig. 1.56(a) is simpler than the system configuration
shown in Fig. 1.56(b). They both involve the same number of multipliers and summer.
however, Fig. 1.56(b) requires N replicas of the operator H, whereas Fig. 1.56(a) requires a
single operator H for its implementation.
System H2 is causal because the output does not appear before the input. The duration
of the output is longer than that of the input. This suggests that H2 must have memory.
It is time-invariant.
System H3 is noncausal because the output appears before the input. Part of the output,
extending from t = -1 to t = +1, is due to a differentiating action performed on the
input; this action is memoryless. The rectangular pulse, appearing in the output from
t = +1 to t = +3, may be due to a pulse generator that is triggered by the termination of
the input. On this basis, H3 would have to be viewed as time-varying.
21
Finally, the output of H4 is exactly the same as the input, except for an attenuation by a
factor of 1/2. Hence, H4 is a causal, memoryless, and time-invariant system.
1.76 H1 is representative of an integrator, and therefore has memory. It is causal because the
output does not appear before the input. It is time-invariant.
H2 is noncausal because the output appears at t = 0, one time unit before the delayed input
at t = +1. It has memory because of the integrating action performed on the input. But,
how do we explain the constant level of +1 at the front end of the output, extending from
t = 0 to t = +1? Since the system is noncausal, and therefore operating in a non real-time
fashion, this constant level of duration 1 time unit may be inserted into the output by
artificial means. On this basis, H2 may be viewed as time-varying.
H3 is causal because the output does not appear before the input. It has memory because of
the integrating action performed on the input from t = 1 to t = 2. The constant level
appearing at the back end of the output, from t = 2 to t = 3, may be explained by the
presence of a strong device connected in parallel with the integrator. On this basis, H3 is
time-invariant.
Consider next the input x(t) depicted in Fig. P1.76b. This input may be decomposed into
the sum of two rectangular pulses, as shown here:
2 2 2
1 1 + 1
0 1 2 t 0 1 2 t 0 1 2 t
Response of H1 to x(t):
y1,A(t) y1,B(t) y1(t)
2 2 2
1
+ 1 1
0 1 2 t 0 1 2 t 0 1 2 t
22
Response of H2 to x(t):
y2,A(t) y2(t)
y2,B(t)
2 2 2
1
1
+ 1
2 2
t t t
-1 0 0 1 -1 0 1
-1 -1 -1
-2 -2
The rectangular pulse of unit amplitude and unit duration at the front end of y2(t) is
inserted in an off-line manner by artificial means
Response of H3 to x(t):
y3(t)
y3,A(t) y3,B(t)
3
2 2 2
1
+ 1 1
0 1 2 t 0 1 2 3 t 0 1 2 3 t
1.77 (a) The response of the LTI discrete-time system to the input δ[n-1] is as follows:
y[n]
2 o
1 o
2 4 5
o o o o n
-1 1 3
-1 o
(b) The response of the system to the input 2δ[n] - δ[n - 2] is as follows
y[n]
4o
1 o
1 4
o o o o o n
-2 -1 0 2 3 5 6
-1 o
-2 o
23
(c) The input given in Fig. P1.77b may be decomposed into the sum of 3 impulse
functions: δ[n + 1], -δ[n], and 2δ[n - 1]. The response of the system to these three
components is given in the following table:
-1 +2 +1
0 -1 -2 -3
1 +1 +1 +4 +6
2 -1 -2 -3
3 +2 2
2 o
o 1
2 4 5 6
o o o o o
-3 -2 -1 0 1 3
-1
-2
-3 o
o
Advanced Problems
Substituting
x ( t ) = xe ( t ) + xo ( t )
into this formula yields
∞
∫–∞ [ xe ( t ) + xo ( t ) ]
2
E = dt
∞ 2
∫–∞ [ xe ( t ) + xo ( t ) + 2xe ( t )xo ( t ) ]
2 2
= dt
∞ ∞ ∞
∫–∞ xe ( t ) dt + ∫–∞ xo ( t ) dt + 2 ∫–∞ xe ( t )xo ( t ) dt
2 2
= (1)
24
With xe(t) even and xo(t) odd, it follows that the product xe(t)xo(t) is odd, as shown by
x e ( – t )x o ( – t ) = x e ( t ) [ – x o ( t ) ]
= – x e ( t )x o ( t )
Hence,
∞ 0 ∞
∫–∞ ( x e ( t )x o ( t ) ) dt = ∫–∞ x e ( t )x o ( t ) dt + ∫ x e ( t )x o ( t ) dt
0
0 ∞
= ∫–∞ ( – xe ( t )xo ( t ) ) ( –dt ) + ∫0 ( xe ( t )xo ( t ) ) dt
∞ ∞
= – ∫ x e ( t )x o ( t ) dt + ∫ x e ( t )x o ( t ) dt
0 0
= 0
∑x
2
E = [n]
n=-∞
∞
∑ [ xe [ n ] + xo [ n ] ]
2
=
n=-∞
∞ ∞ ∞
∑ ∑ ∑ xe [ n ]xo [ n ]
2 2 2
= xe [ n ] + xo [ n ] +2 (2)
n=-∞ n=-∞ n=-∞
With
x e [ – n ]x o [ – n ] = – x e [ n ]x o [ n ]
it follows that
∞ 0 ∞
25
Accordingly, Eq. (2) reduces to
∞ ∞
∑ ∑ xo [ n ]
2 2
E = xe [ n ] +
n=-∞ n=-∞
Rearranging terms:
2
d i 1 ( t ) R di 1 ( t ) 1 1
- + --- -------------- + -------i 1 ( t ) = -------i ( t )
---------------- (4)
dt
2 L dt LC LC
(b) Comparing Eqs. (4) with Eq. (1.108) for the MEMS as presented in the text, we may
derive the following analogy:
ωn 1 ⁄ LC
Q ωn L 1 L
---------- = --- ----
R R C
x(t) 1
-------i ( t )
LC
26
1.80 (a) As the pulse duration ∆ approaches zero, the area under the pulse x∆(t) remains equal
to unity, and the amplitude of the pulse approaches infinity.
(b) The limiting form of the pulse x∆(t) violates the even-function property of the unit
impulse:
δ ( –t ) = δ ( t )
Let T0 denote the fundamental period of x(t), assumed to be periodic. Then, by definition,
x(t ) = x(t + T 0) (2)
Substituting t +T0 for t into Eq. (1) and then using Eq. (2), we may write
y(t + T 0) = H { x(t + T 0)}
= H { x(t )}
= y(t ) (3)
Hence, the output y(t) is also periodic with the same period T0.
At t = ∆/2, we have
A = x∆ ( ∆ ⁄ 2 )
1 –∆ ⁄ ( 2τ )
= ---e
∆
(b) The area under the pulse x∆(t) must equal unity for
δ ( t ) = lim x ∆ ( t )
∆→0
27
∞ ∞
∫–∞ x ∆ ( t ) dt = 2 ∫ x ∆ ( t ) dt
0
∞ 1 –t ⁄ τ
= 2 ∫ ---e dt
0 ∆
2 –t ⁄ τ ∞
= --- ( – τ )e
∆ 0
2τ
= -----
∆
(c)
8
7 ∆=1
∆ = 0.5
∆ = 0.25
∆ = 0.125
6
5
Amplitude
0
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
Time
1.83 (a) Let the integral of a continuous-time signal x(t), – ∞ < t < ∞ , be defined by
t
y(t ) = ∫–∞ x ( τ ) dτ
0 t
= ∫–∞ x ( t ) dt + ∫0 x ( τ ) dτ
28
0
The definite integral ∫–∞ x ( t ) dt , representing the initial condition, is a constant.
With differentiation as the operation of interest, we may also write
dy ( t )
x ( t ) = -------------
dt
Clearly, the value of x(t) is unaffected by the value assumed by the initial condition
0
∫–∞ x ( t ) dt
It would therefore be wrong to say that differentiation and integration are the inverse
of each other. To illustrate the meaning of this statement, consider the two following
two waveforms that differ from each other by a constant value for – ∞ < t < ∞ :
x1(t) x2(t)
slope = a slope = a
0 t 0 t
d x1 ( t ) d x2 ( t )
Yet, y ( t ) = --------------- = --------------- , as illustrated below:
dt dt
y(t)
0 t
29
For Fig. P1.83(b):
L dy ( t )
y ( t ) + --- ------------- = x ( t )
R dt
(c) Consider the following two scenarios describing the LR circuits of Fig. P1.83
• The input x(t) consists of a voltage source with an average value equal to zero.
• The input x(t) includes a dc component E (exemplified by a battery).
These are two different input conditions. Yet for large R/L, the differentiator of Fig.
P1.83(a) produces the same output. On the other hand, for small R/L the integrator of
Fig. P1.83(b) produces different outputs. Clearly, on this basis it would be wrong to
say that these two LR circuits are the inverse of each other.
• Homogeneity: If the input x(t) is scaled by an arbitrary factor a, the output y(t) will
be scaled by the same factor.
• Superposition: If the input x(t) consists of two additive components x1(t) and x2(t),
then
y ( t ) = y1 ( t ) + y2 ( t )
where
y ( t ) = A 0 cos ( ω 0 t + φ )x k ( t ) , k = 1,2
30
A cos φδ ( 0 ), t=0
= 0
0, otherwise
A cos ( ω 0 t 0 + φ )δ ( 0 ), t = t0
= 0
0, otherwise
y ( t ) = cos 2π f c t + k ∫ x ( τ ) dτ
t
(1)
–∞
The output is nonlinear as the system violates both the homogeneity and superposition
properties:
• Let x(t) be scaled by the factor a. The corresponding value of the output is
y a ( t ) = cos 2π f c t + ka ∫ x ( τ ) dτ
t
–∞
For a ≠ 1 , we clearly see that y a ( t ) ≠ y ( t ) .
• Let
x ( t ) = x1 ( t ) + x2 ( t )
Then
y ( t ) = cos 2π f c t + k ∫ x 1 ( τ ) dτ + k ∫ x 2 ( τ ) dτ
t t
–∞ –∞
≠ y1 ( t ) + y2 ( t )
where y1(t) and y2(t) are the values of y(t) corresponding to x1(t) and x2(t),
respectively.
y′ ( t ) = cos 2π f c t + k ∫ δ ( τ ) dτ
t
–∞
31
+
= cos k, t = 0
y″ ( t ) = cos 2π f c t + k ∫ δ ( τ – t 0 ) dτ
t
–∞
+
= cos ( 2π f c t 0 + k ) , t = t0
2 2
• DC component of amplitude ( A 1 + A 2 ) ⁄ 2
2
• Sinusoidal component of frequency 2ω1, amplitude A 1 ⁄ 2 , and phase 2φ1
2
• Sinusoidal component of frequency 2ω2, amplitude A 2 ⁄ 2 , and phase 2φ2
• Sinusoidal component of frequency (ω1 - ω2), amplitude A1A2, and phase (φ1 - φ2)
• Sinusoidal component of frequency (ω1 + ω2), amplitude A1A2, and phase (φ1 + φ2)
32
x ( t ) = A cos ( ωt + φ ) ,
produces the output
3 3
y ( t ) = A cos ( ωt + φ )
3 3 1
= A cos ( ωt + φ ) ⋅ --- ( cos ( ( 2ωt + 2φ ) + 1 ) )
2
3
A
= ------ [ cos ( ( 2ωt + 2φ ) + ( ωt + φ ) )
2
3
A
+ cos ( ( 2ωt + 2φ ) – ( ωt + φ ) ) ] + ------ cos ( ωt + φ )
2
3 3
A A
= ------ [ cos ( 3ωt + 3φ ) + cos ( ωt + φ ) ] + ------ cos ( ωt + φ )
2 2
3
A 3
= ------ cos ( 3ωt + 3φ ) + A cos ( ωt + φ )
2
To extract the component with frequency 3ω (i.e., the third harmonic), we need to use a
band-pass filter centered on 3ω and a pass-band narrow enough to suppress the
fundamental component of frequency ω.
From the analysis presented here we infer that, in order to generate the pth harmonic in
response to a sinusoidal component of frequency ω, we require the use of two subsystems:
1.88 (a) Following the solution to Example 1.21, we start with the pair of inputs:
∆
x 1 ( t ) = ---u t + ---
1
∆ 2
∆
x 2 ( t ) = ---u t – ---
1
∆ 2
33
∆
– α t + ---
2 ∆ ∆
cos ω n t + --- u t + ---
1
y 1 ( t ) = --- 1 – e
∆ 2 2
∆
– α t – ---
2 ∆ ∆
cos ω n t – --- u t – ---
1
y 2 ( t ) = --- 1 – e
∆ 2 2
is given by
1 ∆ ∆
y ∆ ( t ) = --- u t + --- – u t – ---
∆ 2 2
–α t + ∆---
1 2 ω n ∆ ∆
– --- e cos ω n t + ---------
- u t + ---
∆ 2 2
∆
– α t – ---
2
ω n ∆ ∆
–e cos ω n t – ---------- u t – ---
2 2
1 ∆ ∆
----- z ( t ) = lim --- z t + --- – z t – ---
d
dt ∆ → 0 ∆ 2 2
– αt
Hence, with z ( t ) = e cos ( ω n t )u ( t ) , we find that the impulse response of the
system is
y ( t ) = lim y ∆ ( t )
∆→0
d –αt
= δ ( t ) – ----- [ e cos ( ω n t )u ( t ) ]
dt
d –αt – αt d
= δ ( t ) – ----- [ e cos ( ω n t ) ] ⋅ u ( t ) – [ e cos ( ω n t ) ] ----- u ( t )
dt dt
– αt – αt
= δ ( t ) – [ – αe cos ( ω n t ) – ω n e sin ( ω n t ) ]u ( t )
– αt
–e cos ( ω n t )δ ( t ) (1)
34
– αt
Since e cos ( ω n t ) = 1 at t = 0, Eq. (1) reduces to
– αt – αt
y ( t ) = [ αe cos ( ω n t ) + ω n e sin ( ω n t ) ]u ( t ) (2)
1.89 Building on the solution described in Fig. 1.69, we may relabel Fig. P1.89 as follows
x[n] +
+
Σ .
y′[n]
+
+
Σ y[n]
0.5 S 0.5
.
where (see Eq. (1.117))
∞
∑ 0.5
k
y′ [ n ] = x [ n ] + x[n – k ]
k=1
and
y [ n ] = y′ [ n ] + 0.5y′ [ n – 1 ]
35
∞ ∞
∑ 0.5 ∑ 0.5
k k
= x[n] + x [ n – k ] + 0.5x [ n – 1 ] + x[n – 1 – k ]
k=1 k=1
∞ ∞
1.90 According to Eq. (1.108) the MEMS accelerometer is described by the second-order
equation
d y ( t ) ω n dy ( t )
2
2
- + ------ ------------- + ω n y ( t ) = x ( t )
-------------- (1)
dt
2 Q dt
Next, we use the approximation (assuming that Ts is sufficiently small)
T T
----- y ( t ) ≈ ----- y t + -----s – y t – -----s
d 1
(2)
dt Ts 2 2
11
≈ ----- ----- [ y ( t + T s ) – y ( t ) ]
T sT s
11
– ----- ----- [ y ( t ) – y ( t – T s ) ]
T sT s
1
= -----2- [ y ( t + T s ) – 2y ( t ) + y ( t – T s ) ] (3)
Ts
Define
2
ωn T s
-----------
- = a1 ,
Q
2 2
ωn T s – 2 = a2 ,
36
1
-----2- = b 0 ,
Ts
t = nT s ⁄ 2 ,
y [ n ] = y ( nT s ⁄ 2 ) ,
where, in effect, continuous time is normalized with respect to Ts/2 to get n.
We may then rewrite Eq. (4) in the form of a noncausal difference equation:
y [ n + 2 ] + a1 y [ n + 1 ] + a2 y [ n ] – a1 y [ n – 1 ] + y [ n – 2 ] = b0 x [ n ] (5)
d 1
----- y ( t ) ≈ ----- [ y ( t + T s ) – y ( t ) ]
dt Ts
However, in general, for a given sampling period Ts, this approximation may not be as
accurate as that defined in Eq. (2).
(i) Integration tends to attenuate high frequencies. Recognizing that noise contains a
broad band of frequencies, integration has a smoothing effect on receiver noise.
(ii) Differentiation tends to accentuate high frequencies. Correspondingly, differentiation
has the opposite effect to integration on receiver noise.
37
Correspondingly, we may represent the parallel RC circuit of Fig. P1.92 by the block
diagram
i(t)
+
-
Σ
i1(t) 1 t
---- ∫
C –∞
dτ .
v(t)
1
R
The system described herein is a feedback system with the capacitance C providing the
forward path and the conductance 1/R providing the feedback path.
38
axis([0 5/20 -6 6])
Square Wave
6
2
Voltage
−2
−4
−6
0 0.05 0.1 0.15 0.2 0.25
time (sec)
Sawtooth Wave
6
2
Voltage
−2
−4
−6
0 0.05 0.1 0.15 0.2 0.25
time (sec)
39
x(t) = e−t − e−0.5t
5
3
Amplitude
−1
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (sec)
10
Amplitude
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (sec)
40
ylabel(’Amplitude’)
title(’Exponentially Damped Sinusoid’)
axis([-2/1000 2/1000 -120 120])
legend(’a = 500’, ’a = 750’, ’a = 1000’)
a = 500
a = 750
100
a = 1000
50
Amplitude
−50
−100
41
Raised Cosine Filter
1
0.8
0.6
0.4
0.2
Amplitude
−0.2
−0.4
−0.6
−0.8
−1
−5 −4 −3 −2 −1 0 1 2 3 4 5
Time (sec)
42
%Plot data
figure(1); clf;
plot(t,x1,’b’)
hold on
plot(t,x2,’r:’)
xlabel(’Time (sec)’)
ylabel(’Amplitude’)
title(’Rectangular Pulse’)
axis([-2 10 -1 11])
legend(’Zero Delay’, ’Delay = 1.5’);
Rectangular Pulse
Zero Delay
Delay = 1.5
10
6
Amplitude
−2 0 2 4 6 8 10
Time (sec)
43
Solutions to Additional Problems
2.32. A discrete-time LTI system has the impulse response h[n] depicted in Fig. P2.32 (a). Use linear-
ity and time invariance to determine the system output y[n] if the input x[n] is
Use the fact that:
1
x[k] h[n−k]
... ...
−3 −2 −1 k n−3 k
Figure P2.33. (a) Graph of x[k] and h[n − k]
x[k] h[n−k]
k
3
... ...
12 3 k n−2 k
Figure P2.33. (b) Graph of x[k] and h[n − k]
for n − 2 ≤ 3 n≤5
n−2
y[n] = 3k
k=−∞
1 n
y[n] = 3
6
for n − 2 ≥ 4 n≥6
3
y[n] = 3k
k=−∞
2
81
y[n] =
2
1 n
6 3 n≤5
y[n] = 81
2 n≥6
1 n
(c) y[n] = 4 u[n] ∗ u[n + 2]
x[k] h[n−k]
1 k
( ) 4
... ...
12 k n+2 k
Figure P2.33. (c) Graph of x[k] and h[n − k]
3
(e) y[n] = (−1)n ∗ 2n u[−n + 2]
∞
y[n] = (−1)k 2n−k
k=n−2
∞ k
1
= 2n
−
2
k=n−2
1 n−2
−2
= 2n
1 − − 12
8
= (−1)n
3
1 n
(f) y[n] = cos( π2 n) ∗ 2 u[n − 2]
n−2 π 1 n−k
y[n] = cos k
2 2
k=−∞
substituting p = −k
∞ π 1 n+p
y[n] = cos p
2 2
p=−(n−2)
∞ p n+p
(−1) 2 12 n even
y[n] =
p=−(n−2) p n+p
∞ 1
p=−(n−3) (−1) n odd
2
2
1 n
y[n] = 5 (−1) n even
1 n+1
10 (−1) n odd
4
y[n] = 0
for n − 10 ≥ 0 n ≥ 10
n−10
β
k
y[n] = αn
α
k=0
β n−9
αn 1−( α ) α = β
β
y[n] = 1− α
α(n − 9) α=β
(j) y[n] = (u[n + 10] − 2u[n] + u[n − 4]) ∗ β n u[n], |β| < 1
5
for n > 3
−1 k
3 k
1 1
y[n] = β n
−β n
β β
k=−10 k=0
β −β
n+11 n+1
β − β n−3
n+1
y[n] = −
β−1 β−1
0 n < −10
β n+11 −1 −10 ≤ n < 0
β−1
y[n] = β n+11 −β n+1 β n+1 −1
− 0≤n≤3
β−1 β−1
β n+11 −β n+1
− β n+1 −β n−3
n>3
β−1 β−1
∞
(l) y[n] = u[n] ∗ p=0 δ[n − 4p]
for n < 0
y[n] = 0
for n ≥ 0 n = 0, 4, 8, ...
n
y[n] = + 1
4
for n ≥ 0 n = 0, 4, 8, ...
n
y[n] =
4
∞
(m) y[n] = β n u[n] ∗ p=0 δ[n − 4p], |β| < 1
for n < 0
6
y[n] = 0
for n ≥ 0 n = 0, 4, 8, ...
n
4
y[n] = β 4k
k=0
1 − β 4( 4 +1)
n
y[n] =
1 − β4
for n ≥ 0 n = 1, 5, 9, ...
n−1
4
y[n] = β 4k−1
k=0
n−1
1 1 − β 4( 4 +1)
y[n] =
β 1 − β4
for n ≥ 0 n = 2, 6, 10, ...
n−2
4
y[n] = β 4k−2
k=0
n−2
1 1 − β 4( 4 +1)
y[n] = 2
β 1 − β4
for n ≥ 0 n = 3, 7, 11, ...
n−3
4
y[n] = β 4k−3
k=0
n−3
1 1 − β 4( 4 +1)
y[n] = 3
β 1 − β4
1 n
(n) y[n] = 2 u[n + 2] ∗ γ |n|
for n + 2 ≤ 0 n ≤ −2
n+2 n−k
1
y[n] = γ −k
2
k=−∞
n n+2
γ −k
1
y[n] =
2 2
k=−∞
let l = −k
n ∞
γ l
1
y[n] =
2 2
l=−(n+2)
n γ −(n+2)
1 2
y[n] =
2 1− γ
n 2
2 1
2 γ
y[n] =
γ 1 − γ2
for n + 2 ≥ 0 n > −2
7
0 n−k 1 n−k
n+2
1
y[n] = γ −k + γk
2 2
k=−∞ k=1
n 0 n n+2
1 γ −k 1 k
y[n] = + (2γ)
2 2 2
k=−∞ k=1
n
1 1 1 − (2γ)n+3
y[n] = + − 1
2 1 − γ2 1 − 2γ
2.34. Consider the discrete-time signals depicted in Fig. P2.34. Evaluate the convolution sums indi-
cated below.
(a) m[n] = x[n] ∗ z[n]
8
m[n] = 0
for n + 5 < 1 −8 ≤ n < −4
n+5
m[n] = 1=n+9
k=−3
for n − 1 < −2 −4 ≤ n < −1
0
n+5
m[n] = 1− 1 = −n − 1
k=−3 k=1
for n + 5 < 5 −1 ≤ n < 0
0
n+5
m[n] = 1− 1 = −2n − 4
k=n−1 k=1
for n − 1 < 1 0≤n<2
0
4
m[n] = 1− 1 = −n − 2
k=n−1 k=1
for n − 1 < 5 2≤n<6
4
m[n] = − 1=n−6
k=n−1
for n − 1 ≥ 5 n≥6
m[n] = 0
0 n < −8
n+3 −8 ≤ n < −4
−n − 1 −4 ≤ n < −1
m[n] = −2n − 4 −1 ≤ n < 0
−n − 2
0≤n<2
n−6 2≤n<6
0 n≥6
9
m[n] = 0
0 n < −10
−5n − 55 + 2 (n + 10)(n + 11) −10 ≤ n < −4
1
2 (n − 1) −4 ≤ n < 1
7 21
m[n] = + 2
1
(7 − n) (n − 1) + 12 (6 − n) 1≤n<7
2
0 n≥7
Intervals
10
n < −3
−3 ≤ n < 1
1≤n<5
5≤n<6
6≤n<9
9 ≤ n < 13
n ≥ 13
m[n] = y[n]*z[n]
2
1
y[k]
−1
−2
−4 −3 −2 −1 0 1 2 3 4 5
2
z[n−k]
0
n−8 n−3 n
−1
k
11
P2.83(e) m[n] = y[n]*z[n]
4
0
me(n) : amplitude
−2
−4
−6
−8
−2 0 2 4 6 8 10 12
Time
Intervals
n < −11
−11 ≤ n < −7
−7 ≤ n ≤ −5
−4 ≤ n < −3
−3 ≤ n < −1
−1 ≤ n < 1
1≤n<3
3≤n<5
5≤n<7
7≤n<9
9 ≤ n < 11
11 ≤ n < 15
n ≥ 15
12
m[n] = y[n]*g[n]
2
1
y[k]
−1
−2
−4 −3 −2 −1 0 1 2 3 4 5
1.5
1
g[n−k]
0.5
0
n−10 n−4 n+2 n+8
−0.5
−1
k
1
mf(n) : amplitude
−1
−2
−3
−4
−10 −5 0 5 10
Time
13
Intervals
n < −7
−7 ≤ n < −3
−3 ≤ n < −2
−2 ≤ n < 1
1≤n<2
2≤n<5
5≤n<9
n≥9
m[n] = y[n]*w[n]
2
1
y[k]
−1
−2
−4 −3 −2 −1 0 1 2 3 4 5
2
w[n−k]
1
n−4 n+4
0
n
−1
−2
k
14
P2.83(g) m[n] = y[n]*w[n]
2
mg(n) : amplitude
−2
−4
−6
−8
−6 −4 −2 0 2 4 6 8
Time
Intervals
n < −8
−8 ≤ n < −4
−4 ≤ n < 0
0≤n<2
2≤n<6
6 ≤ n < 10
n ≥ 10
15
m[n] = y[n]*w[n]
2
1
y[k]
−1
−2
−4 −3 −2 −1 0 1 2 3 4 5
1
f[n−k]
n+5
0
n−5
−1
−2
−3
k
4
mh(n) : amplitude
−2
−4
−6
−8 −6 −4 −2 0 2 4 6 8
Time
16
Intervals
n < −8
−8 ≤ n < −4
−4 ≤ n < −1
−1 ≤ n < 1
1≤n<2
2≤n<4
4≤n<7
7≤n<8
8 ≤ n < 11
11 ≤ n < 13
13 ≤ n < 14
14 ≤ n < 19
n ≥ 19
m[n] = z[n]*g[n]
3
2
z[k]
−1
−1 0 1 2 3 4 5 6 7 8 9
1.5
1
g[n−k]
0.5
0
n−10 n−4 n+2 n+8
−0.5
−1
k
17
P2.83(i) m[n] = z[n]*g[n]
12
10
8
mi(n) : amplitude
0
−5 0 5 10 15
Time
Intervals
n < −12
−12 ≤ n < −7
−7 ≤ n < −6
−6 ≤ n < −3
−3 ≤ n < −1
−1 ≤ n < 0
0≤n<3
3≤n<5
5≤n<7
7≤n<9
9 ≤ n < 11
11 ≤ n < 15
n ≥ 15
18
m[n] = w[n]*g[n]
4
2
w[k]
−1
−2
−5 −4 −3 −2 −1 0 1 2 3 4 5
1.5
1
g[n−k]
0.5
0
n−10 n−4 n+2 n+8
−0.5
−1
k
5
mj(n) : amplitude
−1
−2
−10 −5 0 5 10
Time
19
Intervals
n < −13
−13 ≤ n < −7
−7 ≤ n < −2
−2 ≤ n < −1
−1 ≤ n < 4
4≤n<5
5 ≤ n < 10
10 ≤ n < 16
n ≥ 16
m[n] = f[n]*g[n]
3
1
f[k]
−1
−2
−3
−6 −4 −2 0 2 4 6
1.5
1
g[n−k]
0.5
0
n−10 n−4 n+2 n+8
−0.5
−1
k
20
P2.83(k) m[n] = f[n]*g[n]
2
mk(n) : amplitude
−2
−4
−6
−10 −5 0 5 10 15
Time
2.35. At the start of the first year $10,000 is deposited in a bank account earning 5% per year. At the
start of each succeeding year $1000 is deposited. Use convolution to determine the balance at the start
of each year (after the deposit). Initially $10000 is invested.
21
P2.35 Convolution signals
12000
10000
8000
x[k]
6000
4000
2000
0
−2 −1 0 1 2 3 4 5 6 7 8
1.5
(1.05)n−k
1
h[n−k]
0.5
0
n
−2 −1 0 1 2 3 4 5 6 7 8
Time in years
for n = −1
−1
y[−1] = 10000(1.05)n−k = 10000(1.05)n+1
k=−1
$1000 is invested annually, similar to example 2.5
for n ≥ 0
n
y[n] = 10000(1.05)n+1 + 1000(1.05)n−k
k=0
n
y[n] = 10000(1.05)n+1 + 1000(1.05)n (1.05)−k
k=0
1 n+1
n+1 − 1.05 n1
y[n] = 10000(1.05) + 1000(1.05)
1 − 1.05
1
y[n] = 10000(1.05)n+1 + 20000 1.05n+1 − 1
22
4 P2.35 Yearly balance of investment
x 10
16
14
12
Investment value in dollars
10
0
−5 0 5 10 15 20 25 30 35
Time in years
2.36. The initial balance of a loan is $20,000 and the interest rate is 1% per month (12% per year). A
monthly payment of $200 is applied to the loan at the start of each month. Use convolution to calculate
the loan balance after each monthly payment.
23
P2.36 Convolution signals
20000
15000
10000
x[k]
5000
−5000
−2 −1 0 1 2 3 4 5 6 7 8
1.5
n−k
(1.01)
1
h[n−k]
0.5
0
n
−2 −1 0 1 2 3 4 5 6 7 8
k
for n = −1
−1
y[n] = 20000(1.01)n−k = 20000(1.01)n+1
k=−1
for ≥ 0
n
y[n] = 20000(1.01)n+1 − 200(1.01)n−k
k=0
n
y[n] = 20000(1.01)n+1 − 200(1.01)n (1.01)−k
k=0
y[n] = 20000(1.01) n+1
− 20000[(1.01) n+1
− 1]
24
4 P2.36 Monthly balance of loan
x 10
2.2
1.8
1.6
1.4
Loan value in dollars
1.2
0.8
0.6
0.4
0.2
0
−5 0 5 10 15 20 25 30 35
Time in years
Paying $200 per month only takes care of the interest, and doesn’t pay off any of the principle of the loan.
2.37. The convolution sum evaluation procedure actually corresponds to a formal statement of the
well-known procedure for multiplication of polynomials. To see this, we interpret polynomials as signals
by setting the value of a signal at time n equal to the polynomial coefficient associated with monomial z n .
For example, the polynomial x(z) = 2+3z 2 −z 3 corresponds to the signal x[n] = 2δ[n]+3δ[n−2]−δ[n−3].
The procedure for multiplying polynomials involves forming the product of all polynomial coefficients that
result in an n-th order monomial and then summing them to obtain the polynomial coefficient of the n-th
order monomial in the product. This corresponds to determining wn [k] and summing over k to obtain
y[n].
Evaluate the convolutions y[n] = x[n] ∗ h[n] using both the convolution sum evaluation procedure and as
a product of polynomials.
(a) x[n] = δ[n] − 2δ[n − 1] + δ[n − 2], h[n] = u[n] − u[n − 3]
x(z) = 1 − 2z + z 2
h(z) = 1 + z + z2
y(z) = x(z)h(z)
= 1 − z − z3 + z4
y[n] = δ[n] − δ[n − 1] − δ[n − 3] − δ[n − 4]
25
y[n] = x[n] ∗ h[n] = h[n] − 2h[n − 1] + h[n − 2]
= δ[n] − δ[n − 1] − δ[n − 3] − δ[n − 4]
x(z) = z + z2 + z3 + z4
h(z) = z + z2 + z3 + z4
y(z) = x(z)h(z)
= z 2 + 2z 3 + 3z 4 + 4z 5 + 3z 6 + 2z 7 + z 8
y[n] = δ[n − 2] + 2δ[n − 3] + 3δ[n − 4] + 4δ[n − 5] + 3δ[n − 6] + 2δ[n − 7] + δ[n − 8]
for n − 1 ≤ 0 n≤1
y[n] = 0
for n − 1 ≤ 4 n≤5
n−1
y[n] = 1=n−1
k=1
for n − 4 ≤ 4 n≤8
4
y[n] = 1=9−n
k=n−4
for n − 4 ≥ 5 n≥9
y[n] = 0
y[n] = δ[n − 2] + 2δ[n − 3] + 3δ[n − 4] + 4δ[n − 5] + 3δ[n − 6] + 2δ[n − 7] + δ[n − 8]
2.38. An LTI system has impulse response h(t) depicted in Fig. P2.38. Use linearity and time invari-
ance to determine themsystem output y(t) if the input x(t) is
(a) x(t) = 2δ(t + 2) + δ(t − 2)
∞
(c) x(t) = p
p=0 (−1) δ(t − 2p)
∞
y(t) = (−1)p h(t − 2p)
p=0
26
2.39. Evaluate the continuous-time convolution integrals given below.
(a) y(t) = (u(t) − u(t − 2)) ∗ u(t)
x[ ]
h[t − ]
1 1
...
2 t
Figure P2.39. (a) Graph of x[τ ] and h[t − τ ]
for t < 0
y(t) = 0
for t < 2
t
y(t) = dτ = t
0
for t ≥ 2
2
y(t) = dτ = 2
0
0 t<0
y(t) = t 0≤t<2
2 t≥2
e−3 u[ ]
1
...
...
t+3
Figure P2.39. (b) Graph of x[τ ] and h[t − τ ]
27
t+3
y(t) = e−3τ dτ
0
1
y(t) = 1 − e−3(t+3)
3
0 t < −3
y(t) = −3(t+3)
3 1−e t ≥ −3
1
1
...
t
−1 1
Figure P2.39. (c) Graph of x[τ ] and h[t − τ ]
for t < −1
y(t) = 0
for t < 1
t
y(t) = cos(πt)dτ
−1
1
y(t) = sin(πt)
π
for t > 1
1
y(t) = cos(πt)dτ
−1
y(t) = 0
π sin(πt) −1 ≤ t < 1
1
y(t) =
0 otherwise
1
1
...
−3 1 t−4
28
Figure P2.39. (d) Graph of x[τ ] and h[t − τ ]
for t < 0
y(t) = 0
for 0 ≤ t < 5
t
1 2
y(t) = τ dτ = t
0 2
for 5 ≤ t < 10
5 t
1
y(t) = τ dτ + (10 − τ )dτ = − t2 + 10t − 25
0 5 2
for t ≥ 10
5 10
y(t) = τ dτ + (10 − τ )dτ = 25
0 5
0 t<0
1 t2
2 0≤t<5
y(t) =
− t + 10t − 25 5 ≤ t < 10
1 2
2
25 t ≥ 10
29
0 t < −3
y(t) = 4 3
3 (t + 2) + 1 −3 ≤ t < −1
8
3 t ≥ −1
for t < −1
y(t) = 0
for t < 1 −1 ≤ t < 1
t
y(t) = e−(t−τ ) cos(2πt)dτ
−1
t
eτ
y(t) = e−t
2
(cos(2πτ ) + 2π sin(2πτ ))
1 + 4π −1
e−(t−1) − e−(t+1)
y(t) =
1 + 4π 2
0 t < −1
cos(2πt)+2π sin(2πt)−e−(t+1)
y(t) = −1 ≤ t < −1
1+4π 2
e−(t−1) −e−(t+1)
1+4π 2 t≥1
30
(i) y(t) = (2δ(t + 1) + δ(t − 5)) ∗ u(t − 1)
(j) y(t) = (δ(t + 2) + δ(t − 2)) ∗ (tu(t) + (10 − 2t)u(t − 5) − (10 − t)u(t − 10))
for t < −2
y(t) = 0
for t < 2 −2 ≤ t < 2
t
y(t) = (t − τ )δ(τ + 2)dτ = t + 2
t−10
for t − 5 < −2 2≤t<3
t t
y(t) = (t − τ )δ(τ + 2)dτ + (t − τ )δ(τ − 2)dτ = 2t
t−10 t−10
for t − 5 < 2 3≤t<7
t t
y(t) = [10 − (t − τ )]δ(τ + 2)dτ + (t − τ )δ(τ − 2)dτ = 6
t−10 t−10
for t − 10 < −2 7≤t<8
t t
y(t) = [10 − (t − τ )]δ(τ + 2)dτ + [10 − (t − τ )]δ(τ − 2)dτ = 20 − 2t
t−10 t−10
for t − 10 < 2 8 ≤ t < 12
t
y(t) = [10 − (t − τ )]δ(τ − 2)dτ = 12 − t
t−10
for t − 10 ≥ 2 t ≥ 12
y(t) = 0
0 t < −2
t+2 −2 ≤ t < 2
2≤t<3
2t
y(t) = 6 3≤t<7
20 − 2t 7≤t<8
12 − t 8 ≤ t < 12
0 t ≥ 12
31
(k) y(t) = e−γt u(t) ∗ (u(t + 2) − u(t))
for t < −2
y(t) = 0
for t < 0 −2 ≤ t < 0
t
y(t) = e−γ(t−τ ) dτ
−2
1
y(t) = 1 − e−γ(t+2)
γ
for t ≥ 0
0
y(t) = e−γ(t−τ ) dτ
−2
1 −γt
y(t) = e − e−γ(t+2)
γ
0 t < −2
−γ(t+2)
γ 1−e −2 ≤ t < 0
1
y(t) =
1 −γt −γ(t+2)
γ e − e t≥0
∞ 1 p
(l) y(t) = e−γt u(t) ∗ p=0 4 δ(t − 2p)
for t < 0
y(t) = 0
for t ≥ 0
t ∞ p
1
y(t) = e−γτ δ(t − 2p − τ )dτ
0 p=0
4
∞ p
t
1
y(t) = e−γτ δ(t − 2p − τ )dτ
p=0
4 0
∞ 1 p
(m) y(t) = (2δ(t) + δ(t − 2)) ∗ p=0 2 δ(t − p)
32
∞ p
1
let x1 (t) = δ(t − p)
p=0
2
for t < 0
y(t) = 0
for t < 2
y(t) = 2δ(t) ∗ x1 (t) = 2x1 (t)
for t ≥ 2
y(t) = 2δ(t) ∗ x1 (t) + δ(t − 2) ∗ x1 (t) = 2x1 (t) + x1 (t − 2)
0
t<0
∞ p
y(t) = 2 p=0 12 δ(t − p) 0≤t<2
∞ 1 p
∞ 1 p
2 p=0 2 δ(t − p) + p=0 2 δ(t − p − 2) t ≥ 0
(n) y(t) = e−γt u(t) ∗ eβt u(−t)
for t < 0 ∞
y(t) = eβt e−(β+γ)τ dτ
0
eβt
y(t) =
β+γ
for t ≥ 0
∞
y(t) = eβt e−(β+γ)τ dτ
t
eβt −(β+γ)t
y(t) = e
β+γ
e−γt
y(t) =
β+γ
βt
e
β+γ t<0
y(t) = e−γt
β+γ t≥0
e2t t<0
(o) y(t) = u(t) ∗ h(t) where h(t) =
e−3t t≥0
for t < 0
t
y(t) = e2τ dτ
−∞
1 2t
y(t) = e
2
for t ≥ 0
0 t
y(t) = e2τ dτ + e−3τ dτ
−∞ 0
1 1
y(t) = + 1 − e−3t
2 3
1 2t
e t<0
y(t) = 2 −3t
2 + 3 1−e t≥0
1 1
33
2.40. Consider the continuous-time signals depicted in Fig. P2.40. Evaluate the following convolution
integrals:.
(a)m(t) = x(t) ∗ y(t)
34
0 t < −2
−t − 2 −2 ≤ t < −1
t −1 ≤ t < 0
m(t) =
t
0≤t<1
2−t 1≤t<2
0 t≥2
for t < −1
m(t) = 0
for t < 0 −1 ≤ t < 0
t
m(t) = e−(t−τ ) dτ = 1 − e−(t+1)
−1
for t < 1 0≤t<1
t
m(t) = e−(t−τ ) dτ = 1 − e−1
t−1
for t < 2 1≤t<2
1
m(t) = e−(t−τ ) dτ = e1−t − e−1
t−1
for t ≥ 2
m(t) = 0
0 t < −1
−(t+1)
1−e −1 ≤ t < 0
m(t) = 1 − e−1 0≤t<1
e1−t − e−1 1≤t<2
0 t≥2
for t < −1
m(t) = 0
for t < 0 −1 ≤ t < 0
t
m(t) = − dτ = −t − 1
−1
for t < 1 0≤t<1
0 t
m(t) = − dτ + dτ = −1 + t
−1 0
for t < 2 1≤t<2
35
t−2 0 1
m(t) = −2 dτ − dτ + dτ = −t + 1
−1 t−2 0
for t − 2 < 1 2≤t<3
0 t−2 1
m(t) = −2 dτ + 2 dτ + dτ = t − 3
−1 0 t−2
for t − 4 < 0 3≤t<4
0 1
m(t) = −2 dτ + 2 dτ = 2t − 6
t−4 0
for t − 4 < 1 4≤t<5
1
m(t) = 2 dτ = 10 − 2t
t−4
for t ≥ 5
m(t) = 0
0 t < −1
−t − 1 −1 ≤ t < 0
−1 + t 0≤t<1
−t + 1 1≤t<2
m(t) =
t−3 2≤t<3
2t − 6 3≤t<4
10 − 2t 4≤t<5
0 t≥5
(f) m(t) = y(t) ∗ w(t)
for t < 0
m(t) = 0
for t < 1 0≤t<1
t
m(t) = dτ = t
0
for t < 2 1≤t<2
1 t
m(t) = dτ − dτ = 2 − t
0 1
for t < 3 2≤t<3
t−2 1 t
m(t) = 2 dτ + dτ − dτ = 0
0 t−2 1
for t − 4 < 0 3≤t<4
1 t−2 3
m(t) = 2 dτ − 2 dτ − dτ = 3 − t
0 1 t−2
for t − 4 < 1 4≤t<5
1 t−2 3
m(t) = 2 dτ − 2 dτ − dτ = 11 − 3t
t−4 1 t−2
for t − 4 < 3 5≤t<7
3
m(t) = −2 dτ = 2t − 14
t−4
for t ≥ 7
36
m(t) = 0
0 t<0
t 0≤t<1
2 − t 1≤t<2
0 2≤t<3
m(t) =
3 − t 3≤t<4
11 − 3t 4 ≤ t < 5
2t − 14 5 ≤ t < 7
0 t≥7
for t < −1
m(t) = 0
for t < 1 −1 ≤ t < 1
t
m(t) = τ dτ = 0.5[t2 − 1]
−1
for t − 2 < 1 1≤t<3
t−2 1
m(t) = 2τ dτ + τ dτ = 0.5t2 + 0.5(t − 2)2 − 1
−1 t−2
for t − 4 < 1 3≤t<5
1
m(t) = 2τ dτ = 1 − (t − 4)2
t−4
for t ≥ 5
m(t) = 0
0 t < −1
0.5[t 2
− 1] −1 ≤ t < 1
m(t) = 0.5t + 0.5(t − 2) − 1 1 ≤ t < 3
2 2
1 − (t − 4)2 3≤t<5
0 t≥5
37
for t < 3 2≤t<3
2 t
m(t) = −1 + dτ + 2 dτ = t − 2
t−1 2
for t < 4 3≤t<4
t
m(t) = −1 + 2 dτ = 1
t−2
for t < 5 4≤t<5
4
m(t) = −2 + 2 dτ = 8 − 2t
t−1
for t − 2 < 4 5≤t<6
m(t) = −2
for t ≥ 6
m(t) = 0
0 t < −2
1 −2 ≤ t < 0
0≤t<1
t+2
3 1≤t<2
m(t) = t−2 2≤t<3
1 3≤t<4
8 − 2t 5≤t<5
−2 5≤t<6
0 t≥6
38
(j) m(t) = z(t) ∗ g(t)
39
0 t < −4
−0.5(t + 1) − 3(t + 1) − −4 ≤ t < −3
2 9
2
m(t) = 2
t + 5t + 2 11
−3 ≤ t < −2
12 − 2 (t − 1) − 2t −2 ≤ t < −1
1
2
0 t≥2
for t < −1
m(t) = 0
for t < 0 −1 ≤ t < 0
t
m(t) = − τ dτ = −0.5t2 + 0.5
−1
for t < 1 0≤t<1
t t−1
m(t) = τ dτ − τ dτ = 0.5t2 − (t − 1)2 + 0.5
t−1 −1
for t − 1 < 1 1≤t<2
t−1 1
m(t) = − τ dτ + τ dτ = 1 − (t − 1)2
−1 t−1
for t − 3 < 1 2≤t<4
1
m(t) = − τ dτ = 0.5(t − 3)2 − 0.5
t−3
for t − 3 ≥ 1 t≥4
m(t) = 0
0 t < −1
−0.5t + 0.5
2
−1 ≤ t < 0
0.5t2 − (t − 1)2 + 0.5 0 ≤ t < 1
m(t) =
1 − (t − 1)2
1≤t<2
0.5(t − 3)2
− 0.5 2 ≤t<4
0 t≥4
1 0≤t≤1
let a (t) =
0 otherwise
∞
then a(t) = a (t − 2k)
k=−∞
consider m (t) = w(t) ∗ a (t)
for t < 0
m (t) = 0
for t < 1 0≤t<1
t
m (t) = dτ = t
0
40
for t − 1 < 1 1≤t<2
t−1 1
m (t) = − dτ + dτ = 3 − 2t
0 t−1
for t − 3 < 0 2≤t<3
1
m (t) = − dτ = −1
0
for t − 3 < 1 3≤t<4
1
m (t) = − dτ = t − 4
t−3
for t − 3 ≥ 1 t≥4
m (t) = 0
0 t<0
t 0≤t<1
3 − 2t 1≤t<2
m (t) =
−1 2≤t<3
t−4 3≤t<4
0 t≥4
∞
m(t) = m (t − 2k)
k=−∞
for t < −1
m(t) = 0
for t < 0 −1 ≤ t < 0
t
m(t) = − τ e−(t−τ ) dτ = t − 1 + 2e−(t+1)
−1
for t < 1 0≤t<1
t
m(t) = τ e−(t−τ ) dτ = t − 1 − (t − 2)e−1
t−1
for t − 1 < 1 1≤t<2
1
m(t) = τ e−(t−τ ) dτ = −e−1 (t − 2)
t−1
for t − 2 ≥ 1
m(t) = 0
0 t < −1
−(t+1)
t − 1 + 2e −1 ≤ t < 0
m(t) = t − 1 − (t − 2)e−1 0≤t<1
−e−1 (t − 2) 1≤t<2
0 t≥1
41
∞
d(t) = f (t − k)
k=−∞
m (t) = f (t) ∗ f (t)
∞
m(t) = m (t − k)
k=−∞
for t < 0
m (t) = 0
for t < 1 0≤t<1
t
m (t) = e−(t−τ ) e−τ dτ = te−t
0
for t < 2 1≤t<2
1
m (t) = e−t eτ e−τ dτ = (2 − t)e−t
t−1
for t ≥ 2
m (t) = 0
0 t<0
te−t 0≤t<1
m (t) =
(2 − t)e−t 1≤t<2
0 t≥2
∞
m(t) = m (t − k)
k=−∞
e−t 0≤t≤1
let d (t) =
0 otherwise
∞
then d(t) = d (t − k)
k=−∞
consider m (t) = z(t) ∗ d (t)
for t < −1
m (t) = 0
for t < 0 −1 ≤ t < 0
t
m (t) = −e−(t−τ ) dτ = e−(t+1) − 1
−1
for t < 1 0≤t<1
0 t
m (t) = − −e−(t−τ ) dτ + e−(t−τ ) dτ = 1 + e−1 − 2e−t
t−1 0
for t − 1 < 1 1≤t<2
1
m (t) = e−(t−τ ) dτ = e−(t−1) − e−1
t−1
42
for t − 1 ≥ 1 t≥2
m (t) = 0
0 t < −1
−(t+1)
−1 −1 ≤ t < 0
e
m (t) = 1 + e − 2e−t
−1
0≤t<1
e−(t−1) − e−1
1≤t<2
0 t≥2
∞
m(t) = m (t − k)
k=−∞
2.41. Suppose we model the effect of imperfections in a communication channel as the RC circuit de-
picted in Fig. P2.41(a). Here the input x(t) is the transmitted signal and the output y(t) is the received
signal. Assume the message is represented in binary format and that a “1” is communicated in an interval
of length T by transmitting the symbol p(t) depicted in Fig. P2.41 (b) in the pertinent interval and that
a “0” is communicated by transmitting −p(t) in the pertinent interval. Figure P2.41 (c) illustrates the
transmitted waveform for communicating the sequence “1101001”. Assume that T = 1/(RC).
(a) Use convolution to calculate the received signal due to transmission of a single “1” at time t = 0.
Note that the received waveform extends beyond time T and into the interval allocated for the next bit,
T < t < 2T . This contamination is called intersymbol interference (ISI), since the received waveform at
any time is interfered with by previous symbols.
1 − RC t
The impulse response of an RC circuit is h(t) = RC e u(t). The output of the system is the convolution
of the input, x(t) with the impulse response, h(t).
for t ≥ T
T
1 − (t−τ )
yp (t) = e RC dτ
0 RC
(t−T )
yp (t) = e RC − e− RC
− t
0 t<0
− RCt
yp (t) = 1−e 0≤t<T
− (t−T )
− RC
t
e RC −e t≥T
(b) Use convolution to calculate the received signal due to transmission of the sequences “1110” and
“1000”. Compare the received waveforms to the output of an ideal channel (h(t) = δ(t)) to evaluate the
43
effect of ISI for the following choices of RC:
(i) RC = 1/T
(ii) RC = 5/T
(iii) RC = 1/(5T )
Assuming T = 1
0.5
RC = 1
−0.5
0 1 2 3 4 5 6 7 8 9 10
0.8
0.6
RC = 5
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10
0.5
RC = 1/5
−0.5
−1
0 1 2 3 4 5 6 7 8 9 10
Time
44
Received signal for x = ’1000’
1
0.5
RC = 1
−0.5
−1
0 1 2 3 4 5 6 7 8 9 10
0.4
0.2
RC = 5
−0.2
−0.4
0 1 2 3 4 5 6 7 8 9 10
0.5
RC = 1/5
−0.5
−1
0 1 2 3 4 5 6 7 8 9 10
Time
From the two graphs it becomes apparent that as T becomes smaller, ISI becomes a larger problem
for the communication system. The bits blur together and it becomes increasingly difficult to determine
if a ‘1’ or ‘0’ is transmitted.
2.42. Use the definition of the convolution sum to prove the following properties
(a) Distributive: x[n] ∗ (h[n] + g[n]) = x[n] ∗ h[n] + x[n] ∗ g[n]
45
∞
= x[n] ∗ h[k]g[n − k]
k=−∞
∞
∞
= x[l] h[k]g[n − k − l]
l=−∞ k=−∞
∞ ∞
= (x[l]h[k]g[n − k − l])
l=−∞ k=−∞
Use v = k + l and exchange the order of summation
∞
∞
= x[l]h[v − l] g[n − v]
v=−∞ l=−∞
∞
= (x[v] ∗ h[v]) g[n − v]
v=−∞
= (x[n] ∗ h[n]) ∗ g[n]
= RHS
2.43. An LTI system has the impulse response depicted in Fig. P2.43.
(a) Express the system output y(t) as a function of the input x(t).
(b) Identify the mathematical operation performed by this system in the limit as ∆ → 0.
When ∆ → 0
46
x(t) − x(t − ∆)
lim y(t) = lim
∆→0 ∆→0 ∆
d
is nothing but dt x(t), the first derivative of x(t) with respect to time t.
(c) Let g(t) = lim∆→0 h(t). Use the results of (b) to express the output of an LTI system with im-
pulse response hn (t) = g(t) ∗ g(t) ∗ ... ∗ g(t) as a function of the input x(t).
n times
2.44. If y(t) = x(t) ∗ h(t) is the output of an LTI system with input x(t) and impulse response h(t),
then show that
d d
y(t) = x(t) ∗ h(t)
dt dt
and
d d
y(t) = x(t) ∗ h(t)
dt dt
d d
y(t) = x(t) ∗ h(t)
dt dt
d ∞
= x(τ )h(t − τ )dτ
dt −∞
47
Assuming that the functions are sufficiently smooth,
the derivative can be pulled throught the integral
∞
d d
y(t) = x(τ ) h(t − τ )dτ
dt −∞ dt
Since x(τ ) is independent of t
d d
y(t) = x(t) ∗ h(t)
dt dt
The convolution integral can also be written as
d d ∞
y(t) = h(τ )x(t − τ )dτ
dt dt −∞
∞
d
= h(τ ) x(t − τ )dτ
−∞ dt
d
= x(t) ∗ h(t)
dt
2.45. If h(t) = H{δ(t)} is the impulse response of an LTI system, express H{δ (2) (t)} in terms of h(t).
2.46. Find the expression for the impulse response relating the input x[n] or x(t) to the output y[n] or
y(t) in terms of the impulse response of each subsystem for the LTI systems depicted in
(a) Fig. P2.46 (a)
y[n] = x[n] ∗ {−h1 [n] ∗ h2 [n] ∗ h4 [n] + h1 [n] ∗ h3 [n] ∗ h5 [n]} ∗ h6 [n]
48
2.47. Let h1 (t), h2 (t), h3 (t), and h4 (t) be impulse responses of LTI systems. Construct a system with
impulse response h(t) using h1 (t), h2 (t), h3 (t), and h4 (t) as subsystems. Draw the interconnection of
systems required to obtain
(a) h(t) = {h1 (t) + h2 (t)} ∗ h3 (t) ∗ h4 (t)
h1(t)
h3(t) h4(t)
h2(t)
Figure P2.47. (a) Interconnections between systems
h1(t) h2(t)
h3(t) h4(t)
Figure P2.47. (b) Interconnections between systems
h2(t)
h1(t)
h3(t) h4(t)
Figure P2.47. (c) Interconnections between systems
2.48. For the interconnection of LTI systems depicted in Fig. P2.46 (c) the impulse responses are
h1 (t) = δ(t − 1), h2 (t) = e−2t u(t), h3 (t) = δ(t − 1) and h4 (t) = e−3(t+2) u(t + 2). Evaluate h(t), the
impulse response of the overall system from x(t) to y(t).
h(t) = −δ(t − 1) + e−2t u(t) ∗ δ(t − 1) ∗ e−3(t+2) u(t + 2) + δ(t − 1)
= −δ(t − 2) + e−2(t−1) u(t − 1) ∗ e−3(t+2) u(t + 2) + δ(t − 1)
= −e−3t u(t) + e−2(t−1) u(t − 1) ∗ e−3(t+2) u(t + 2) + δ(t − 1)
49
= −e−3t u(t) + e−2(t−1) − e−3(t+3) u(t + 1) + δ(t − 1)
2.49. For each impulse response listed below, determine whether the corresponding system is (i) mem-
oryless, (ii) causal, and (iii) stable.
50
(ii) causal
(iii) stable
(j) h[n] = sin( π2 n)
(i) has memory
(ii) not causal
(iii) not stable
∞
(k) h[n] = p=−1 δ[n − 2p]
(i) has memory
(ii) not causal
(iii) not stable
2.50. Evaluate the step response for the LTI systems represented by the following impulse responses:
(a) h[n] = (−1/2)n u[n]
for n < 0
s[n] = 0
for n ≥ 0
1
n
(− )k
s[n] =
2
k=0
n
1 1
s[n] = 2+ −
3 2
1 n
3 2 + −2 n≥0
1
s[n] =
0 n<0
for n < 0
s[n] = 0
for n = 0
s[n] = 1
for n ≥ 1
s[n] = 0
1 n=0
s[n] =
0 n = 0
for n < −2
s[n] = 0
for − 2 ≤ n ≤ 2
51
1 n = ±2, 0
s[n] =
0 n = ±1
for n ≥ 3
s[n] = 1
for n < 0
s[n] = 0
for n ≥ 0
n
s[n] = k
k=0
n(n+1)
2 n≥0
s[n] =
0 n<0
for t < 0
t
s(t) = eτ dτ = et
−∞
for t ≥ 0
0 t
s(t) = eτ dτ + e−τ dτ = 2 − e−t
−∞ 0
et t<0
s(t) =
2 − e−t t ≥ 0
for t < 0
s(t) = 0
for t ≥ 0
t
s(t) = δ (2) (t)dτ = δ(t)
−∞
s(t) = δ(t)
for t < 0
s(t) = 0
for t < 4
52
t
1 1
s(t) = dτ = t
4 0 4
for t ≥ 4
1 4
s(t) = dτ = 1
4 0
0 t<0
4t 0 ≤ t < 4
1
s(t) =
1 t≥4
for t < 0
s(t) = 0
for t ≥ 0
t
s(t) = dτ = t
0
0 t<0
s(t) =
t t≥0
2.51. Suppose the multipath propagation model is generalized to a k-step delay between the direct and
reflected paths as shown by the input-output equation
2.52. Write a differential equation description relating the output to the input of the following electri-
cal circuits.
(a) Fig. P2.52 (a)
53
Writing node equations, assuming node A is the node the resistor, inductor and capacitor share.
vA (t) − x(t) d
(1) y(t) + + C vA (t) = 0
R dt
For the inductor L:
d
(2) vA (t) = L y(t)
dt
Combining (1) and (2) yields
1 d2 1 d 1
x(t) = 2
y(t) + y(t) + y(t)
RLC dt RC dt LC
d y(t) − x(t)
(1) 0 = C2 y(t) + + i(t)
dt R1
Implies
d y(t) − x(t)
i(t) = −C2 y(t) −
dt R1
For capacitor C1
d i(t)
VC1 (t) =
dt C1
y(t) = i(t)R2 + VC1 (t)
d d i(t)
(2) y(t) = R2 i(t) +
dt dt C1
Combining (1) and (2)
d2 1 1 1 d 1 1 1 d
dt2 y(t) + C2 R2 + C2 R1 + C1 R2 dt y(t) + C1 C2 R1 R2 y(t) = C1 C2 R1 R2 x(t) + C2 R1 dt x(t)
2.53. Determine the homogeneous solution for the systems described by the following differential equa-
tions:
d
(a) 5 dt y(t) + 10y(t) = 2x(t)
5r + 10 = 0
r = −2
y (h)
(t) = c1 e−2t
2
d d d
(b) dt2 y(t) + 6 dt y(t) + 8y(t) = dt x(t)
r2 + 6r + 8 = 0
r = −4, −2
y (h) (t) = c1 e−4t + c2 e−2t
54
d2 d
(c) dt2 y(t) + 4y(t) = 3 dt x(t)
r2 + 4 = 0
r = ±j2
y (h)
(t) = c1 ej2t + c2 e−j2t
d2 d
(d) dt2 y(t) + 2 dt y(t) + 2y(t) = x(t)
r2 + 2r + 2 = 0
r = −1 ± j
y (h)
(t) = c1 e(−1+j)t + c2 e−(1+j)t
d2 d d
(e) dt2 y(t) + 2 dt y(t) + y(t) = dt x(t)
r2 + 2r + 1 = 0
r = −1, −1
y (h) (t) = c1 e−t + c2 te−t
2.54. Determine the homogeneous solution for the systems described by the following difference equa-
tions:
(a) y[n] − αy[n − 1] = 2x[n]
r−α = 0
(h)
y [n] = c1 αn
1 1
r2 − r − = 0
4 8
1 1
,−
r =
2 4 n
n
1 1
y (h) [n] = c1 + c2 −
2 4
(c) y[n] + 9
16 y[n − 2] = x[n − 1]
9
r2 + = 0
16
55
3
= ±j
r
4 n n
3 3
(h)
y [n] = c1 j + c2 −j
4 4
1
r2 + r + = 0
4
1 1
r = − , −
2 2n n
1 1
y (h) [n] = c1 − + c2 n −
2 2
2.55. Determine a particular solution for the systems described by the following differential equations
for the given inputs:
d
(a) 5 dt y(t) + 10y(t) = 2x(t)
(i) x(t) = 2
y (p) (t) = k
10k= 2(2)
2
k =
5
(p) 2
y (t) =
5
56
4
A =
65
6
B =
65
4 6
y (p) (t) = cos(3t) + sin(3t)
65 65
d2 d
(b) dt2 y(t) + 4y(t) = 3 dt x(t)
(i) x(t) = t
y (p) (t) = k1 t + k2
4k1 t + 4k2 = 3
k1 0 =
3
k2 =
4
(p) 3
y (t) =
4
d2 d d
(c) dt2 y(t) + 2 dt y(t) + y(t) = dt x(t)
−3t
(i) x(t) = e
57
y (p) (t) = ke−3t
9ke−3t − 6ke−3t + ke−3t = −3e−3t
3
k = −
4
3 −3t
y (t) = − e
(p)
4
2.56. Determine a particular solution for the systems described by the following difference equations
for the given inputs:
(a) y[n] − 25 y[n − 1] = 2x[n]
(i) x[n] = 2u[n]
58
20
k =
3
20
y (p) [n] = u[n]
3
n
1
y (p) [n] = k
u[n]
2
n n−1 n
1 2 1 1
k − k = −2
2 5 2 2
k = −10
n
1
y [n] = −10
(p)
u[n]
2
π π
y (p) [n] = A cos( n) + B sin( n)
5 5
π π π 2 π π
2 cos( n) = A cos( n) + B sin( n) − A cos( (n − 1)) + B sin( (n − 1))
5 5 5 5 5 5
Using the trig identities
sin(θ ± φ) = sin θ cos φ ± cos θ sin φ
cos(θ ± φ) = cos θ cos φ ∓ sin θ sin φ
(p) π π
y [n] = 2.6381 cos( n) + 0.9170 sin( n)
5 5
y (p) [n]
= k1 nu[n] + k2 u[n]
1 1
k1 n + k2 − [k1 (n − 1) + k2 ] − [k1 (n − 2) + k2 ] = n + n − 1
4 8
16
k1 =
5
104
k2 = −
5
16 104
(p)
y [n] = nu[n] − u[n]
5 5
n
(p) 1
y [n] = k u[n]
8
59
n n−1 n−2 n n−1
1 1 1 1 1 1 1
k − k− k = +
8 4 8 8 8 8 8
k = −1
n
1
y [n] = −1
(p)
u[n]
8
π
(iii) x[n] = ej 4 n u[n]
π
y (p) [n] = kej 4 n u[n]
π 1 π 1 π π π
kej 4 n − kej 4 (n−1) − kej 4 (n−2) = ej 4 n + ej 4 (n−1)
4 8
1 + e−j 4
π
k =
1 − 14 e−j 4 − 18 ke−j 2
π π
(ii) x[n] = ( −1 n
2 ) u[n]
n
1
= k −
y (p) [n] u[n]
2
n n−1 n−2 n n−1
1 1 1 1 1 1
k − +k − + − k = − +2 −
2 2 2 2 2 2
k = −3
n
1
y [n] = −3 −
(p)
u[n]
2
60
2.57. Determine the output of the systems described by the following differential equations with input
andinitial conditions as specified:
d
(a) dt y(t) + 10y(t) = 2x(t), y(0− ) = 1, x(t) = u(t)
(b) d2 d d
y(0− ) = 0, d
dt2 y(t) + 5 dt y(t) + 4y(t) = dt x(t), dt y(t) t=0− = 1, x(t) = sin(t)u(t)
d
(c) dt
2
d
2 y(t) + 6 dt y(t) + 8y(t) = 2x(t), y(0− ) = −1, d = 1, x(t) = e−t u(t)
dt y(t) t=0−
61
t≥0 natural: characteristic equation
2
r + 6r + 8 = 0
r = −4, − 2
y (n) (t) = c1 e−2t + c2 e−4t
particular
y (p)
= ke−t u(t)
(t)
2 −t
= e u(t)
3
2 −t
y(t) = e u(t) + c1 e−2t + c2 e−4t
3
2
y(0− ) = −1 = + c1 + c2
3
d 2
y(0) = 1 = − − 2c1 − 4c2
dt t=0− 3
5
c1 = −
2
5
c2 =
6
2 −t 5 5
y(t) = e u(t) − e−2t + e−4t
3 2 6
(d) d2 d
y(0− ) = −1, d = 1, x(t) = 2te−t u(t)
dt2 y(t) + y(t) = 3 dt x(t), dt y(t) t=0−
62
2.58. Identify the natural and forced response for the systems in Problem 2.57.
See problem 2.57 for the derivations of the natural and forced response.
(a)
(i) Natural Response
r + 10 = 0
r = −10
y (n)
(t) = c1 e−10t
y(0− ) = 1 = c1
y (n)
(t) = e−10t
1
y (f ) (t) = + ke−10t
5
1
y(0) = 0 = +k
5
1 1 −10t
y (f ) (t) = − e
5 5
(b)
(i) Natural Response
5 3
y (f ) (t) = sin(t) + cos(t) + c1 e−4t + c2 e−t
34 34
3
y(0) = 0 = + c1 + c2
34
d 5
y(t) =0 = − 4c1 − c2
dt t=0− 34
5 3 4 1
y (f ) (t) = sin(t) + cos(t) + e−4t − e−t
34 34 51 6
63
(c)
(i) Natural Response
2 −t
y (f ) (t) =e u(t) + c1 e−2t u(t) + c2 e−4t u(t)
3
2
y(0) = 0 = + c1 + c2
3
d 2
y(t) = 0 = − − 2c1 − 4c2
dt t=0 − 3
2 −t 1
y (f ) (t) = e u(t) − e−2t u(t) + e−4t u(t)
3 3
(d)
(i) Natural Response
2.59. Determine the output of the systems described by the following difference equations with input
and initial conditions as specified:
64
(a) y[n] − 12 y[n − 1] = 2x[n], y[−1] = 3, x[n] = ( −1 n
2 ) u[n]
65
n n
9 1 1
y[n] = u[n] + c1 + c2 −
8 3 3
Translate initial conditions
1
y[n] = y[n − 2] + x[n − 1]
9
1
y[0] = 0+0=0
9
1 10
y[1] = 1+1=
9 9
9
0 = + c1 + c2
8
10 9 1 1
= + c1 − c2
9 8 3 3 n
n
9 7 1 13 1
y[n] = u[n] − − −
8 12 3 24 3
(c) y[n] + 14 y[n − 1] − 18 y[n − 2] = x[n] + x[n − 1], y[−1] = 4, y[−2] = −2, x[n] = (−1)n u[n]
66
(d) y[n] − 34 y[n − 1] + 18 y[n − 2] = 2x[n], y[−1] = 1, y[−2] = −1, x[n] = 2u[n]
2.60. Identify the natural and forced response for the systems in Problem 2.59. (a)
(i) Natural Response
n
(n) 1
y [n] = c
2
−1
1
y[−1] = 3 = c
2
3
c =
2
n
3 1
y (n) [n] =
2 2
67
(ii) Forced Response
n n
1 1
y (f )
[n] = k + −
2 2
Translate initial conditions
1
y[n] = y[n − 1] + 2x[n]
2
1
y[0] = (0) + 2 = 2
2
y[0] = 2 = k+1
=
1 k n
n
1 1
(f )
y [n] = + −
2 2
(b)
(i) Natural Response
n n
1 1
y (n)
[n] = c1 u[n] + c2 − u[n]
3 3
−2 −2
1 1
y[−2] = 0 = c1 + c2 −
3 3
−1 −1
1 1
y[−1] = 1 = c1 + c2 −
3 3
1
c1 =
6
1
c2 = −
6 n
n
1 1 1 1
y (n) [n] = u[n] − − u[n]
6 3 6 3
n n
9 1 1
y (f )
[n] = u[n] + c1 u[n] + c2 − u[n]
8 3 3
Translate initial conditions
1
y[n] = y[n − 2] + x[n − 1]
9
1
y[0] = 0+0=0
9
1
y[1] = 0+1=1
9
9
y[0] = 0 = + c1 + c2
8
9 1 1
y[1] = 1 = + c1 − c2
8 3 3 n n
9 3 1 3 1
y (f ) [n] = u[n] − u[n] − − u[n]
8 4 3 8 3
68
(c)
(i) Natural Response
n n
1 1
= c1 −
y (n) [n] u[n] + c2 u[n]
2 4
−2 −2
1 1
y[−2] = −2 = c1 − + c2
2 4
−1 −1
1 1
y[−1] = 4 = c1 − + c2
2 4
3
c1 = −
2
1
c2 =
4 n n
3 1 3 1
y (n) [n] = − − u[n] − u[n]
2 2 8 4
n n
16 1 1
y (f )
[n] = (−1) u[n] + c1 −
n
u[n] + c2 u[n]
5 2 4
Translate initial conditions
1 1
y[n] = − y[n − 1] + y[n − 2] + x[n] + x[n − 1]
4 8
1 1
y[0] = − 0+ 0+1+0=1
4 8
1 1 1
y[1] = − 1+ 0−1+1=−
4 8 4
16
y[0] = 1 = + c1 + c2
5
1 16 1 1
y[1] = − = − − c1 + c2
4 5 2 4 n n
16 14 1 37 1
y (f ) [n] = (−1) u[n] −
n
− u[n] + u[n]
5 3 2 15 4
(d)
(i) Natural Response
n n
(n) 1 1
y [n] = c1 u[n] + c2 u[n]
2 4
−2 −2
1 1
y[−2] = −1 = c1 + c2
2 4
−1 −1
1 1
y[−1] = 1 = c1 + c2
2 4
n n
5 1 3 1
y (n) [n] = u[n] − u[n]
4 2 8 4
69
(ii) Forced Response
n n
(f ) 32 1 1
y [n] = u[n] + c1 u[n] + c2 u[n]
3 2 4
Translate initial conditions
3 1
y[n] = y[n − 1] − y[n − 2] + 2x[n]
4 8
3 1
y[0] = 0 − 0 + 2(2) = 4
4 8
3 1
y[1] = 4 − 0 + 2(2) = 7
4 8
32
y[0] = 4 = + c1 + c2
3
32 1 1
y[1] = 7 = + c1 + c2
3 2 4 n n
32 1 4 1
y (f ) [n] = u[n] − 8 u[n] + u[n]
3 2 3 4
2.61. Write a differential equation relating the output y(t) to the circuit in Fig. P2.61 and find the
step response by applying an input x(t) = u(t). Next use the step response to obtain the impulse
response. Hint: Use principles of circuit analysis to translate the t = 0− initial conditions to t = 0+
before solving for the undetermined coefficients in the homogeneous component of the complete solution.
Given y(0− ) = 0, dt
d
y(t)t=0− = 0, find y(0+ ), dt
d
y(t)t=0+ .
Since current cannot change instantaneously through an inductor and voltage cannot change instanta-
neously across a capacitor,
iL (0+ ) = 0
+
y(0 ) = y(0− )
Implies
iR (0+ ) = 0
70
iC (0+ ) = 1
since
d
iC (t) = C y(t)
dt
d i (0+ ) 1
y(t)
C
= =
dt t=0 + C C
d d2 d
5 x(t) = y(t) + 5 y(t) + 20y(t)
dt dt2 dt
Finding the natural response
r2 + 5r + 20 0 =
√
−5 ± j 55
r =
2
y (n) (t) = c1 e− 2 t cos(ωo t) + c2 e− 2 t sin(ωo t)
5 5
√
55
ωo =
2
Particular
y (p) (t) = k
x(t) = u(t)
0 = 0 + 0 + 20k
k = 0
Step Response
y(t) = y (n) (t)
Using the initial conditions to solve for the constants
+
y(0 ) = 0 = c1
d
y(t) = 5 = c2 ωo
dt t=0+
5 −5t
y(t) = e 2 sin(ωo t)
ωo
√
10 − 5 t 55
= √ e 2 sin( t)
55 2
2.62. Use the first-order difference equation to calculate the monthly balance of a $100,000 loan at 1%
per month interest assuming monthly payments of $1200. Identify the natural and forced response. In
this case the natural response represents the loan balance assuming no payments are made. How many
payments are required to pay off the loan?
71
y (n) [n] = cn (1.01)n
y[−1] = 100000 = cn (1.01)−1
y (n) [n] = 101000(1.01)n
Particular
y (p) [n] = cp
cp − 1.01cp = −1200
(p)
y [n] = 120000
Forced
Translate initial conditions
y[0] = 1.01y[−1] + x[0]
= 1.01(100000) − 1200 = −1200
y (f ) [n] = 120000 + cf (1.01)n
y (f ) [0] = −1200 = 120000 + cf
y (f )
[n] = 120000 − 121200(1.01)n
To solve for the required payments to pay off the loan, add the natural and forced response to obtain the
complete solution, and solve for the number of payments to where the complete response equals zero.
Since the first payment is made at n = 0, 180 payments are required to pay off the loan.
2.63. Determine the monthly payments required to pay off the loan in Problem 2.62 in 30 years (360
payments) and 15 years (180 payments).
p = 1.01
y[−1] = 100000
x[n] = b
The homogeneous solution is
(h)
y [n] = ch (1.01)n
The particular solution is
(p)
y [n] = cp
y[n] − 1.01y[n − 1] = x[n]
Solving for cp
cp − 1.01cp = b
72
cp = −100b
The complete solution is of the form
y[n] = ch (1.01)n − 100b
Translating the initial conditions
y[0] = 1.01y[−1] + x[0]
= 101000 + b
101000 + b = ch − 100b
ch = 101000 + 101b
y[n] = (101000 + 101b)1.01n − 100b
Now solving for b by setting y[359] = 0
−101000(1.01)359
b = = −1028.61
(101)1.01359 − 100
2.64. The portion of a loan payment attributed to interest is given by multiplying the balance after
r
the previous payment was credited times 100 where r is the rate per period expressed in percent. Thus
if y[n] is the loan balance after the n payment, the portion of the nth payment required to cover the
th
interest cost is y[n − 1](r/100). The cumulative interest paid over payments for period n1 through n2 is
thus
n2
I = (r/100) y[n − 1]
n=n1
Calculate the total interest paid over the life of the 30-year and 15-year loans described in Problem 2.63.
359
I = (1/100) y[n − 1] = $270308.77
n=0
179
I = (1/100) y[n − 1] = $116029.62
n=0
73
2.65. Find difference-equation descriptions for the three systems depicted in Fig. P2.65. (a)
2
−2
Figure P2.65. (a) Block diagram
(b)
x[n] x[n−1] f[n] f[n−1] y[n]
s s
(c)
74
s
−1
8
Figure P2.65. (c) Block diagram
1
f [n] = x[n] − y[n]
8
y[n] = x[n − 1] + f [n − 2]
1
y[n] + y[n − 2] = x[n − 1] + x[n − 2]
8
2.66. Draw direct form I and direct form II implementations for the following difference equations.
(a) y[n] − 14 y[n − 1] = 6x[n]
(i) Direct Form I
x[n] 6 y[n]
−1
4
Figure P2.66. (a) Direct form I
75
x[n] 6 y[n]
−1
(ii) Direct form II 4
Figure P2.66. (a) Direct form II
s
−1
2
s
1 s
8
2
Figure P2.66. (b) Direct form I
x[n] y[n]
−1 s
2 2
1 s
8
(ii) Direct form II
Figure P2.66. (b) Direct form II
76
(c) y[n] − 19 y[n − 2] = x[n − 1]
(i) Direct Form I
x[n] y[n]
s
s
s
1
9
x[n]
s
y[n]
s
1
9
(ii) Direct form II
77
x[n]
s
3 y[n]
s s
−1
2 2
x[n]
s
−1 y[n]
2 3
s
2
s
(ii) Direct form II
Figure P2.66. (d) Direct form II
2.67. Convert the following differential equations to integral equations and draw direct form I and
direct form II implementations of the corresponding systems.
78
d
(a) dt y(t) + 10y(t) = 2x(t)
Direct Form I
x(t) 2 y(t)
−10
Direct Form II
x(t)
−10 2 y(t)
d2 d d
(b) dt2 y(t) + 5 dt y(t) + 4y(t) = dt x(t)
Direct Form I
79
x(t) y(t)
−5
−4
Direct Form II
x(t)
−5 y(t)
−4
d2 d
(c) dt2 y(t) + y(t) = 3 dt x(t)
Direct Form I
80
x(t) y(t)
−1
Direct Form II
x(t)
3 y(t)
−1
d3 d d
(d) dt3 y(t) + 2 dt y(t) + 3y(t) = x(t) + 3 dt x(t)
Direct Form I
81
x(t) y(t)
3 −2
−3
Figure P2.67. (d) Direct Form I
Direct Form II
x(t) y(t)
−2 3
−3
Figure P2.67. (d) Direct Form II
2.68. Find differential-equation descriptions for the two systems depicted in Fig. P2.68.
(a)
82
(b)
2.69. Determine a state variable description for the four discrete-time systems depicted in Fig. P2.69.
(a)
0 −1 2
A= , b= , c= −2 0 , D = [0]
1
4
1
2 −1
(c)
1
q1 [n + 1] = − q3 [n] + x[n]
8
1
q2 [n + 1] = q1 [n] + q3 [n] + 2x[n]
4
1
q3 [n + 1] = q2 [n] − q3 [n] + 3x[n]
2
y[n] = q3 [n]
0 0 − 18 1
1
A= 1 0 4 , b = 2 , c = 0 0 1 , D = [0]
0 1 −2 1
3
(d)
1 1
q1 [n + 1] = − q1 [n] + q2 [n] + x[n]
4 6
q2 [n + 1] = q1 [n] + q2 [n] + 2x[n]
y[n] = q2 [n] − x[n]
83
− 14 1
1
A= 6 , b= , c= , D = [−1]
0 1
1 1 2
1
q1 [n + 1] = q1 [n] − q2 [n] + x[n]
2
1
q2 [n + 1] = q1 [n] + 2x[n]
3
y[n] = q1 [n] + q2 [n]
2 −1 1
2 3
q [n]
s 2
q2[n+1]
1
q1 [n + 1] = q1 [n] − q2 [n] + x[n]
2
1
q2 [n + 1] = q1 [n] + 2x[n]
3
y[n] = q1 [n] − q2 [n]
84
2
q [n+1] 1 q2[n+1] q2[n]
1 q [n] 3 −1 y[n]
x[n] s 1 s
−1
2
Figure P2.70. (b) Block Diagram
0 − 12 0
(c) A = , b= , c= 1 0 , D = [1]
1
3 −1 1
1
q1 [n + 1] = − q2 [n]
2
1
q2 [n + 1] = q1 [n] − q2 [n] + x[n]
3
y[n] = q1 [n] + x[n]
1
3
q1 [n + 1] = 2x[n]
q2 [n + 1] = q2 [n] + 3x[n]
y[n] = q1 [n] − q2 [n]
85
q [n+1] q [n]
x[n] 1 y[n]
2 1
s
q [n+1] q [n] −1
3 2
s 2
1
Figure P2.70. (d) Block Diagram
2.71. Determine a state-variable description for the five continuous-time LTI systems depicted in
Fig. P2.71.
(a)
d
q(t) = −q(t) + x(t)
dt
y(t) = 2q(t) + 6x(t)
d
q1 (t) = q2 (t) + 2x(t)
dt
d
q2 (t) = q1 (t) + q2 (t)
dt
y(t) = q1 (t)
0 1 2
A= , b= , c= 1 0 , D = [0]
1 −2 0
(c)
d
q1 (t) = −8q2 (t) − 3q3 (t) + x(t)
dt
d
q2 (t) = q1 (t) + 4q2 (t) + 3x(t)
dt
d
q3 (t) = 2q1 (t) + q2 (t) − q3 (t)
dt
y(t) = q3 (t)
86
0 −8 −3 1
A= 1 4 0 , b = 3 , c = 0 0 1 , D = [0]
2 1 −1 0
(d)
d
x(t) = q1 (t)R + L q1 (t) + q2 (t)
dt
d R 1 1
(1) q1 (t) = − q1 (t) − q2 (t) + x(t)
dt L L L
d
q1 (t) = C q2 (t)
dt
d 1
(2) q2 (t) = q1 (t)
dt C
x(t) = q1 (t)R + y(t) + q2 (t)
(3) y(t) = −Rq1 (t) − q2 (t) + x(t)
Combining (1), (2), (3)
−R − L1 1
A= 1
L , b= L , c= −R −1 , D = [1]
C 0 0
(e)
− RC
1
− C1 1
A= 1
, b= RC , c= − R1 0 , D = [ R1 ]
L 0 0
2.72. Draw block-diagram representations corresponding to the continuous-time state variable descrip-
tions of the
following
LTI systems:
1
0 −1
(a) A = 3 , b = , c = , D = [0]
1 1
0 − 12 2
d 1
q1 (t) = q1 (t) − x(t)
dt 3
87
d 1
q2 (t) = − q2 (t) + 2x(t)
dt 2
y(t) = q1 (t) + q2 (t)
−1/2
.
x(t) 2 q (t) q (t)
2 2
1 y(t)
−1
3
.
q (t) q1(t)
1
d
q1 (t) = q1 (t) + q2 (t) − x(t)
dt
d
q2 (t) = q1 (t) + 2x(t)
dt
y(t) = −q2 (t)
1
. . q (t) −1 y(t)
x(t) −1 q1(t) q1(t) q2(t) 2
2
Figure P2.72. (b) Block Diagram
1 −1 0
(c) A = , b= , c= 1 0 , D = [0]
0 −1 5
d
q1 (t) = q1 (t) − q2 (t)
dt
88
d
q2 (t) = −q2 (t) + 5x(t)
dt
y(t) = q1 (t)
. .
q (t) q (t) q (t) q1(t) y(t)
x(t) 5 2 2 −1 1
−1 1
Figure P2.72. (c) Block Diagram
1 −2 2
(d) A = , b= , c= 1 1 , D = [0]
1 1 3
d
q1 (t) = q1 (t) − 2q2 (t) + 2x(t)
dt
d
q2 (t) = q1 (t) + q2 (t) + 3x(t)
dt
y(t) = q1 (t) + q2 (t)
3
. .
x(t) 2 q (t) q1(t) q2(t) q2(t)
1
y(t)
1 1
−2 1
Figure P2.72. (d) Block Diagram
(a) Define
new states q1 [n] = 2q1 [n], q2 [n] = 3q2 [n]. Find the new state-variable description A , b , c , D .
2 0
q1 = q1
0 3
Thus the transformation matrix T is
89
2 0
T =
0 3
−1 1 3 0
T =
6 0 2
1
2 0
= 1
0 3
−1 2 0 1 − 12 1
2 0
A = TAT = 1 1
0 3 3 0 0 3
1 − 13
= 1
2 0
2 0 1
b = Tb =
0 3 2
2
=
6
1 0
c = cT−1 = 1 −1 2
0 13
= 1
2 − 13
D = D = 0
(b) Define
new states q1 [n] = 3q2 [n], q2 [n] = 2q1 [n]. Find the new state-variable description A , b , c , D .
0 3
q1 = q1
2 0
Thus the transformation matrix T is
0 3
T =
2 0
1 0 −3
T−1 = −
6 −2 0
1
0 2
= 1
3 0
1
0
A = TAT−1 = 2
− 13 1
6
b = Tb =
2
c = cT−1 = − 13 21
D = D = 0
90
(c) Define new states q1 [n] = q1 [n] + q2 [n], q2 [n] = q1 [n] − q2 [n]. Find the new state-variable description
A , b , c , D .
The transformation matrix T is
1 1
T =
1 −1
1 −1 −1
T−1 = −
2 −1 1
1 1
= 2 2
1
2 − 12
5 11
A = TAT−1 = 12
1
12
7
12 12
3
b = Tb =
−1
c = cT−1 = 0 1
D = D = 0
d
q1 (t) = α1 q1 (t) + b1 x(t)
dt
d
q2 (t) = α2 q2 (t) + b2 x(t)
dt
y(t) = c1 q1 (t) + c2 q2 (t)
α1 0 b1
A= , b= , c = c1 c2 , D = [0]
0 α2 b2
(b) Define new states q1 (t) = q1 (t) − q2 (t), q2 (t) = 2q1 (t). Find the new state-variable description
A , b , c , D .
1 −1
T =
2 0
1 0 1
T−1 =
2 −2 1
1
0 2
=
−1 1
2
91
−1 α2 1
2 (α1 − α2 )
A = TAT =
0 α1
b1 − b2
b = Tb =
2b1
c = cT−1 = −c2 1
2 (c1 + c2 )
D = D = 0
(c) Draw a block diagram corresponding the new state-variable description in (b).
The corresponding differential equations are:
d 1
q1 (t) = α2 q1 (t) + (α1 − α2 )q2 (t) + (b1 − b2 )x(t)
dt 2
d
q2 (t) = α1 q2 (t) + 2b1 x(t)
dt
1
y(t) = −c1 q1 (t) + c1 c2 q2 (t)
2
1
b1 0
T =
b2 −b1
92
−1 b1 0
T =
b2 − b11
−1 α1 0
A = TAT =
b1 b2 (α1 − α2 ) α2
1
b = Tb =
0
c = cT−1 = c1 b1 + c2 b2 − cb12
D = D = 0
(e) Draw a block diagram corresponding the new state-variable description in (d).
The corresponding differential equations are:
d
q1 (t) = α1 q1 (t) + x(t)
dt
d
q2 (t) = b1 b22 (α1 − α2 )q1 (t) + α2 q2 (t)
dt
c2
y(t) = c1 (b1 + b2 )q1 (t) − q2 (t)
b1
. .
x(t) q1(t) q1(t) b1b2(a1− a2 ) q2(t) q2(t)
a1 a2
c1b1+ c2b2
y(t)
Figure P2.74. (e) Block Diagram
2.75. We may develop the convolution integral using linearity, time invariance, and the limiting form
of a stairstep approximation to the input signal. Define g∆ (t) as the unit area rectangular pulse depicted
in Fig. P2.75 (a).
(a) A stairstep approximation to a signal x(t) is depicted in Fig. P2.75 (b). Express x̃(t) as a weighted
93
sum of shifted pulses g∆ (t). Does the approximation quality improve as ∆ decreases?
∞
x̃(t) = x(k∆)g∆ (t − k∆)∆
k=−∞
(b) Let the response of an LTI system to an input g∆ (t) be h∆ (t). If the input to this system is
x̃(t), find an expression for the the output of this system in terms of h∆ (t).
Let the system be represented by H{.} such that H{g∆ (t)} = h∆ (t).
∞ (
H{x̃(t)} = H x(k∆)g∆ (t − k∆)∆
k=−∞
By the linearity of H
∞
= (H{x(k∆)g∆ (t − k∆)∆)
k=−∞
∞
= x(k∆)H{g∆ (t − k∆)}∆
k=−∞
By the time-invariance of H
∞
H{x̃(t)} = x(k∆)h∆ (t − k∆)∆
k=−∞
(c) In the limit as ∆ goes to zero, g∆ (t) satisfies the properties of an impulse and we may interpret
h(t) = lim∆→0 h∆ (t) as the impulse response of the system. Show that the expression for the system
output derived in (b) reduces to x(t) ∗ h(t) in the limit as ∆ goes to zero.
When ∆ → 0
h(t) = lim h∆ (t)
∆→0
∞
lim H{x2 (t)} = lim x(k∆)h∆ (t − k∆)∆
∆→0 ∆→0
k=−∞
∞
y(t) ∼
= x(τ )h∆ (t − τ )dτ
−∞
Using the fact that h(t) = lim h∆ (t)
∆→0
∞
y(t) ∼
= x(τ )h(t − τ )dτ
−∞
y(t) ∼
= x(t) ∗ h(t)
94
2.76. Convolution of finite-duration discrete-time signals may be expressed as the product of a matrix
and a vector. Let the input x[n] be zero outside of n = 0, 1, . . . L − 1 and the impulse response h[n]
zero outside n = 0, 1, . . . M − 1. The output y[n] is then zero outside n = 0, 1, . . . , L + M − 1. Define
T T
column vectors x = [x[0], x[1], · · · x[L − 1]] and y = [y[0], y[1], · · · y[L + M − 1]] . Use the definition of
the convolution sum to find a matrix H such that y = Hx.
∞
y[n] = x[k]h[n − k]
k=0
Applying the appropriate range for x[n] and h[n], starting with n = 0
y[0] = x[0]h[0]
Since all other values of x[n] and h[n] are 0, similarly
y[1] = x[1]h[0] + x[0]h[1]
y[2] = x[2]h[0] + x[1]h[1] + x[0]h[2]
..
.
Which can be written in matrix form as
y[0]
h[0] 0 0 ... 0
y[1] x[0]
h[1] h[0] 0 ... 0
y[2] x[1]
..
.. .
. = x[2]
h[M − 1] h[M − 2] . . . h[0]
0 ... 0 ..
y[M − 1] .. .
.. . x[L − 1]
.
0 ... 0 h[M − 1] . . . h[0]
y[L + M − 1]
Yields a solution of the form
y = Hx
2.77. Assume the impulse response of a continous-time system is zero outside the interval 0 < t < To .
Use a Riemann sum approximation to the convolution integral to convert the convolution integral to a
convolution sum that relates uniformly spaced samples of the output signal to uniformly spaced samples
of the input signal.
95
To
N −1
f (τ )dτ ≈ f (k∆)∆
0 k=0
To
Where ∆ =
N
Using this approximation
N −1
y(t) = h(k∆)x(t − k∆)∆
k=0
Evaluate at t = n∆
N −1
y(n∆) = h(k∆)x(n∆ − k∆)∆
k=0
Setting
y[n] = y(n∆)
h[k] = h(k∆)
x[k] = x(k∆)
Implies
N −1
y(n∆) = y[n] = h[k]x[n − k]
k=0
Which is the discrete time convolution sum.
2.78. The cross-correlation between two real signals x(t) and y(t) is defined as
∞
rxy (t) = x(τ )y(τ − t)dτ
−∞
This is the area under the product of x(t) and a shifted version of y(t). Note that the independent
variable τ − t is the negative of that found in the definition of convolution. The autocorrelation, rxx (t),
of a signal x(t) is obtained by replacing y(t) with x(t).
(a) Show that rxy (t) = x(t) ∗ y(−t)
∞
rxy (t) = x(τ )y(τ − t)dτ
−∞
∞
= x(τ )y(−(t − τ ))dτ (1)
−∞
First assume rxy (t) can be expressed in terms of a convolution integral, i.e.,
∞
rxy (t) = f1 (τ )f2 (t − τ )dτ
−∞
= f1 (t) ∗ f2 (t) (2)
By (1), we can see that (1) and (2) are equivalent if:
96
f2 (v2 ) = y(−v2 )
(b) Derive a step-by-step procedure for evaluating the cross-correlation analogous to the one for evaluat-
ing convolution integral given in Section 2.2.
1. Graph both x(τ ) and y(τ − t) as a function of τ . To obtain y(τ − t), shift y(τ ) by t.
2. Shift t to −∞.
3. Write a mathematical representation for x(τ )y(τ − t).
4. Increase the shift until the mathematical representation for x(τ )y(τ − t) changes. The value t at which
the change occurs defines the end of the current set and begins a new one.
5. Let t be in the new set. Repeat (3) and (4) until all sets of the shifts by t and the corresponding
representations for x(τ ) and y(τ − t) are identified, i.e., shift t until it reaches ∞.
6. For each set of shifts for t, integrate x(τ ) and y(τ − t) from τ = −∞ to τ = ∞ to obtain rxy (t) on
each set.
for t < 0 ∞
rxy (t) = e3t e−4τ dτ
0
1 3t
= e
4
for t ≥ 0
∞
rxy (t) = e3t e−4τ dτ
t
1 −t
= e
4
1 3t
rxy (t) = 4e t<0
1 −t
4e t≥0
for t < −4
rxy (t) = 0
for − 4 ≤ t < 0
97
t+2
rxy (t) = cos(πτ ) cos(2πτ − 2πt)dτ
−2
t+2
= cos(πτ ) [cos(2πτ ) cos(2πt) + sin(2πτ ) sin(2πt)] dτ
−2
t+2 t+2
1 1
= cos(2πt) (cos(πτ ) + cos(3πτ )) dτ + sin(2πt) (sin(πτ ) + sin(3πτ )) dτ
2 −2 2 −2
1 1 1 1 4
= cos(2πt) sin(πt) + sin(3πt) − sin(2πt) cos(πt) + cos(3πt) −
2π 3 2π 3 3
for 0 ≤ t < 4
2
rxy (t) = cos(πτ ) cos(2πτ − 2πt)dτ
t−2
2
= cos(πτ ) [cos(2πτ ) cos(2πt) + sin(2πτ ) sin(2πt)] dτ
t−2
2 t
1 1
= cos(2πt) (cos(πτ ) + cos(3πτ )) dτ + sin(2πt) (sin(πτ ) + sin(3πτ )) dτ
2 t−2 2 t−2
1 1 1 1 4
= − cos(2πt) sin(πt) + sin(3πt) + sin(2πt) cos(πt) + cos(3πt) −
2π 3 2π 3 3
for t ≥ 4
rxy (t) = 0
0 t < −4
1 cos(2πt) sin(πt) + 1 sin(3πt) − 1 sin(2πt) cos(πt) + 1 cos(3πt) − 4
−4 ≤ t < 0
rxy (t) = 2π 3 2π 1 3 3
− 1
cos(2πt) sin(πt) + 1
sin(3πt) + sin(2πt) cos(πt) + 1
cos(3πt) − 4
0≤t<4
2π 3 2π 3 3
0 t≥4
(iii) x(t) = u(t) − 2u(t − 1) + u(t − 2), y(t) = u(t + 1) − u(t)
for t < 0
rxy (t) = 0
for 0 ≤ t < 1
rxy (t) = t
for 1 ≤ t < 2
rxy (t) = 3 − 2t
for 2 ≤ t < 3
rxy (t) = t−3
for t ≥ 3
rxy (t) = 0
0 t<0
0≤t<1
t
rxy (t) = 3 − 2t 1≤t<2
t−3 2≤t<3
0 t≥3
(iv) x(t) = u(t − a) − u(t − a − 1), y(t) = u(t) − u(t − 1)
98
for t < a − 1
rxy (t) = 0
for a − 1 ≤ t < a
rxy (t) = t+1−a
for a ≤ t < a + 1
rxy (t) = a+1−t
for t ≥ a + 1
rxy (t) = 0
0 t<a−1
t+1−a a−1≤t<a
rxy (t) =
a+1−t a≤t<a+1
0 t≥a+1
for t < 0 ∞
rxx (t) = et e−2τ dτ
0
1 t
= e
2
for t ≥ 0
∞
rxx (t) = et e−2τ dτ
t
1 −t
= e
2
1 t
rxx (t) = 2e t<0
1 −t
2e t≥0
for t < −4
rxx (t) = 0
for − 4 ≤ t < 0
t+2
rxx (t) = cos(πτ ) cos(πτ − πt)dτ
−2
t+2
= cos(πτ ) (cos(πτ ) cos(πt) + sin(πτ ) sin(πt)) dτ
−2
t+2 t+2
1 1
= cos(πt) (1 + cos(2πτ )) dτ + sin(πt) sin(2πτ )dτ
2 −2 2 −2
1 1 1
= cos(πt) t + 4 + sin(2πt) − sin(πt) [cos(2πt) + 2]
2 2π 4π
99
for 0 ≤ t < 4
2
rxx (t) = cos2 (πτ )dτ
t−2
2
= cos(πτ ) (cos(πτ ) cos(πt) + sin(πτ ) sin(πt)) dτ
t−2
2 2
1 1
= cos(πt) (1 + cos(2πτ )) dτ + sin(πt) sin(2πτ )dτ
2 t−2 4π t−2
1 1 1
= cos(πt) 4 − t − sin(2πt) + sin(πt) [2 + cos(2πt)]
2 2π 4π
for t ≥ 4
rxx (t) = 0
0 t < −4
1
cos(πt) t + 4 + 1
sin(2πt) − 1
sin(πt) [cos(2πt) + 2] −4 ≤ t < 0
rxx (t) = 2 2π 4π
2 cos(πt) 4 − t −
1 1
sin(2πt) + 1
sin(πt) [2 + cos(2πt)] 0 ≤ t < 4
2π 4π
0 t≥4
for t < −2
rxx (t) = 0
for − 2 ≤ t < −1
rxx (t) = −t − 2
for − 1 ≤ t < 0
rxx (t) = 3t + 2
for 0 ≤ t < 1
rxx (t) = 2 − 3t
for 1 ≤ t < 2
rxx (t) = t−2
for t ≥ 2
rxx (t) = 0
0 t < −2
−t − 2 −2 ≤ t < −1
3t + 2 −1 ≤ t < 0
rxx (t) =
2 − 3t 0≤t<1
t−2 1≤t<2
0 t≥3
for t < −1
rxx (t) = 0
100
for − 1 ≤ t < 0
rxx (t) = t+1
for 0 ≤ t < 1
rxx (t) = 1−t
for t ≥ 1
rxx (t) = 0
0 t < −1
t+1 −1 ≤ t < 0
rxx (t) =
1−t
0≤t<1
0 t≥1
∞
rxy (t) = x(τ )y(τ − t)dτ
−∞
Let u = τ − t
∞
rxy (t) = y(u)x(u + t)du
−∞
∞
rxy (t) = y(τ )x(τ + t)dτ
−∞
rxy (t) = ryx (−t)
2.79. Prove that absolute summability of the impulse response is a necessary condition for stability of
a discrete-time system. Hint: find a bounded input x[n] such that the output at some time no satisfies
∞
|y[no ]| = k=−∞ |h[k]|.
let no = 0
∞
y[0] = h[k]x[−k]
k=−∞
let x[−k] = sign {h[k]}
then h[k]x[−k] = |h[k]|
101
∞
y[0] = |h[k]|
k=−∞
∞
|y[0]| = |h[k]|
k=−∞
∞
= |h[k]|
k=−∞
∞
∞
Hence there exists an input for which |y[no ]| = k=−∞ |h[k]|, and k=−∞ |h[k]| < ∞ is a necessary
condition for stability.
2.80. Using the Fresnel approximation, light with a complex amplitude f (x, y) in the xy-plane prop-
agating over a distance d along the z-axis in free space generates a complex amplitude g(x, y) given
by
∞ ∞
g(x, y) = f (x , y )h(x − x , y − y )dx dy
−∞ −∞
where
h(x, y) = h0 e−jk(x
2
+y 2 )/2d
Suppose f (x , y ) = af1 (x , y ) + bf2 (x , y ). The system is linear if g(x, y) = ag1 (x, y) + bg2 (x, y)
∞ ∞
g(x, y) = f (x , y )h(x − x , y − y )dx dy
−∞ −∞
∞ ∞
= [af1 (x , y ) + bf2 (x , y )] h(x − x , y − y )dx dy
−∞ −∞
∞ ∞ ∞ ∞
= af1 (x , y )h(x − x , y − y )dx dy + bf2 (x , y )h(x − x , y − y )dx dy
−∞ −∞ −∞ −∞
= ag1 (x, y) + bg2 (x, y)
(b) Is this system space invariant? That is, does a spatial shift of the input, f (x − x0 , y − y0 ) lead to the
identical spatial shift in the output?
∞ ∞
g (x, y) = f (x − xo , y − yo )h(x − x , y − y )dx dy
−∞ −∞
let z = x − xo , w = y − yo
∞ ∞
g (x, y) = f (z, w)h(x − xo − z, y − yo − w)dwdz
−∞ −∞
= g(x − xo , y − yo )
102
This shows that the system is space invariant since a shift in the input produces a similar shift in the
output.
(c) Evaluate the result of a point source located at (x1 , y1 ) propagating a distance d. In this case
f (x, y) = δ(x − x1 , y − y1 ) where δ(x, y) is the two-dimensional version of the impulse. Find the “impulse
response” of this system.
∞ ∞
g(x, y) = f (x , y )h(x − x , y − y )dx dy
−∞ −∞
∞ ∞
g(x, y) = δ(x − x1 , y − y1 )h(x − x , y − y )dx dy
−∞ −∞
Using the sifting property
∞
g(x, y) = δ(y − y1 )h(x − x1 , y − y )dy
−∞
= h(x − x1 , y − y1 )
(d) Evaluate the result of two point sources located at (x1 , y1 ) and (x2 , y2 ) propagating a distance
d. To account for the two point sources, f (x, y) is of the form f (x, y) = f1 (x1 , y1 ) + f2 (x2 , y2 ) =
δ(x − x1 , y − y1 ) + δ(x − x2 , y − y2 )
∞ ∞
g(x, y) = f (x , y )h(x − x , y − y )dx dy
−∞ −∞
∞ ∞
g(x, y) = [δ(x − x1 , y − y1 ) + δ(x − x2 , y − y2 )]h(x − x , y − y )dx dy
−∞ −∞
Using linearity and the sifting property yields
g(x, y) = h(x − x1 , y − y1 ) + h(x − x2 , y − y2 )
2.81. The motion of a vibrating string depicted in Fig. P2.81 may be described by the partial differential
equation
∂2 1 ∂2
2
y(l, t) = 2 2 y(l, t)
∂l c ∂t
where y(l, t) is the displacement expressed as a function of position l and time t, and c is a constant
determined by the material properties of the string. The intial conditions may be specified as follows:
Here x(l) is the displacement of the string at t = 0 while g(l) describes the velocity at t = 0. One
approach to solving this equation is to assume the solution is separable, that is, y(l, t) = φ(l)f (t), in
which case the partial differential equation becomes
d2 1 d2
f (t) 2
φ(l) = φ(l) 2 2 f (t)
dl c dt
103
This implies
d2 d2
dl2 φ(l) dt2 f (t)
= , 0 < l < a, 0 < t
φ(l) c2 f (t)
For this equality to hold, both sides of the equation must be constant. Let the constant be −ω 2 and
separate the partial differential equation into two ordinary second-order differential equations linked by
the common parameter ω 2 .
d2
f (t) + ω 2 c2 f (t) = 0, 0 < t
dt2
d2
φ(l) + ω 2 φ(l) = 0 0 < l < a
dl2
(a) Find the form of the solution for f (t) and φ(l).
r2 + ω 2 c2 = 0
r = ±jcω
f (t) = a1 ejωct + a2 e−jωct
r2 + ω2 = 0
r = ±jω
φ(l) = b1 ejωl + b2 e−jωl
φ(l) = d1 cos(ωl) + d2 sin(ωl)
(b) The boundary conditions at the end points of the string are
and, since f (t) = 0 gives a trivial solution for y(l, t), we must have φ(0) = 0 and φ(a) = 0. Determine
how these constraints restrict the permissable values for ω and the form of the solution for φ(l).
104
(c) Use the boundary conditions in (b) to show that constant (−ω 2 ) used to separate the partial differ-
ential equation into two ordinary second-order differential equations must be negative.
If (−ω 2 ) is positive:
r2 − ω2 = 0
r = ±ω
φ(l) = b1 eωt + b2 e−ωt
φ(0) = 0 = b1 + b2
φ(a) = 0 = b1 ejωa + b2 e−ωa
implies
b1 = b 2 = 0
(−ω 2 ) being positive is the trivial solution, hence (−ω 2 ) must be negative.
(d) Assume the initial position of the string is y(l, 0) = x(l) = sin(πl/a) and that the initial velocity
is g(l) = 0. Find y(l, t).
2.82. Suppose the N -by-N matrix A in a state-variable description has N linearly independent eigen-
vectors ei , i = 1, 2, . . . , N and corresponding distinct eigenvalues λi . Thus Aei = λi ei , i = 1, 2, . . . , N .
(a) Show that we may decompose A as A = E ΛE−1 where Λ is a diagonal matrix with i-th diagonal
element λi .
Ae1 = λ 1 e1
Ae2 = λ 2 e2
105
This can be written as
λ1 0
A[e1 e2 ] = [e1 e2 ]
0 λ2
Define
E = [e1 e2 ]
λ1 0
Λ =
0 λ2
AE = EΛ
Which can be rewritten as
AEE−1 = EΛE−1
A = EΛE−1
A = E−1 AE
A = E−1 EΛE−1 E
A = Λ
0 −1 2
(c) Assume A = , b= , c = 1 0 , D = [0].
2 −3 3
Find a transformation that converts this system to diagonal form.
1 1
The eigenvalues and eigenvectors are λ1,2 = −1, −2 and e1 = , e2 = respectively. The
1 2
transformation is
−1 0
A = E−1 AE =
0 −2
−1 1
b =E b =
1
c = cE = 1 1
D = D = 0
(d) Sketch the block-diagram representation for a discrete-time system corresponding to part (c).
106
−1
q [n+1] q [n]
1 1
s
y[n]
x[n]
q2[n+1] q2[n]
s
−2
Figure P2.82. Block diagram of diagonal form
107
Solutions to Computer Experiments
10
2
ma(n) : amplitude
mb(n) : amplitude
8
6 0
4
−2
2
0 −4
−5 0 5 −5 0 5
Time Time
7
6
6
4
md(n) : amplitude
mc(n) : amplitude
5
2
4
0
3
−2
2
−4
1
−6
0
−10 −5 0 5 −10 −5 0 5 10
Time Time
2
2
me(n) : amplitude
mf(n) : amplitude
−2 0
−4
−2
−6
−8 −4
0 5 10 −10 −5 0 5 10
Time Time
8
6
5
mg(n) : amplitude
mh(n) : amplitude
4
2
0 0
−2
−5 −4
−6
−5 0 5 −5 0 5
Time Time
108
P2.83(i)−(k)
12
8
mi(n) : amplitude 10
mj(n) : amplitude
6
8
4
6
4 2
2 0
0 −2
−5 0 5 10 15 −10 −5 0 5 10
Time Time
6
4
mk(n) : amplitude
2
0
−2
−4
−6
−10 −5 0 5 10 15
Time
109
2.84. Use MATLAB to repeat Example 2.5.
P2.84 Investment Computation
25000
20000
Investment value in dollars
15000
10000
5000
0
0 5 10 15 20 25
Time
2.85. Use MATLAB to evaluate the first twenty values of the step response for Problem 2.50 (a) - (d).
P2.85
1 1
Step response of ha[n]
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
0 0
0 5 10 15 0 5 10 15
Time Time
1
Step response of hd[n]
Step response of hc[n]
0.8 150
0.6
100
0.4
50
0.2
0 0
0 5 10 15 0 5 10 15
Time Time
110
2.86. Consider the two systems having impulse responses
4, 0 ≤ n ≤ 3
1
h1 [n] =
0, otherwise
1
4, n = 0, 2
h2 [n] = − 14 , n = 1, 3
0, otherwise
Use the MATLAB command conv to plot the first 20 values of the step response.
P2.86 Step Response of h1[n] and h2[n]
1
Step response of h1[n]
0.8
0.6
0.4
0.2
0
0 2 4 6 8 10 12 14 16 18
Time
0.25
Step response of h2[n]
0.2
0.15
0.1
0.05
0
0 2 4 6 8 10 12 14 16 18
Time
111
2.87. Use the MATLAB commands filter and filtic to repeat Example 2.16.
P2.87−1
2.5
step response
1.5
0.5
0
0 5 10 15 20 25 30 35 40 45
Time
0.3
0.2
zero input
0.1
−0.1
0 5 10 15 20 25 30 35 40 45
Time
P2.87−2
2
sinusoid pi/10
−2
0 5 10 15 20 25 30 35 40 45
Time
2
sinusoid pi/5
−1
−2
0 5 10 15 20 25 30 35 40 45
Time
0.6
sinusoid 7pi/10
0.4
0.2
0
−0.2
0 5 10 15 20 25 30 35 40 45
Time
112
P2.87−3
80
60
Price per share
40
20
0
1998 1999 2000 2001
Year
80
60
Filtered Output
40
20
0
1998 1999 2000 2001
Year
Figure P2.87. Input and filtered signals for Intel Stock Price.
2.88. Use the MATLAB commands filter and filtic to verify the loan balance in Example 2.23
4 P2.88 Loan Balance
x 10
2.2
1.8
1.6
1.4
1.2
y[n]
0.8
0.6
0.4
0.2
0
−2 −1 0 1 2 3 4 5 6 7 8 9
Time
113
2.89. Use the MATLAB commands filter and filtic to determine the first fifty output values in Prob-
lem 2.59.
P2.89
4
1.2
3 1
2 0.8
part a
part b
0.6
1
0.4
0
0.2
−1 0
0 10 20 30 40 0 10 20 30 40
12
0.6
10
0.4
8
part d
part c
0.2
6
0
4
−0.2
2
−0.4
0
0 10 20 30 40 0 10 20 30 40
114
2.90. Use the MATLAB command impz to determine the first 30 values of the impulse response for
the systems described in Problem 2.59.
P2.90
2.5
1.2
2 1
1.5 0.8
ha(n)
hb(n)
0.6
1
0.4
0.5
0.2
0 0
0 5 10 15 20 25 0 5 10 15 20 25
1 2
0.8 1.5
hd(n)
hc(n)
0.6
1
0.4
0.2 0.5
0
0
0 5 10 15 20 25 0 5 10 15 20 25
115
2.91. Use MATLAB to solve Problem 2.62.
5 P2.91
x 10
6
Natural Response
0
−20 0 20 40 60 80 100 120 140 160 180
5
x 10 time
0
Forced Response
−2
−4
−6
−20 0 20 40 60 80 100 120 140 160 180
4
x 10 time
10
Complete Response
0
−20 0 20 40 60 80 100 120 140 160 180
time
8
Loan Balance
0
0 50 100 150 200 250 300 350 400
time
8
Loan Balance
−2
0 20 40 60 80 100 120 140 160 180
time
116
2.93. Use the MATLAB command ss2ss to solve Problem 2.73.
P2.93 :
=======
Part (a) :
==========
a=
x1 x2
x1 1 -0.3333
x2 0.5 0
b=
u1
x1 2
x2 6
c=
x1 x2
y1 0.5 -0.3333
d=
u1
y1 0
a=
x1 x2
x1 0 0.5
x2 -0.3333 1
b=
u1
x1 6
x2 2
117
c=
x1 x2
y1 -0.3333 0.5
d=
u1
y1 0
a=
x1 x2
x1 0.4167 0.9167
x2 0.08333 0.5833
b=
u1
x1 3
x2 -1
c=
x1 x2
y1 0 1
d=
u1
y1 0
118
(a) Use the MATLAB commands lsim and impulse to determine the first 30 values of the step and impulse
responses of this system.
(b) Define new states q1 [n] = q1 [n] + q2 [n] and q2 [n] = 2q1 [n] − q2 [n]. Repeat part (a) for the transformed
system.
P2.94
0 0
−0.2 −0.2
impulse T
impulse
−0.4 −0.4
−0.6 −0.6
−0.8 −0.8
−1 −1
0 5 10 15 20 25 0 5 10 15 20 25
0 0
−0.5 −0.5
step T
step
−1 −1
−1.5 −1.5
−2 −2
0 5 10 15 20 25 0 5 10 15 20 25
119
Solutions to Additional Problems
3.48. Use the defining equation for the DTFS coefficients to evaluate the DTFS representation for the
following signals.
2π
(a) N = 17, Ωo = 17
6π π
x[n] = cos( n + )
17 3
1 j( 6π n+ π )
+ e−j( 17 n+ 3 )
6π π
= e 17 3
2
1 j π j(3) 2π n
+ e−j 3 ej(−3) 17 n
π 2π
= e 3e 17
2
By inspection
1 jπ
2e
3 k=3
1 −j π
X[k] = 2e
3 k = −3
0 otherwise on k = {−8, −7, ..., 8}
2π
(b) N = 19, Ωo = 19
4π 10π
x[n] = 2 sin(n) + cos( n) + 1
19 19
1 j 4π n 1 10π
[e 19 − e−j 19 n ] + [ej 19 n + e−j 19 n ] + 1
4π 10π
=
j 2
2π 2π 1 2π 2π 2π
= −jej(2) 19 n + jej(−2) 19 n + [ej(5) 19 n + ej(−5) 19 n ] + ej(0) 19 n
2
By inspection
1
k = −5
2
j k = −2
1 k=0
X[k] =
−j k=2
1
k=5
2
0 otherwise on k = {9, −8, ..., 9}
(c)
∞
x[n] = [(−1)m (δ[n − 2m] + δ[n + 3m])]
m=−∞
π
Graph to find N = 12, Ωo = 6
1
6
x[n]e−jk 6 n
π
X[k] =
12 n=−5
1 −j(−4) π k
1
(d) x[n] as depicted in Figure P3.48(a)
N = 8, Ωo = π4
1
4
x[n]e−jk 4 n
π
X[k] =
8 n=−3
1
[−e−j(−2) 4 k + e−j(2) 4 k ]
π π
=
8
−j π
= sin( k) k ∈ {−3, −2, ..., 4}
4 2
1
4
x[n]e−jk 5 n
π
X[k] =
10 n=−5
1 1 −j(−4) π k 1 −j(−3) π k 3 −j(−2) π k −j(−1) π
= e 5 + e 5 + e 5 +e 5 k
k ∈ {−5, −4, ..., 4}
10 4 2 4
3.49. Use the definition of the DTFS to determine the time-domain signals represented by the following
DTFS coefficients.
(a) N = 21, Ωo = 2π
21
8π
X[k] = cos( k)
21
1 −j(−4) 2π k 1 −j(4) 2π k
= [e 21 + e 21 ]
2 2
By inspection
21
2 n = ±4
x[n] =
0 otherwise on n ∈ {−10, −9, ..., 10}
2π
(b) N = 19, Ωo = 19
10π 4π
X[k] = cos( k) + 2j sin( k)
19 19
1 −j(−5) 2π k
+ e−j(5) 19 k ] + e−j(−2) 19 k − e−j(2) 19 k
2π 2π 2π
= [e 19
2
By inspection
19
n = ±5
2
−19 n=2
x[n] =
19 n = −2
0 otherwise on n ∈ {−9 − 8, ..., 9}
2
(c)
∞
X[k] = [(−1)m (δ[k − 2m] − 2δ[k + 3m])]
m=−∞
π
Graph to find N = 12, Ωo = 6
6
π
x[n] = X[k]ejk 6 n
k=−5
π π π π
= ej(−4) 6 n + 2ej(−3) 6 n − ej(−2) 6 n − 1 − ej(2) 6 n
π π π
+2ej(3) 6 n + ej(4) 6 n − 3ej(6) 6 n
2π π π
= 2 cos( n) + 4 cos( n) − 2 cos( n) − 1 − 3(−1)n
3 2 3
(d) X[k] as depicted in Figure P3.49(a)
N = 14, Ωo = π7
7
π
x[n] = X[k]ejk 7 n
k=−6
3π π 4π π
= 2 cos( n + ) + 2 cos( n − )
7 2 7 2
(e) X[k] as depicted in Figure P3.49(b)
N = 7, Ωo = 2π7
3
2π
x[n] = X[k]ejk 7 n
k=−3
2π 2π 1
= ej(−1) 7 n + ej(1) 7 n −
2
2π 1
= 2 cos( n) −
7 2
(f) X[k] as depicted in Figure P3.49(c)
N = 15, Ωo = 2π15
9
2π
x[n] = X[k]ejk 15 n
k=−5
4
e−j 6 k ejk 15 n
π 2π
=
k=−4
let l = k + 4
8
ejπ(l−4)( 15 − 6 )
2n 1
=
l=0
8
−j4π( 2n
15 − 6 ) (ejπ( 15 − 6 ) )l
1 2n 1
= e
l=0
1 − ej9π( 15 − 6 )
2n 1
−j4π( 2n
15 − 6 )
1
= e
15 − 6 )
jπ( 2n 1
1−e
3
2 ( 15 − 6 ))
sin( 9π 2n 1
=
sin(( 2 ( 15 − 6 ))
π 2n 1
3.50. Use the defining equation for the FS coefficients to evaluate the FS representation for the following
signals.
(a) T1 = 23 , T2 = 12 , T = lcm(T1 , T2 ) = 2, ωo = π
lcm is the least common multiple.
By inspection
1
k = ±4
2
1
2j k=3
X[k] =
−1
k = −3
2j
0 otherwise
(b)
∞
m 2m
x(t) = (−1)m [(δ(t − ) + δ(t + )]
m=−∞
3 3
4 3π
Graph to find T = 3, ωo = 2
2 2
3 3
−jkπt
3
[2δ(t) − δ(t − 1) − δ(t + 1)]e−jk
3π
X[k] = x(t)e dt = 2 t dt
4 − 23 − 23
(c)
∞
2π
x(t) = [e 7 m δ(t − 2m)]
m=−∞
π
Graph to find T = 14, ωo = 7
7
1
x(t)e−jk 7 t dt
π
X[k] =
14 −7
By the sifting property
1 j(k−1) 6π 4π 2π 2π 4π 6π
4
(d) x(t) as depicted in Figure P3.50(a)
x(t) = | sin(πt)|
T = 1, ωo = 2π
1
1
X[k] = [ejπt − e−jπt ]e−jk2πt dt
2j 0
1 1 1
= ejπ(1−2k) − 1 − e−jπ(1+2k) − 1
2j jπ(1 − 2k) jπ(1 + 2k)
4k
=
π(1 − 4k)
(e) x(t) as depicted in Figure P3.50(b)
T = 2, ωo = π
1
1
X[k] = e−t e−jkπt dt
2 0
1
1
= e−t(1+jkπ) dt
2 0
1 − e−1(1+jkπ)
=
2(jπk + 1)
2π
T = 3, ωo =
3
1 2
1 −jk 2π 1
(3 − 2t)e−jk
2π
X[k] = te 3 t dt + 3 t dt
3 −1 3 1
4π −πk
3 k) −
j2 sin( 2π 4π
3 cos( 2π
3 k) + 3 e cos( π3 k) − j4e−πk sin( π3 k)
= 4π 2
3
3.51. Use the definition of the FS to determine the time-domain signals represented by the following
FS coefficients.
(a) X[k] = jδ[k − 1] − jδ[k + 1] + δ[k − 3] + δ[k + 3], ωo = 2π
∞
x(t) = X[k]ej2πkt
m=−∞
5
(c) X[k] = (− 13 )|k| , ωo = 1
∞
1
x(t) = (− )|k| ejkt
m=−∞
3
∞
∞
1 1
= (− ejt )k + (− e−jt )k
m=0
3 m=1
3
1 −jt
1 3e
= −
1 + 13 ejt 1 + 13 e−jt
8
=
10 + 6 cos(t)
∞
x(t) = X[k]ejπkt
m=−∞
4
x(t) = ej2πk(t−1)
m=−4
sin(9πt)
=
sin(πt)
3.52. Use the defining equation for the DTFT to evaluate the frequency-domain representations for
the following signals. Sketch the magnitude and phase spectra.
(a) x[n] = ( 34 )n u[n − 4]
∞
X(ejΩ ) = x[n]e−jΩn
m=−∞
6
∞
3
= ( )n e−jΩn
m=4
4
∞
3
= ( e−jΩ )n
m=4
4
( 34 e−jΩ )4
=
1 − 34 e−jΩ
( 34 )4
|X(ejΩ )| =
− cos(Ω))0.5
( 25 3
16 2
3 sin(Ω)
X(ejΩ ) = −4Ω + arctan
4 − 3 cos(Ω)
1.4 15
1.2
10
1
5
argX(exp(j omega))
|X(exp(j omega))|
0.8
0.6
−5
0.4
−10
0.2
0 −15
−4 −2 0 2 4 −4 −2 0 2 4
Omega [−pi,pi] Omega [−pi,pi]
∞
−∞
−jΩ n
X(e ) jΩ
= (ae ) + (aejΩ )−n
n=0 n=−1
1 aejΩ
= +
1 − ae−jΩ 1 − aejΩ
1−a 2
=
1 + a2 − 2a cos(Ω)
X(ejΩ ) is completely real and nonnegative, thus:
1 − a2
|X(ejΩ | =
1 + a2 − 2a cos(Ω)
X(ejΩ ) = 0
7
3 1
0.8
2.5
0.6
0.4
2
argX(exp(j omega))
|X(exp(j omega))|
0.2
1.5 0
−0.2
1
−0.4
−0.6
0.5
−0.8
0 −1
−4 −2 0 2 4 −4 −2 0 2 4
Omega [−pi,pi] Omega [−pi,pi]
Figure P3.52. (b) Graph of the magnitude and phase for a = 0.5
1
2 + 1
2
π
cos( N n), |n| ≤ N
(c) x[n] =
0, otherwise
1
N
ej N n + e−j N n −jΩn
π π
X(ejΩ ) = (1 + )e
2 2
n=−N
8 3.5
7
3
6
2.5
5
argX(exp(j omega))
|X(exp(j omega))|
1.5
3
1
2
0.5
1
0 0
−4 −2 0 2 4 −4 −2 0 2 4
Omega [−pi,pi] Omega [−pi,pi]
8
(d) x[n] = 2δ[4 − 2n]
∞
1
X(e ) = jΩ
2δ[4 − 2n]e−jΩn
2 n=−∞
= 2e−j2Ω
|X(ejΩ )| = 2
X(ejΩ ) = −2Ω
3 8
2.8
6
2.6
4
2.4
2
argX(exp(j omega))
|X(exp(j omega))|
2.2
2 0
1.8
−2
1.6
−4
1.4
−6
1.2
1 −8
−4 −2 0 2 4 −4 −2 0 2 4
Omega [−pi,pi] Omega [−pi,pi]
∞
1
X(ejΩ ) = x[n]e−jΩn
2 n=−∞
= ej4Ω + ej2Ω + e−j2Ω − e−j4Ω
2 cos(2Ω) + 2j sin(4Ω) =
1
|X(ejΩ )| = 4 cos2 (2Ω) + 4 sin(4Ω) 2
sin(4Ω)
X(ejΩ ) = arctan
cos(2Ω)
9
3 1
2.8 0.5
0
2.6
−0.5
2.4
argX(exp(j omega))
|X(exp(j omega))|
−1
2.2
−1.5
2
−2
1.8
−2.5
1.6
−3
1.4 −3.5
1.2 −4
−4 −2 0 2 4 −4 −2 0 2 4
Omega [−pi,pi] Omega [−pi,pi]
8 2
7 1.5
6 1
5 0.5
argX(exp(j omega))
|X(exp(j omega))|
4 0
3 −0.5
2 −1
1 −1.5
0 −2
−4 −2 0 2 4 −4 −2 0 2 4
Omega [−pi,pi] Omega [−pi,pi]
10
3.53. Use the equation describing the DTFT representation to determine the time-domain signals
corresponding to the following DTFT’s.
(a) X(ejΩ ) = cos(2Ω) + j sin(2Ω)
π
1
x[n] = X(ejΩ )ejΩn dΩ
2π −π
π
1
= ejΩ(2+n) dΩ
2π −π
by orthogonality
= δ[n + 2]
π jΩ
e − e−jΩ ej 2 + e−j 2 jΩn
Ω Ω
1
x[n] = ( + )e dΩ
2π −π 2j 2
1 1 1 cos(πn) 1 cos(πn)
= δ[n + 1] − δ[n − 1] + −
2j 2j 2π n + 0.5 2π n − 0.5
1, π/4 < |Ω| < 3π/4,
(c) |X(e )| =
jΩ
arg{X(ejΩ )} = −4Ω
0 otherwise
0.75π −0.25π
1 jΩ(n−4) 1
x[n] = e dΩ + ejΩ(n−4) dΩ
2π 0.25π 2π −0.75π
sin(0.75π(n − 4)) − sin(0.25π(n − 4))
=
π(n − 4)
(d) X(ejΩ ) as depicted in Figure P3.53 (a)
0 π
1 1
x[n] = eΩ(jn+1) dΩ + eΩ(jn−1) dΩ
2π −π 2π 0
1 + e−π (−1)n
=
π(n2 + 1)
(e) X(ejΩ ) as depicted in Figure P3.53 (b)
0 π
1 1 2
x[n] = − sin(Ω)ej2Ω ejΩn dΩ + sin(Ω)ej2Ω ejΩn dΩ
2π −π2
2π 0
π
1 2
= sin(Ω) e−j(2+n)Ω + ej(2+n)Ω dΩ
2π 0
π2
1
= sin(Ω) cos((2 + n)Ω)dΩ
π 0
π2
1
= sin(Ω(−1 − n)) + sin(Ω(3 + n))dΩ
2π 0
1 1 − cos( π2 (n + 1)) 1 cos( π2 (n + 3)) − 1
= +
2π n+1 2π n+3
11
π π
1 1−cos( 2 (n+1)) 1 cos( 2 (n+3))−1
2π n+1 + 2π n+3 n = −1, −3
x[n] =
− 2π
1
n = −1, −3
0 π
1 1 2
x[n] = e−jπ ejΩn dΩ + ejΩn dΩ
2π −π
2
2π 0
cos( π2 n) − 1
=
jπn
cos( π n)−1
jπn
2
n = 0
x[n] =
0 n=0
3.54. Use the defining equation for the FT to evaluate the frequency-domain representations for the
following signals.
(a) x(t) = e−2t u(t − 3)
∞
X(jω) = x(t)e−jωt dt
−∞
∞
= e−2t e−jωt dt
3
e−3(2+jω)
=
2 + jω
12
(e) x(t) as depicted in Figure P3.54 (a)
0 1
−jωt
X(jω) = e dt − e−jωt dt
−1 0
2 cos(ω) − 2
=
jω
2 cos(ω)−2
jω ω= 0
X(jω) =
0 ω =0
0 2
t −jωt
X(jω) = ee dt + e−t e−jωt dt
−2 0
1 − e−(1−jω)2 1 − e−(1+jω)2
= +
1 − jω 1 + jω
2 − 2e−2 cos(2ω) + 2ωe−2 sin(2ω)
=
1 + ω2
3.55. Use the equation describing the FT representation to determine the time-domain signals corre-
sponding to the
following FT’s.
cos(2ω), |ω| < π4
(a) X(jω) =
0 otherwise
∞
1
x(t) = X(jω)ejωt dω
2π −∞
0.25π
1 ej2ω + e−j2ω jωt
= e dω
2π −0.25π 2
0.25π 0.25π
1 1 j(t+2)ω 1 1 j(t−2)ω
= e dt + e dω
2π −0.25π 2 2π −0.25π 2
sin(0.25π(t + 2)) sin(0.25π(t − 2))
= +
2π(t + 2) 2π(t − 2)
sin(0.25π(t+2)) sin(0.25π(t−2))
2π(t+2) + 2π(t−2) t = 2, −2
x(t) = 1
8 t = ±2
13
(c) X(jω) = e−2|ω|
∞
1
x(t) = e−2|ω| e−jωt dω
2π −∞
∞ 0
1 −2ω −jωt 1
= e e dω + e2ω e−jωt dω
2π 0 2π −∞
2
=
π(4 + t2 )
(d) X(jω) as depicted in Figure P3.55 (a)
2
1
x(t) = e−j2ω e−jωt dω
2π −2
sin(2(t − 2))
=
π(t − 2)
sin(2(t−2)
π(t−2) t =2
x(t) = 2
π t =2
(e) X(jω) as depicted in Figure P3.55 (b)
3
1 2
x(t) = jωejωt dω
2π −3 3
2 cos(3t) 2 sin(3t)
= −
2πt 3πt2
2 cos(3t) 2 sin(3t)
πt − 3πt2 t =0
x(t) =
0 t =0
(f) X(jω) as depicted in Figure P3.55 (c)
0 2
j j
x(t) = ejωt dω − ejωt dω
2π −2 2π 0
1 − cos(2t)
=
πt
1−cos(2t)
πt t =0
x(t) =
0 t =0
3.56. Determine the appropriate Fourier representation for the following time-domain signals, using
the defining equations.
(a) x(t) = e−t cos(2πt)u(t)
Continuous and Nonperiodic, use FT.
∞
X(jω) = x(t)e−jωt dt
−∞
∞
1
= e−t (ej2πt + e−j2πt )e−jωt dt
2 0
14
1 ∞ −t(1−j2π+jω) 1 ∞ −t(1+j2π+jω)
= e dt + e dt
2 0 2 0
1 1 1
= +
2 1 − j(2π − ω) 1 + j(2π + ω)
π
cos( 10 π
n) + j sin( 10 n), |n| < 10
(b) x[n] =
0, otherwise
Discrete and Nonperiodic, use DTFT.
9
x[n]e−j( 10 −Ω)n
π
jΩ
X(e ) =
n=−9
1 − e−j9( 10 −Ω)
π
= e−j9( 10 −Ω)
π
1 − e−j( 10 −Ω)
π
1
(1 + e−j 7 k − e−j 7 k )
6π 8π
X[k] =
7
−j
X(ejΩ ) = (sin(Ω) + 2 sin(2Ω) + 3 sin(3Ω) + 4 sin(4Ω))
2
15
(g) x(t) as depicted in Figure P3.56 (c)
Continuous and Periodic, use FS.
T = 4, ωo = π2
2 3
1 1
e−j 2 kt dt + 3e−j 2 kt dt
π π
X[k] =
4 1 4 2
2(−1)k + e−j 2 k − 3e−j
π 3π
2 k
=
j2πk
π 3π k
2(−1)k +e−j 2 k −3e−j
0
2
k=
x[k] = j2πk
1 k=0
3.57. The following are frequency-domain representations for signals. Determine the time-domain sig-
nal corresponding
to each.
e−jkπ/2 , |k| < 10
(a) X[k] = Fundamental period of time domain signal is T = 1.
0, otherwise
F S; 2π
Discrete and Nonperiodic ←−−−→ Periodic and Continuous, use FS.
9
e−j 2 k e−j2πk
π
x(t) =
k=−9
9
= (e−jπ(2t−0.5) )k
k=−9
2
X[k]e−j
2π
x[n] = 5 kn
k=−2
+ e−j 5 n + 1 − ej 5 n + e−j
4π 4π 2π 2π
= −ej 5 n 5 n
2π 4π
= 1 − 2j sin( n) − 2j sin( n)
5 5
cos( ω4 ) + j sin( ω4 ), |ω| < π
(c) X(jω) =
0, otherwise
FT
Continuous and Nonperiodic ←−−−→ Nonperiodic and Continuous, use FT.
π
1 ω
x(t) = ej 4 ejωt dω
2π −π
sin(π(t + 0.25))
=
π(t + 0.25)
16
sin(π(t+0.25))
π(t+0.25) k = − 14
x(t) =
1 k = − 14
0 2
1 1
x(t) = −eω ejωt dω + e−ω ejωt dω
2π −2 2π 0
e−2(1+jt) − 1 e2(jt−1) − 1
= +
2π(1 + jt) 2π(jt − 1)
−2
e t(cos(2t) + 1)
=
jπ(1 + t2 )
π
1 2Ω jΩn
x[n] = e dΩ
2π −π π
Use integration by parts.
2 cos(πn)
=
jπn
2 cos(πn)
jπn n = 0
x[n] =
0 n=0
π
1
x[n] = | sin(Ω)|ejΩn dΩ
2π −π
0 π
1 1
= − sin(Ω)e jΩn
dΩ + − sin(Ω)ejΩn dΩ
2π −π 2π 0
cos(π(n − 1)) − 1 cos(π(n + 1)) − 1
= +
2π(n − 1) 2π(n + 1)
cos(π(n−1))−1 cos(π(n+1))−1
2π(n−1) + 2π(n+1) k = 2, −2
x[n] =
0 k = 2, −2
17
3.58. Use the tables of transforms and properties to find the FT’s of the following signals.
(a) x(t) = sin(2πt)e−t u(t)
FT 1
e−t u(t) ←−−−→
1 + jω
FT
ej2πt s(t) ←−−−→ S(j(ω − 2π))
1 1 1
X(jω) = −
2j 1 + j(ω − 2π) 1 + j(ω + 2π)
FT 6
e−3|t| ←−−−→
9 + ω2
FT
s(t − 1) ←−−−→ e−jω S(jω)
FT d
tw(t) ←−−−→ j W (jω)
dω
d −jω 6
X(jω) = j e
dω 9 + ω2
−jω
6e 12jω −jω
= −
9 + ω2 (9 + ω 2 )2
2 sin(3πt) sin(2πt)
(c) x(t) = πt πt
sin(W t) FT 1 ω≤W
←−−−→
πt 0, otherwise
FT 1
s1 (t)s2 (t) ←−−−→ S1 (jω) ∗ S2 (jω)
2π
|ω|
5− π π < |ω| ≤ 5π
X(jω) = 4 |ω| ≤ π
0 otherwise
(d)
d −2t
x(t) = te sin(t)u(t)
dt
d −2t ejt − e−jt
= te u(t)
dt 2j
FT 1
te−2t u(t) ←−−−→
(2 + jω)2
18
FT
ejt s(t) ←−−−→ S(j(ω − 1))
d FT
s(t) ←−−−→ jωS(jω)
dt
1 1 1
X(jω) = jω −
2j (2 + j(ω − 1))2 (2 + j(ω + 1))2
t sin(2πτ )
(e) x(t) = −∞ πτ dτ
sin(2πt) FT 1 ω ≤ 2π
←−−−→
πt 0, otherwise
t FT S(jω)
s(τ )dτ ←−−−→ + πS(j0)δ(ω)
−∞ jω
πδ(ω) ω =0
X(jω) = 1
|ω| ≤ 2π, ω = 0
jω
0 otherwise
FT 1
e−t u(t) ←−−−→
1 + jω
FT
s(t − 2) ←−−−→ e−j2ω S(jω)
1
X(jω) = e−j2ω
1 + jω
sin(t) sin(2t)
(g) x(t) = πt ∗ d
dt πt
FT
x(t) = a(t) ∗ b(t) ←−−−→ X(jω) = A(jω)B(jω)
sin(W t) FT 1 ω≤W
←−−−→
πt 0, otherwise
d FT
s(t) ←−−−→ jωS(jω)
dt
jω |ω| ≤ 1
X(jω) =
0, otherwise
3.59. Use the tables of transforms and properties to find the inverse FT’s of the following signals.
jω
(a) X(jω) = (1+jω) 2
1 FT
←−−−→ te−t u(t)
(1 + jω)2
FT d
jωS(jω) ←−−−→ s(t)
dt
19
d −t
x(t) = [te u(t)]
dt
= (1 − t)e−t u(t)
4 sin(2ω−4) 4 sin(2ω+4)
(b) X(jω) = 2ω−4 − 2ω+4
2 sin(ω) FT 1 |t| ≤ 1
←−−−→ rect(t) =
ω 0, otherwise
FT 1 t
S(j2ω) ←−−−→ s( )
2 2
FT
S(j(ω − 2)) ←−−−→ ej2t s(t)
t t
x(t) = rect( )ej2t − rect( )e−j2t
2 2
t
= 2jrect( ) sin(2t)
2
(c) X(jω) = 1
jω(jω+2) − πδ(ω)
1 FT
+ πδ(jω) ←−−−→ u(t)
jω
1 FT
←−−−→ e−2t u(t)
2 + jω
FT
2πδ(ω) ←−−−→ 1
1 1
X(jω) = −0.5
+ 0.5 + 0.5πδ(ω) − 1.5πδ(ω)
(jω + 2) jω
FT 3
X(jω) ←−−−→ x(t) = −0.5e−2t u(t) + 0.5u(t) −
4
(d) X(jω) = d
dω 4 sin(4ω) sin(2ω)
ω
2 sin(2ω) FT 1 |t| ≤ 2
S(jω) = ←−−−→ s(t) = rect(2t) =
ω 0, otherwise
FT
S1 (jω) = 2 sin(4ω)S(jω) ←−−−→ s1 (t) = −js(t + 4)) + js(t − 4))
d FT
X(jω) = S1 (jω) ←−−−→ x(t) = −jts1 (t)
dω
x(t) = −trect(2(t + 4)) + trect(2(t − 4))
2 sin(ω)
(e) X(jω) = ω(jω+2)
2 sin(ω) FT 1 |t| ≤ 1
S1 (jω) = ←−−−→ s1 (t) =
ω 0, otherwise
20
1 FT
S2 (jω) = ←−−−→ s2 (t) = e−2t u(t)
(jω + 2)
x(t) = s1 (t) ∗ s2 (t)
0 t <-1
−2(t+1)
2 [1 − e −1 ≤ t < −1
1
x(t) = ]
e−2t 2 −2
2 [e − e ] t ≥1
4 sin2 (ω)
(f) X(jω) = ω2
2 sin(ω) FT 1 |t| ≤ 1
S(jω) = ←−−−→ s(t) =
ω 0, otherwise
x(t) = s(t) ∗ s(t)
2 − |t| t ≤ 2
x(t) =
0 otherwise
3.60. Use the tables of transforms and properties to find the DTFT’s of the following signals.
n
(a) x[n] = 13 u[n + 2]
1
x[n] ( )n u[n + 2]
=
3
1 1
= ( )−2 ( )n+2 u[n + 2]
3 3
1 n DT F T 1
( ) u[n] ←−−−−→
3 1 − 13 e−jΩ
DT F T
s[n + 2] ←−−
−−→ ej2Ω S(ejΩ )
9ej2Ω
X(ejΩ ) =
1 − 13 e−jΩ
sin( 9Ω
2 )
DT F T
u[n + 4] − u[n − 5] ←−−
−−→ Ω
sin( 2 )
DT F T d
ns[n] ←−−−−→ j S(ejΩ )
dΩ
d sin( 9Ω
2 ) sin( 9Ω2 )
x[n] = j − 2
dΩ sin( Ω2 ) sin( Ω2 )
21
(c) x[n] = cos( π4 n)( 12 )n u[n − 2]
π 1
x[n] cos( n)( )n u[n − 2]
=
4 2
π 1 1 n−2
= cos( n) ( ) u[n − 2]
4 4 2
1 DT F T 1
a[n] = ( )n u[n] ←−−−−→ A(ejΩ ) = 1 −jΩ
2 1 − 2e
DT F T
b[n] = a[n − 2] ←−−−−→ B(ejΩ ) = e−j2Ω A(ejΩ )
π DT F T 1 π 1 π
x[n] = cos( n)a[n − 2] ←−− −−→ X(ejΩ ) = B(ej(Ω− 4 ) ) + B(ej(Ω+ 4 ) )
4 2 2
−j2(Ω− π4) −j2(Ω+ π 4)
jΩ 1 e e
X(e ) = +
8 1 − 12 e−j(Ω− 4 ) 1 − 12 e−j(Ω+ 4 )
π π
sin( π
4 n) sin( π
4 (n−8))
(d) x[n] = πn ∗ π(n−8)
sin( π4 n) FT 1 |Ω| ≤ π4
s[n] = ←−−−→ jΩ
S(e ) =
πn 0, π4 < |Ω| ≤ π
DT F T
−−→ B(ejΩ ) = e−j8Ω S(ejΩ )
b[n] = s[n − 8] ←−−
jΩ jΩ jΩ e−j8Ω |Ω| ≤ π4
X(e ) = B(e )S(e ) =
4 < |Ω| ≤ π
π
0,
2
sin( π
2 n) sin( π
2 n)
(e) x[n] = πn ∗ πn
sin( π4 n) DT F T 1 |Ω| ≤ π2
s[n] = ←−−
−−→ S(e ) = jΩ
πn 0, π2 < |Ω| ≤ π
DT F T 1
|Ω|
s2 [n] = s[n]s[n] ←−−
−−→ S2 (ejΩ ) = S(ejΩ ) ∗ S(ejΩ ) = 2 − 2
1
|Ω| ≤ π, 2π periodic.
2π
|Ω|
2 − 2 |Ω| ≤ π2
1
X(ejΩ ) = jΩ jΩ
S2 (e )S(e ) =
2 < |Ω| ≤ π
π
0,
3.61. Use the tables of transforms and properties to find the inverse DTFT’s of the following signals.
(a)
X(ejΩ ) = j sin(4Ω) − 2
1 j4Ω 1 −j4Ω
= e − e −2
2 2
1 1
x[n] = δ[n + 4] − δ[n − 4] − 2δ[n]
2 2
sin( 15 Ω) sin( 7 Ω)
(b) X(ejΩ ) = e−j2Ω sin(2Ω ) ∗ sin(2Ω )
2 2
22
Let the first part be A((ejΩ )), and the second be B(ejΩ ).
1 |n − 2| ≤ 7
a[n] =
0, otherwise
1 |n| ≤ 3
b[n] =
0, otherwise
DT F T
X((ejΩ )) ∗ B(ejΩ ) ←−−
= A((ejΩ )) −−→ x[n] = 2πa[n]b[n]
2π |n| ≤ 3
x[n] =
0, otherwise
sin( 32 Ω)
(c) X(ejΩ ) = cos(4Ω) sin( Ω2)
sin( 32 Ω) DT F T 1 |n| ≤ 1
A(e ) = jΩ
←−−
−−→ a[n] =
sin( Ω2 ) 0, otherwise
DT F T 1 1
X(ejΩ ) = cos(4Ω)A((ejΩ )) ←−−−−→ x[n] = a[n + 4] + a[n − 4]
2 2
1
2 |n + 4| ≤ 1, |n − 4| ≤ 1
x[n] =
0, otherwise
e−j4Ω π
< |Ω| < 3π
jΩ
(d) X(e ) = 4 4 , for |Ω| < π
0 otherwise
e−j4Ω |Ω − π2 | < π
X(e ) jΩ
= 4 , for |Ω| < π
0 otherwise
π sin( π4 (n − 4)
x[n] = ej 2 n
π(n − 4)
(e) X(ejΩ ) = e−j(4Ω+ 2 ) dΩ
π d 2 2
π + π
1+ 14 e−j(Ω− 4 ) 1+ 14 e−j(Ω+ 4 )
2 DT F T 1
S1 (ejΩ ) = 1 −jω ←−−−−→ s1 [n] = 2(− )n u[n]
1+ 4e
4
π DT F T π
S1 (ej(Ω− 4 ) ←−−
−−→ ej 4 n s1 [n]
DT F T
−−→ e−j 4 n s1 [n]
π π
S1 (ej(Ω+ 4 ) ←−−
π π DT F T π
S(ejΩ ) = S1 (ej(Ω− 4 ) + S1 (ej(Ω+ 4 ) ←−−−−→ s[n] = 2 cos( n)s1 [n]
4
d DT F T
−jej4Ω S(ejΩ ) ←−− −−→ −(n − 4)s[n − 4]
dΩ
π 1
x[n] = −4(n − 4) cos( (n − 4))(− )n−4 u[n − 4]
4 4
23
1 |t| < 1 FT
3.62. Use the FT pair x(t) = ←−−−→ X(jω) = 2 sin(ω)
ω
0 otherwise
and the FT properties to evaluate the frequency domain representations
for the signals depicted in Figure P 3.62 (a) − (g).
(a) y(t) = x( t−2
2 )
2 sin(ω)
Y (jω) = e−j2ω 2X(j2ω) = e−j2ω
2ω
1 1
Y (jω) = X(j(ω − π)) − X(j(ω + π))
2j 2j
sin(ω − π) sin(ω + π)
= −
j(ω − π) j(ω + π)
1 ω
= ejω X(jω) − e−j 2 X(j )
ω
Y (jω)
2 2
ω
ω 2 sin(
2 sin(ω) 2)
= ejω − e−j 2
ω ω
FT d
−jtx(t) ←−−−→ X(jω)
dω
d 2 sin(ω)
Y (jω) = 2j
dω ω
2 cos(ω) 2 sin(ω)
Y (jω) = 2j( − )
ω ω2
4 sin2 (ω)
Y (jω) =
ω2
t
(f)) y(t) = −∞
x(τ ) dτ
sin(ω) 1
Y (jω) = 2 + π(2)δ(ω)
ω jω
sin(ω)
= 2 + 2πδ(ω)
jω 2
24
d
(g) y(t) = dt x(t)
sin(ω)
Y (jω) = jω2
ω
= j2 sin(ω)
3 |n| DT F T
3.63. We have x[n] = n 4 ←−−
−−→ X(ejΩ ). Without evaluating X(ejΩ ), find y[n] if Y (ejΩ ) is
given by:
(a) Y (ejΩ ) = e−j4Ω X(ejΩ )
3
y[n] = x[n − 4] = (n − 4)( )|n−4|
4
d
(c) Y (ejΩ ) = jΩ
dΩ X(e )
3
y[n] = −jnx[n] = −jn2 ( )|n|
4
∗ X(ej(Ω−π/2) )
(d) Y (ejΩ ) = X(ejΩ )
d
(e) Y (ejΩ ) = dΩ X(e
j2Ω
)
DT F T x[n] n even
jΩ
Xz (e ) = X(e j2Ω
) ←−−
−−→ xz [n] =
0 otherwise
|n|
−jn2 34 n even
y[n] =
0 otherwise
3 3
y[n] = x[n] + x[−n] = n( )|n| − n( )|−n| = 0
4 4
25
e−j4Ω X(ej(Ω+ 4 ) ) + X(ej(Ω− 4 ) )
d π π
(g) Y (ejΩ ) = dΩ
F S; π
3.64. A periodic signal has FS representation x(t) ←−−−→ X[k] = −k2−|k| . Without determining
x(t), find the FS representation (Y [k] and ωo ) if y(t) is given by:
(a) y(t) = x(3t)
d
(b) y(t) = dt x(t)
F S; π
(d) y(t) = Re{x(t)} ←−−−→ Y [k] conjugate symmetric
1 j4πt 1
y(t) =
e x(t) + e−j4πt x(t)
2 2
1 1
Y [k] = X[k − 4] + X[k + 4]
2 2
1 1
= − (k − 4)2−|k−4| − (k + 4)2−|k+4|
2 2
26
∗ x(t − 1)
(f) y(t) = x(t)
T = 2, ωo = π
F S; π
∗ z(t) ←−−−→ T X[k]Z[k]
x(t)
F S; π
x(t − 1) ←−−−→ e−jkπ X[k]
Y [k] = 2e−jkπ (−k2−|k| )
π
sin( 11π DT F S;
20 n)
10
3.65. Given x[n] = sin( 20
π
n)
←−−
−−→ X[k], evaluate the time signal y[n] with the following DTFS
coefficients using only DTFS properties.
π
DT F S; 10
−−→ [ej 2 n + e−j 2 n ]x[n]
π π
(a) Y [k] = X[k − 5] + X[k + 5] ←−−
π sin( 11π
20 n)
y[n] = 2 cos( n) π
2 sin( 20 n)
π
DT F S; 10
(b) Y [k] = cos k π5 X[k] ←−− −−→ 12 [x[n − 2] + x[n + 2]]
20 (n − 2))
1 sin( 11π sin( 11π
20 (n + 2))
y[n] = +
π
2 sin( 20 (n − 2)) π
sin( 20 (n + 2))
π
DT F S; 10
∗ X[k] ←−−
(c) Y [k] = X[k] −−→ (x[n])2
sin2 ( 11π
20 n)
y[n] = 2 π
sin ( 20 n)
π
DT F S; 10
(d) Y [k] = Re{X[k]} ←−−
−−→ even(x[n])
x[n] + x[−n]
y[n] =
2
sin( 11π
20 n)
= π
sin( 20 n)
3.66. Sketch the frequency response of the systems described by the following impulse responses. Char-
acterize each system as lowpass, bandpass, or highpass.
(a) h(t) = δ(t) − 2e−2t u(t)
2
Y (jω) = 1−
2 + jω
jω
=
2 + jω
27
Highpass filter
(a) The magnitude of X(exp(j omega)) (a) The phase of X(exp(j omega))
0 2
1.5
−5
−10
0.5
−15 0
−0.5
−20
−1
−25
−1.5
−30 −2
−40 −20 0 20 40 −40 −20 0 20 40
0mega 0mega
FT jω
a(t) = e−2t u(t) ←−−−→ A(jω) =
2 + jω
FT
h(t) = 4 cos(50t)a(t) ←−−−→ H(jω) = 2A(j(ω − 50)) + 2A(j(ω + 50))
2 2
H(jω) = +
2 + j(ω − 50) 2 + j(ω + 50)
28
(b) The magnitude of X(exp(j omega)) (b) The phase of X(exp(j omega))
10 2
1.5
0
−10
0.5
−20 0
−0.5
−30
−1
−40
−1.5
−50 −2
−100 −50 0 50 100 −100 −50 0 50 100
0mega 0mega
1
7 n
(c) h[n] = 8 8 u[n]
1
H(ejΩ ) = 8
7 −jΩ
1− 8e
1
−5
argX(exp(j omega)) in radians
20log(X(exp(j omega))) in dB
0.5
−10
−15
−0.5
−20
−1
−25 −1.5
−4 −2 0 2 4 −4 −2 0 2 4
0mega 0mega
29
(−1)n |n| ≤ 10
(d) h[n] =
0 otherwise
ejπn |n| ≤ 10
h[n] =
0 otherwise
sin( 212 (Ω − π))
H(ejΩ ) =
sin( 12 (Ω − π))
20
3
10
2.5
argX(exp(j omega)) in radians
20log(X(exp(j omega))) in dB
0
2
−10
1.5
−20
1
−30
0.5
−40
−50 0
−4 −2 0 2 4 −4 −2 0 2 4
0mega 0mega
3.67. Find the frequency response and the impulse response of the systems having the output y(t) for
the input x(t).
(a) x(t) = e−t u(t), y(t) = e−2t u(t) + e−3t u(t)
1
X(jω) =
1 + jω
1 1
Y (jω) = +
2 + jω 3 + jω
5 + 2jω
=
(2 + jω)(3 + jω)
Y (jω)
H(jω) =
X(jω)
5 + 7jω + 2(jω)2
=
(2 + jω)(3 + jω)
30
1 2
= 2− −
2 + jω 3 + jω
h(t) = 2δ(t) − (e−2t + 2e−3t )u(t)
1
X(jω) =
3 + jω
1
Y (jω) = e−j2ω
3 + jω
H(jω) = e−j2ω
h(t) = δ(t − 2)
1
X(jω) =
2 + jω
2
Y (jω) =
(2 + jω)2
2
H(jω) =
(2 + jω)
h(t) = 2e−2t u(t)
1 n 1
1 n 1 n
(d) x[n] = 2 u[n], y[n] = 4 2 u[n] + 4 u[n]
1
X(ejΩ ) = 1 −jΩ
1− 2e
1 1 1
Y (ejΩ ) = +
4 1 − 12 e−jΩ 1 − 14 e−jΩ
1 1 − 12 e−jΩ
H(ejΩ ) = +
4 1 − 14 e−jΩ
1 1 1 1
h[n] = δ[n] + ( )n u[n] − ( )n−1 u[n − 1]
4 4 2 4
1 n 1 n 1 n−1
(e) x[n] = 4 u[n], y[n] = 4 u[n] − 4 u[n − 1]
1
X(ejΩ ) =
1 − 14 e−jΩ
31
1 e−jΩ
Y (ejΩ ) = 1 −jΩ −
1− 4e 1 − 14 e−jΩ
H(ejΩ ) = 1 − e−jΩ
h[n] = δ[n] − δ[n − 1]
3.68. Determine the frequency response and the impulse response for the systems described by the
following differential and difference equations.
d
(a) dt y(t) + 3y(t) = x(t)
d2
(b) dt2 y(t)
d
+ 5 dt y(t) + 6y(t) = − dt
d
x(t)
1 1 3
(1 − e−jΩ − e−j2Ω )Y (ejΩ ) (3 − e−jΩ )X(ejΩ )
=
4 8 4
3 − 34 e−jΩ
H(ejΩ ) =
1 − 14 e−jΩ − 18 e−j2Ω
1 2
= +
1 − 12 e−jΩ 1 + 14 e−jΩ
1 1
h[n] = ( )n + 2(− )n u[n]
2 4
1
(1 + e−jΩ )Y (ejΩ ) = (1 − 2e−jΩ )X(ejΩ )
2
32
1 − 2e−jΩ
H(ejΩ ) =
1 + 12 e−jΩ
1 1
h[n] = (− )n u[n] − 2(− )n−1 u[n − 1]
2 2
3.69. Determine the differential or difference equation descriptions for the systems with the following
impulse responses.
(a) h(t) = a1 e− a u(t)
t
Y (jω)
H(jω) =
X(jω)
1 1
= 1
a a + jω
1 1
( + jω)Y (jω) = X(jω)
a a
1 1
( + jω)Y (jω) = X(jω)
a a
1 d 1
y(t) + y(t) = x(t)
a dt a
2 2
H(jω) = −
2 + jω (2 + jω)2
2 + j2ω
=
(2 + jω)2
(4 + 4jω + (jω)2 )Y (jω) = (2 + j2ω)X(jω)
d d2 d
4y(t) + 4 y(t) + 2 y(t) = 2x(t) + 2 x(t)
dt dt dt
Y (ejΩ )
H(ejΩ ) =
X(ejΩ )
1
=
1 − αe−jΩ
Y (ejΩ )(1 − αe−jΩ ) = X(ejΩ )
y[n] − αy[n − 1] = x[n]
1 n −1 n
(d) h[n] = δ[n] + 2 2 u[n] + 2 u[n]
2 1
H(ejΩ ) = 1+ +
1 − 12 e−jΩ 1 + 12 e−jΩ
33
4 + 12 e−jΩ − 14 e−j2Ω
=
1 − 14 e−j2Ω
1 1 1
Y (ejΩ )(1 − e−j2Ω ) = (4 + e−jΩ − e−j2Ω )X(ejΩ )
4 2 4
1 1 1
y[n] − y[n − 2] = 4x[n] + x[n − 1] − x[n − 2]
4 2 4
3.70. Determine the differential or difference equation descriptions for the systems with the following
frequency responses.
2
(a) H(jω) = 2+3jω−3(jω)
1+2jω
Y (jω)
H(jω) =
X(jω)
2 + 3jω − 3(jω)2
=
1 + 2jω
(1 + 2jω)Y (jω) = (2 + 3jω − 3(jω)2 )X(jω)
d d d2
y(t) + 2 y(t) = 2x(t) + 3 x(t) − 3 2 x(t)
dt dt dt
1−jω
(b) H(jω) = −ω 2 −4
1 − jω
H(jω) =
(jω)2 − 4
d2 d
y(t) − 4y(t) = x(t) − x(t)
dt2 dt
1+jω
(c) H(jω) = (jω+2)(jω+1)
1 + jω
H(jω) =
(jω)2 + 3jω + 2
d2 d d
y(t) + 3 y(t) + 2y(t) = x(t) + x(t)
dt2 dt dt
1+e−jΩ
(d) H(ejΩ ) = e−j2Ω +3
1 + e−jΩ
H(ejΩ ) =
e−j2Ω + 3
3y[n] + y[n − 2] = x[n] + x[n − 1]
34
e−jΩ
(e) H(ejΩ ) = 1 + (1− 12 e−jΩ )(1+ 14 e−jΩ )
e−jΩ
H(ejΩ ) = 1+
(1 − 12 e−jΩ )(1 + 14 e−jΩ )
3 −jΩ
1+ 4e − 18 e−j2Ω
= 1 −jΩ
1− 4e − 18 e−j2Ω
1 1 3 1
y[n] − y[n − 1] − y[n − 2] = x[n] + x[n − 1] − x[n − 2]
4 8 4 8
(b) Determine and plot the voltage across the inductor if the input is the square wave depicted in
Fig. 3.21 with T = 1 and To = 1/4.
35
One period of the output for yL(t)
1
0.8
0.6
0.4
0.2
yL(t)
−0.2
−0.4
−0.6
−0.8
−1
−0.5 −0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
(c) Let the output be the voltage across the resistor, yR (t). Write a differential equation description
for this system and find the frequency response. Characterize this system as a filter.
x(t)
= yR (t) + yL (t)
d
= yR (t) + L yR (t)
dt
1
H(jω) =
1 + jωL
(d) Determine and plot the voltage across the resistor if the input is the square wave depicted in Fig.
3.21 with T = 1 and To = 1/4.
1 −1t
h(t) =e L
L
t
1 −1t τ
v(t) = u(t) ∗ h(t) = e L e L dτ u(t)
L
t 0
−L1
= e t
e L − 1 u(t)
(1 − e− L )u(t)
t
=
yR (t) = v(t + 0.25) − v(t + 0.25)
36
One period of the output for yR(t)
1
0.9
0.8
0.7
0.6
yR(t)
0.5
0.4
0.3
0.2
0.1
0
−0.5 −0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
3.72. Consider the RLC circuit depicted in Fig. P3.72 with input x(t) and output y(t).
(a) Write a differential equation description for this system and find the frequency response. Characterize
this system as a filter.
t
d 1
x(t) = y(t) + L y(t) + y(τ ) dτ
dt C −∞
d d d2 1
x(t) = y(t) + L 2 y(t) + y(t)
dt dt dt C
jω
H(jω) = 1
C + jω + L(jω)2
4
Bandpass filter centered at ωc = 10L .
(b) Determine and plot the output if the input is the square wave depicted in Fig. 3.21 with T = 2π ∗10−3
and To = π2 ∗ 10−3 .
Assume L = 10mH.
This filter picks off the first harmonic of the signal, thus ignoring the smaller terms, y(t) ≈ π2 sin(1000t).
37
(i) L = 10mH, One period of the output for y(t)
0.8
0.6
0.4
0.2
y(t)
−0.2
−0.4
−0.6
−0.8
−4 −3 −2 −1 0 1 2 3 4
t −3
x 10
(b)
jω − 2
X(jω) =
−ω 2
+ 5jω + 4
A B
= +
4 + jω 1 + jω
1 = A+B
−2= A + 4B
2 1
X(jω) = −
4 + jω 1 + jω
x(t) = (2e−4t − e−t )u(t)
38
(c)
jω
X(jω) =
(jω)2 + 6jω + 8
A B
= +
4 + jω 2 + jω
1 = A+B
0 = 2A + 4B
2 1
X(jω) = −
4 + jω 2 + jω
x(t) = (2e−4t − e−2t )u(t)
(d)
−(jω)2 − 4jω − 6
X(jω) =
((jω)2 + 3jω + 2)(jω + 4)
A B C
= + +
2 + jω 1 + jω 4 + jω
−1 = A + B + C
−4 = 5A + 6B + 3C
−6 =
4A + 8B + 2C
1 1 1
X(jω) = − −
2 + jω 1 + jω 4 + jω
x(t) = (e−2t − e−t − e−4t )u(t)
(e)
2(jω)2 + 12jω + 14
X(jω) =
(jω)2 + 6jω + 5
4
= 2+
(5 + jω)(1 + jω)
A B
= 2+ +
5 + jω 1 + jω
0 = A+B
4
= A + 5B
1 1
X(jω) = 2 − +
5 + jω 1 + jω
x(t) = 2δ(t) + (e−t − e−5t )u(t)
(f)
jω + 3
X(jω) =
(jω + 1)2
A B
= +
1 + jω (1 + jω)2
1 = A
39
3
= A+B
1 2
X(jω) = +
1 + jω (1 + jω)2
x(t) = (e−t + 2te−t )u(t)
3.74. Use partial fraction expansions to determine the inverse DTFT for the following signals.
(a)
2e−jΩ
X(ejΩ ) =
1 − 14 e−j2Ω
A B
= +
1 − 12 e−jΩ 1 + 12 e−jΩ
1 1
2 = A− B
2 2
0 = A+B
2 2
jΩ
X(e ) = −
1 − 12 e−jΩ 1 + 12 e−jΩ
1 1
x[n] = 2( )n − 2(− )n u[n]
2 2
(b)
2 + 14 e−jΩ
X(ejΩ ) =
− 18 e−j2Ω + 14 e−jΩ + 1
A B
= 1 −jΩ +
1 + 2e 1 − 14 e−jΩ
1 1 1
= − A+ B
4 4 2
2 = A+B
1 1
X(ejΩ ) = +
1 + 12 e−jΩ 1 − 14 e−jΩ
1 n 1 n
x[n] = (− ) + ( ) u[n]
2 4
(c)
2
X(ejΩ ) =
−e−j2Ω + e−jΩ + 6
A B
= 1 −jΩ +
1 + 2e 1 − 13 e−jΩ
1 1
0 = − A+ B
3 2
1
= A+B
3
1 2
X(ejΩ ) = 5
1 −jΩ + 15
1 −jΩ
1+ 1−
2e 3e
1 1 n 2 1 n
x[n] = (− ) + ( ) u[n]
5 2 15 3
40
(d)
6 − 2e−jΩ + 12 e−j2Ω
X(ejΩ ) =
(− 14 e−j2Ω
+ 1)(1 − 14 e−jΩ )
A B C
= 1 −jΩ + 1 −jΩ +
1 + 2e 1 − 2e 1 − 14 e−jΩ
6 = A+B+C
3 1
−2 = − A+ B
4 4
1 1 1 1
= A− B− C
2 8 8 4
4 4 2
X(ejΩ ) = + −
1 + 12 e−jΩ 1 − 12 e−jΩ 1 − 14 e−jΩ
1 n 1 n 1 n
x[n] = 4(− ) + 4( ) − 2( ) u[n]
2 2 4
(e)
6 − 23 e−jΩ − 16 e−j2Ω
X(ejΩ ) =
− 16 e−j2Ω + 16 e−jΩ + 1
A B
= 1+ 1 −jΩ +
1 + 2e 1 − 13 e−jΩ
5 = A+B
1 1 1
− = − A+ B
2 3 2
4 1
X(ejΩ ) = 1+ 1 −jΩ + 1 −jΩn
1 + 2e 1− e
3
1 n 1 n
x[n] = 4(− ) + ( ) u[n] + δ[n]
2 3
(b)
sin(k π8 ) F S; π 1 |t| ≤ 8ωπo
X[k] = ←−−−→ x(t) =
πk 0, 8ωπo < |t| ≤ 2π
ωo
41
∞
0.5T
sin2 (kπ/8) π2
π 2
= |x(t)|2 dt
π2 k2 T −0.5T
k=−∞
π
πωo 8ωo
= |1|2 dt
2 − 8ω
π
o
ωo 2π 2
=
2(8)ωo
π2
=
8
(c)
2(2) FT
X(jω) = 2 ←−−−→ x(t) = e−2|t|
ω + 22
2 ∞
1 ∞ 4
dω = π |x(t)|2 dt
2 −∞ ω 2 + 22 −∞
∞
= 2π e−4t dt
0
π
=
2
(d)
sin(πt) FT 1 |ω| ≤ π
x(t) = ←−−−→ X(jω) =
πt 0, otherwise
∞ 2
sin(πt) 1 ∞
π dt = |X(jω)|2 dω
−∞ πt 2 −∞
1 π
= 1 dω
2 −π
= π
(b)
FT 1
X(jω) ←−−−→
(2 + jt)2
42
FT 1
te−2t u(t) ←−−−→
(2 + jω)2
thus:
1 FT
←−−−→ −2πωe2ω u(−ω)
(2 + jt)2
X(jω) = −2πωe2ω u(−ω)
(c)
sin 11π n DT F S; π
10
x[n] = π
20
←−−
−−→ X[k]
sin 20 n
π
ωo = implies N = 20
10
1 |n| ≤ 5 sin( 11π
π
20 k)
DT F S; 10
←−−
−−→ π
0, 5 < |n| ≤ 10 sin( 20 k)
implies
sin( 11π 1 |k| ≤ 5
π
20 k)
DT F S;
1 10
π ←−−
−−→
sin( 20 k) 20 0, 5 < |k| ≤ 10
1
20 |k| ≤ 5
X[k] =
0, 5 < |k| ≤ 10
X[k + iN ] = X[k + i20] = X[k] where k, i are integers.
3.77. For the FT X(jω) shown in Figure P3.77, evaluate the following quantities without explicitly
computing x(t)
(a)
∞
x(t)dt = X(j0)
−∞
= 1
(b)
∞ ∞
1
|X(jω)|2 dω = |x(t)|2 dt
2π −∞ −∞
−3 −1 1 3
1
= 2
(ω + 5) dω + (−ω − 1) dω +
2 2
(ω + 1) dω + 2
(−ω + 3) dω
2π −5 −3 −1 1
16
=
3π
(c)
∞
x(t)ej3t dt = X(j(−3))
−∞
= 2
43
(d) arg{x(t)}
X(jω) is a real and even function shifted by 1 to the left, i.e. X(jω) = Xe (j(ω − 1)). Since Xe (jω) is
real and even, so is xe (t), thus x(t) = xe (t)e−j(1)t = |xe (t)|e−j(1)t which means,
arg[x(t)] = −t
(e)
∞
1
x(0) = X(jω)dω
2π −∞
−3 −1 1 3
1
= (ω + 5)dω + (−ω − 1)dω + (ω + 1)dω + (−ω + 3)dω
2π −5 −3 −1 1
4
=
π
DT F T
3.78. Let x[n] ←−−−−→ X(ejΩ ) where x[n] is depicted in Figure P3.78. Evaluate the following without
explicitly computing X(ejΩ ).
(a) X(ej0 )
∞
X(ej0 ) = x[n]
n=−∞
= 0
(b) arg{X(ejΩ )}
x[n] is a real and odd function shifted by 2 to the right, i.e. x[n] = xo [n − 2]. Since xo [n] is a real
and odd, Xo (ejΩ ) is purely imagniary, thus X(ejΩ ) = |Xo (ejΩ )|e−j2Ω ej 2 , which means,
π
arg{X(ejΩ )} = π
2 − 2Ω
(c)
π ∞
|X(ejΩ )|2 dΩ = 2π |x[n]|2
−π n=−∞
= 28π
(d)
π
X(ejΩ )ej3Ω dΩ = 2πx(3)
−π
= −2π
DT F T
(e) y[n] ←−−
−−→ Re{ej2Ω X(ejΩ )}
44
y[n] = Re{ej2Ω X(ejΩ )}
= 0
T
1
X[−k] = x(t)ejkωo t dt
T 0
T
1
X[−k] = x(−t)ejkωo t dt
T 0
1 −T
X[−k] = − x(τ )e−jkωo τ dτ
T 0
τ = −t, dτ = −dt
Then flip order of integration.
X[−k] = X[k]
X[−k] = X ∗ [k]
π
1
x[n − no ] = X(ejΩ )ejΩ(n−no ) dΩ
2π −π
π
1
= X(ejΩ )ejΩno ejΩn dΩ
2π −π !
45
DT F T
−−→ X(ejΩ )e−jΩno
x[n − no ] ←−−
N −1
x[n]ejko Ωo n = x[n]ejko Ωo n ejkΩo n
k=0
N −1
= x[n]ej(k−ko )Ωo n
k=0
= X[k − ko ]
∞
S(jω) = [ax(t) + by(t)]e−jωt dt
−∞
∞ ∞
= a x(t)e−jωt dt + b y(t)e−jωt dt
−∞ −∞
= aX(jω) + bY (jω)
FT
Therefore ax(t) + by(t) ←−−−→ aX(jω) + bY (jω)
∞
∞
C(e )jΩ
= x[l]y[n − l]e−jΩn
n=−∞ l=−∞
∞
∞
= x[l] y[n − l]e−jΩ(n−l) e−jΩl
l=−∞ n=−∞
!
Y (ejΩo )
∞
= x[l]e−jΩl Y (ejΩ )
l=−∞
= X(ejΩ )Y (ejΩ )
DT F T
Therefore x[n] ∗ y[n] ←−−
−−→ X(ejΩ )Y (ejΩ )
∞
M (ejΩ ) = x[n]y[n]e−jΩn
n=−∞
46
π
1
x[n] = X(ejΓ )ejΓn dΓ
2π −π
∞ π
1
jΩ
M (e ) = y[n] X(ejΓ )ejΓn dΓe−jΩn
n=−∞
2π −π
π ∞
1
= X(ejΓ ) y[n]ejΓn e−jΩn dΓ
2π −π n=−∞
π ∞
1
= X(e )jΓ
y[n]e−j(Ω−Γ)n dΓ
2π −π n=−∞
!
Y (ej(Ω−Γ) )
π
1
= X(ejΓ )Y (ej(Ω−Γ)) dΓ
2π −π
1
= X(ejΩ ) ∗ Y (ejΩ )
2π
DT F T
Therefore x[n]y[n] ←−−
−−→ 1 jΩ
2π X(e ) ∗ Y (ejΩ )
N −1 N −1
1
C[k] = ( x[l]y[n − l])e−jkΩo n
N n=0
l=0
N −1
N −1
1
= x[l] y[n − l]e−jkΩo (n−l) e−jkΩo l
N
l=0 n−l=0
!
Y [k]
N −1
1
= N x[l]e−jkΩo l Y [k]
N
l=0
!
X[k]
= N X[k]Y [k]
2π
DT F S; N
∗ y[n] ←−−
Therefore x[n] −−→ N X[k]Y [k]
1 T
M [k] = x(t)y(t)e−jkωo t dt
T 0
∞
x(t) = X[l]ejlωo t
l=−∞
T ∞
1
M [k] = X[l]ejlωo t y(t)e−jkωo t dt
T 0 l=−∞
47
∞ T
1
= X[l] y(t)e−j(k−l)lωo t dt
T 0
l=−∞
∞
= X[l]Y [k − l]
l=−∞
= X[k] ∗ Y [k]
F S; ωo
Therefore x(t)y(t) ←−−−→ X[k] ∗ Y [k]
3.80. Define a signal that is zero except at integer multiples of the scaling parameter p. That is, let
∞
xz [n]e−j p n
Ω
Xz (ejΩ/p ) =
n=−∞
let n = pr sum over r.
∞
= xz [pr]e−jΩr
r=−∞
∞
= xz [pn]e−jΩn
n=−∞
= Z(ejΩ )
(b) Use the DTFT of the signal w[n] depicted in Fig. P3.80(b) and the scaling property to determine the
DTFT of the signal f [n] depicted in Fig. P3.80 (b).
DT F T 1
w[n] = (0.9)n u[n] ←−−
−−→ W (ejΩ ) =
1 − 0.9e−jΩ
48
w[ n2 ] n even DT F T 1
f [n] = ←−−
−−→ F (ejΩ ) = W (ej2Ω ) =
0, n odd 1 − 0.9e−j2Ω
(c) Assume xz [n] is periodic with fundamental period N so z[n] = xz [pn] has fundamental period N/p
where N/p is a positive integer. Show that the DTFS of z[n] satisfies Z[k] = pXz [k].
N
−1
1
p
Z[k] = N
z[n]e−jknΩo
p n=0
2π
Ωo = N
= pΩo
p
N
−1
1
p
Z[k] = p xz [pn]e−jknpΩo
N n=0
let l = pn
N −1
1
Z[k] = p xz [l]e−jklΩo
N
l=0
= pX[k]
3.81. In this problem we show that Gaussian pulses acheive the lower bound in the time-bandwidth
product. Hint: Use the definite integrals in Appendix A.4.
t2 ω2
(a) Let x(t) = e− 2 , X(jω) = e− 2 . Find the effective duration, Td , bandwidth, Bw , and evaluate the
time-bandwidth product.
∞ " 12
t2 e−t dt
2
Td = −∞∞
−∞
e−t2 dt
1 3 √ " 12
( √2 ) 2π
= √
( √12 ) 2π
1
= √
2
∞ " 12
ω 2 e−ω dω
2
−∞
Bw = ∞
−∞
e−ω2 dω
1
= √
2
1
Td Bw =
2
t2
(b) Let x(t) = e− 2a2 . Find the effective duration, Td , bandwidth, Bw , and evaluate the time-bandwidth
product. What happens to Td , Bw , and Td Bw as a increases?
t FT
f ( ) ←−−−→ aF (jωa)
a
ω 2 a2
so X(jω) = ae− 2
49
2
1
∞ t2 e− at 2 dt 2
−∞
Td =
∞ e− at22 dt
−∞
a 3 √ " 12
( √2 ) 2π
= √
( √a2 ) 2π
a
= √
2
∞ "1
ω 2 e−ω a dω 2
2 2
−∞
Bw = ∞
−∞
e−ω2 a2 dω
1 3 √ " 12
( √2a ) 2π
= √
( √12a ) 2π
1
= √
2a
1
Td Bw =
2
If a increases:
(1) Td increases
(2) Bw decreases
(3) Td Bw stays the same
3.82. Let
1, |t| < T
x(t) =
0, otherwise
Use the uncertainty principle to bound the effective bandwidth of x(t) ∗ x(t).
2T − |t| |t| < 2T
x(t) ∗ x(t) =
0 otherwise
2T 2T
t2 (2T − |t|)2 dt = 2 4T 2 t2 − 4T t3 + t4 dt
−2T 0
32 5
= T
15
2T 2T
(2T − |t|)2 dt = 2 4T 2 − 4T t + t2 dt
−2T 0
16 3
= T
3
& 32 5 ' 12
15 T
Td = 16 3
T
(3
2
= T
5
√
5
Bw ≥ √
8T
50
3.83. Use the uncertainty principle to bound the effective bandwidth of x(t) = e−|t| .
1
Td Bw ≥
2
1
Bw ≥
2Td
∞ " 12
t2 e−2|t| dt
Td = −∞
∞
−∞
e−2|t| dt
12
1
=
2
√
= 2
√
2
Bw ≥
2
3.84. Show that the time-bandwidth product, Td Bw , of a signal x(t) is invariant to scaling. That is,
use the definitions of Td and Bw to show that x(t) and x(at) have the same time-bandwidth product.
∞ " 12
t 2
|x(t)|2
dt
Td = −∞
∞
−∞
|x(t)|2 dt
∞ "1
(s) −∞
t2 |x(at)|2 dt 2
Td = ∞
−∞
|x(at)|2 dt
Let u = at
∞ 2 "2 1
a3 −∞ u |x(u)| du
1 2
(s)
Td =
1 ∞
a −∞ |x(u)| du
2
1
Td
=
a
FT 1 jω
x(at) ←−−−→ X( )
|a| a
∞ "1
−∞
ω 2 |X(jω)|2 dω 2
Bw = ∞
−∞
|X(jω)|2 dω
1 ∞ " 12
a2 −∞ ω |X( a )| dω
2 jω 2
(s)
Bw = ∞
a2 −∞ |X( a )| dω
1 jω 2
ω
Let v = a
∞ " 12
a3 v 2 |X(jv)|2 dv
(s)
Bw = −∞
∞
a −∞ |X(jv)|2 dv
= aBw
(s) (s)
Td Bw = Td Bw
51
3.85. A key property of the complex sinusoids used in the DTFS and FS expansions is orthogonality.
By orthogonality we mean that the inner product of two harmonically related sinuoids is zero. The inner
product is defined as the sum or integral of the product of one signal times the conjugate of the other
over a fundamental period.
(a) Show orthogonality for discrete-time complex sinusoids, that is, prove
N −1
1 jk 2π n −jl 2π n 1, k = l
e N e N =
N n=0 0, k = l
N −1
1 j(k−l) 2π n 1 N k=l
e N = 1−ej2π(k−l)
N n=0 N j 2π (k−l)
k = l
1−e N
(b) Show orthongoality for harmonically related continuous-time complex sinusoids, that is, prove
1 T jk 2π t −jl 2π t 1, k = l
e T e T =
T 0 0, k = l
If k = l
T T
1 2π 1
j
e T (k−l)t dt = 1 dt
T 0 T 0
= 1
If k = l
)T
1 ej T (k−l)t ))
T 2π
1 j 2π
e T (k−l)t dt = )
T 0 T (k − l)
T j 2π )
0
ej2π(k−l) − 1
=
j2π(k − l)
= 0
(c) Show orthogonality of harmonically related sines and cosines, that is, prove
1 T 2π 2π 1/2, k = l
sin(k t) sin(l t) =
T 0 T T 0, k = l
If k = l
T T
1 2π 1 1 2π
sin2 (k t) dt = 1 − cos(2k t) dt
T 0 T T 0 2 T
52
)T
1 T 4π ))
= t− sin(k t) )
2T 4πk T 0
1
=
2
If k = l
T T
1 2π 2π 1 1 2π 2π
sin(k t) sin(l t) dt = cos( t(k − l)) − cos( t(k + l)) dt
T 0 T T T 0 2 T T
)T
1 T 2π T 2π )
= sin( t(k − l)) − sin( t(k + l)) ))
2T 2π(k − l) T 2π(k + l) T 0
= 0
T
1 2π 2π 1/2, k = l
cos(k t) cos(l t) =
T 0 T T 0, k = l
If k = l
T T
1 2π 1 1 2π
cos2 (k t) dt = (1 + cos(2k t)) dt
T 0 T T 0 2 T
)T
1 T 4π )
= t+ sin(k t) ))
2T 4πk T 0
1
=
2
If k = l
T T
1 2π 2π 1 1 2π 2π
cos(k t) cos(l t) dt = cos( t(k − l)) + cos( t(k + l)) dt
T 0 T T T 0 2 T T
)T
1 T 2π T 2π )
= sin( t(k − l)) + sin( t(k + l)) ))
2T 2π(k − l) T 2π(k + l) T 0
= 0
T
1 2π 2π
cos(k t) sin(l t) = 0
T 0 T T
If k = l
T T
1 2π 2π 1
1 2π
cos(k t) sin(l t) dt = sin(2k t) dt
T 0 T T T
0 2 T
)T
1 T 4π )
= − cos(k t) ))
2T 4πk T 0
= 0
If k = l
T T
1 2π 2π 1 1 2π 2π
cos(k t) sin(l t) dt = sin( t(k − l)) + sin( t(k + l)) dt
T 0 T T T 0 2 T T
)T
1 T 2π T 2π )
= − cos( t(k − l)) − cos( t(k + l)) ))
2T 2π(k − l) T 2π(k + l) T 0
53
= 0
is termed the exponetial FS. In this problem we explore several alternative, yet equivalent, ways of
expressing the FS representation for real valued periodic signals.
(a) Trigonometric form.
(i) Show that the FS for a real valued signal x(t) can be written as
∞
x(t) = B[0] + B[k] cos(kωo t) + A[k] sin(kωo t)
k=1
∞
x(t) = X[k] (cos(kωo t) + j sin(kωo t))
k=−∞
∞
x(t) = (X[k] cos(kωo t) + X[k]j sin(kωo t))
k=−∞
x(t) is real, which implies: X[−k] = X ∗ [k]
cos(−u) = cos(u)
sin(−u) = − sin(u)
Thus
∞
x(t) = X[0] + [(X[k] + X ∗ [k]) cos(kωo t) + j(X[k] − X ∗ [k]) sin(kωo t))]
k=1
∞
x(t) = X[0] + [2Re{X[k]} cos(kωo t) − 2Im{X[k]} sin(kωo t))]
k=1
compare with
∞
x(t) = B[0] + B[k] cos(kωo t) + A[k] sin(kωo t)
k=1
B[0] = X[0]
B[k] = 2Re{X[k]}
A[k] = −2Im{X[k]}
since
X[k] + X ∗ [k] = B[k]
X[k] − X ∗ [k] = −jA[k]
54
X[0] = B[0]
B[k] − jA[k]
X[k] =
2
(iii) Use the orthogonality of harmonically related sines and cosines (See Problem 3.85) to show
1 T
B[0] = x(t)dt
T 0
2 T
B[k] = x(t) cos kωo tdt
T 0
2 T
A[k] = x(t) sin kωo tdt
T 0
T
1
B[0] = X[0] = x(t)e−j(0)ωo t dt
T 0
T
1
= x(t)dt
T 0
T
2
B[k] = Re{ x(t)e−jkωo t dt}
T 0
2 T
= x(t)Re{e−jkωo t }dt
T 0
2 T
= x(t) cos(kωo t)dt
T 0
2 T
A[k] = − x(t)Im{e−jkωo t }dt
T 0
2 T
= x(t) sin(kωo t)dt
T 0
(iv) Show that A[k] = 0 if x(t) is even and B[k] = 0 if x(t) is odd.
If x(t) is even: X[k] = X ∗ [k]
Thus: X[k] is real valued, i.e. Im{X[k]} = 0
Therefore,
A[k] = −2(0)
A[k] = 0
B[k] = 2(0)
B[k] = 0
55
(b) Polar form.
(i) Show that the FS for a real valued signal x(t) can be written as
∞
x(t) = C[0] + C[k] cos(kωo t + θ[k])
k=1
where C[k] is the magnitude (positive) and θ[k] is the phase of the k th harmonic.
Write X[k] in polar form as X[k] = |X[k]|ejarg{X[k] = C[k]ejθ(k)
∞
From (a): x(t) = B[0] + B[k] cos(kωo t) + A[k] sin(kωo t)
k=1
Let: B[k] = cos(θ[k])C[k]
A[k] = − sin(θ[k])C[k]
where:
*
C[k] = B 2 [k] + A2 [k]
since
cos(θ[k]) cos(kωo t) − sin(θ[k]) sin(kωo t) = cos(θ[k] + kωo t)
∞ *
Thus: x(t) = B[0] + B[k]2 + A[k]2 cos(θ[k] + kωo t)
k=1
∞
Compare with: x(t) = C[0] + C[k] cos(kωo t + θ[k])
k=1
*
C[k] = B[k]2 + A[k]2
*
= 2 Re{X[k]}2 + Im{X[k]}2
A[k]
θ[k] = − arctan
B[k]
Im{X[k]}
= − arctan
Re{X[k]}
(iii) Express C[k] and θ[k] as a function of B[k] and A[k] from (a).
*
C[k] =B[k]2 + A[k]2
A[k]
θ[k] = − arctan
B[k]
3.87. In this problem we derive the frequency response of the continous- and discrete-time LTI systems
described by the state-variable representations.
(a) Define q(jω) as the FT of each element of the state vector in the state-variable representation for a
56
system. That is,
Q1 (jω)
Q2 (jω)
q(jω) =
..
.
QN (jω)
FT
where the ith entry in q(jω) is the FT of the ith state variable, qi (t) ←−−−→ Qi (jω). Take the FT of the
d
state equation dt q(t) = Aq(t) + bx(t) using the differentiation property to express q(jω) as a function
of ω, A, b, and X(jω). Next take the FT of the output equation y(t) = cq(t) + Dx(t) and substitute for
q(jω) to show that:
d
q(t) = Aq(t) + bx(t)
dt
jωQ(jω) = AQ(jω) + bX(jω)
Q(jω)(jωI − A) = bX(jω)
Q(jω) = (jωI − A)−1 bX(jω)
(b) Use the time shift properties to express the frequency response of a discrete-time LTI system in terms
of the state-variable representation as:
57
3.88. Use the result of Problem 3.87 to determine the frequency response, impulse response, and dif-
ferential equation descriptions for the continuous-time systems described by the following state variable
descriptions.
−2 0 0
(a) A = , b= , c = 1 1 , D = [0]
0 −1 2
1 2 1
(b) A = , b= , c= 0 1 , D = [0]
−3 −4 2
3.89. Use the result of Problem 3.87 to determine the frequency response, impulse response, and
difference equation descriptions for the discrete-time systems described by the following state variable
descriptions.
− 12 1 0
(a) A = 1
, b = , c = 1 0 , D = [1]
0 4 1
58
1 + 14 e−jΩ + 78 e−j2Ω
=
1 + 1 e−jΩ − 18 e−j2Ω
4
8 1 n 16 1 n
h[n] = (− ) + ( ) u[n] − 7δ[n]
3 2 3 4
Y (ejΩ )
H(ejΩ ) =
X(ejΩ )
1 −jΩ 1 −j2Ω 1 −jΩ 7 −j2Ω
jΩ
Y (e ) 1 + e − e jΩ
= X(e ) 1 + e + e
4 8 4 8
1 1 1 7
y[n] + y[n − 1] − y[n − 2] = x[n] + x[n − 1] + x[n − 2]
4 8 4 8
1 3
1
(b) A = 4 4 , b= , c= , D = [0]
0 1
1
4 − 14 1
A= , b= , c = 0 1 , D = [0]
0 −3 2
Transform the state vector associated with this system using the matrix
1 −1
T=
1 1
to find a new state variable description for the system. Show that the frequency response of the original
and transformed systems are equal.
59
H (jω) = c (jωI − A )−1 b + D
−1
A = TAT
−2 1
=
1 −2
b = Tb
−2
=
2
c = cT−1
= − 12 1
2
D = D
= 0
Use these two equations to verify H(jω) = H (jω).
H(jω) = c(jωI − A)−1 b + D
H (jω) = c (jωI − A )−1 b + D
2
=
3 + jω
3.91. A signal with fundamental period T is said to possess halfwave symmetry if it satisfies x(t) =
−x(t − T2 ). That is, half of one period of the signal is the negative of the other half. Show that the FS
coefficients associated with even harmonics, X[2k], are zero for all signals with halfwave symmetry.
1 0.5T
X[k] = x(t)e−jkωo t dt
T −0.5T
0 "
0.5T
1 −jkωo t −jkωo t
= x(t)e dt + x(t)e dt
T 0 −0.5T
0 "
0.5T
1 −jkωo t −jkωo τ −jkπ
= x(t)e dt + −x(τ )e e dt
T 0 −0.5T
"
0.5T
1 −jkωo t
= x(t)e (1 − (−1) )dt
k
T 0
60
Assume x(t) has discontinuities at times Tl , l = 1, 2, ..., L, and at these discontiniuities the height differ-
ence is represented by cl = limt→T + x(t) − limt→T − x(t), then
l l
∞
F S; ωo 1
a(t) = δ(t − pT ) ←−−−→ A[k] =
p=−∞
T
F S; ωo 1 −jkωo Tl
x(t) = a(t − Tl ) ←−−−→ X[k] = e
T
d
y(t) = x(t)
dt
L
= cl a(t − Tl )
l=1
Whose Fourier Series representation is
L
Y [k] = cl A[k]e−jkωo Tl
l=1
(a) Can this method be used to determine the FS coefficient for k = 0? How can you find it?
(b) Use this method to find the FS coefficients for the piecewise constant waveforms in Fig. P3.92.
(i)
In one period, d
dt x(t) has a delta function of height 2 at t = −1, and a height of -2 at t = 1. T = 4,
so ωo = π2 .
∞
d
x(t) = 2δ(t + 1 − pT ) − 2δ(t − 1 − pT )
dt p=−∞
X[k] = −
jk2π jk2π
2 π
= sin( k)
kπ 2
2
kπ 0
sin( π2 k) k =
X[k] = 1
2 k=0
(ii)
d
In one period, dt x(t) has 4 delta functions, one of height −2 at t = −2, another of height of −1 at
t = −1, another of height of 4 at t = 0, and one of height of −1 at t = 1. T = 4, so ωo = π2 .
∞
d
x(t) = [−2δ(t + 2 − pT ) − δ(t + 1 − pT ) + 4δ(t − pT ) − δ(t − 1 − pT )]
dt p=−∞
61
2e−jk 2 (−2) e−jk 2 (−1) e−jk 2 (1)
π π π
4
X[k] = − − + −
jk2π jk2π jk2π jk2π
1 kπ
= 2 − ekπ − cos( )
jkπ 2
1
jkπ 2 − ekπ − cos( kπ
2 ) k = 0
X[k] =
−1, k=0
3.93. The method for finding the FS coefficients described in the previous problem may be extended
to signals that are piecewise linear by differentiating twice to obtain a sum of impulse trains and doublet
trains. The time-shift property and FS of the impulse train and doublet train are then used to find the
FS for the twice-differentiated signal and the differentiation property is used to obtain the FS coefficients
of the original signal from the twice differentiated signal.
(a) Find the FS coefficients for the doublet train
∞
d(t) = δ (1) (t − lT )
l=−∞
∞
FT 1
a(t) = δ(t − lT ) ←−−−→ A[k] =
T
l=−∞
d FT
b(t) = a(t) ←−−−→ B[k] = jkωo A[k]
dt
implies:
∞
d FT 1
δ(t − lT ) ←−−−→ jkωo
dt T
l=−∞
Thus:
jkωo
D[k] =
T
(b) Use this method to find the FS coefficients for the waveforms in Fig. P3.93.
(i)
Since two derivatives were taken to find the impulses, divide by (jkωo )2 to find X[k].
∞
d2 FT 1 2 −jkπ(1) 2
x(t) = (−2δ(t − l2) + 2δ(t − 1 − l2)) ←−−−→ X[k] = e −
dt2 (jkωo )2 T T
l=−∞
1
k2 π 2 1 − (−1)k k = 0
X[k] = 1
2 k =0
π
(ii) T = 4, ωo = 2. Take 2 derivatives to find:
∞
d2
x(t) = [δ(t − lT ) − 2δ(t − 1 − lT ) + δ(t − 2 − lT )]
dt2
l=−∞
62
∞
jπk
e 2 − 2e−j 2 k + e−jπk + 2k21π2 2e−j 2 k + e−jπk − 1 k = 0
1 π π
X[k] = jk2π
4 1− π
1 2j
k=0
3.94. The FT relates the electromagnetic field at a distant point to the electric field distribution at
the antenna. This problem derives this result for a one-dimensional antenna with monochromatic (single
frequency) excitation of ωo . Let the electric field at a point z within the antenna aperture have amplitude
a(z) and phase φ(z) so the electric field as a function of z and t is x(z, t) = a(z) cos(ωo t + φ(z)). Define
the complex amplitude of the field as w(z) = a(z)ejφ(z) so that
x(z, t) = Re w(z)ejωo t
Huygen’s principle states that the electric field at a distant point is the superposition of the effects of each
differential component of the aperture electric field. Suppose the point of interest is at a distance r. It
takes time to = r/c for the differential component between z and z + dz to propagate a distance r where
c is the propagation velocity. Thus the contribution to the field at r from this differential component of
the aperture is given by
Since the wavelength λ satisfies λ = 2πc/ωo , we have ωo to = 2πr/λ and the complex amplitude associated
with this differential volume is w(z)e−j2πr/λ .
(a) Consider a point P at an angle θ with respect to the axis normal to the aperture and at a distance
R from z = 0 as shown in Fig. P3.94. If R is much greater than the maximum extent of the aperture
along the z-axis, then we may approximate r as r = R + zs where s = sin θ. Use this approximation to
determine the contribution of the differential component between z and z + dz to P .
To an approximation
r = R + z sin(θ)
= R + zs
s = sin(θ)
then
Re w(z)e−j2πr/λ dzejωo t
becomes
Re w(z)e−j2πR/λ e−j2πzs/λ dzejωo t
63
(b) Integrate all differential components of the antenna aperture to show that the field at P is given by
Y (s, R) = Re G(s)e−j2πR/λ ejωo t
where ∞
G(s) = w(z)e−j2πzs/λ dz
−∞
represents the complex amplitude of the field as a function of sin θ. Comparison to the definition of the
Fourier Transform indicates that G(s) is the FT of w(z) evaluated at 2πs/λ.
∞
Y (s, R) = Re w(z)e−j2πR/λ e−j2πzs/λ dzejωo t
−∞
& ∞ '
= Re w(z)e−j2πzs/λ dze−j2πT /λ ejωo t
−∞
= Re G(s)e−j2πR/λ ejωo t
(c) Use the FT relationship developed in (b) to determine the far-field pattern, |G(s)|, for the following
aperture distributions
w(z). Assume λ = 1 and sketch |G(s)| for −π/2 < θ < π/2.
1, |z| < 5
(i) w(z) =
0, otherwise
) ∞ )
) )
)
|G(s)| = ) w(z)e −j2πzs/λ
dz ))
−∞
) 5 )
) )
= )) e−j2πzs/λ
dz ))
−5
) )
) sin(10π λs ) )
= )) )
)
π λs
ejπz/4 , |z| < 5
(ii) w(z) =
0, otherwise
) 5 )
) )
)
|G(s)| = ) ejπ z4 −j2πz λ
e
s
dz ))
−5
) )
) sin(5π(0.25 − 2 λs ) )
)
= ) )
π(0.25 − 2 λs ) )
1/2 + (1/2) cos(πz/5), |z| < 5
(iii) w(z) =
0, otherwise
) 5 5 )
) 1 −j2πzs/λ πz )
|G(s)| = )) e dz + cos( )e−j2πzs/λ dz ))
−5 2 −5 5
) )
) 1 sin(10π λs ) sin(5π(0.2 − 2 λs ) sin(5π(0.2 + 2 λs ) )
= )) + + )
2 π λs 2π(0.2 − 2 λs ) 2π(0.2 + 2 λs ) )
64
(iv) w(z) = e−z . Using Fourier Transform tables:
2
) )
) ∞ )
|G(s)| = ) e−z 2 −j2πz λ
e
s
dz ))
)
−∞
FT √ 2π 2 s2
g(t) ←−−−→ G(s) = πe− 4
(i) (ii)
10 10
8 8
(ii) |G(s)|
6 6
(i) |G(s)|
4 4
2 2
0 0
−1 −0.5 0 0.5 1 −1 −0.5 0 0.5 1
s s
(iii) (iv)
5 2
4
1.5
(iv) |G(s)|
(iii) |G(s)|
3
1
2
0.5
1
0 0
−1 −0.5 0 0.5 1 −1 −0.5 0 0.5 1
s s
3.95. Figure P3.95 depicts a system known as a beamformer. The output of the beamformer is the
weighted sum of signal measured at each antenna in the antenna array. We assume the antenna measures
the complex amplitude of propagating plane waves of a single frequency, ω and that the antennas are
equally spaced by a distance d along a vertical line. A plane wave p(t) = ejω0 t is shown arriving at the
array from direction θ. If the top antenna measures p(t), then the second antenna measures p(t − τ (θ))
where τ (θ) = (d sin θ)/c is the time delay required for the plane wavefront to propagate from the top
to the second antenna. Since the antennas are equally spaced, the k th antenna measures the signal
p(t − kτ (θ)) and the output of the beamformer is
N −1
y(t) = wk p(t − kτ (θ))
k=0
N −1
= ejω0 t wk e−jω0 kτ (θ)
k=0
N −1
= ejω0 t wk e−j(ω0 kd sin θ)/c
k=0
65
We may interpret this as a complex sinusoidal input from direction θ resulting in a complex sinusoidal
output of the same frequency. The beamformer introduces a magnitude and phase change given by the
complex number
N −1
b(θ) = wk e−j(ω0 kd sin θ)/c
k=0
The gain of the beamformer, |b(θ)| is termed the beampattern. Note that the gain is a function of the
direction of arrival and thus the beamformer offers the potential for discriminating between signals ar-
riving from different directions. For convenience we shall assume that operating frequency and spacing
are chosen so that ω0 d/c = π. Assume θ is in the range −π/2 < θ < π/2.
(a) Compare the expression for the beampattern to the frequency response of a discrete-time system
having only N non-zero impulse response coefficients. That is, assume h[k] = 0 for k < 0 and k ≥ N .
N −1
N −1
H(ejΩ ) = h[k]e−jΩk compared to b(θ) = wk e−j(ω0 kd sin θ)/c
k=0 k=0
ωo d sin(θ)
One can see that this is a 1-1 mapping where Ω ∈ (−π, π) is mapped into c , where θ ∈ (−π/2, π, 2)
For this case Ω is mapped into π sin(θ) with −π ≤ π sin(θ) ≤ π.
(b) Evaluate and plot the beampattern for N = 2 with w0 = w1 = 0.5 and w1 = 0.5, w2 = −0.5.
Beampatterns for part (b)
1
0.8
ω1 = ω2 = 0.5
0.6
0.4
0.2
0
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
0.8
ω1 = −ω2 = 0.5
0.6
0.4
0.2
0
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
phase(radians)
66
Beampattern for part (c)
1
0.9
0.8
0.7
0.6
ωk = 0.25
0.5
0.4
0.3
0.2
0.1
0
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
phase(radians)
0.8
ωk = 0.125
0.6
0.4
0.2
0
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
0.8
ωk = 0.125e(j0.5kπ)
0.6
0.4
0.2
0
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
phase(radians)
3.96. In Problem 2.97 we determined that the solution to the equations of motion for a vibrating string
67
have the form yk (l, t) = φk (l)fk (t), 0 ≤ l ≤ a where
and ωk = kπ/a. Since yk (l, t) is a solution for any ak and bk , the most general solution has the form
∞
y(l, t) = sin(ωk l) (ak cos(ωn ct) + bk sin(ωn ct))
k=1
)
We may use the initial conditions y(l, 0) = x(l) to find the ak and ∂t ∂
y(l, t))t=0 to find the bk .
(a) Express the solution for ak in terms of the FS coefficients of x(l). Hint: consider Eqs.(3.25) and (3.26)
with l replacing t.
Use the initial condition that:
∞
kπl
y(l, 0) = x(l) = ak sin( )
a
k=1
This solution is of the form of the Fourier sine series
By applying the principle of orthogonality:
2 a nπl
ak = x(l) sin( ) dl
a 0 a
∞
d kπ kπl
y(l, t) = g(l) = bk c sin( )
dt a a
k=1
This solution is of the form of the Fourier sine series
By applying the principle of orthogonality:
a
2 kπl
bk = g(l) sin( ) dl
kπc 0 a
(c) Find y(l, t) assuming g(l) = 0 and x(l) is as shown in Fig. P3.96. Then bk = 0 for n = 1, 2, 3, ... and
5 10
2 2l kπl 2l kπl
ak = 0.1 sin( ) dl + 0.1(2 − ) sin( ) dl
10 0 10 10 5 10 10
8(0.1) sin(0.5kπ)
=
π2 k2
Thus the complete solution is:
∞
8(0.1) sin(0.5kπ) kπl kπcl
y(l, t) = 2 2
sin( ) cos( )
π k 10 10
k=1
3.97. In this problem we explore a matrix representation for DTFS. The DTFS expresses the N time
domain values of an N periodic signal x[n] as a function of N frequency domain values, X[k]. Define
68
vectors
x[0] X[0]
x[1] X[1]
x=
.. , X =
..
. .
x[N − 1] X[N − 1]
(a) Show that the DTFS representation
N −1
x[n] = X[k]ejkΩo n , n = 0, 1, . . . , N − 1
k=0
can be written in matrix vector form as x = VX where V is an N by N matrix. Find the elements of V.
N −1
x[n] = X[k]ejkΩo n , n = 0, 1, ..., N − 1
k=0
is equivalent to:
x[0] = X[0]ej(0)Ωo (0) + ... + X[N − 1]ej(N −1)Ωo (0)
x[1] = X[0]ej(0)Ωo (1) + ... + X[N − 1]ej(N −1)Ωo (1)
.
.
.
x[N − 1] = X[0]ej(0)Ωo (N −1) + ... + X[N − 1]ej(N −1)Ωo (N −1)
can be written as:
x[0] ej(0)Ωo (0) . . . . ej(N −1)Ωo (0) X[0]
x[1] ej(0)Ωo (1) . . . . ej(N −1)Ωo (1) X[1]
=
.. .. ..
. . .
x[N − 1] ej(0)Ωo (0) . . . ej(N −1)Ωo (N −1) X[N − 1]
which is: x = VX, V is an N xN matrix
The entries pf V are defined as:
[V]r,c = ej(c)Ωo (r)
where r(= row) = 0, 1, ..., N − 1
where c(= column) = 0, 1, ..., N − 1
can be written in matrix vector form as X = Wx where W is an N by N matrix. Find the elements of W.
N −1
1
X[k] = x[n]e−jkΩo n , k = 0, 1, ..., N − 1
N
k=0
69
1
(c) The expression x = VX implies that X = V−1 x provided V is a nonsingular matrix. Comparing
this equation to the results of (b) we conclude that W = V−1 . Show that this is true by establishing
WV = I. Hint: Use the definitions of V and W determined in (a) and (b) to obtain an expression for
the element in the lth row and mth column of WV and use the result of Problem 3.85.
N −1
1
[WV]l,m = ejkΩo l e−jkΩo m , n = 0, 1, ..., N − 1
N
k=0
N −1
1
= X[k]ejkΩo (l−m)
N
k=0
N −1
1 1 l=m
X[k]ejkΩo (r−c) = 1−ejN Ωo (l−m)
N
k=0 N
1
1−ejΩo (l−m)
l = m
Since N Ωo = 2π, we have:
1 l=m
[WV]l,m =
0 l = m
which is an identity matrix, therefore:
WV = I
3.98. We may find the FS coefficients by forming the inner product of the series expansion with the
conjugate of the basis functions. Let
∞
x(t) = X[k]ejkωo t
k=−∞
70
Derive the expression for X[k] using the result of Problem 3.85 by multiplying both sides of this equation
by e−jkωo t and integrating over one period.
T T1 ∞
2
−jkωo t
x(t)e dt = X[l]ejlωo t
e−jkωo t dt
0 0 l=−∞
∞
T
= X[l] ej(l−k)ωo t dt
l=−∞ 0
and the J term M SE as the average squared difference over one period
1 T 2
M SEJ = |x(t) − x̂J (t)| dt
T 0
(a) Substitute the series representation for x̂J (t) and expand the magnitude squared using the identity
|a + b|2 = (a + b)(a∗ + b∗ ) to obtain
1 2
1 T J
1 T
∗ −jkωo t
M SEJ = |x(t)| dt −
2
A [k] x(t)e dt −
T 0 T 0
k=−J
1 2 1 2
J
1 T ∗ J
J
1 T −jkωo t jmωo t
jkωo t ∗
A[k] x (t)e dt + A [k]A[m] e e dt
T 0 T 0
k=−J m=−J k=−J
J
J T
1
+ A∗ [k]A[m]( e−jkωo t ejmωo t dt)
T 0
m=−J k=−J
(b) Define
T
1
X[k] = x(t)e−jkωo t dt
T 0
71
and use the orthogonality of ejkωo t and ejmωo t (See Problem 3.85) to show that
T
J
J
J
1
M SEJ = |x(t)|2 dt − A∗ [k]X[k] − A[k]X ∗ [k] + |A[k]|2
T 0 k=−J k=−J k=−J
Substitute
T
1
A[k] = x(t)e−jkωo t dt
T 0
To obtain
T
J
J
1
M SEJ = |x(t)|2 dt − A∗ [k]X[k] − A[k]X ∗ [k]
T 0 k=−J k=−J
J
J T
1
+ A∗ [k]A[m]( e−j(k−m)ωo t dt)
T 0
k=−J m=−J
Now
T
T k=m
e−j(k−m)ωo t dt =
0 0 k = m
= T δm,k
And thus
J
J
J
A∗ [k]A[m]δm,k = A∗ [k]A[k]
k=−J m=−J k=−J
J
2
= |A[k]|
k=−J
Thus
T
J
J
J
1
A∗ [k]X[k] − A[k]X ∗ [k] +
2
M SEJ = |x(t)|2 dt − |A[k]|
T 0 k=−J k=−J k=−J
Note that
J
J
J
J
J
A∗ [k]X[k] − A[k]X ∗ [k] =
2 2 2
− |X[k] − A[k]| − |X[k]| − |A[k]|
k=−J k=−J k=−J k=−J k=−J
Thus we can re-write the result in (b) as:
T
J
J
1 2 2
M SEJ = |x(t)|2 dt + |X[k] − A[k]| − |A[k]|
T 0 k=−J k=−J
72
T
J
1 2
min M SEJ = |x(t)|2 dt − |X[k]|
T 0 k=−J
J
2
|X[k]| > 0
k=−J
T
1
we also have |x(t)|2 dt > 0
T 0
J
2
As J increases: , |X[k]| increases or remains constant and min M SEJ decreases.
k=−J
3.100. Generalized Fourier Series. The concept of the Fourier Series may be generalized to sums of
signals other than complex sinusoids. That is, given a signal x(t) we may approximate x(t) on an interval
[t1 , t2 ] as a weighted sum of N functions φ0 (t), φ2 (t), . . . , φN −1 (t)
N −1
x(t) ≈ ck φk (t)
k=0
We shall assume that these N functions are mutually orthogonal on [t1 , t2 ]. This means that
t2
∗ 0, k = l,
φk (t)φl (t)dt =
t1 fk , k = l
t2
(a) Show that the M SE is minimized by choosing ck = 1
fk t1
x(t)φ∗k (t)dt. Hint: Generalize steps out-
lined in Problem 3.99 (a) - (d) to this problem.
) )2
)
N )
N −1
N
) )
)x(t) − ck φk (t)) = |x(t)|2 − x(t) c∗k φ∗k (t) − x∗ (t) ck φk (t)
) )
k=1 k=0 k=0
N −1 N
−1
+ ck c∗m φk (t)φ∗m (t)
m=0 k=0
Thus:
t2 t2
N −1
1 1
M SE = |x(t)| dt − 2 ∗
x(t)φk (t)dtc∗k
t2 − t1
t1 t2 − t1 t1
k=0
N −1 t2 N −1 N
−1 t2
1 ∗ ∗ 1 ∗
− ck x (t)φk (t)dt + ck cm φk (t)φm (t)dt
t2 − t1 t1 m=0 k=0
t2 − t1 t1
k=0
t2
1
Let A[k] = x(t)φ∗k (t)dt and use orthogonality
fk t1
73
N −1
1 t2
fk ∗
M SE = |x(t)|2 dt − ck A[k]
t2 − t1 t1 t2 − t1
k=0
−1 N −1
fk
N
fk
− ck A∗ [k] + |ck |2
t2 − t1 t2 − t 1
k=0 k=0
t2 −1 N −1
fk
N
1 fk 2 2
= |x(t)|2 dt + |ck − A[k]| − |A[k]|
t2 − t1 t1 t2 − t1 t 2 − t1
k=0 k=0
t2
1
Analogous to Problem 3.99(d), ck = A[k] = x(t)φ∗k (t)dt
fk t1
If this relationship holds for all x(t) in a given class of functions, then the basis functions φ0 (t), φ2 (t), . . . , φN −1 (t)
is said to be “complete” for that class.
N −1
1 t2
fk 2
min M SE = |x(t)|2 dt − |ck |
t2 − t1 t1 t 2 − t 1
k=0
−1
1 t2 N
= |x(t)| dt −
2
fk |ck |2
t2 − t1 t1 k=0
min M SE = 0 when:
t2
N −1
|x(t)|2 dt = fk |ck |2
t1 k=0
(c) The Walsh functions are one set of orthogonal functions that are used for signal representation on
[0, 1]. Determine the ck and M SE obtained by approximating the following signals with the first six
Walsh functions
depicted in Fig. P3.100. Sketch the signal and the Walsh function approximation.
2, 12 < t < 34
(i) x(t) =
0, 0 < t < 12 , 34 < t < 1
We can see that the orthogonality relation for the Walsh function is as follows:
1
1 k=l
φk (t)φ∗l (t) =
0 0 k = l, so fk = 1
0.75
1
c0 = 2dt =
0.5 2
0.75
1
c1 = − 2dt = −
0.5 2
0.75
1
c2 = − 2dt = −
0.5 2
1 1
c3 = 2 =
4 2
c4 = 2(0) = 0
74
c5 = 2(0) = 0
Let
5
x̂(t) = ck φk (t)
k=0
1
x̂(t) = (φ0 (t) − φ1 (t) − φ2 (t) + φ3 (t))
2
1.5
x(t)
0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
t
2.5
1.5
xhat(t)
0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
t
1
c0 = sin(2πt)dt = 0
0
1 1
2 2
c1 = sin(2πt)dt − sin(2πt)dt =
0 1
2
π
1
1
c2 = φ2 (t) sin(2πt)dt =
0 π
c3 = 0, by inspection.
c4 = 0, by inspection.
1 3 1
8 8 2
c5 = 2 sin(2πt)dt − sin(2πt)dt + sin(2πt)dt
1 3
0 8 8
2 √ 1
= (1 − 2) ≈ − (0.83)
π π
75
Approximation of x(t) by xhat(t)
1
0.5
x(t)
−0.5
−1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
t
1.5
0.5
x(t)
−0.5
−1
−1.5
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
t
1
2
M SE = |sin(2πt) − x̂(t)| dt
0
) )2 28 ) )2 38 ) )2
) 2.17 )) ) ) ) )
1
≈ 0.1265
(d) The Legendre polynomials are another set of orthogonal functions on the interval [−1, 1]. They are
obtained from the difference equation
2k − 1 k−1
tφk−1 (t) −
φk (t) = φk−2 (t)
k k
using the initial functions φ0 (t) = 1 and φ1 (t) = t. Determine the ck and M SE obtained by approximat-
ing the following signals with the first six Legendre polynomials.
φ0 (t) = 1
φ1 (t) = t
3 1 1
φ2 (t) = t(t) − (1) = (3t2 − 1)
2 2 2
5 1 2 2 1
φ3 (t) = t (3t − 1) − t = (5t3 − 3t)
3 2 3 2
7 1 3 31 2 1
φ4 (t) = t (5t − 3t) − (3t − 1) = (35t4 − 30t2 + 3)
4 2 42 8
9 1 41 3 1
φ5 (t) = t (35t − 30t + 3) −
4 2
(5t − 3t) = (315t5 − 350t3 + 75t)
5 8 52 40
76
The orthogonality relation for Legendre polynomials is:
1
−1 k
φ (t)φ∗l (t)dt = δk,l 2k+1
2
2
so: fk = 2k+1
2, 0 < t < 12
(i) x(t) =
0, −1 < t < 0, 12 < t < 1
1
1 2 1
c0 = 2(1)dt =
2 0 2
1
3 2 3
c1 = 2tdt =
2 0 8
1
5 2 15
c2 = (3t2 − 1)dt = −
2 0 16
1
7 2
c3 = (5t3 − 3t)dt = −1.039
2 0
1
9 2 1
c4 = (35t4 − 30t2 + 3))dt = 0.527
2 0 4
1
11 2 1
c5 = (315t5 − 350t3 + 75t))dt = 1.300
2 0 20
5
x̂(t) = ck φk (t)
k=0
1
1
2
5
2
M SE = 4 dt − |ck |2
2 1 2k + 1
k=0
= 0.1886
1
1
c0 = sin(πt) dt = 0
2 −1
1
3
c1 = t sin(πt) dt = 0.955
2 −1
1
5
c2 = (3t2 − 1) sin(πt) dt = 0
2 0
1
7
c3 = (5t3 − 3t) sin(πt) dt = −1.158
2 0
1
9 1
c4 = (35t4 − 30t2 + 3)) sin(πt) dt = 0
2 0 4
1
11 1
c5 = (315t5 − 350t3 + 75t)) sin(πt) dt = 0.213
2 0 20
77
5
x̂(t) = ck φk (t)
k=0
1 1
5
2
M SE = | sin(πt)|2 dt − |ck |2
2 −1 2k + 1
k=0
= 3 ∗ 10−4
3.101. We may derive the FT from the FS by describing an nonperiodic signal as the limiting form of
a periodic signal whose period, T , approaches infinity. In order to take this approach, we assume that
the FS of the periodic version of the signal exists, that the nonperiodic signal is zero for |t| > T2 , and that
the limit as T approaches infinity is taken in a symmetric manner. Define the finite duration nonperiodic
signal x(t) as one period of the T periodic signal x̃(t)
x̃(t), − T2 < t < T2
x(t) =
0, |t| > T2
(a) Graph an example of x(t) and x̃(t) to demonstrate that as T increases, the periodic replicates of x(t)
in x̃(t) are moved farther and farther away from the origin. Eventually, as T approaches infinity, these
replicates are removed to infinity. Thus, we write
3
xhat(t)
0
−20 −15 −10 −5 0 5 10 15 20
time
3
xhat(t)
0
−40 −30 −20 −10 0 10 20 30 40
time
T
1 2
X[k] = x̃(t)e−jkωo t dt
T − T2
78
1
Show that X[k] = T X(jkωo ) where
∞
X(jω) = x(t)ejωt dt
−∞
T
1 2
X[k] = x̃(t)e−jkωo t dt
T − T2
T T
Since x̃(t) = x(t) for − < t <
2 2
T2
1
X[k] = x(t)e−jkωo t dt
T − T2
1 ∞
= x(t)e−jkωo t dt
T −∞
Since x(t) = 0 for |t| > T
2
Compare with the equation of the FT, and one can see,
1
X[k] = X(jkωo )
T
(c) Substitute this definition for X[k] into the expression for x̃(t) in (b) and show that
∞
1
x̃(t) = X(jkωo )ejkωo t ωo
2π
k=−∞
∞
1
x̃(t) = X(jkωo )ejkωo t
T
k=−∞
2π
since T =
ωo
∞
1
= X(jkωo )ejkωo t ωo
2π
k=−∞
(d) Use the limiting expression for x(t) in (a) and define ω ≈ kωo to express the limiting form of the sum
in (c) as the integral ∞
1
x(t) = X(jω)ejωt dω
2π −∞
x(t) = lim x̃(t)
T →∞
∞
1
= lim X(jkωo )ejkωo t ωo
T →∞ 2π
k=−∞
let ω = kωo
as T → ∞, ωo → 0, k → ∞, ω → ∞
implies:
∞
1
x(t) = lim X(jω)ejωt ωo
ωo →0 2π
ω=−∞
∞
1
= X(jω)ejωt dω
2π −∞
79
Solutions to Computer Experiments
3.102. Use MATLAB to repeat Example 3.7 for N = 50 and (a) M = 12. (b) M = 5. (c) M = 20.
0.5 1
B[1]cos(omega*n)
x1[n]
0 0.5
−0.5 0
−20 −10 0 10 20 −20 −10 0 10 20
n n
0.2
1
B[3]cos(omega*n)
0.1
x3[n]
0 0.5
−0.1
0
−0.2
−20 −10 0 10 20 −20 −10 0 10 20
n n
0.1 1
B[5]cos(omega*n)
0.05
x5[n]
0 0.5
−0.05
−0.1 0
−20 −10 0 10 20 −20 −10 0 10 20
n n
0.04 1
0.8
B[23]cos(omega*n)
0.02
0.6
x23[n]
0
0.4
−0.02
0.2
−0.04 0
−20 −10 0 10 20 −20 −10 0 10 20
n n
0.02 1
0.8
B[25]cos(omega*n)
0.01
0.6
x25[n]
0
0.4
−0.01
0.2
−0.02 0
−20 −10 0 10 20 −20 −10 0 10 20
n n
80
0.4 0.6
B[1]cos(omega*n) 0.2 0.4
x1[n]
0 0.2
−0.2 0
−0.4
−20 −10 0 10 20 −20 −10 0 10 20
n n
1
B[3]cos(omega*n)
0.1
x3[n]
0 0.5
−0.1
0
−20 −10 0 10 20 −20 −10 0 10 20
n n
0.04
1
B[5]cos(omega*n)
0.02
x5[n]
0 0.5
−0.02
0
−20 −10 0 10 20 −20 −10 0 10 20
n n
−3
x 10
1
6
0.8
B[23]cos(omega*n)
4
2
0.6
x23[n]
0
0.4
−2
−4 0.2
−6
0
−20 −10 0 10 20 −20 −10 0 10 20
n n
0.02 1
0.8
B[25]cos(omega*n)
0.01
0.6
x25[n]
0
0.4
−0.01
0.2
−0.02 0
−20 −10 0 10 20 −20 −10 0 10 20
n n
81
B[1]cos(omega*n)
1
0.2
x1[n]
0
0.5
−0.2
0
−20 −10 0 10 20 −20 −10 0 10 20
n n
0.2
1
B[3]cos(omega*n)
0.1
x3[n]
0 0.5
−0.1
−0.2 0
−20 −10 0 10 20 −20 −10 0 10 20
n n
1
B[5]cos(omega*n)
0.02
x5[n]
0.5
0
−0.02
0
0.015 1
0.01 0.8
B[23]cos(omega*n)
0.005
0.6
x23[n]
0
0.4
−0.005
−0.01 0.2
−0.015 0
−20 −10 0 10 20 −20 −10 0 10 20
n n
0.02 1
0.8
B[25]cos(omega*n)
0.01
0.6
x25[n]
0
0.4
−0.01
0.2
−0.02 0
−20 −10 0 10 20 −20 −10 0 10 20
n n
82
3.103. Use MATLAB’s fft command to repeat Problem 3.48.
0.4 100
0.3
0
0.2
0.1 −100
0
0 5 10 15 0 5 10 15
1
100
0.5 0
−100
0
0 5 10 15 0 5 10 15
0.4 150
< Xc[k] deg
| Xc[k] |
0.3 100
0.2
50
0.1
0 0
0 2 4 6 8 10 0 2 4 6 8 10
0.25
0.2 50
< Xd[k] deg
0.15
| Xd[k] |
0
0.1
0.05 −50
0
0 2 4 6 0 2 4 6
0.25
150
0.2 100
50
< Xe[k] deg
0.15
| Xe[k] |
0
0.1
−50
0.05 −100
−150
0
0 2 4 6 8 0 2 4 6 8
83
3.104. Use MATLAB’s ifft command to repeat Problem 3.2.
10
100
5 0
−100
0
0 5 10 15 20 0 5 10 15 20
8
100
0
4
2 −100
0
0 5 10 15 0 5 10 15
8
150
6
< xc[n] deg
| xc[n] |
100
4
2 50
0 0
0 2 4 6 8 10 0 2 4 6 8 10
1 100
0.5 50
0 0
0 2 4 6 0 2 4 6
2 150
< xe[n] deg
1.5
| xe[n] |
100
1
50
0.5
0 0
0 2 4 6 0 2 4 6
8
50
< xf[n] deg
6
| xf[n] |
0
4
2 −50
0
0 5 10 0 5 10
Simply take the fft of the samples of one period of the time waveform and scale by the number of
samples used.
84
1.5
1
x[n]:normal
0.5
−0.5
0 50 100 150 200 250 300 350
Time index(n)
2.5
1.5
y[n]:vent tach
0.5
−0.5
−1
0 50 100 150 200 250 300 350 400 450
Time index(n)
0.2
X[k]:normal
0.15
0.1
0.05
0
0 10 20 30 40 50 60
Frequency index(k)
0.25
0.2
Y[k]:vent tach
0.15
0.1
0.05
0
0 10 20 30 40 50 60
Frequency index(k)
3.106. Use MATLAB to repeat Example 3.14. Evaluate the peak overshoot for J = 29, 59, and 99.
The peak overshoot for J = 29 is 0.0891 above 1.
85
0.02
B[29]*cos(29*wo.t)
0.01
−0.01
−0.02
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
0.8
0.6
x29(t)
0.4
0.2
0
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
0.01
B[59]*cos(59*wo.t)
0.005
−0.005
−0.01
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
0.8
0.6
x59(t)
0.4
0.2
0
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
86
−3
x 10
6
4
B[99]*cos(99*wo.t)
−2
−4
−6
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
0.8
0.6
x99(t)
0.4
0.2
0
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
T
1
x(t)e−j T
2π
kt
X[k] = dt, T = 1
T 0
1
2, k = 0,
Y [k] = 2 sin( kπ
2 )
jk2 π 2 , k = 0
F S; ωo
x(t − t0 ) ←−−−→ e−jkωo t X[k]
1
X[k] = 2ejk2π 4 Y [k] − δ[k]
implies:
− 12 , k = 0,
X[k] = 4 sin( kπ
2 ) j 2 (k−1)
π
k2 π 2 e , k = 0
(b) Show that the FS representation for x(t) can be expressed in the form
∞
x(t) = B[k] cos(kωo t)
k=0
since x(t) is real and even, X[k] is also real and even with X[k] = X[−k]
87
∞
−1
x(t) = X[k]ejωo kt + X[k]ejωo kt + X[0]
k=1 k=−∞
∞ ∞
= X[k]ejωo kt + X[−k]e−jωo kt + X[0]
k=1 k=1
since X[k] = X[−k]
∞
= X[k] ejωo kt + e−jωo kt + X[0]
k=1
∞
= B[k] cos(kωo t)
k=0
where
X[0], k = 0,
B[k] =
2X[k], k = 0
J
x̂J (t) = B[k] cos(kωo t)
k=0
Use MATLAB to evaluate and plot one period of the J th term in this sum and x̂J (t) for J = 1, 3, 7, 29,
and 99.
0.4
0.2
B[1]*cos(1*wo.t)
−0.2
−0.4
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
−0.2
−0.4
x1(t)
−0.6
−0.8
88
0.04
0.02
B[3]*cos(3*wo.t)
−0.02
−0.04
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
−0.2
−0.4
x3(t)
−0.6
−0.8
−3
x 10
5
B[7]*cos(7*wo.t)
−5
−0.2
−0.4
x7(t)
−0.6
−0.8
89
−4
x 10
B[29]*cos(29*wo.t) 4
−2
−4
−0.2
−0.4
x29(t)
−0.6
−0.8
−5
x 10
4
B[99]*cos(99*wo.t)
−2
−4
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
−0.2
−0.4
x99(t)
−0.6
−0.8
∞
x(t) = δ(t − n)
n=−∞
90
(a)
1
1 2
X[k] = δ(t)e−j2πkt dt = 1 for all k
1 − 12
(b)
1, k = 0,
B[k] =
0
2, k =
1
B[1]*cos(1*wo.t)
−1
−2
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
2
x1(t)
−1
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
1
B[3]*cos(3*wo.t)
−1
−2
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
7
6
5
4
x3(t)
3
2
1
0
−1
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
91
Figure P3.108. Plot 2 of 5
1
B[7]*cos(7*wo.t)
−1
−2
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
15
10
x7(t)
2
B[29]*cos(29*wo.t)
−1
−2
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
50
40
30
x29(t)
20
10
−10
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
92
2
B[99]*cos(99*wo.t)
1
−1
−2
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
150
100
x99(t)
50
3.109. Use MATLAB to repeat Example 3.15 using the following values for the time constant.
(a) RC = .01 s.
(b) RC = 0.1 s.
(c) RC = 1 s.
1
RC sin( kπ
2 )
Y [k] = 1
j2πk + RC
kπ
100
y(t) = Y [k]ej2πkt
k=−100
93
1
0.8
0.6
y(t)
0.4
0.2
0.8
0.6
y(t)
0.4
0.2
0.5
0.45
0.4
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
(ωL)2
|H(jω)| =
1 + (ωL)2
(b) Determine and plot the voltage across the inductor if the input is the square wave depicted in Fig.
3.21 with T = 1 and To = 1/4. Use at least 99 harmonics in a truncated FS expansion for the output.
2j sin(k π2 )
Y [k] = 1
L + j2kπ
99
y(t) = Y [k]ejk2πt
k=−99
(c) Graph the magnitude response of the circuit depicted in Fig. P3.71 assuming the voltage across the
resistor is the output. Use logarithmically spaced frequencies from 0.1 rad/s to 1000 rad/s.
1
|H(jω)| =
1 + (ωL)2
94
(d) Determine and plot the voltage across the resistor if the input is the square wave depicted in Fig.
3.21 with T = 1 and To = 1/4. Use at least 99 harmonics in a truncated FS expansion for the output.
2j sin(k π2 )
Y [k] =
kπ(1 + j2kπL)
99
y(t) = Y [k]ejk2πt
k=−99
0.8
0.6
|H(jw)|
0.4
0.2
0
0 1000 2000 3000 4000 5000 6000 7000
w(rad/s)
(b) One period of the output for yL(t) using 200 harmonics
1
0.5
yL(t)
−0.5
−1
−0.5 −0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
0.8
0.6
|H(jw)|
0.4
0.2
0
0 1000 2000 3000 4000 5000 6000 7000
w(rad/s)
(d) One period of the output for yR(t) using 200 harmonics
1
0.8
0.6
yR(t)
0.4
0.2
0
−0.5 −0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
t
95
3.111. This experiment builds on Problem 3.72.
(a) Graph the magnitude response of the circuit depicted in Fig. P3.71 assuming the voltage across the
inductor is the output. Use 401 logarithmically spaced frequencies from 100 rads/S to 104 rad/S. You
may generate N logarithmically spaced values between 10d1 and 10d2 using the MATLAB command
logspace(d1,d2,N).
(i) Assume L = 10mH.
(a) L = 10mH Magnitude response in dB
0
−20
−40
−60
20log10(|H(jw)|)
−80
−100
−120
−140
−160
0 1000 2000 3000 4000 5000 6000 7000
w(rad/s)
j1000 sin( πk
2 )
Y [k] =
π(1/C + j1000k + L(j1000k)2 )
99
y(t) = Y [k]ejk1000t
k=−99
96
(b) L = 10mH, One period of the output for y(t) using 99 harmonics
0.8
0.6
0.4
0.2
y(t)
−0.2
−0.4
−0.6
−0.8
−4 −3 −2 −1 0 1 2 3 4
t −3
x 10
3.112. Evaluate the frequency response of the truncated filter in Example 3.46. You may do this in
MATLAB by writing an m-file to evaluate
M
Ht (ejΩ ) = h[n]e−jΩn
n=−M
for a large number (> 1000) values of Ω in the interval −π < Ω ≤ π. Plot the frequency response
magnitude in dB (20 log10 |Ht (ejΩ )|) for the following values of M .
(a) M = 4
(b) M = 10
(c) M = 25
(d) M = 50
Discuss the effect of increasing M on the accuracy with which Ht (ejΩ ) approximates H(ejΩ ).
It can be seen that as M increases:
(1) The ripple decreases
(2) The transition rolls off faster
1
Observe that h[n] = πn sin( πn
2 ) is symmetric, hence:
M −1
Ht (ejΩ ) = h[n]e−jΩn + h[n]e−jΩn + h[0]
n=1 n=−M
M
= 2h[n] cos(Ωn) + h[0]
n=1
This is the same basic form as a Fourier Series approximation using M terms. The approximation is
97
more accurate as M increases.
1
|Ht(Omega)| M=4
0.8
0.6
0.4
0.2
−3 −2 −1 0 1 2 3
Omega
1
|Ht(Omega)| M=10
0.8
0.6
0.4
0.2
−3 −2 −1 0 1 2 3
Omega
0.8
0.6
0.4
0.2
−3 −2 −1 0 1 2 3
Omega
1
|Ht(Omega)| M=50
0.8
0.6
0.4
0.2
−3 −2 −1 0 1 2 3
Omega
3.113. Use the MATLAB command freqs or freqz to plot the magnitude response of the following sys-
tems. Determine whether the system has a low-pass, high-pass, or band-pass characteristic.
8
(a) H(jω) = (jω)3 +4(jω) 2 +8jω+8
3
(jω)
(b) H(jω) = (jω)3 +2(jω) 2 +2jω+1
98
−jΩ
+3e−j2Ω +e−j3Ω
(c) H(ejΩ ) = 1+3e 6+2e−j2Ω
Low pass filter
−jΩ 4
0.02426(1−e )
(d) H(ejΩ ) = (1+1.10416e−jΩ +0.4019e −j2Ω )(1+0.56616e−jΩ +0.7657e−j2Ω )
−20
−20
Magnitude in dB
Magnitude in dB
−40
−40
−60
−60 −80
−100
−80
−120
−100 −140
−2 0 2 −2 0 2
10 10 10 10 10 10
omega omega
(c) (d)
0 0
−50
−50
Magnitude in dB
Magnitude in dB
−100
−100
−150
−150 −200
−250
−200
−4 −2 0 2 4 −2 0 2
Omega Omega
3.114. Use MATLAB to verify that the time-bandwidth product for a discrete-time square wave is
approximately independent of the number of nonzero values in each period when duration is defined as
the number of nonzero values in the square wave and bandwidth is defined as the mainlobe width. Define
one period of the square wave as
1, 0 ≤ n < M
x[n] =
0, M ≤ n ≤ 999
Evaluate the bandwidth by first using fft and abs to obtain the magnitude spectrum and then count the
number of DTFS coefficients in the mainlobe for M = 10, 20, 40, 50, 100, and 200.
99
P3.114−1
M=10 10
0
300 350 400 450 500 550 600 650 700
20
15
M=20
10
0
400 420 440 460 480 500 520 540 560 580 600
40
30
M=40
20
10
0
450 460 470 480 490 500 510 520 530 540 550
20
10
0
450 460 470 480 490 500 510 520 530 540 550
100
M=100
50
0
480 485 490 495 500 505 510 515 520
200
150
M=200
100
50
0
490 492 494 496 498 500 502 504 506 508 510
100
M Bw
10 201
20 101
40 51
50 41
100 21
200 11
3.115. Use the MATLAB function TdBw introduced in Section 3.18 to evaluate and plot the time-
bandwidth product as a function of duration for the following classes of signals:
(a) Rectangular pulse trains. Let the pulse in a single period be of length M and vary M from 51 to 701
in steps of 50.
(b) Raised cosine pulse trains. Let the pulse in a single period be of length M and vary M from 51 to
701 in steps of 50.
(c) Gaussian pulse trains. Let x[n] = e−an , −500 ≤ n ≤ 500 represent the Gaussian pulse in a single
2
period. Vary the pulse duration by letting a take the following values: 0.00005, 0.0001, 0.0002, 0.0005,
0.001, 0.002, and 0.005.
2000
1500
TdBw
1000
600
500
TdBw
400
300
81.5
81
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Pulse duration a : Gaussian pulse −3
x 10
3.116. Use MATLAB to evaluate and plot the solution to Problem 3.96 on the interval 0 ≤ l ≤ 1 at
t = 0, 1, 2, . . . , 20 assuming c = 1. Use at least 99 harmonics in the sum.
101
t=0 t=0.25
0.1 0.1
0.05 0.05
0 0
−0.05 −0.05
−0.1 −0.1
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
t=0.5 t=0.75
0.1 0.1
0.05 0.05
0 0
−0.05 −0.05
−0.1 −0.1
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
0.05 0.05
0 0
−0.05 −0.05
−0.1 −0.1
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
t=1.5 t=1.75
0.1 0.1
0.05 0.05
0 0
−0.05 −0.05
−0.1 −0.1
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
3.117. The frequency response of either a continuous- or discrete-time system described in state-
variable form (see problem 3.87) may be computed using freqresp. The syntax is h = freqresp(sys,w)
102
where sys is the object containing the state-variable description (see section 2.13) and w is the vector
containing the frequencies at which to evaluate the frequency response. freqresp applies in general to
multiple-input, multiple-output systems so the output h is a multidimensional array. For the class of
single-input, single-output systems considered in this text and N frequency points in w,h is a dimension
of 1-by-1-by-N. The command squeeze(h) converts h to an N-dimensional vector that may be displayed
with the plot command. Thus we obtain the frequency response using the commands:
h = freqresp(sys,w);
hmag = abs(squeeze(h));
plot(w,hmag);
title(‘System Magnitude Response’);
xlabel(‘Frequency(rad/s)’); ylabel(’Magnitude’);
Use MATLAB to plot the magnitude and phase response for the systems with state-variable descriptions
given in Problems 3.88 and 3.89.
3.88(a) System Magnitude Response
2
1.5
Magnitude
0.5
0
0 1 2 3 4 5 6 7 8 9 10
Frequency (rad/s)
−0.5
Phase
−1
−1.5
0 1 2 3 4 5 6 7 8 9 10
Frequency (rad/s)
103
3.88(b) System Magnitude Response
2.5
2
Magnitude
1.5
0.5
0
0 1 2 3 4 5 6 7 8 9 10
Frequency (rad/s)
2
Phase
−1
−2
0 1 2 3 4 5 6 7 8 9 10
Frequency (rad/s)
2.5
2
Magnitude
1.5
0.5
0
−4 −3 −2 −1 0 1 2 3 4
Frequency (rad/s)
0.5
Phase
−0.5
−1
−1.5
−4 −3 −2 −1 0 1 2 3 4
Frequency (rad/s)
104
3.89(b) System Magnitude Response
1.5
1.4
1.3
Magnitude
1.2
1.1
0.9
0.8
−4 −3 −2 −1 0 1 2 3 4
Frequency (rad/s)
2
Phase
−2
−4
−4 −3 −2 −1 0 1 2 3 4
Frequency (rad/s)
105
Solutions to Additional Problems
4.16. Find the FT representations for the following periodic signals: Sketch the magnitude and phase
spectra.
(a) x(t) = 2 cos(πt) + sin(2πt)
1 j2πt 1
x(t) = ejπt + e−jπt + e − e−j2πt
2j 2j
ωo = lcm(π, 2π) = π
x[1] = x[−1] = 1
1
x[2] = −x[−2] =
2j
∞
X(jω) = 2π X[k]δ(ω − kωo )
k=−∞
1
X(jω) = 2 [πδ(ω − π) + πδ(ω + π)] + [πδ(ω − 2π) − πδ(ω + 2π)]
j
4
|X(jω)|
0
−10 −5 0 5 10 15 20
1
arg(X(jω))
−1
−2
−8 −6 −4 −2 0 2 4 6 8
ω
4 (−1)k
(b) x(t) = k=0 k+1 cos((2k + 1)πt)
1 (−1)k j(2k+1)πt
4
x(t) = e + e−j(2k+1)πt
2 k+1
k=0
1
4
(−1)k
X(jω) = π [δ(ω − (2k + 1)π) + δ(ω + (2k + 1)π)]
k+1
k=0
2.5
2
|X(jω)|
1.5
0.5
0
−30 −20 −10 0 10 20 30
3.5
2.5
arg(X(jω))
1.5
0.5
0
−30 −20 −10 0 10 20 30
ω
|t| ≤ 1
1 2 |t| ≤ 12
x(t) = +
0
otherwise 0 otherwise
∞
2 sin(k 2π ) 4 sin(k π ) 2π
X(jω) = 3
+ 3
δ(ω − k )
k k 3
k=−∞
2
(c) Magnitude and Phase plot
10
6
|X(jω)|
0
0 5 10 15 20 25
3.5
2.5
arg(X(jω))
1.5
0.5
0
0 5 10 15 20 25
ω
π
T =4 ωo =
2
1 2
2te−j 2 kt dt
π
X[k] =
4 −2
0 k=0
= 2j cos(πk)
πk k = 0
∞
π
X(jω) = 2π X[k]δ(ω − k)
2
k=−∞
3
(d) Magnitude and Phase plot
0.7
0.6
0.5
0.4
|X(jω)|
0.3
0.2
0.1
0
0 2 4 6 8 10 12 14 16
1
arg(X(jω))
−1
−2
0 2 4 6 8 10 12 14 16
ω
4.17. Find the DTFT representations for the following periodic signals: Sketch the magnitude and
phase spectra.
(a) x[n] = cos( π8 n) + sin( π5 n)
1
jπn π 1
jπn π
x[n] = e 8 + e−j 8 n + e 5 − e−j 5 n
2 2j
π π π
Ωo = lcm( , ) =
8 5 40
1
X[5] = X[−5] =
2
1
X[8] = −X[−8] =
2j
∞
X(ejΩ ) = 2π X[k]δ(Ω − kΩo )
k=−∞
π π π π π
X(ejΩ ) = π δ(Ω − ) + δ(Ω + ) + δ(Ω − ) − δ(Ω + )
8 8 j 5 5
4
(a) Magnitude and Phase plot
2
1.5
|X(ejΩ)|
0.5
0
−0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8
1
arg(X(ejΩ)
−1
−2
−0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8
Ω
∞
(b) x[n] = 1 + m=−∞ cos( π4 m)δ[n − m]
π
N =8 Ωo =
4
∞
π
x[n] = 1+ cos( m)δ[n − m]
m=−∞
4
π
= 1 + cos( n)
4
1 3
x[n]e−jk 4 n
π
X[k] =
8 n=−4
For one period of X[k], k ∈ [−4, 3]
X[−4] 0 =
1 − 2−0.5 jk 3π
X[−3] = e 4
8
1 jk 2π
X[−2] = e 4
8
1 + 2−0.5 jk π
X[−1] = e 4
8
2
X[0] =
8
1 + 2−0.5 −jk π
X[1] = e 4
8
1 −jk 2π
X[2] = e 4
8
5
1 − 2−0.5 −jk 3π
X[3] = e 4
8
∞
X(ejΩ ) = 2π X[k]δ(Ω − kΩo )
k=−∞
(1 − 2−0.5 ) 3π 1 π (1 + 2−0.5 ) π 1
= π δ(Ω + ) + δ(Ω + ) + δ(Ω + ) + δ(2Ω) +
4 4 4 2 4 4 4
(1 + 2−0.5 ) π 1 π (1 − 2 −0.5
) 3π
π δ(Ω − ) + δ(Ω − ) + δ(Ω − )
4 4 4 2 4 4
1.5
|X(ejΩ)|
0.5
0
−2.5 −2 −1.5 −1 −0.5 0 0.5 1 1.5 2 2.5
0.5
arg(X(ejΩ))
−0.5
−1
−2.5 −2 −1.5 −1 −0.5 0 0.5 1 1.5 2 2.5
Ω
π
N =8 Ωo =
4
sin(k 5π8 )
X[k] = π
8 sin( 8 k)
5
X[0] =
8
∞
π
jΩ
X(e ) = 2π X[k]δ(Ω − k )
4
k=−∞
6
(c) Magnitude and Phase plot
4
3
|X(ejΩ)|
0
0 2 4 6 8 10 12
3.5
2.5
arg(X(ejΩ))
1.5
0.5
0
0 2 4 6 8 10 12
Ω
2π
N =7 Ωo =
7
1
1 − ejk 7 − e−jk 7
2π 2π
X[k] =
7
1 2π
= 1 − 2 cos(k )
7 7
∞
2π
X(ejΩ ) = 2π X[k]δ(Ω − k )
7
k=−∞
7
(d) Magnitude and Phase plot
0.35
0.3
0.25
|X(ejΩ)|
0.2
0.15
0.1
0.05
0
0 2 4 6 8 10 12
0.5
arg(X(ejΩ))
−0.5
−1
0 2 4 6 8 10 12
Ω
π
N =4 Ωo =
2
1
1 + e−jk 2 − e−jkπ − e−jk 2
π 3π
X[k] =
4
1 j π
= (1 − (−1)k ) − sin(k )
4 2 2
∞
π
X(ejΩ ) = 2π X[k]δ(Ω − k )
2
k=−∞
8
(e) Magnitude and Phase plot
5
3
|X(ejΩ)|
0
0 2 4 6 8 10 12
0.5
0
arg(X(ejΩ))
−0.5
−1
−1.5
−2
0 2 4 6 8 10 12
Ω
sin(2πt) FT 1 |ω| < 2π
Let a(t) = ←−−−→ A(jω) =
πt 0 otherwise
FT
h(t) = 2a(t) cos(7πt) ←−−−→ H(jω) = A(j(ω − 7π)) + A(j(ω + 7π))
∞
X(jω) = 2π X[k]δ(ω − kωo )
k=−∞
π π
X(jω) = πδ(ω − 2π) + πδ(ω + 2π) + πδ(ω − 6π) − πδ(ω + 6π)
j j
Y (jω) = X(jω)H(jω)
π π
= δ(ω − 6π) − δ(ω + 6π)
j j
y(t) = sin(6πt)
9
∞
(b) x(t) = m
m=−∞ (−1) δ(t − m)
1 1
X[k] = (1 − e−jkπ ) = (1 − (−1)k )
2
2
0 n even
=
1 n odd
∞
X(jω) = 2π δ(ω − l2π)
l=−∞
Y (jω) = X(jω)H(jω)
4
= 2π [δ(ω − l2π) + δ(ω + l2π)]
l=3
y(t) = 2 cos(6πt) + 2 cos(8πt)
T =1 ωo = 2π
∞
sin(k π4 ) −jkπ
X(jω) = 2π (1 − e ) δ(ω − k2π)
kπ
k=−∞
Y (jω) = X(jω)H(jω)
sin(3 π4 ) −j3π sin(−3 π4 )
= 2π (1 − e )δ(ω − 6π) + (1 − e )δ(ω + 6π)
j3π
3π −3π
4 sin(3 π4 ) 4 sin(3 π4 )
= δ(ω − 6π) + δ(ω + 6π)
3 3
3π
4 sin( 4 )
y(t) = cos(6πt)
3π
1
8
X[k] = 4 16te−jk8πt dt
− 18
2j cos(πk)
=
πk
∞
X(jω) = 2π X[k]δ(ω − k8π)
k=−∞
T =1 ωo = 2π
10
1
X[k] = e−t e−jk2πt dt
0
1 − e−(1+jk2π)
=
1 + jk2π
1 − e−1
=
1 + jk2π
∞
X(jω) = 2π X[k]δ(ω − k2π)
k=−∞
Y (jω) = X(jω)H(jω)
1 − e−1 1 − e−1 1 − e−1 1 − e−1
= 2π δ(ω − 6π) + δ(ω − 8π) + δ(ω + 6π) + δ(ω + 8π)
1 + j6π 1 + j8π 1 − j6π 1 − j8π
j6πt j8πt −j6πt −j8πt
e e e e
Y (jω) = (1 − e−1 ) + + +
1 + j6π 1 + j8π 1 − j6π 1 − j8π
j6πt
−1 e ej8πt
y(t) = 2(1 − e ) Re +
1 + j6π 1 + j8π
y(t) = 2(1 − e−1 ) [r1 cos(6πt + φ1 ) + r2 cos(8πt + φ2 )]
Where
r1 = 1 + (6π)2
φ1 = − tan−1 (6π)
r2 = 1 + (8π)2
φ1 = − tan−1 (8π)
4.19. We may design a dc power supply by cascading a full-wave rectifier and an RC circuit as depicted
in Fig. P4.19. The full wave rectifier output is given by
z(t) = |x(t)|
Y (jω)
Let H(jω) = Z(jω) be the frequency response of the RC circuit as shown by
1
H(jω) =
jωRC + 1
Suppose the input is x(t) = cos(120πt).
(a) Find the FT representation for z(t).
1
ωo = 240π T =
120
240
1 j120πt
1
11
(b) Find the FT representation for y(t).
Y (jω)
H(jω) =
Z(jω)
In the time domain:
d FT
z(t) − y(t) = RC y(t) ←−−−→ Z(jω) = (1 + jωRC)Y (jω)
dt
1
H(jω) =
1 + jωRC
Y (jω) = Z(jω)H(jω)
∞
(−1)k 1
= 4 δ(ω − k240π)
π(1 − 4k 2 ) 1 + jk240πRC
k=−∞
(c) Find the range for the time constant RC such that the first harmonic of the ripple in y(t) is less than
1% of the average value.
The ripple results from the exponential terms. Let τ = RC.
4.20. Consider the system depicted in Fig. P4.20 (a). The FT of the input signal is depicted in Fig. 4.20
FT FT
(b). Let z(t) ←−−−→ Z(jω) and y(t) ←−−−→ Y (jω). Sketch Z(jω) and Y (jω) for the following cases.
(a) w(t) = cos(5πt) and h(t) = sin(6πt)
πt
1
Z(jω) = X(jω) ∗ W (jω)
2π
W (jω) = π (δ(ω − 5π) + δ(ω + 5π))
1
Z(jω) = (X(j(ω − 5π)) + X(j(ω + 5π)))
2
1 |ω| < 6π
H(jω) =
0 otherwise
C(jω) = H(jω)Z(jω) = Z(jω)
1
Y (jω) = C(jω) ∗ [π (δ(ω − 5π) + δ(ω + 5π))]
2π
1
Y (jω) = [Z(j(ω − 5π)) + Z(j(ω + 5π))]
2
12
1
= [X(j(ω − 10π)) + 2X(jω) + X(j(ω + 10π))]
4
Z(jw)
0.5
5 w
Figure P4.20. (a) Sketch of Z(jω)
Y(jw)
0.5
0.25
10
w
Figure P4.20. (a) Sketch of Y (jω)
sin(5πt)
(b) w(t) = cos(5πt) and h(t) = πt
1
Z(jω) = [X(j(ω − 5π)) + X(j(ω + 5π))]
2
1 |ω| < 5π
H(jω) =
0 otherwise
C(jω) = H(jω)Z(jω)
1
Y (jω) = C(jω) ∗ [π (δ(ω − 5π) + δ(ω + 5π))]
2π
1
Y (jω) = [C(j(ω − 5π)) + C(j(ω + 5π))]
2
Z(jw)
0.5
5 w
Figure P4.20. (b) Sketch of Z(jω)
13
Y(jw)
0.25
10 w
sin(2πt)
(c) w(t) depicted in Fig. P4.20 (c) and h(t) = πt cos(5πt)
T = 2, ωo = π, To = 12
∞
2 sin(k π2 )
W (jω) = δ(ω − kπ)
k
k=−∞
1
Z(jω) = X(jω) ∗ W (jω)
2π
∞
sin(k π2 )
= X(j(ω − kπ))
kπ
k=−∞
C(jω) = H(jω)Z(jω)
7 −7
sin(k π ) sin(k π2 )
= 2
X(j(ω − kπ)) + X(j(ω − kπ))
kπ kπ
k=3 k=−3
1
Y (jω) = [C(j(ω − 5π)) + C(j(ω + 5π))]
2
Z(jw)
0.5
. . . −7 −3 3 7 . . .
w
14
Y(jw)
2
1
8 12
−5
w
−5 10
7
3
−50
21
Figure P4.20. (c) Sketch of Y (jω)
4.21. Consider the system depicted in Fig. P4.21. The impulse response h(t) is given by
sin(11πt)
h(t) =
πt
and we have
∞
1
x(t) = cos(k5πt)
k2
k=1
10
g(t) = cos(k8πt)
k=1
Xh (jω) = X(jω)H(jω)
2
1
= π [δ(ω − 5kπ) + δ(ω + 5kπ)]
k2
k=1
15
Gh (jω) = G(jω)H(jω)
= πδ(ω − 8π) + πδ(ω − 8π)
1
M (jω) = Xh (jω) ∗ Gh (jω)
2π
1
= [Xh (j(ω − 8π)) + Xh (j(ω + 8π))]
2
2
1
= π [(δ(ω − 8π − 5kπ) + δ(ω − 8π + 5kπ)) + (δ(ω + 8π − 5kπ) + δ(ω + 8π + 5kπ))]
k2
k=1
Y (jω) = M (jω)H(jω)
π π
= [δ(ω + 3π) + δ(ω − 3π)] + [δ(ω − 2π) + δ(ω + 2π)]
2 8
1 1
y(t) = cos(3πt) + cos(2πt)
2 8
π π π 3π 3π
X(e ) jΩ
= π δ(Ω − ) + δ(Ω + ) + δ(Ω − ) − δ(Ω + )
8 8 j 4 4
sin( π
4 n)
(a) h[n] = πn
jΩ 1 |Ω| ≤ π4
H(e ) =
0 π4 ≤ |Ω| < π, 2π periodic.
Y (ejΩ )= H(ejΩ )X(ejΩ )
π π
= π δ(Ω − ) + δ(Ω + )
8 8
π
y[n] = cos( n)
8
sin( π
2 n)
(b) h[n] = (−1)n πn
sin( π2 n)
h[n] = ejπn
πn
1 |Ω − π| ≤ π4
H(ejΩ ) =
0 π4 ≤ |Ω − π| < π, 2π periodic.
Y (ejΩ ) = H(ejΩ )X(ejΩ )
16
π 3π 3π
= δ(Ω − ) + δ(Ω + )
j 4 4
3π
y[n] = sin( n)
4
sin( π
5 n)
(c) h[n] = cos( π2 n) πn
π sin( π5 n)
h[n] = cos( n)
2 πn
1
|Ω − π2 | ≤ π5 1
|Ω + π2 | ≤ π5
H(ejΩ ) = 2 + 2
0 5 ≤ |Ω − 2 | < π
π π
0 π
5 ≤ |Ω + 2 | < π, 2π periodic.
π
sin( π n)
4.23. Consider the discrete-time system depicted in Fig. P4.23. Assume h[n] = πn2 . Use the DTFT
to determine the output, y[n] for the following cases: Also sketch G(ejΩ ), the DTFT of g[n].
sin( π
4 n)
(a) x[n] = πn , w[n] = (−1)n
sin( π4 n) DT F T 1 |Ω| ≤ π4
x[n] = ←−−
−−→ X(ejΩ ) =
πn 0 π4 ≤ |Ω| < π
DT F T
w[n] = ejπn ←−−
−−→ W (ejΩ ) = 2πδ(Ω − π)
1
G(ejΩ ) = X(ejΩ ) ∗ W (ejΩ )
2π
1 |Ω − π| ≤ π4
=
0 π4 ≤ |Ω − π| < π
sin( π4 n)
g[n] = ejπn
πn
Y (ejΩ ) = G(ejΩ )H(ejΩ )
= 0
y[n] = 0
17
G(e j )
3 5
4 4
sin( π
4 n)
(b) x[n] = δ[n] − πn , w[n] = (−1)n
sin( π4 n) DT F T 0 |Ω| ≤ π4
x[n] = δ[n] − ←−−
−−→ X(e ) = jΩ
πn 1 π4 ≤ |Ω| < π
DT F T
w[n] = ejπn ←−−
−−→ W (ejΩ ) = 2πδ(Ω − π)
1
G(ejΩ ) = X(ejΩ ) ∗ W (ejΩ )
2π
0 |Ω − π| ≤ 3π 4
=
1 3π 4 ≤ |Ω − π| <π
sin( 3π
4 n)
g[n] =
πn
Y (ejΩ ) = G(ejΩ )H(ejΩ )
= H(ejΩ )
sin( π2 n)
y[n] =
πn
G(e j )
3
4
sin( π
2 n)
(c) x[n] = πn , w[n] = cos( π2 n)
18
π π
= π δ(Ω − ) + δ(Ω + ) , 2π periodic
W (ejΩ )
2 2
1
jΩ
G(e ) = X(e ) ∗ W (e )
jΩ jΩ
2π
1
2 |Ω − π2 | ≤ π2 1
2 |Ω + π2 | ≤ π2
= +
0 π2 ≤ |Ω − π2 | < π 0 π2 ≤ |Ω + π2 | < π
1 sin( π2 n) j π n π
g[n] = e 2 + e−j 2 n
2 πn
sin( π2 n) π
= cos( n)
πn 2
sin(πn)
=
2πn
1
= δ(n)
2
y[n] = g[n] ∗ h[n]
1
= h[n]
2
sin(πn)
=
2πn
G(e j )
0.5
. . . . . .
π
(d) x[n] = 1 + sin( 16 n) + 2 cos( 3π
4 n), w[n] = cos( 3π
8 n)
π π π 3π 3π
X(e )jΩ
= 2πδ(Ω) + [δ(Ω − ) + δ(Ω + ) + 2π δ(Ω − ) + δ(Ω + ) , 2π periodic.
j 16 16 4 4
3π 3π
W (ejΩ ) = π δ(Ω − ) + δ(Ω + ) , 2π periodic
8 8
1
G(ejΩ ) = X(ejΩ ) ∗ W (ejΩ )
2π
1 3π 3π
= X(ej(Ω− 8 ) ) + X(ej(Ω+ 8 ) )
2π
1 3π π 7π 5π 9π 3π
= 2πδ(Ω − )+ δ(Ω − ) − δ(Ω − ) + 2π δ(Ω − ) + δ(Ω + )
2π 8 j 16 16 8 8
1 3π π 5π 7π 3π 9π
+ 2πδ(Ω + )+ δ(Ω + ) − δ(Ω + ) + 2π δ(Ω − ) + δ(Ω + )
2π 8 j 16 16 8 8
19
2 3π 1 7π 1 5π 1 9π
g[n] =cos( n) + sin( n) − sin( n) + cos( n)
π 8 2π 16 2π 16 π 8
Y (ejΩ ) = G(ejΩ )H(ejΩ )
2 3π 1 7π 1 5π
y[n] = cos( n) + sin( n) − sin( n)
π 8 2π 16 2π 16
G(e j )
2
1
0.5
5 6 7 9
16 16 16 8
G(e j )
2
7 5 5 7
16 16 16 16
2
Figure P4.23. (d) The DTFT of g[n]
4.24. Determine and sketch the FT representation, Xδ (jω), for the following discrete-time signals with
the sampling interval Ts as given:
∞
Xδ (jω) = e−jωTs n
n=−∞
= X(ejΩ )Ω=ωT
s
sin( π
3 n)
(a) x[n] = πn , Ts = 2
jΩ 1 |Ω| ≤ π3
X(e ) =
0 π3 ≤ |Ω| < π
20
1 |2ω| ≤ π3
Xδ (jω) =
0 π3 ≤ |2ω| < π
1 |ω| ≤ π6
=
6 ≤ |ω| <
π π
0 6
Xδ (jω) is π periodic
X (jw)
1
... ...
w
6
sin( π
3 n) 1
(b) x[n] = πn , Ts = 4
jΩ 1 |Ω| ≤ π3
X(e ) =
0 π3 ≤ |Ω| < π
1 | 14 ω| ≤ π3
Xδ (jω) =
0 π3 ≤ | 14 ω| < π
1 |ω| ≤ 4π
3
=
0 4π
3 ≤ |ω| < 4π
Xδ (jω) is 8π periodic
X (jw)
1
... ...
4 w
8
3
21
sin( π
4 n)
(c) x[n] = cos( π2 n) πn , Ts = 2
jΩ
1
2 |Ω − π2 | ≤ π4 1
2 |Ω + π2 | ≤ π4
X(e ) = +
4 ≤ |Ω − 2 | < π 4 ≤ |Ω + 2 | < π
π π π π
0 0
1
2 |2ω − π2 | ≤ π3 1
2 |2ω + π2 | ≤ π3
Xδ (jω) = +
3 ≤ |2ω − 2 | < π 0 π3 ≤ |2ω + π2 | < π
π π
0
1
2
π
8 <ω < 8
3π 1
2 − 3π
8 < ω < −8
π
= +
0 otherwise 0 otherwise
Xδ (jω) is π periodic
X (jw)
0.5
... ...
3 w
8 8
π
DTFS: N = 8 Ωo =
4
sin(k 5π
8 )
X[k] = , k ∈ [−3, 4]
8 sin(k π8 )
∞
π
DTFT: X(ejΩ ) = 2π X[k]δ(Ω − k )
4
k=−∞
∞
π sin(k 5π
8 ) π
FT: Xδ (jω) = δ(4ω − k )
4 8 sin(k π8 ) 4
k=−∞
∞
π sin(k 5π
8 ) π
= δ(ω − k )
16 8 sin(k π8 ) 16
k=−∞
π
Xδ (jω) is 2 periodic
22
(d) Plot of FT representation of Xδ(jω)
1
0.8
0.6
|Xδ(jω)|
0.4
0.2
0
−0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8
ω
3.5
2.5
arg(Xδ(jω))
1.5
0.5
0
−0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8
ω
∞
(e) x[n] = p=−∞ δ[n − 4p], Ts = 1
8
π
DTFS: N = 4 Ωo =
2
1
X[k] = , k ∈ [0, 3]
4
∞
π π
DTFT: X(ejΩ ) = δ(Ω − k )
2 2
k=−∞
∞
π 1 π
FT: Xδ (jω) = δ( ω − k )
2 8 2
k=−∞
∞
= 4π δ(ω − k4π)
k=−∞
Xδ (jω) is 4π periodic
23
(e) Plot of FT representation of Xδ(jω)
14
12
10
|Xδ(jω)|
0
−30 −20 −10 0 10 20 30
ω
0.5
arg(Xδ(jω))
−0.5
−1
−30 −20 −10 0 10 20 30
ω
1
4.25. Consider sampling the signal x(t) = πt sin(2πt).
(a) Sketch the FT of the sampled signal for the following sampling intervals:
(i) Ts = 18
(ii) Ts = 13
(iii) Ts = 12
(iv) Ts = 23
In part (iv), aliasing occurs. The signals overlap and add, which can be seen in the following figure.
24
Plot of FT of the sampled signal
10
Xδ(jω), Ts = 1/8
0
−80 −60 −40 −20 0 20 40 60 80
Xδ(jω), Ts = 1/3
0
−40 −30 −20 −10 0 10 20 30 40
3
Xδ(jω), Ts = 1/2
2
1
0
−1
−20 −15 −10 −5 0 5 10 15 20
Xδ(jω), Ts = 2/3
−8 −6 −4 −2 0 2 4 6 8
ω
(b) Let x[n] = x(nTs ). Sketch the DTFT of x[n], X(ejΩ ), for each of the sampling intervals given
in (a).
1 DT F T
x[n] = x(nTs ) = sin(2πnTs ) ←−−−−→ X̃(ejΩ )
πnTs
1
|Ω| ≤ Ts π
X̃(ejΩ ) = Ts 2π periodic
0 Ts π ≤ |Ω| < π
Notice that the difference between the figure in (a) and (b) is that the ’ω’ axis has been scaled by the
sampling rate.
25
Plot of FT of the sampled signal
10
X(ejΩ), Ts = 1/8
0
−8 −6 −4 −2 0 2 4 6 8
X(ejΩ), Ts = 1/3
0
−15 −10 −5 0 5 10 15
3
X(ejΩ), Ts = 1/2
2
1
0
−1
−10 −8 −6 −4 −2 0 2 4 6 8 10
X(e ), Ts = 2/3
2
jΩ
−15 −10 −5 0 5 10 15
Ω
4.26. The continuous-time signal x(t) with FT as depicted in Fig. P4.26 is sampled. Identify in each
case if aliasing occurs.
(a) Sketch the FT of the sampled signal for the following sampling intervals:
1
(i) Ts = 14
No aliasing occurs.
X (jw)
14
. . . 14 10 38 . . .
w
38 10 14
Figure P4.26. (i) FT of the sampled signal
1
(ii) Ts = 7
1
Since Ts > 11 , aliasing occurs.
26
X (jw)
7
. . . 4 10 24 . . .
w
24 10 4
(iii) Ts = 15
1
Since Ts > 11 , aliasing occurs.
X (jw)
. . . . . .
10 w
10
(b) Let x[n] = x(nTs ). Sketch the DTFT of x[n], X(ejΩ ), for each of the sampling intervals given
in (a).
The DTFT simple scales the ’x’ axis by the sampling rate.
1
(i) Ts = 14
X(e j )
14 14 10 38
. . . 14 14 14 . . .
38 10 14
14 14 14
1
(ii) Ts = 7
27
X(e j )
4 7 10 24
. . . . . .
7 7 7
24 10 4
7 7 7
Figure P4.26. (ii) DTFT of x[n]
1
(iii) Ts = 5
j
X(e )
. . . . . .
10 10
5 5
Figure P4.26. (iii) DTFT of x[n]
sin( π
6 n)
4.27. Consider subsampling the signal x[n] = πn so that y[n] = x[qn]. Sketch Y (ejΩ ) for the
following choices of q:
jΩ 1 |ω| ≤ π6
X(e ) =
0 π6 ≤ |ω| < π 2πperiodic
q[n] = x[qn]
1 j q1 (Ω−m2π)
q−1
Y (ejΩ ) = X e
q m=0
(a) q = 2
1 j 1 (Ω−m2π)
1
jΩ
Y (e ) = X e 2
2 m=0
(b) q = 4
1 j 1 (Ω−m2π)
3
Y (ejΩ ) = X e 4
4 m=0
28
(c) q = 8
1 j 1 (Ω−m2π)
7
Y (ejΩ ) = X e 8
8 m=0
0.5
0
−10 −8 −6 −4 −2 0 2 4 6 8 10
0.3
Y(ejΩ), q = 4
0.2
0.1
0
−0.1
−10 −8 −6 −4 −2 0 2 4 6 8 10
0.4
0.3
Y(ejΩ), q = 8
0.2
0.1
0
−10 −8 −6 −4 −2 0 2 4 6 8 10
Ω
4.28. The discrete-time signal x[n] with DTFT depicted in Fig. P4.28 is subsampled to obtain y[n] =
x[qn]. Sketch Y (ejΩ ) for the following choices of q:
(a) q = 3
(b) q = 4
(c) q = 8
29
Plot of the subsampled signal x[n]
0.8
0.6
Y(ejΩ), q = 3
0.4
... ...
0.2
0
−15 −10 −5 0 5 10 15
0.4
0.3
Y(ejΩ), q = 4
0.2
0.1
0
−20 −15 −10 −5 0 5 10 15 20
0.2
0.15
Y(ejΩ), q = 8
0.1
0.05
0
−20 −15 −10 −5 0 5 10 15 20
Ω
4.29. For each of the following signals sampled with sampling interval Ts , determine the bounds on Ts
that gaurantee there will be no aliasing.
(a) x(t) = 1t sin 3πt + cos(2πt)
1 FT 1
|ω| ≤ 3π
sin(3πt) ←−−−→ π
t 0 otherwise
FT
cos(2πt) ←−−−→ πδ(Ω − 2π) + πδ(Ω + 2π)
ωmax = 3π
π
T <
ωmax
1
T <
3
1
4π |ω − 12π| ≤ π 1
4π |ω + 12π| ≤ π
X(jω) = +
0 otherwise 0 otherwise
ωmax = 13π
π
T <
ωmax
30
1
T <
13
1
X(jω) = [u(ω + W ) − u(ω − W )]
6 + jω
ωmax = W
π
T <
ωmax
π
T <
W
(d) x(t) = w(t)z(t), where the FTs W (jω) and Z(jω) are depicted in Fig. P4.29.
1
X(jω) = W (jω) ∗ G(jω)
2π
ωmax = 4π + wa
π
T <
ωmax
π
T <
4π + wa
4.30. Consider the system depicted in Fig. P4.30. Assume |X(jω)| = 0 for |ω| > ωm . Find the largest
value of T such that x(t) can be reconstructed from y(t). Determine a system that will perform the
reconstruction for this maximum value of T .
π
For reconstruction, we need to have ws > 2wmax , or T < ωmax . A finite duty cycle results in distortion.
sin( π2 k) −j π k
W [k] = e 2
kπ
∞
2π
W (jω) = 2π W [k]δ(ω − k )
T
k=−∞
After multiplication:
∞
sin( π2 k) −j π k 2π
Y (jω) = e 2 X(j(ω − k ))
kπ T
k=−∞
To reconstruct:
2π
Hr (jω)Y (jω) = X(jω), |ω| < ωmax , > 2ωmax
T
k=0
1
Hr (jω) X(jω) = X(jω)
2
2 |ω| < ωmax
Hr (jω) = don’t care ωmax < |ω| < 2π
T − ωmax
0 |ω| > T − ωmax
2π
31
4.31. Let |X(jω)| = 0 for |ω| > ωm . Form the signal y(t) = x(t)[cos(3πt) + sin(10πt)]. Determine the
maximum value of ωm for which x(t) can be reconstructed from y(t) and specify a system that that will
perform the reconstruction.
1
Y (jω) = [X(j(ω − 2π)) + X(j(ω + 2π)) − jX(j(ω − 10π)) + jX(j(ω + 10π))]
2
x(t) can be reconstructed from y(t) if there is no overlap amoung the four shifted versions of X(jω), yet
x(t) can still be reconstructed when overlap occurs, provided that there is at least one shifted X(jω) that
is not contaminated.
10π − 4π
ωm max = = 4π
2
Y(jw)
1
... ...
3 −wm 3 +w m
10 w
Figure P4.31. Y (jω)
We require 10π − ωm > 3π + ωm , thus ωm < 7π 2 . To recover the signal, bandpassfilter with passband
6.5π ≤ ω ≤ 13.5π and multiply with 2 sin(10πt) to retrieve x(t).
Ho(jw)
xs[n] = x(nTs )
Figure P4.32. Reconstruction system.
0.99ω
(i) |Hc (jω)| >
2 sin(ω T2s )
32
1.01ω
(ii) |Hc (jω)| <
2 sin(ω T2s )
0.99ω
2 sin(ω T2s )
< |Hc (jω)| < 1.01ω
2 sin(ω T2s )
The stopband constraint is |Ho (jω)||Hc (jω)| < 10−4 , at the worst case ω = 2π
Ts − ωm .
10−4 ω
|Hc (jω)| <
2 sin(ω T2s )
2π
ω = − ωm
Ts
2π
= − 10π = 10π
0.1
10−4 10π
|Hc (j10π)| <
2 sin(10π( 0.1
2 ))
= 5π(10−4 ) = 0.001571
2π
ω = − 10π = 30π
0.05
30π(10−4 )
|Hc (j30π)| <
2 sin(30π( 0.05 ))
2
30π
= √ (10−4 ) = 0.006664
2
2π
ω = − 10π = 90π
0.02
10−4 90π
|Hc (j90π)| <
0.02
2 sin(90π( 2 ))
90π(10−4 )
= = 0.04575
2 sin(0.9π)
2π
ω = − 10π = 30π
0.05
33
30π(10−4 )
|Hc (j30π)| <
2 sin(30π( 0.05
2 ))
−4
10 30π
= = 0.006664
2 sin( 3 π)
4
4.33. The zero-order hold produces a stairstep approximation to the sampled signal x(t) from samples
x[n] = x(nTs ). A device termed a first-order hold linearly interpolates between the samples x[n] and thus
produces a smoother approximation to x(t). The output of the first- order hold may be described as
∞
x1 (t) = x[n]h1 (t − nTs )
n=−∞
where h1 (t) is the triangular pulse shown in Fig. P4.33 (a). The relationship between x[n] and x1 (t) is
depicted in Fig. P4.33 (b).
(a) Identify the distortions introduced by the first-order hold and compare them to those introduced by
the zero-order hold. Hint: h1 (t) = ho (t) ∗ ho (t).
∞
x1 (t) = x[n]h1 (t − nTs )
n=−∞
∞
= ho (t) ∗ ho (t) ∗ x[n]δ(t − nTs )
n=−∞
Thus:
X1 (jω) = Ho (jω)Ho (jω)X∆ (jω)
Which implies:
4 sin2 (ω T2s )
H1 (jω) = e−jωTs
ω2
Distortions:
(1) A linear phase shift corresponding to a time delay of Ts seconds (a unit of sampling time).
(2) sin2 (.) term introduces more distortion to the portion of Xδ (jω), especially the higher frequency part
is severely attenuated compared to the low frequency part which falls within the mainlobe, between −ωm
and ωm .
(3) Distorted and attenuated versions of X(jω) still remain at the nonzero multiples of ωm , yet it is lower
than the case of the zero order hold.
(b) Consider a reconstruction system consisting of a first-order hold followed by an anti-imaging fil-
ter with frequency response Hc (jω). Find Hc (jω) so that perfect reconstruction is obtained.
34
ejωTs ω 2
T |ω| ≤ ωm
4 sin2 (ω T2s ) s
Hc (jω) =
don’t care ωm ≤ |ω| < 2π
Ts − ωm
0 |ω| > 2π
Ts − ω m
(c) Determine the constraints on |Hc (jω)| so that the overall magnitude response of this reconstruc-
tion system is between 0.99 and 1.01 in the signal passband and less than 10−4 to the images of the signal
spectrum for the following values. Assume x(t) is bandlimited to 12π, that is, X(jω) = 0 for |ω| > 12π.
Constraints:
0.99ω 2 1.01ω 2
< |H c (jω)| <
4 sin2 (ω T2s ) 4 sin2 (ω T2s )
(i) Ts = .05
2π
ω = − ωm
Ts
2π
= − 12π = 28π
0.05
10−4 (28π)2
|Hc (jω)| <
4 sin2 (28π( 0.05
2 ))
≈ 0.2956
0.99ω 2 1.01ω 2
< |H c (jω)| <
4 sin2 (ω T2s ) 4 sin2 (ω T2s )
2926.01 < |Hc (jω)| < 2985.12
35
(ii) Ts = .02
2π
ω = − 12π = 88π
0.02
10−4 (88π)2
|Hc (jω)| <
4 sin2 (88π( 0.02
2 ))
≈ 14.1
0.99ω 2 1.01ω 2
2
< |Hc (jω)| <
Ts
4 sin (ω 2 ) 4 sin2 (ω T2s )
139589 < |Hc (jω)| < 142409
4.34. Determine the maximum factor q by which x[n] with DTFT X(ejΩ ) depicted in Fig. P4.34 can
be decimated without aliasing. Sketch the DTFT of the sequence that results when x[n] is decimated by
this amount.
Looking at the following equation:
1 j q1 (Ω−m2π)
q−1
Y (ejΩ ) = X e
q m=0
2qW > 2π
Thus:
π
qmax = =3
W
After decimation:
1 j 1 (Ω−m2π)
2
Y (ejΩ ) = X e 3
3 m=0
j )
Y(e
1
. . . 3 . . .
2 4
36
Figure P4.34. Sketch of the DTFT
4.35. A discrete-time system for processing continuous-time signals is shown in Fig. P4.35. Sketch the
magnitude of the frequency response of an equivalent continuous-time system for the following cases:
Ts
1 jωTs 2 sin(ω 2 )
|HT (jω)| = |Ha (jω)| |H(e )| |Hc (jω)|
Ts ω
π
(a) Ω1 = 4, Wc = 20π
π
ωmax = min(10π, (20), 20π) = 5π
4
H (jw)
T
1
5 w
3π
(b) Ω1 = 4 , Wc = 20π
3π
ωmax = min(10π, (20), 20π) = 10π
4
H (jw)
T
1
10 w
π
(c) Ω1 = 4, Wc = 2π
37
π
ωmax = min(10π, (20), 2π) = 2π
4
H (jw)
T
1
2 w
sin( 11Ω DT F S; Ωo
2 )
4.36. Let X(ejΩ ) = sin( Ω
and define X̃[k] = X(ejkΩo ). Find and sketch x̃[n] where x̃[n] ←−−
−−→
2
X̃[k] = X(ejkΩo )
sin( 11kΩ
2 )
o DT F S; Ωo N |n| ≤ 5
X̃[k] = ←−−
−−→ x̃[n] =
sin( kΩ
2 )
o
0 5 < |n| < N
2, N periodic
2π
(a) Ωo = 15 , N = 15
15 |n| ≤ 5
x̃[n] =
0 5 < |n| < 7, 15 periodic
π
(b) Ωo = 10 , N = 20
20 |n| ≤ 5
x̃[n] =
0 5 < |n| < 10, 20 periodic
(c) Ωo = π3 , N = 6
Overlap occurs
38
Plots of x~[n] for the given values of Ωo
15
x~[n], Ωo = 2π/15
10
0
−25 −20 −15 −10 −5 0 5 10 15 20 25
20
x~[n], Ωo = π/10
15
10
0
−30 −20 −10 0 10 20 30
15
x~[n], Ωo = π/3
10
0
−15 −10 −5 0 5 10 15
n
F S; ωo
4.37. Let X(jω) = sin(2ω)
ω and define X̃[k] = X(jkωo ). Find and sketch x̃(t) where x̃(t) ←−−−→ X̃[k]
for the following values of ωo :
1
2 |t| ≤ 2
x(t) =
0 otherwise
sin(2kωo )
X̃[k] = X(jkωo ) =
kωo
∞
x̃(t) = T x(t − mT )
m=−∞
π
(a) ωo = 8
sin( π4 k)
X̃[k] = π
8k
Ts = 2
T =
16
8 |t| < 2
x̃(t) =
0 2 < |t| < 8, 16 periodic
39
π
(b) ωo = 4
sin( π2 k)
X̃[k] = π
4k
Ts = 2
T =
8
4 |t| < 2
x̃(t) =
0 2 < |t| < 4, 8 periodic
π
(c)ωo = 2
sin(πk)
X̃[k] = π
2k
= 2δ[k]
x̃(t) = 2
0
−20 −15 −10 −5 0 5 10 15 20
5
4
x~(t), ωo = π/4
3
2
1
0
−15 −10 −5 0 5 10 15
3
x~(t), ωo = π/2
0
−15 −10 −5 0 5 10 15
t
4.38. A signal x(t) is sampled at intervals of Ts = 0.01 s. One hundred samples are collected and a
200-point DTFS is taken in an attempt to approximate X(jω). Assume |X(jω)| ≈ 0 for |ω| > 120π rad/s.
Determine the frequency range −ωa < ω < ωa over which the DTFS offers a reasonable approximation to
40
X(jω), the effective resolution of this approximation, ωr , and the frequency interval between each DTFS
coefficient, ∆ω.
x(t) Ts = 0.01
100 samples M = 100
Use N = 200 DTFS to approximate X(jω), |X(jω)| ≈ 0, |ω| > 120π, ωm = 120π
2π
Ts <
ωm + ωa
2π
ωa < − ωm
Ts
Therefore:
ωa < 80π
2π
M Ts >
ωr
Therefore:
ωr > 2π
ωs
N >
∆ω
ωs
∆ω >
N
2π
∆ω =
N Ts
Therefore:
∆ω > π
4.39. A signal x(t) is sampled at intervals of Ts = 0.1 s. Assume |X(jω)| ≈ 0 for |ω| > 12π rad/s.
Determine the frequency range −ωa < ω < ωa over which the DTFS offers a reasonable approximation
to X(jω), the minimum number of samples required to obtain an effective resolution ωr = 0.01π rad/s,
and the length of the DTFS required so the frequency interval between DTFS coefficients is ∆ω = 0.001π
rad/s.
2π
Ts <
ωm + ωa
ωm = 12π
Ts = 0.1
ωa < 8π
The frequency range |ω| < 8π provides a reasonable approximation to the FT.
ωs
M ≥
ωr
41
2π
ωs = = 20π
Ts
ωr = 0.01π
M ≥ 2000
ωs
N ≥
∆ω
∆ω = 0.001π
N ≥ 20, 000
4.40. Let x(t) = a sin(ωo t) be sampled at intervals of Ts = 0.1 s. Assume 100 samples of x(t),
x[n] = x(nTs ), n = 0, 1, . . . 99, are available. We use the DTFS of x[n] to approximate the FT of x(t) and
wish to determine a from the DTFS coefficient of largest magnitude. The samples x[n] are zero-padded
to length N before taking the DTFS. Determine the minimum value of N for the following values of ωo :
Determine which DTFS coefficient has the largest magnitude in each case.
Choose ∆ω so that ωo is an integer multiple of ∆ω, (ωo = p∆ω), where p is an integer, and set
N = M = 100. Using these two conditions results in the DTFS sampling Wδ (j(ω − ωo )) at the peak of
the mainlobe and at all of the zero crossings. Consequently,
a k=p
Y [k] =
0 otherwise on 0 ≤ k ≤ N − 1
(a) ωo = 3.2π
ωs
N =
∆ω
20πp
=
ωo
20πp
=
3.2π
= 25
p = 4
Since p and N have to be integers
a k=4
Y [k] =
0 otherwise on 0 ≤ k ≤ 24
42
(b) ωo = 3.1π
ωs
N =
∆ω
20πp
=
ωo
20πp
=
3.1π
= 200
p = 31
Since p and N have to be integers
a k = 31
Y [k] =
0 otherwise on 0 ≤ k ≤ 199
(c) ωo = 3.15π
ωs
N =
∆ω
20πp
=
ωo
20πp
=
3.15π
= 400
p = 63
Since p and N have to be integers
a k = 63
Y [k] =
0 otherwise on 0 ≤ k ≤ 399
4.41. A continuous-time signal lies in the frequency band |ω| < 5π. This signal is contaminated by
a large sinusoidal signal of frequency 120π. The contaminated signal is sampled at a sampling rate of
ωs = 13π.
(a) After sampling, at what frequency does the sinusoidal intefering signal appear?
X(jω) is bandlimited to 5π
43
6π
= x[n] + A sin(9(2π)n + n)
13
6π
= x[n] + A sin( n)
13
6π
Ω sin =
13
Ω 6π 13
ω = = = 3π
Ts 13 2
(b) The contaminated signal is passed through an anti-aliasing filter consisting of the RC circuit de-
picted in Fig. P4.41. Find the value of the time constant RC required so that the contaminating sinusoid
is attenuated by a factor of 1000 prior to sampling.
1
jωC
T (jω) = 1
R+ jωC
1
=
1 + jωRC
1
=
1 + jωτ
1
|T (jω)| = √
1 + ω 2 τ 2 ω=120π
1
=
1000
τ = 2.65 s
(c) Sketch the magnitude response in dB that the anti-aliasing filter presents to the signal of interest for
the value of RC identified in (b).
1
T (jω) =
1 + jω2.65
1
|T (jω)| =
1 + ω 2 (2.65)2
44
P 4.41 Magnitude response of the anti−aliasing filter in dB
0
−5
−10
T(jω) in dB
−15
−20
−25
−5 −4 −3 −2 −1 0 1 2 3 4 5
ω, −3dB point at ω = ± 1/2.65
4.42. This problem derives the frequency-domain relationship for subsampling given in Eq.(4.27). Use
Eq. (4.17) to represent x[n] as the impulse-sampled continuous-time signal with sampling interval Ts ,
and thus write
∞
xδ (t) = x[n]δ(t − nTs )
n=−∞
Suppose x[n] are the samples of a continuous-time signal x(t), obtained at integer multiples of Ts . That is,
FT
x[n] = x(nTs ). Let x(t) ←−−−→ X(jω). Define the subsampled signal y[n] = x[qn] so that y[n] = x(nqTs )
is also expressed as samples of x(t).
(a) Apply Eq. (4.23) to express Xδ (jω) as a function of X(jω). Show that
∞
1 k
Yδ (jω) = X(j(ω − ωs ))
qTs q
k=−∞
Since y[n] is formed by using every qth sample of x[n], the effective sampling rate is Ts = qTs
∞
∞
FT 1
yδ (t) = x(t) δ(t − nTs ) ←−−−→ Yδ (jω) = X(j(ω − kωs ))
n=−∞
Ts
k=−∞
ωs
Substituting Ts = qTs , and ωs = yields:
q
∞
1 k
Yδ (jω) = X(j(ω − ωs ))
qTs q
k=−∞
45
(b) The goal is to express Yδ (jω) as a function of Xδ (jω) so that Y (ejΩ ) can be expressed in terms of
X(ejΩ ). To this end, write kq in Yδ (jω) as the proper fraction
k m
=l+
q q
k
where l is the integer portion of q and m is the remainder. Show that we may thus rewrite Yδ (jω) as
∞
1 1
q−1
m
Yδ (jω) = X(j(ω − lωs − ωs ))
q m=0 Ts q
l=−∞
∞
1 1
q−1
m
Yδ (jω) = X(j(ω − lωs − ωs ))
q m=0 Ts q
l=−∞
1
q−1
m
Yδ (jω) = Xδ (j(ω − ωs ))
q m=0 q
(c) Now we convert from the FT representation back to the DTFT in order to express Y (ejΩ ) as a function
of X(ejΩ ). The sampling interval associated with Yδ (jω) is qTs . Using the relationship Ω = ωqTs in
Y (ejΩ ) = Yδ (jω)|ω= Ω
qTs
show that
1
q−1
j Ω m
Y (ejΩ ) = Xδ − 2π
q m=0 Ts q q
Ω
Substituting ω = qTs yields
1
q−1
j Ω m
jΩ
Y (e ) = Xδ − 2π
q m=0 Ts q q
1 j q1 (Ω−m2π)
q−1
jΩ
Y (e ) = X e
q m=0
The sampling interval associated with Xδ (jω) is Ts , so X(ejΩ ) = Xδ (j TΩs ). Hence we may substitute
Ω
X ej( q −m q ) for Xδ Tjs ( Ωq − m 2π
2π
q ) and obtain
1 j q1 (Ω−m2π)
q−1
Y (ejΩ ) = X e
q m=0
46
4.43. A bandlimited signal x(t) satisfies |X(jω)| = 0 for |ω| < ω1 and |ω| > ω2 . Assume ω1 > ω2 − ω1 .
In this case we can sample x(t) at a rate less than that indicated by the sampling interval and still perform
perfect reconstruction by using a bandpass reconstruction filter Hr (jω). Let x[n] = x(nTs ). Determine
the maximum sampling interval Ts such that x(t) can be perfectly reconstructed from x[n]. Sketch the
frequency response of the reconstruction filter required for this case.
ωs − ω2 ≥ −ω1
ωs ≥ ω2 − ω1
Implies:
2π
Ts ≤
ω − ω1
2
Ts ω1 ≤ |ω| ≤ ω2
Hr (jω) =
0 otherwise
4
3
X(jω) = 2π ( )k δ(ω − k2π)
4
k=−4
ωm = 8π
2π
> 2(8π)
Ts
1
min Ts =
8
(b) The constraints of the sampling theorem can be relaxed somewhat in the case of periodic signals if we
allow the reconstructed signal to be a time-scaled version of the original. Suppose we choose a sampling
interval Ts = 20
19 and use a reconstruction filter
1, |ω| < π
Hr (jω) =
0, otherwise
Show that the reconstructed signal is a time-scaled version of x(t) and identify the scaling factor.
20
Ts =
19
∞
19
Xδ (jω) = X(j(ω − l1.9π))
20
l=−∞
47
Aliasing produces a “ frequency scaled” replica of X(jω) centered at zero. The scaling is by a factor of
20 from ωo = 2π to ωo = 0.1π. Applying the LPF, |ω| < π gives x( 20
t
), and xreconstructed (t) = 19 t
20 x( 20 )
(c) Find the constraints on the sampling interval Ts so that use of Hr (jω) in (b) results in the re-
construction filter being a time-scaled version of x(t) and determine the relationship between the scaling
factor and Ts .
4.45. In this problem we reconstruct a signal x(t) from its samples x[n] = x(nTs ) using pulses of width
less than Ts followed by an anti-imaging filter with frequency response Hc (jω). Specifically, we apply
∞
xp (t) = x[n]hp (t − nTs )
n=−∞
to the anti-imaging filter, where hp (t) is a pulse of width To as depicted in Fig. P4.45 (a). An example of
xp (t) is depicted in Fig. P4.45 (b). Determine the constraints on |Hc (jω)| so that the overall magnitude
response of this reconstruction system is between 0.99 and 1.01 in the signal passband and less than
10−4 to the images of the signal spectrum for the following values with x(t) bandlimited to 10π, that is,
X(jω) = 0 for |ω| > 10π:
Constraints:
(1) Passband
0.99 < |Hp (jω)||Hc (jω)| < 1.01, using ωmax = 10π
0.99To ω 1.01To ω
< |Hc (jω)| <
2 sin(ω T2o ) 2 sin(ω T2o )
(2) In the image location
10−4 To ω
|Hp (jω)| <
2 sin(ω T2o )
48
2π
where ω= − 10π
Ts
(1) Passband
1.1533 < |Hc (jω)| < 1.1766
(2) In the image location
ω = 15π
|Hc (j15π)| < 1.165 × 10−4
(1) Passband
1.0276 < |Hc (jω)| < 1.0484
(2) In the image location
ω = 15π
|Hc (j15π)| < 1.038 × 10−4
(1) Passband
1.3081 < |Hc (jω)| < 1.3345
(2) In the image location
ω = 40π
|Hc (j40π)| < 1.321 × 10−4
(1) Passband
1.0583 < |Hc (jω)| < 1.0796
(2) In the image location
ω = 40π
|Hc (j40π)| < 1.0690 × 10−4
49
(a) Show that this can be written as ideal sampling of a filtered signal y(t) = x(t) ∗ h(t), that is,
x[n] = y(nTs ), and find h(t).
Ts
y(t) = x(τ )dτ by inspection
t−T
∞s
= x(τ )h(t − τ )dτ
−∞
= x(t) ∗ h(t)
1 0 ≤ t ≤ Ts
choose h(t) =
0 otherwise
1 t − Ts ≤ τ ≤ Ts
h(t − τ ) =
0 otherwise
h(t) = u(t) − u(t − Ts )
Y (jω) =X(jω)H(jω)
∞
FT 1 2π
y(nTs ) ←−−−→ Y (j(ω − k ))
Ts Ts
k=−∞
∞
1 2π 2π
F T {x[n]} = X(j(ω − k ))H(j(ω − k ))
Ts Ts Ts
k=−∞
(c) Assume that x(t) is bandlimited to the frequency range |ω| < 4T 3π
s
. Determine the frequency response
of a discrete-time system that will correct the distortion in x[n] introduced by non-ideal sampling.
3π 2π
|ω| < <
4Ts Ts
We can use:
Ts
H(jω) |ω| ≤ 3π
4Ts
Hr (jω) =
0 otherwise
1 0 ≤ t ≤ Ts
h(t) =
0 otherwise
Ts FT 2 sin(ω T2s )
h(t + ) ←−−−→
2 ω
2 sin(ω T2s ) −jω Ts
H(jω) = e 2
ω
ωTs ejω 2s
T
Ts |ω| ≤ 4T
3π
Hr (jω) = 2 sin(ω 2 ) s
0 otherwise
50
4.47. The system depicted in Fig. P4.47 (a) converts a continuous-time signal x(t) to a discrete-time
signal y[n]. We have
jΩ 1, |Ω| < π4
H(e ) =
0, otherwise
Find the sampling frequency ωs = 2π Ts and the constraints on the anti-aliasing filter frequency response
Ha (jω) so that an input signal with FT X(jω) shown in Fig. P4.47 (b) results in the output signal with
DTFT Y (ejΩ ).
1
To discard the high frequency of X(jω), and anticipate Ts , use:
Ts |ω| ≤ π
Ha (jω) =
0 otherwise
Y(jw)
8
w
Figure P4.47. Graph of Y (jω)
ωs = 8π
1
4 |ω| ≤ π
Ha (jω) =
0 otherwise
4.48. The discrete-time signal x[n] with DTFT X(ejΩ ) shown in Fig. P4.48 (a) is decimated by first
passing x[n] through the filter with frequency response H(ejΩ ) shown in Fig. P4.48 (b) and then sub-
sampling by the factor q. For the following values of q and W , determine the minimum value of Ωp and
maximum value of Ωs so that the subsampling operation does not change the shape of the portion of
X(ejΩ ) on |Ω| < W .
1 j q1 (Ω−m2π)
q−1
jΩ
Y (e ) = X e
q m=0
51
From the following figure, one can see to preserve the shape within |Ω| < W , we need:
j /8
X(e )
. . . . . .
−qW qW q2
+
2 +qW
. . . . . .
2
2 −qW
Figure P4.48. Figure showing the necessary constraints to preserve the signal
qW
min Ωp = =W
q
2π − qW 2π
max Ωs = = −W
q q
π
(a) q = 2, W = 3
Y(e j )
1
. . . 2 . . .
2 2
3
Figure P4.48. (a) Sketch of the DTFT
π
(b) q = 2, W = 4
Y(e j )
1
2
. . . . . .
2 2
52
Figure P4.48. (b) Sketch of the DTFT
(c) q = 3, W = π4
In each case sketch the DTFT of the subsampled signal.
Y(e j )
1
3
. . . . . .
3 2
4
Figure P4.48. (c) Sketch of the DTFT
4.49. A signal x[n] is interpolated by the factor q by first inserting q − 1 zeros between each sample
and next passing the zero-stuffed sequence through a filter with frequency response H(ejΩ ) depicted in
Fig. P4.48 (b). The DTFT of x[n] is depicted in Fig. P4.49. Determine the minimum value of Ωp and
maximum value of Ωs so that ideal interpolation is obtained for the following cases. In each case sketch
the DTFT of the interpolated signal.
Xz (ejΩ ) = X(ejΩq )
W
min Ωp =
q
W
max Ωs = 2π −
q
π
(a) q = 2, W = 2
Y(e j )
. . . . . .
4 2
Figure P4.49. (a) Sketch of the DTFT of the interpolated signal
3π
(b) q = 2, W = 4
53
Y(e j )
. . . . . .
3 2
8
Figure P4.49. (b) Sketch of the DTFT of the interpolated signal
3π
(c) q = 3, W = 4
Y(e j )
. . . . . .
4 2
Figure P4.49. (c) Sketch of the DTFT of the interpolated signal
4.50. Consider interpolating a signal x[n] by repeating each value q times as depicted in Fig. P4.50.
That is, we define xo [n] = x[floor( nq )] where floor(z) is the integer less than or equal to z. Letting xz [n]
be derived from x[n] by inserting q − 1 zeros between each value of x[n], that is,
x[ nq ], nq integer
xz [n] =
0, otherwise
Xz (ejΩ ) = X(ejΩq )
sin( 3π
4 n)
(a) Express Xo (ejΩ ) in terms of X(ejΩ ) and Ho (ejΩ ). Sketch |Xo (ejΩ )| if x[n] = πn .
54
sin(Ω q )
2
|Xo (e )|jΩ
= |X(e jΩq
)|
sin( Ω2 )
Xo(e j )
q
. . . . . .
3 2
4q q
Figure P4.50. (a) Sketch of |Xo (ejΩ )|
(b) Assume X(ejΩ ) is as shown in Fig. P4.49. Specify the constraints on H(ejΩ ) so that ideal inter-
polation is obtained for the following cases.
For ideal interpolation, discard components other than those centered at multiples of 2π. Also, some
correction is needed to correct for magnitude and phase distortion.
sin( Ω q
2)
jΩ sin(Ω q2 )
ejΩ 2 |Ω| < W
q
H(e ) =
0 W
q ≤ |Ω| < 2π − W
q , 2π periodic
3π
(i) q = 2, W = 4
jΩ
sin( Ω
2 )e
jΩ sin(Ω) |Ω| < 3π
8
H(e ) =
0 3π
8 ≤ |Ω| < 13π
8 , 2π periodic
3π
(ii) q = 4, W = 4
sin( Ω
2 ) j2Ω
jΩ sin(2Ω) e |Ω| < 3π
16
H(e ) =
0 3π
16 ≤ |Ω| < 29π
16 , 2π periodic
4.51. The system shown in Fig. P4.51 is used to implement a bandpass filter. The discrete-time filter
H(ejΩ ) has frequency response on −π < Ω ≤ π
1, Ωa ≤ |Ω| ≤ Ωb
H(ejΩ ) =
0, otherwise
0.9 < |G(jω)| < 1.1, for 100π < ω < 200π
55
G(jω) = 0 elsewhere
In solving this problem, choose W1 and W3 as small as possible and choose Ts , W2 and W4 as large as
possible.
1 2 3 4 5
x(t) zero y(t)
Ha(jw) sample H(ej ) order Hc(jw)
hold
Figure P4.51. Graph of the system
(3) Passband:
100π < ω < 200π
Thus
Ωa = 100πTs
Ωb =
200πTs
2 sin(ω Ts )
2
(4) |Ho (jω)| =
ω
at ω = 100π
2 sin(50πTs )
< 1.1
100πTs
at ω = 200π
2 sin(100πTs )
> 0.9
200πTs
implies:
Ts (100π) < 0.785
max Ts = 0.0025
(5) min W3 = 200π
2π
max W4 = − 200π = 600π
Ts
(3) Ωa = 0.25π
Ωb = 0.5π
(1) and (2)
min W1 = 200π
1 2π
max W2 = = 400π, No overlap.
2 Ts
4.52. A time-domain interpretation of the interpolation procedure described in Fig. 4.50 (a) is derived
DT F T
in this problem. Let hi [n] ←−−
−−→ Hi (ejΩ ) be an ideal low-pass filter with transition band of zero width.
56
That is
q, |Ω| < πq
Hi (ejΩ ) =
0, πq < |Ω| < π
(a) Substitute for hi [n] in the convolution sum
∞
xi [n] = xz [k] ∗ hi [n − k]
k=−∞
π
sin qn
hi [n] = q
πn
∞
q sin π
q (n − k)
xi [n] = xz [k]
π(n − k)
k=−∞
(b) The zero-insertion procedure implies xz [k] = 0 unless k = qm where m is integer. Rewrite xi [n] using
only the non-zero terms in the sum as a sum over m and substitute x[m] = xz [qm] to obtain the following
expression for ideal discrete-time interpolation:
∞ q sin πq (n − qm)
xi [n] = x[m]
m=−∞
π(n − qm)
Substituting k = qm yields:
∞
q sin π
q (n − qm)
xi [n] = xz [qm]
m=−∞
π(n − qm)
Now use xz [qm] = x[m].
2π
DT F S; N
4.53. The continuous-time representation for a periodic discrete-time signal x[n] ←−−
−−→ X[k] is pe-
riodic and thus has a FS representation. This FS representation is a function of the DTFS coefficients
X[k], as we show in this problem. The result establishes the relationship between the FS and DTFS
∞
representations. Let x[n] have period N and let xδ (t) = n=−∞ x[n]δ(t − nTs ).
x[n] = x[n + N ]
∞
xδ (t) = x[n]δ(t − nTs )
n=−∞
∞
xδ (t + T ) = x[n]δ(t + T − nTs )
n=−∞
57
Now use x[n] = x[n − N ] to rewrite
∞
xδ (t + T ) = x[n − N ]δ(t + T − nTs )
n=−∞
let k = n − N
∞
xδ (t + T ) = x[k]δ(t − kTs + (T − N Ts ))
k=−∞
N −1
1
= x[n]e−jkωo nTs
N Ts n=0
N −1
1 1 −jk 2π n
= x[n]e N
Ts N n=0
1
= X[k]
Ts
4.54. The fast algorithm for evaluating the DTFS (FFT) may be used to develop a computationally
efficient algorithm for determining the output of a discrete-time system with a finite-length impulse
reponse. Instead of directly computing the convolution sum, the DTFS is used to compute the output
by performing multiplication in the frequency domain. This requires that we develop a correspondence
between the periodic convolution implemented by the DTFS and the linear convolution associated with
the system output, the goal of this problem. Let h[n] be an impulse response of length M so that h[n] = 0
for n < 0, n ≥ M . The system output y[n] is related to the input via the convolution sum
M −1
y[n] = h[k]x[n − k]
k=0
58
(a) Consider the N -point periodic convolution of h[n] with N consecutive values of the input sequence
x[n] and assume N > M . Let x̃[n] and h̃[n] be N periodic versions of x[n] and h[n], respectively
N −1
ỹ[n] = h̃[k]x̃[n − k]
k=0
Use the relationship between h[n], x[n] and h̃[n], x̃[n] to prove that ỹ[n] = y[n], M − 1 ≤ n ≤ N − 1.
That is, the periodic convolution is equal to the linear convolution at L = N − M + 1 values of n.
N −1
ỹ[n] = h[k]x̃[n − k] (1)
k=0
In (1), the sum over k varies from 0 to M − 1, and so the condition 0 ≤ n − k ≤ N − 1 is always satisfied
provided M − 1 ≤ n ≤ N − 1. Substituting x[n − k] = x̃[n − k], M − 1 ≤ n ≤ N − 1 into (1) yields
M −1
ỹ[n] = h[k]x[n − k] M −1≤n≤N −1
k=0
= y[n]
(b) Show that we may obtain values of y[n] other than those on the interval M − 1 ≤ n ≤ N − 1 by
shifting x[n] prior to defining x̃[n]. That is, if
and
∗ x̃p [n]
ỹp [n] = h̃[n]
then show
ỹp [n] = y[n + pL], M − 1 ≤ n ≤ N − 1
This implies that the last L values in one period of ỹp [n] correspond to y[n] for M −1+pL ≤ n ≤ N −1+pL.
Each time we increment p the N point periodic convolution gives us L new values of the linear convolu-
tion. This result is the basis for the so-called overlap and save method for evaluating a linear convolution
59
with the DTFS.
4.55. Repeat Example 4.7 using zero-padding and the MATLAB commands fft and fftshift to sample
and plot Y (ejΩ ) at 512 points on −π < Ω ≤ π for each case.
P4.55
80
|Y(Omega)|:M=80
60
40
20
−3 −2 −1 0 1 2 3
Omega
10
|Y(Omega)|:M=12
8
6
4
2
−3 −2 −1 0 1 2 3
Omega
10
|Y(Omega)|:M=8
8
6
4
2
−3 −2 −1 0 1 2 3
Omega
60
We may truncate a signal to the interval 0 ≤ n ≤ M by multiplying the signal with w[n]. In the frequency
domain we convolve the DTFT of the signal with
Ω(M +1)
sin 2
Wr (ejΩ ) = e−j 2 Ω
M
sin Ω2
The effect of this convolution is to smear detail and introduce ripples in the vicinity of discontinuities.
The smearing is proportional to the mainlobe width, while the ripple is proportional to the size of the
sidelobes. A variety of alternative windows are used in practice to reduce sidelobe height in return for
increased main lobe width. In this problem we evaluate the effect windowing time-domain signals on
their DTFT. The role of windowing in filter design is explored in Chapter 8. The Hanning window is
defined as
M ), 0 ≤ n ≤ M
0.5 − 0.5 cos( 2πn
wh [n] =
0, otherwise
(a) Assume M = 50 and use the MATLAB command fft to evaluate magnitude spectrum of the rectan-
π π π
gular window in dB at intervals of 50 , 100 , and 200 .
(b) Assume M = 50 and use the MATLAB command fft to evaluate the magnitude spectrum of the
π π π
Hanning window in dB at intervals of 50 , 100 , and 200 .
(c) Use the results from (a) and (b) to evaluate the mainlobe width and peak sidelobe height in dB for
each window.
π
Using an interval of 200 , the mainlobe width and peak sidelobe for each window can be estimated from
the figure, or finding the local minima and local nulls in the vicinity of the mainlobe.
Ω:rad (dB)
Mainlobe Sidelobe
width height
Rectangular 0.25 -13.48
Hanning 0.5 -31.48
Note: sidelobe height is relative to the mainlobe.
The Hanning window has lower sidelobes, but at the cost of a wider mainlobe when compared to the
rectangular window
(d) Let yr [n] = x[n]wr [n] and yh [n] = x[n]wh [n] where x[n] = cos( 26π 29π
100 n) + cos( 100 n) and M = 50.
Use the the MATLAB command fft to evaluate |Yr (ejΩ )| in dB and |Yh (ejΩ )| in dB at intervals of 200
π
.
Does the window choice affect whether you can identify the presence of two sinusoids? Why?
Yes, since the two sinusoids are very close to one another in frequency, 26π 29π
100 and 100 .
Since the Hanning window has a wider mainlobe, its capability to resolve these two sinusoid is inferior
to the rectangular window. Notice from the plot that the existence of two sinusoids are visible for the
rectangular window, but not for the Hanning.
(e) Let yr [n] = x[n]wr [n] and yh [n] = x[n]wh [n] where x[n] = cos( 26π 51π
100 n) + 0.02 cos( 100 n) and M = 50.
Use the the MATLAB command fft to evaluate |Yr (e )| in dB and |Yh (e )| in dB at intervals of 200
jΩ jΩ π
.
Does the window choice affect whether you can identify the presence of two sinusoids? Why?
61
Yes, here the two sinusoid frequencies are significantly different from one another. The separation of
π
4 from each other is significantly larger than the mainlobe width of either window. Hence, resolution is
not a problem for the Hanning window. Since the sidelobe magnitude is greater than 0.02 of the mainlobe
in the rectangular window, the sinusoid at 51π
100 is not distinguishable. In contrast, the sidelobes of the
Hanning window are much lower, which allows the two sinusoids to be resolved.
P4.56 (a)
0
|Wr(Omega)| dB:pi/50
−20
−40
−60
−3 −2 −1 0 1 2 3
Omega
0
|Wr(Omega)| dB:pi/100
−20
−40
−60
−3 −2 −1 0 1 2 3
Omega
0
|Wr(Omega)| dB:pi/200
−20
−40
−60
−3 −2 −1 0 1 2 3
Omega
62
P4.56 (b)
|Wh(Omega)| dB:pi/50 0
−50
−100
−3 −2 −1 0 1 2 3
Omega
|Wh(Omega)| dB:pi/100
−50
−100
−3 −2 −1 0 1 2 3
Omega
|Wh(Omega)| dB:pi/200
−50
−100
−3 −2 −1 0 1 2 3
Omega
P4.56 (c)
0
−5
−10
|Wr| zoomed
−15
−20
−25
−30
−35
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4
Omega
−10
|Wh| zoomed
−20
−30
−40
−50
−60
−0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4
Omega
63
P4.56 (d)
0
−5
−10
|Yr1(Omega)| dB
−15
−20
−25
−30
−35
−3 −2 −1 0 1 2 3
Omega
−20
|Yh1(Omega)| dB
−40
−60
−80
−3 −2 −1 0 1 2 3
Omega
P4.56 (e)
0
−20
|Yr2(Omega)| dB
−40
−60
−80
−3 −2 −1 0 1 2 3
Omega
−20
|Yh2(Omega)| dB
−40
−60
−80
−100
−3 −2 −1 0 1 2 3
Omega
64
4.57. Let a discrete-time signal x[n] be defined as
(0.1n)2
e− 2 , |n| ≤ 50
x[n] =
0, otherwise
Use the MATLAB commands fft and fftshift to numerically evaluate and plot the DTFT of x[n] and the
following subsampled signals at 500 values of Ω on the interval −π < Ω ≤ π:
(a) y[n] = x[2n]
(b) z[n] = x[4n]
P4.57
25
20
DTFT x[n]
15
10
5
−3 −2 −1 0 1 2 3
Omega
12
10
DTFT x[2n]
8
6
4
2
−3 −2 −1 0 1 2 3
Omega
6
DTFT x[4n]
0
−3 −2 −1 0 1 2 3
Omega
(0.1n)2
cos( π2 n)e− 2 , |n| ≤ 50
x[n] =
0, otherwise
65
P4.58
12
10
DTFT x[n]
8
6
4
2
−3 −2 −1 0 1 2 3
Omega
12
10
DTFT x[2n]
8
6
4
2
−3 −2 −1 0 1 2 3
Omega
6
DTFT x[4n]
0
−3 −2 −1 0 1 2 3
Omega
ω2
3π 3π e− 2
X(jω) = π δ(ω − ) + δ(ω + ) ∗ √
2 2 2π
√ −(ω− 3π )2 −(ω+ 3π )2
2 2
= 2π 3 e 2 +e 2
66
P4.59(a)
5
X(jω)
−8 −6 −4 −2 0 2 4 6 8
ω
In parts (b)-(d), we compare X(jω) to the FT of the sampled signal, x[n] = x(nTs ), for several sam-
FT
pling intervals. Let x[n] ←−−−→ Xδ (jω) be the FT of the sampled version of x(t). Use MATLAB to
numerically determine Xδ (jω) by evaluating
25
Xδ (jω) = x[n]e−jωTs
n=−25
at 500 values of ω on the interval −3π < ω < 3π. In each case, compare X(jω) and Xδ (jω) and explain
any differences.
25
Xδ (jω) = x[0] + 2 x[n] cos(ωnTs )
n=1
25
= 1+2 x[n] cos(ωnTs )
n=1
Aside from the magnitude difference of T1s , for each Ts , X(jω) and Xδ (jω) are different within [−3π, 3π]
only when the sampling period is large enough to cause noticeable aliasing. It is obvious that the worst
aliasing occurs when Ts = 12 .
(b) Ts = 13
(c) Ts = 25
67
1
(d) Ts = 2
P4.59(b)
3
Xd1(jω)
−8 −6 −4 −2 0 2 4 6 8
ω
P4.59(c)
3
2
Xd2(jω)
−8 −6 −4 −2 0 2 4 6 8
ω
P4.59(d)
2.5
2
Xd3(jω)
1.5
1
0.5
−8 −6 −4 −2 0 2 4 6 8
ω
68
P4.60
15
10
N=32
0
−3 −2 −1 0 1 2 3
Omega
15
10
N=60
0
−3 −2 −1 0 1 2 3
Omega
15
10
N=120
0
−3 −2 −1 0 1 2 3
Omega
5
N=4000,M=100
0
0 2 4 6 8 10 12 14 16 18 20
ω:rad/s
P4.61(b)
6
5
N=4000,M=500
0
0 2 4 6 8 10 12 14 16 18 20
ω:rad/s
69
Figure P4.61. DTFT approximation to the FT, graphs of |X(ejΩ )| and N Ts |Y [k]|
P4.61(c)
6
5
N=4000,M=2500
0
0 2 4 6 8 10 12 14 16 18 20
ω:rad/s
P4.61(d)
6
5
N=16000,M=2500
0
9 9.5 10 10.5 11 11.5 12 12.5 13
ω:rad/s
Figure P4.61. DTFT approximation to the FT, graphs of |X(ejΩ )| and N Ts |Y [k]|
4.62. Use the MATLAB command fft to repeat Example 4.16. Also depict the DTFS approximation
and the underlying DTFT for M = 2001 and M=2005.
70
P4.62−1
1
0.8
|Y[k]:M=40
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Frequency(Hz)
0.5
|Y[k]:M=2000
0.4
0.3
0.2
0.1
0
0.34 0.36 0.38 0.4 0.42 0.44 0.46 0.48 0.5
Frequency(Hz)
P4.62−2
0.5
|Y[k]:M=2001
0.4
0.3
0.2
0.1
0
0.34 0.36 0.38 0.4 0.42 0.44 0.46 0.48 0.5
Frequency(Hz)
0.5
|Y[k]:M=2005
0.4
0.3
0.2
0.1
0
0.34 0.36 0.38 0.4 0.42 0.44 0.46 0.48 0.5
Frequency(Hz)
71
P4.62−3
0.5
|Y[k]:M=2010
0.4
0.3
0.2
0.1
0
0.34 0.36 0.38 0.4 0.42 0.44 0.46 0.48 0.5
Frequency(Hz)
ωa = 5π
2π
Ts < = 0.133
3ωa
choose:
Ts = 0.1
(b) Determine the minimum number of samples Mo so that the DTFS approximation consists of discrete-
valued impulses located at the frequency corresponding to each sinusoid.
2π
For a given Mo , the frequency interval for sampling the DTFS is Mo
2π
k1 = 2πTs
Mo
k1
Mo =
Ts
2π
k2 = 2π(0.8)Ts
Mo
k2
Mo =
0.8Ts
2π
k3 = 2π(1.1)Ts
Mo
k3
Mo =
1.1Ts
72
where k1 , k2 , k3 are integers.
0.5
0
0 0.5 1 1.5 2 2.5 3
Frequency(Hz)
1.5
|Y[k]:M=105
0.5
0
0 0.5 1 1.5 2 2.5 3
Frequency(Hz)
1.5
|Y[k]:M=108
0.5
0
0 0.5 1 1.5 2 2.5 3
Frequency(Hz)
Figure P4.63. Plots of (1/M )|Yδ (jω)| and |Y [k]| for the appropriate values of Ts and M
4.64. We desire to use the DTFS to approximate the FT of a continuous time signal x(t) on the band
−ωa < ω < ωa with resolution ωr and a maximum sampling interval in frequency of ∆ω. Find the
sampling interval Ts , number of samples M , and DTFS length N . You may assume that the signal is
effectively bandlimited to a frequency ωm for which |X(jωa )| ≥ 10|X(jω)|, ω > ωm . Plot the FT and
the DTFS approximation for each of the following cases using the MATLAB command fft.
We use Ts < 2π
ωm +ωa ; M≥ ωs
ωr ; N≥ ωs
∆ω to find the required Ts , M, N for part (a) and (b).
1, |t| < 1 3π 3π π
(a) x(t) = , ωa = 2 , ωr = 4 , and ∆ω = 8
0, otherwise
2 sin(ω)
X(jω) =
ω
We want :
sin(ω) 1
≤ for |ω| ≥ ωm
ω 15π
73
which gives
ωm = 15π
Hence:
2π
Ts < ≈ 0.12
15π + 3π
2
choose Ts = 0.1
M ≥ 26.67
choose M = 28
N ≥ 160
choose N = 160
2
1 − t2
(b) x(t) = 2π e , ωa = 3, ωr = 12 , and ∆ω = 1
8
1 ω2
X(jω) = √ e− 2
2π
We want :
ω2 1 −9
e− 2 ≤ e 2
10
which gives
ωm = 3.69
Hence:
Ts < 0.939
choose Ts = 0.9
M ≥ 3.49
choose M =4
N ≥ 55.85
choose N = 56
π π
(c) x(t) = cos(20πt) + cos(21πt), ωa = 40π, ωr = 3, and ∆ω = 10
ωs = 2ωa = 80π
X(jω) = π (δ(ω − 20π) + δ(ω + 20π))
Hence:
2π
Ts < = 0.0167
3ωa
choose Ts = 0.01
M ≥ 600
choose M = 600
choose N = M = 600
74
π
(d) Repeat case (c) using ωr = 10 .
Hint: Be sure to sample the pulses in (a) and (b) symmetrically about t = 0.
choose Ts = 0.01
M ≥ 2000
choose M = 2000
choose N = M = 2000
For (c) and (d), one needs to consider X(jω) ∗ Wδ (jω), where
−jωTs ( M2−1 ) sin(M ωT
2 )
s
Wδ (jω) = e
sin( ωT
2 )
s
P4.64(a)
2.5
2
Part(a):|Y(jω)|
1.5
0.5
0
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
Freq(Hz)
P4.64(b)
0.4
Part(b):|Y(jω)|
0.3
0.2
0.1
0
−0.5 −0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4 0.5
Freq(Hz)
75
P4.64(c)
0.5
0.4
Part(c):|Y[k]|
0.3
0.2
0.1
0
8 8.5 9 9.5 10 10.5 11 11.5 12 12.5 13
Freq(Hz)
P4.64(d)
0.5
0.4
Part(d):|Y[k]|
0.3
0.2
0.1
0
9.5 10 10.5 11
Freq(Hz)
4.65. The overlap and save method for linear filtering is discussed in Problem 4.54. Write a MATLAB
m-file that implements the overlap and save method using fft to evaluate the convolution y[n] = h[n]∗x[n]
on 0 ≤ n < L for the following signals.
(a) h[n] = 15 (u[n] − u[n − 5]), x[n] = cos( π6 n), L = 30
M = 5
L = 30
N = 34
M = 5
L = 20
N = 24
76
P4.65(a)
0.6
0.4
0.2
y[n]
0
−0.2
−0.4
−0.6
0 5 10 15 20 25
n
P4.65(b)
0.35
0.3
0.25
y[n]
0.2
0.15
0.1
0.05
0
0 2 4 6 8 10 12 14 16 18
n
4.66. Plot the ratio of the number of multiplies in the direct method for computing the DTFS coeffi-
cients to that of the FFT approach when N = 2p for p = 2, 3, 4, . . . 16.
77
P4.66 : #multdirect/#multfft
4000
3500
3000
Number of multiplications
2500
2000
1500
1000
500
0
2 4 6 8 10 12 14 16
p : N=2p
4.67. In this experiment we investigate evaluation of the time-bandwidth product with the DTFS. Let
FT
x(t) ←−−−→ X(jω).
(a) Use the Riemann sum approximation to an integral
b
mb
f (u)du ≈ f (m∆u)∆u
a m=ma
to show that
∞ 12
t2 |x(t)|2 dt
Td = −∞
∞
−∞
|x(t)|2 dt
M 12
n=−M n |x[n]|
2 2
≈ Ts M
n=−M |x[n]|
2
provided x[n] = x(nTs ) represents the samples of x(t) and x(nTs ) ≈ 0 for |n| > M .
By setting t = nTs , dt ≈ ∆t = Ts , so
∞
M
t2 |x(t)|2 dt ≈ (nTs )2 |x(nTs )|2 Ts
−∞ n=−M
M
= Ts3 n2 |x[n]|2
n=−M
78
similarly
∞
M
|x(t)|2 dt ≈ Ts |x[n]|2
−∞ n=−M
Therefore
M 12
n=−M n |x[n]|
2 2
Td ≈ Ts M
n=−M |x[n]|
2
(b) Use the DTFS approximation to the FT and the Riemann sum approximation to an integral to show
that
∞ 1
−∞
ω 2 |X(jω)|2 dω 2
Bw = ∞
−∞
|X(jω)|2 dω
M 1
k=−M |k| |X[k]|
2 2 2
ωs
≈ M
k=−M |X[k]|
2M + 1 2
2π
DT F S; 2M +1
where x[n] ←−−
−−→ X[k], ωs = 2π
Ts is the sampling frequency, and X(jk 2Mωs+1 ) ≈ 0 for |k| > M .
ωs
ωk = k
2M + 1
hence
ωs
dω ≈ ∆ω =
2M + 1
1 ωs
X[k] = X(jk )
(2M + 1)Ts 2M + 1
∞ 3 M
ωs
ω 2 |X(jω)|2 dω = k 2 |X[k]|2
−∞ 2M + 1
k=−M
∞
M
ωs
|X(jω)|2 dω = |X[k]|2
−∞ 2M + 1
k=−M
therefore
M 12
k=−M |k| |X[k]|
2 2
ωs
Bw ≈ M
k=−M |X[k]|
2M + 1 2
(c) Use the result from (a) and (b) and Eq. (3.65) to show that the time-bandwidth product computed
using the DTFS approximation satisfies
M 12 M 12
n=−M n |x[n]| k=−M |k| |X[k]|
2 2 2 2
2M + 1
M M ≥
n=−M |x[n]| k=−M |X[k]|
2 2 4π
M 12 M 12
n=−M n |x[n]| k=−M |k| |X[k]|
2 2 2 2
Ts ωs
Note Td Bw ≈ M M
n=−M |x[n]| k=−M |X[k]|
2M + 1 2 2
79
Since Td Bw ≥ 12 , and Ts ωs
2M +1 = 2π
2M +1 , we have
M 12 M 12
n=−M n |x[n]| k=−M |k| |X[k]|
2 2 2 2
2M + 1
M M ≥
n=−M |x[n]| k=−M |X[k]|
2 2 4π
(d) Repeat Computer Experiment 3.115 to demonstrate that the bound in (c) is satisfied and that
Gaussian pulses satisfy the bound with equality.
P4.67(d) : o = (2M+1)/(4π)
6000
4000 bound
Product
2000
0
0 100 200 300 400 500 600 700 800
M : rectangular pulse
800
600
Product
400
200
0
0 100 200 300 400 500 600 700 800
M : raised cosine
150
100
Product
50
0
0 100 200 300 400 500 600 700 800
M : Gaussian pulse
80
CHAPTER 5
Additional Problems
− (1+ka)Ac
−
Figure 1
−
Ac
Figure 2
Typically, a DSB-SC signal exhibits phase reversals. No such reversals are exhibited in
Fig. 2 because the modulating signal m(t) is nonnegative for all time t.
1
5.18 The AM signal is defined by
s ( t ) = A c ( 1 + k a m ( t ) ) cos ( ω c t )
where A c cos ( ω c t ) is the carrier and ka is a constant. We are given ωc = 2π x 105 rad/sec;
that is, fc = 100 kHz.
3
(a) m ( t ) = A 0 cos ( 2π × 10 t )
3
ω 0 = 2π × 10 rad/sec
f c = 1 kHz
The frequency components of s(t) for positive frequencies are:
f 0 = 100 kHz
f c + f 0 = 100 + 1 = 101 kHz
f c – f 0 = 100 – 1 = 99 kHz
3 3
(b) m ( t ) = A 0 cos ( 2π × 10 t ) + A 0 cos ( 4π × 10 t )
which consists of two sinusoidal components with frequencies f0 = 1 kHz and f1 = 2
kHz. Hence, the frequency components of s(t) for positive frequencies are:
f c = 100 kHz
f c + f 0 = 100 + 1 = 101 kHz
f c – f 0 = 100 – 1 = 99 kHz
f c + f 1 = 100 + 2 = 102 kHz
f c – f 1 = 100 – 2 = 98 kHz
2
f c – f 1 = 100 – 1 = 99 kHz
(e) For this part of the problem, we find use of the formulas:
2 1
cos θ = --- [ 1 + cos ( 2θ ) ]
2
2 1
sin θ = --- [ 1 – cos ( 2θ ) ]
2
Hence,
1 3 1 3
m ( t ) = --- [ 1 + cos ( 4π × 10 t ) ] + --- [ 1 – cos ( 8π × 10 t ) ]
2 2
1 3 1 3
= 1 + --- cos ( 4π × 10 t ) – --- cos ( 8π × 10 t )
2 2
which consists of dc component, and two sinusoidal components with f0 = 2 kHz and
f1 = 4 kHz. Correspondingly, the frequency components of s(t) for positive frequencies
are:
f c = 100 kHz
f c + f 0 = 100 + 2 = 102 kHz
f c – f 0 = 100 – 2 = 98 kHz
f c + f 1 = 100 + 4 = 104 kHz
f c – f 1 = 100 – 4 = 96 kHz
3
1 1
= --- cos θ + --- cos θ cos ( 2θ )
2 2
1 1 1 1
= --- cos θ + --- --- cos ( θ + 2θ ) + --- cos ( θ – 2θ )
2 2 2 2
1 3
= --- cos ( 3θ ) + --- cos θ
4 4
Hence,
2 3
m ( t ) = A 0 cos ( 2π × 10 t )
A0 3 3 A0 3
= ------ cos ( 6π × 10 t ) + --------- cos ( 2π × 10 t )
4 4
which consists of two sinusoidal components with frequencies f0 = 1 kHz and f1 = 3
kHz. The frequency components of s(t) are therefore:
f c = 100 kHz
f c + f 0 = 100 + 1 = 101 kHz
f c – f 0 = 100 – 1 = 99 kHz
f c + f 1 = 100 + 3 = 103 kHz
f c – f 1 = 100 – 3 = 97 kHz
Note: For negative frequencies, the frequency components of s(t) are the negative of
those for positive frequencies.
5.19 (a) For a square wave with equal mark-to-space ratio and frequency f0 = 500 Hz,
alternating between 0 and 1, has the frequency expansion (see Example 3.13 of the
text):
∑ m [ k ]e
jkω 0 t 2π
m(t ) = , ω 0 = ------
T
k=-∞
2 sin ( kω 0 T 0 ) 2π 2π π
where m [ k ] = -------------------------------
-, ω 0 T 0 = ------ ⋅ T 0 = ------ = ---
Tkω 0 T 4 2
That is,
4
∞
f 0 = 100 kHz
f 0 + 0.5 = 100.5 kHz
f 0 – 0.5 = 99.5 kHz
f 0 + 1.5 = 101.5 kHz
f 0 – 1.5 = 98.5 kHz
f 0 + 2.5 = 102.5 kHz
f 0 – 2.5 = 97.5 kHz
and so on.
(b) When the square modulating wave m(t) alternates between -1 and +1, the dc
component is zero. Nevertheless, the frequency components of the AM signal m(t)
remain the same as in part (a); the only difference is in the carrier amplitude.
Note: The frequency components for negative frequencies are the negative of those for
positive frequencies.
5.20 (a) For positive frequencies, the spectral content of the AM signal consists of the
following:
(b) For positive frequencies, the spectral content of the AM signal consists of the
following:
5
Note: For negative frequencies, the spectral contents of the AM signal s(t) are the negative
of those for positive frequencies.
5.22 Building on the solution to Problem 5.17, the frequency components of the DSB-Sc signal
for positive frequencies are as follows:
6
f c – f 0 = 99 kHz
f c + f 1 = 103 kHz
f c – f 1 = 97 kHz
Note: For negative frequencies, the frequency components of the DSB-SC signal are the
negative of those for positive frequencies.
5.23 Building on the solution for Problem 5.19, we find that the DSB-SC signal has the same
frequency content for both forms of the square wave described in parts (a) and (b), as
shown by:
• For positive frequencies, we have the frequency components 100.5, 99.5, 101.5, 98.5,
102.5, 97.5 kHz, and so on, with progressively decreasing amplitude.
• For negative frequencies, the frequency components are the negative of those for
positive frequencies.
Note: For negative frequencies, the spectral contents of the DSB-SC signal are the
negatives of those for positive frequencies.
5.25 Building on the solution to Problem 5.18, we may describe the frequency components of
SSB modulator for positive frequencies as follows:
7
(c) f c + f 0 = 103 kHz
f c – f 1 = 101 kHz
(a) f c – f 0 = 99 kHz
(b) f c – f 0 = 99 kHz
f c – f 1 = 98 kHz
(c) f c – f 0 = 97 kHz
f c – f 1 = 99 kHz
(d) f c – f 0 = 98 kHz
(e) f c – f 0 = 98 kHz
f c – f 1 = 96 kHz
(f) f c – f 0 = 99 kHz
f c – f 1 = 97 kHz
Note: For both (i) and (ii), the frequency contents of SSB modulated signal for negative
frequencies are the negative of the frequency contents for positive frequencies.
5.26 With the carrier suppressed, the frequency contents of the SSB signal are the same for
both square waves described under (a) and (b), as shown by (for positive frequencies):
(i) Upper sideband transmission: 100.5, 101.5, 102.5 kHz, and so on.
(ii) Lower sideband transmission: 99.5, 98.5, 97.5 kHz, and so on.
8
Note: For negative frequencies, the frequency components of the SSB signal are the
negative of those for positive frequencies.
(a) Upper sideband, occupying the band from 100.3 to 103.1 kHz
(b) Upper sideband, occupying the band from 100.05 to 115 kHz
(a) Lower sideband, occupying the band from 99.7 to 96.9 kHz
(b) Lower sideband, occupying the band from 99.5 to 85 kHz
Note: For negative frequencies, the spectrum contents of the SSB signal are the negative of
those for positive frequencies.
Magnitude
Carrier
f = ω/(2π), kHz
-2 0 2
Magnitude
Modulating
signal f = ω/(2π), kHz
-4 -2 0 2 4
Magnitude
Modulating
signal
Lower side frequency Lower side frequency for negative frequencies
for positive frequencies
Upper side frequency Carrier Carrier Upper side frequency for
for negative frequencies positive frequencies
f = (ω/2π), kHz
-6 -4 -2 0 2 4 6
We clearly see that this spectrum suffers from frequency overlap, with the lower side
frequency for negative frequencies coinciding with the carrier for positive frequencies;
similarly, for negative frequencies. This spectrum is therefore radically different from the
spectrum of a regular AM signal; hence, it is not possible to recover the modulating signal
using an envelope detector.
9
5.29 (a)
Magnitude
Modulating
signal
Lower side frequency Lower side frequency for negative frequencies
for positive frequencies
Upper side frequency Upper side frequency for
for negative frequencies positive frequencies
f = (ω/2π), kHz
-6 -4 -2 0 2 4 6
To extract the sinusoidal modulating signal of 4 kHz, the low-pass filter has a cutoff
frequency slightly in excess of 4 kHz. The resulting output therefore consists of the
desired sinusoidal modulating signal, plus a dc component that is undesired.
To suppress the dc component, we have to modify the coherent detector by passing the
detector output through a capacitor.
5.30 For a message bandwidth ωm = 2.5π x 103 rad/s and carrier frequency ωc = 2π x 103 rad/s,
the spectra of the message signal and double sideband-suppressed carrier (DSB-SC)
modulated signal may be depicted as follows:
|M(jω)|
M(0)
ω(103 rad/s)
-2π 0 2π
|S(jω)|
ω(103 rad/s)
-4.5π -2.5π -0.5π 0 0.5π 2.5π 4.5π
10
The important point to note from the picture depicted here is that there is a clear separation
between the sidebands lying in the negative frequency region and those in the positive
region. Consequently, when the DSB-SC modulated signal is applied to a coherent
detector, the resulting demodulated signal is a replica of the original message signal
except for a scale change.
When, however, the carrier frequency is reduced to ωc = 1.5π x 103 rad/s, the lower
sideband for negative frequencies overlaps the lower sideband for positive frequencies,
and the situation changes dramatically as depicted below:
|M(jω)|
M(0)
ω(103 rad/s)
-2π -π 0 π 2π
S(jω)
ω(103 rad/s)
-3.5π -1.5π 0 1.5π 3.5π
-0.5π 0.5π
|V(jω)|
ω(103 rad/s)
-2π 0 2π
The spectrum labeled V(jω) refers to the demodulated signal appearing at the output of the
coherent detector. Comparing this spectrum with the original message spectrum M(jω), we
now see that the modulation-demodulation process results in a message distortion.
11
s 2 ( t ) = A c ( 1 – k a m ( t ) ) cos ( ω c t )
Here it is assumed that the two modulators are identical, that is, they have the same
amplitude modulation sensitivity ka and the same carrier Accos(ωct). Subtracting s2(t)
from s1(t):
s ( t ) = s1 ( t ) – s2 ( t )
= A c ( 1 + k a m ( t ) ) cos ( ω c t ) – A c ( 1 – k a m ( t ) ) cos ( ω c t )
= 2k a A c m ( t ) cos ( ω c t )
which is the formula for a DSB-SC modulated signal. For this method of generating a
DSB-SC modulated signal to work satisfactorily, the two AM modulators must be
carefully matched.
where
– jωT 0 ⁄ 2
H ( jω ) = T 0 sinc ( ωT 0 ⁄ ( 2π ) )e
We are given
T 0 = 10µs
2π 5
ω 0 = ------ = 2π × 10 rad/s
10
Am
M ( jω ) = ------- [ δ ( jω – jω m ) + δ ( jω + jω m ) ]
2
A m = amplitude
3
ω m = 2π × 10 rad/s
2π
ω s = ------
Ts
With ω 0 = 100ω m , it follows that the effect of flat-top sampling is small enough to
approximate Eq. (1) as follows:
∞
1
S ( jω ) ≈ -----
Ts ∑ M ( j ( ω – kωs ) )
k=-∞
12
With ω s > 2ω m , the side frequencies of the modulated signal are as follows (for positive
frequencies)
k = 0: ωm
k = 1: ωs - ωm, ωs + ωm
k = 2: 2ωs - ωm, 2ωs + ωm
k = 3: 3ωs - ωm, 3ωs + ωm
and so on.
For negative frequencies, the side frequencies are the negative of those for positive
frequencies.
(b) For ωcT = 20π, use of the approximate formula of Eq. (2) is justified. The width of the
main lobe of the sinc function is 4π/T = ωc/5. The width of each sidelobe is ωc/10. We
may thus plot the magnitude spectrum of S(jω) as shown on the next page.
13
5.34 (a) The spectrum of each transmitted radar pulse is closely defined by Eq. (2) given in the
solution to Problem 5.33. The periodic transmission of each such pulse has the
equivalent effect of sampling this spectrum at a rate equal to the pulse repetition
frequency of the radar. Accordingly, we may express the spectrum of the transmitted
radar signal s(t) as follows:
∑ n
a δ ( ω – ω c – nω 0 ) for ω > 0
n
S ( jω ) ≈ 0 for ω = 0 (1)
∑ a n δ ( ω + ω c + nω 0 ) for ω < 0
n
where
ω 0 = fundamental frequency
2π
= ------
T0
and the coefficient an is defined by
T 1 Ac nT 1
a n = ------------ sin c ---------
2T 0 T0
where T1 is the pulse duration.
(b) The spectrum S(jω) defined in Eq. (1) is discrete in nature, consisting of a set of
impulse functions located at ω = +(ωc + nω0), where n = 0, +1, +2,... The envelope of
the magnitude spectrum |S(jω)| is therefore as shown on the next page.
14
T1Ac
2T0
15
5.36 The mixer produces an output signal of frequency equal to the sum or the difference
between its input signal frequencies. The range of sum- or difference-frequencies is from
100 kHz (representing the difference between input frequencies 1 MHz and 900 kHz) to
9.9 MHz (representing the sum of input frequencies 9 MHz and 900 kHz). The frequency
resolution is 100 kHz.
5.37 The basic similarity between full AM and PAM is that in both cases the envelope of the
modulated signal faithfully follows the original message (modulating) signal.
2
(b) g ( t ) = sin c ( 200t )
This signal may be viewed as the product of the sinc signal sinc(200t) with itself. Since
multiplication in the time domain corresponds to convolution in the frequency domain,
we find that the signal g(t) has a bandwidth twice that of the sinc pulse sinc(200t), that
is, 200 Hz and the Nyquist interval is 1/400 seconds.
2
(c) g ( t ) = sin c ( 200t ) + sin c ( 200t )
The bandwidth of g(t) is determined by its highest frequency component. With
sinc(200t) having a bandwidth of 100 Hz and sinc2(200t) having a bandwidth of 200
Hz, it follows that the bandwidth of g(t) is 200 Hz. Correspondingly, the Nyquist rate
of g(t) is 400 Hz and its Nyquist interval is 1/400 seconds.
There are 24 voice channels and 1 synchronizing pulse, so the time allotted to each
channel is
τ
T channel = ------ = 5µs
25
16
(b) If each voice signal is sampled at the Nyquist rate, the sampling rate would be twice
the highest frequency component 3.4 kHz, that is, 6.8 kHz. The sampling interval is
then
1
T s = ---------------------3-
6.8 × 10
= 147µs
Hence,
147
T channel = --------- = 6.68µs
25
5.40 (a) The bandwidth required for each single sideband modulated channel is 10 kHz. The
total bandwidth for 12 such channels is 12 x 10 = 120 kHz.
(b) The Nyquist rate for each channel is 2 x 10 = 20 kHz. For 12 TDM signals, the total
data rate is 12 x 20 = 240 kHz.
By using a sinc pulse whose amplitude varies in accordance with the modulating
signal, and with zero crossings at multiples of (1/240)ms, we would need a minimum
bandwidth of 120 kHz.
5.41 (a) The Nyquist rate for s1(t) and s2(t) is 160 Hz. Therefore, 2400
------------ must be greater than
R
2
160 Hz. Hence, the maximum value of R is 3.
(b) With R = 3, we may use the signal format shown in Fig. 1 to multiplex the signals s1(t)
and s2(t) into a new signal, and then multiplex s3(t), s4(t) and s5(t) markers for
synchronization:
Marker Marker
1 s
300
1 s
2400 Figure 1
s3 s4 s1 s3 s4 s2 s3 s4
. s3 s4
. s s .s s .s s .s s s3 s4 s1 s3 s4 s2
Time
3 4 3 4 3 4 3 4
(1/7200) s
. zero samples
17
Based on this signal format, we may develop the multiplexing system shown in Fig. 2.
2400 Hz 1 s 1 s
.
clock _.. 8 . 2400
delay
. 2400
delay
Marker Sampler s1(t) Sampler s2(t)
generator Figure 2
M s5(t)
U Sampler
. X
M Multiplexed
1 s s3(t) Sampler U
7200 . 1 s
7200 X
signal
delay delay
s4(t) Sampler
5.42 The Fourier transform provides a tool for displaying the spectral content of a continuous-
time signal. A continuous-wave (CW) modulated signal s(t) involves the multiplication of
a message signal m(t) by a sinusoidal carrier c(t) = Accos(ωct) in one form or another. The
CW modulated signal s(t) may be viewed as a mixture signal that involves, in one form or
another, the multiplication of m(t) by c(t). Multiplication in the time-domain is
transformed into the convolution of two spectra, namely, the Fourier transform M(jω) and
the Fourier transform C(jω). The Fourier transform C(jω) consists of a pair of impulses at
+ωc. Hence, the Fourier transform of the modulated signal, denoted by S(jω), contains a
component M(jω - jωc) for positive frequencies. For negative frequencies, we have the
image of this spectrum with respect to the vertical axis. The picture so portrayed teaches
us that the carrier frequency ωc must be greater than the highest frequency component of
the message spectrum M(jω). Moreover, given that this condition is satisfied, Fourier
analysis teaches us that recovery of the original message signal m(t) from the modulated
signal s(t) is indeed a practical reality. For example, we may use a product modulator
consisting of a product modulator followed by a low-pass filter. The product modulator,
supplied by a local carrier of frequency ωc, produces a replica of the original message
signal m(t) plus a new modulated signal with carrier frequency 2ωc. By designing the low-
pass filter to have a cutoff frequency slightly higher than the highest frequency of m(t),
recovery of m(t) except for a scaling factor is realized.
Consider next the case of pulse-amplitude modulation (PAM). The simplest form of PAM
consists of multiplying the message signal m(t) by a periodic train of uniformly spaced
impulse functions, with adjacent impulses being spaced Ts seconds apart. What we have
just described is the instantaneous form of sampling. Thus, the sampling process
represents another form of a mixture signal. The Fourier transform of the periodic pulse
train just described consists of a new uniformly spaced periodic train of impulses in the
frequency domain, with each pair of impulses spaced apart by 1/Ts hertz. As already
mentioned, multiplication of two time functions is transformed into the convolution of
18
their spectra in the frequency domain. Accordingly, Fourier analysis teaches us that there
will be no spectral overlap provided that the sampling frequency 1/Ts is not less than twice
the highest frequency component of the original message signal m(t). Hence, provided that
this condition is satisfied, the recovery of a replica of m(t) is indeed possible at the
receiver. This recovery may, for example, take the form of a low-pass interpolation filter
with a cutoff frequency just slightly greater than the highest frequency component of m(t).
Advanced Problems
19
(a) In amplitude modulation, the carrier frequency ωc is typically much larger than the
modulation frequency ωm. Hence, the frequency context of i0(t) may be depicted as
follows (showing only the positive frequency components so as to simplify the
presentation):
ωc
0 ωm 2ωm ωc-ωm ωc ωc+ωm 2ωc
(b) From this figure, we see that the desired AM component occupies a frequency band
extending from the lower side-frequency ωc - ωm to the upper side frequency ωc + ωm.
To extract this component, we need to pass the output of the nonlinear device, i0(t),
through a band-pass filter. The frequency specifications of this filter are as follows:
• Passband of a width slightly larger than 2ωm, centered on the carrier frequency ωc.
• Lower stopband, lying below the lower side-frequency ωc - ωm and thereby
suppressing the dc component as well as the frequency components ωm and 2ωm.
• Upper stopband, lying above the upper side-frequency ωc + ωm and thereby
suppressing the frequency component 2ωc.
5.44 (a) For the special case of an infinite unipolar sequence (binary sequence consisting of a
square wave of equal mark-to-space ratio), we have
1 2 2 2
m ( t ) = --- + --- cos ( ω 0 t ) + ------ cos ( 3ω 0 t ) + ------ cos ( 5ω 0 t ) + …
2 π 3π 5π
∞
1 2 1
= --- + --- ∑ ------------ cos ( ( 2k+1 )ω 0 t )
2 π 2k+1
k=0
where ω0 = 2πf0 = 2π(1/2T0) = π/T0. (See the solution to Problem 5.19). The resulting
00K signal is given by (assuming a sinusoidal carrier of unit amplitude and frequency
ωc)
s ( t ) = m ( t ) cos ( ω c t )
∞
1 2 1
= --- cos ( ω c t ) + --- ∑ ------------ cos ( ( 2k+1 )ω 0 t ) cos ( ω c t ) (1)
2 π 2k+1
k=0
20
m(t)
1.0
... ...
Figure 1
(b) For the BPSK signal, the binary sequence is represented in its polar nonreturn-to-zero
sequence with the following waveform:
m(t)
+1
-1
21
∞
4 1
m ( t ) = --- ∑ --------------- cos ( ( 2k + 1 )ω 0 t ) (3)
π 2k + 1
k=1
where ω0 = π/T0. The binary sequence of Eq. (3) differs from that of Eq. (1) in two
respects:
• It has no dc component
• It is scaled by a factor of 2.
The resulting BPSK signal is defined by (assuming a carrier of unit amplitude and
frequency ωc)
s ( t ) = m ( t ) cos ( ω c t )
∞
4 1
= --- ∑ --------------- cos ( ( 2k + 1 )ω 0 t ) cos ( ω c t )
π 2k + 1
k=1
∞
2 1
= --- ∑ --------------- [ cos ( ( ( 2k + 1 )ω 0 +ω c )t ) + cos ( ( ( 2k + 1 )ω 0 -ω c )t ) ] (4)
π 2k + 1
k=1
Figure 2
(c) The energy of the unipolar signal defined in Eq. (2) is given by
∞
1 T
--- ∫ s ( t ) dt = ∑
2 2
S(k ) (5)
T 0
k=-∞
The left-hand side of Eq. (5) yields
1 T 1 –T 0 ⁄ 2 –T 0 ⁄ 2 –T 0
E = --- ∫ s ( t ) dt = --------- ∫–T s ( t ) dt ∫ s ( t ) dt + ∫
2 2 2 2
s ( t ) dt
T 0 2T 0 0 –T 0 –T 0 ⁄ 2
1 –T 0
∫– T
2
= --------- ( 1 ) dt
2T 0 0⁄2
1
= --- (6)
2
The right-hand side of Eq. (5) yields, in light of Eq. (2), the energy
22
2
1 2 (2 ⁄ π)
- 1 + --- + ------ + …
E = --- + ----------------
1 1
2 2 9 25
( 2)
1 T0 ⁄ 2 T0 ⁄ 2 T0
∫– T ( – 1 ) dt + ∫ ( 1 ) dt + ∫
2 2 2
= --------- ( – 1 ) dt
2T 0 0 –T 0 ⁄ 2 –T 0 ⁄ 2
1 T T
= --------- -----0- + T 0 + -----0- = 1
2T 0 2 2
(d) To raise the energy of the unipolar signal to equal that of the polar nonreturn-to-zero
signal, the amplitude of the former signal has to be increased by the scale factor 2.
(e) Examining the OOK signal of Eq. (2), we see that it contains a carrier component in
addition to side frequencies, hence the similarity to an AM signal. On the other hand,
examining Eq. (4) for the BPSK signal, we see that it lacks a carrier component, hence
the similarity to a DSB-SC signal.
23
5.45 The multiplexed signal is
s ( t ) = A c m 1 ( t ) cos ( ω c t ) + A c m 2 ( t ) sin ( ω c t )
where m1(t) and m2(t) are the incoming message signals. Taking the Fourier transform of
s(t):
Ac
S ( jω ) = ------ [ M 1 ( jω – jω c ) + M 1 ( jω + jω c ) ]
2
Ac
+ ------ [ M 2 ( jω – jω c ) + M 2 ( jω + jω c ) ]
2j
FT FT
where m 1 ( t ) ↔ M 1 ( jω ) and m 2 ( t ) ↔ M 2 ( jω ) . With H(jω) denoting the transfer
function of the channel, the Fourier transform of the received signal is
R ( jω ) = H ( jω )S ( jω )
Ac
= ------ H ( jω ) [ M 1 ( jω – jω c ) + M 1 ( jω + jω c ) ]
2
Ac
+ ------ H ( jω ) [ M 2 ( jω – jω c ) + M 2 ( jω + jω c ) ]
2
FT
where r ( t ) ↔ R ( jω ) . To recover m1(t), we multiply the received signal r(t) by
cos(ωct) and then pass the resulting output through a low-pass filter with cutoff frequency
equal to the message bandwidth. The result of this processing is a signal with the spectrum
1
S 1 ( jω ) = --- ( R ( jω – jω c ) + R ( jω + jω c ) )
2
Ac
= ------ H ( jω – jω c ) [ M 1 ( jω – j2ω c ) + M 1 ( jω )
4
1 1
+ --- M 2 ( jω – j2ω c ) – --- M 2 ( jω ) ]
j j
Ac
+ ------ H ( jω – jω c ) [ M 1 ( jω ) + M 1 ( jω + j2ω c )
4
1 1
+ --- M 2 ( jω ) – --- M 2 ( jω + j2ω c ) ] (1)
j j
For a real channel, the condition
H ( jω c + jω ) = H * ( jω c – jω )
is equivalent to
H ( jω + jω c ) = H ( jω – jω c )
This equivalence follows from the fact that for a channel with real-value impulse response
h(t), we have H ( – jω ) = H * ( jω ) . Hence, substituting this condition into Eq. (1):
Ac
S 1 ( jω ) = ------ H ( jω – jω c )M 1 ( jω )
2
Ac
+ ------ H ( jω – jω c ) [ M 1 ( jω – j2ω c )
4
24
1
+ M 1 ( jω + j2ω c ) + --- M 2 ( jω – j2ω c )
j
1
– --- M 2 ( jω + j2ω c )
j
Passing the signal defined by S1(jω) through a low-pass filter of cutoff frequency equal to
the message bandwidth, ωm, we get an output whose Fourier transform is equal to
A
------c H ( jω – jω c )M 1 ( jω ) for – ω m ≤ ω ≤ ω m
2
Recognizing the band-pass nature of H(jω), we immediately see that the output so
obtained is indeed a replica of the original message signal m1(t).
Similarly, to recover m2(t), we multiply r(t) by sin(ωct) and then pass the resulting signal
through a low-pass filter. In this case, we get an output with a spectrum equal to
A
------c H ( jω – jω c )M 2 ( jω )
2
ω
-ωb -ωa 0 ωa ωb
25
|V1(jω)|
ωc- ωb
ωc+ ωb
ω
−ωc ωc
ωc+ ωa Figure 2
ωc- ωa
|V2(jω)|
ω
−ωc ωc
−ωc- ωb −ωc- ωa ωc+ ωa ωc+ ωb
|V3(jω)|
ω
−ωb+ ωa 0 ωb- ωa 2ωc+ 2ωb
|S(jω)|
ω
−ωb+ ωa 0 ωb- ωa
To find an expression for the scrambled voice signal s(t), we need to invoke the
Hilbert transform. Specifically, the Hilbert transform of m(t) is defined by
1 ∞ m(τ)
m̂ ( t ) = --- ∫ ------------ dτ
π –∞ t – τ
The m̂ ( t ) may be viewed as the convolution of m(t) with 1/(πt). The Fourier transform
of 1/(πt) is equal to -jsgn(ω), where
1 for ω > 0
sgn ( ω ) = 0 for ω = 0
– 1 for ω < 0
Hence,
M̂ ( jω ) = – j sgn ( ω )M ( jω )
26
Using this relation, it is a straightforward matter to show that the spectrum of s(t)
defined previously is the same as that of the following expression:
1 1
s ( t ) = --- m ( t ) cos ( ω b t ) + --- m̂ ( t ) sin ( ω b t )
4 4
(b) With s(t) as the input to the scrambler, the output of the first product modulator is
v 1 ( t ) = s ( t ) cos ( ω c t )
1 1
= --- m ( t ) cos ( ω b t ) cos ( ω c t ) + --- m̂ ( t ) sin ( ω b t ) cos ( ω c t )
4 4
1
= --- m ( t ) [ cos ( ω c t + ω b t ) + cos ( ω c t – ω b t ) ]
8
1
+ --- m̂ ( t ) [ sin ( ω c t + ω b t ) – sin ( ω c t – ω b t ) ]
8
The high-pass filter output is therefore
1 1
v 2 ( t ) = --- m ( t ) cos ( ( ω c + ω b )t ) + --- m̂ ( t ) sin ( ( ω c + ω b )t )
8 8
Correspondingly, the output of the second product modulator is
v 3 ( t ) = v 2 ( t ) cos ( ( ω c + ω b )t )
1 2 1
= --- m ( t ) cos ( ( ω c + ω b )t ) + --- m̂ ( t ) sin ( ( ω c + ω b )t ) cos ( ( ω c + ω b )t )
8 8
1
= ------ m ( t )
16
1 1
+ ------ m ( t ) cos ( 2 ( ( ω c + ω b )t ) ) + ------ m̂ ( t ) sin ( ( ω c + ω b )t )
16 16
The scrambler output is therefore
1
v 0 ( t ) = ------ m ( t )
16
which is a scaled version of the original message signal.
27
5.47 Consider a message signal m(t) whose frequency content lies inside the band
ω l ≤ ω ≤ ω m . Assuming that the carrier frequency ωc > ωm, we may describe the
spectrum of the SSB modulated signal s(t) (with only its upper sideband retained) as
follows:
|M(jω)|
ω
-ωm -ωl 0 ωl ωm
ω
-ωc - ωm -ωc 0 ωc ωc + ωm
Figure 1
-ωc - ωl ωc + ωl
To demodulate s(t), we apply it to the coherent detector of Fig. P5.47. Let v(t) denote the
output of the product modulator in this figure, and let v0(t) denote the output of the low-
pass filter. We may then describe the corresponding spectra of v(t) and v0(t) in graphical
forms as shown in Fig. 2.
|S(jω)|
ω
-ωc - ωm -ωc 0 ωc ωc + ωm
-ω c - ωl ωc + ωl
|V(jω)|
ω Figure 2
-2ωc - ωm -2ωc -ωm -ωl 0 ωl ωm 2ωc 2ωc + ωl
-2ωc - ωl 2ωc + ωm
From this figure we see that the product modulator output v(t) consists of two
components:
• A scaled version of the original message signal m(t)
• A new SSB modulated signal with carrier frequency 2ωc
28
The latter component is suppressed by the low-pass filter, leaving the original message
signal as the detector output as shown by the spectrum of Fig. 3.
|V0(jω)|
ω Figure 3
-ωm -ωl 0 ωl ωm
29
4
1
v′ i ( t ) = --- ∑ m k ( t ) [ cos ( α k-1 – α i-1 ) + cos ( β k-1 – β i-1 ) ]
2
k=1
The requirement on αk and βk is therefore
cos ( α k-1 – α i-1 ) + cos ( β k-1 – β i-1 ) = 2, i=k
0, i≠k
where (i,k) = 1,2,3,4.
5.49 Consider an incoming AM signal of bandwidth 10 kHz and carrier frequency ωc that lies
in the range (0.535 - 1.605) MHz. It is required to frequency translate this modulated
signal to a fixed band centered at 0.455 MHz. The problem is to determine the range of
tuning that must be provided in the local oscillator.
Let ωlocal denote the local oscillator frequency, which is required to satisfy the condition
6
ω c – ω local = 2π × 10 × 0.455 rad/s
or
f c – f local = 0.455 MHz
where both fc and flocal are expressed in MHz. That is,
f local = f c – 0.455
When fc = 0.535 MHz, flocal = 0.535 - 0.455 = 0.08 MHz.
When fc = 1.605 MHz, flocal = 1.605 - 0.455 = 1.15 MHz.
Thus the required range of tuning of the local oscillator is 0.08 - 1.15 MHz, independent
of the AM signal’s bandwidth.
5.50 Consider a periodic train of rectangular pulses, each of duration T0. Assuming that a pulse
of the train is centered on the origin, we may expand it as a Fourier series:
∞
∑
j2πn f s t
c(t ) = f s sin c ( n f s T 0 )e
n=-∞
where fs is the pulse repetition frequency and the amplitude of each rectangular pulse is
1/T0 (i.e., each pulse has unit area). The assumption that fsT0 >> 1 means that the impulse
functions in the spectrum of the periodic pulse train c(t) are well separated from each
other.
30
∞
∑
j2πn f s t
= f s sin c ( n f s T 0 )g ( t )e
n=-∞
Hence the Fourier transform of s(t) is given by
∞
S ( jω ) = ∑ f s sin c ( n f s T 0 )G ( jω – jnω s )
n=-∞
where ωs = 2πfs. Thus the spectrum of a naturally sampled signal consists of frequency-
shifted replicas of the message spectrum G(jω), with the nth replica being scaled in
amplitude by the factor fssinc(nfsT0), which decreases with increasing n.
(i) n = 1:
|S(ejΩ)|
... ...
Ω
-π + Ωc 0 Ωc π + Ωc
(ii) n = -1:
|S(ejΩ)|
... ...
Ω
-π - Ωc -Ωc 0 π - Ωc
31
(iii) n = 2
|S(ejΩ)|
2Ωc-π−Ωm 2Ωc-π+Ωm
... ...
Ω
0 2Ωc-π 2Ωc 2Ωc+π
(iv) n = -2
|S(ejΩ)|
−π-2Ωc+Ωm -2Ωc+Ωm
... ...
Ω
-π - 2Ωc -2Ωc 0 π - 2Ωc
The transmitter includes a band-pass digital filter designed to pass the spectral
bands centered on +Ωc and reject all other bands.
(b) Following the coherent detector described in Section 5.5 for demodulation of a DSB-
SC modulated signal of the continuous-time variety, we may postulate the scheme of
Fig. 1 for demodulation of the discrete-time DSB-SC modulated signal:
Figure 1
cos(Ωcn)
Here it is assumed that (1) the local oscillator supplying cos(Ωn) is synchronous with
the carrier generator used in the transmitter, and (2) the low-pass digital filter is
designed with a cutoff frequency slightly greater than Ωm.
32
Computer Experiments
%Problem 5.52
clear
fm = 1e3;
fc = 2e4;
mu = 0.75;
t = 1e-6:1e-6:0.1;
y = (1+mu*cos(2*pi*fm*t)).*cos(2*pi*fc*t);
figure(1)
plot(t,y);
xlim([0 0.002])
xlabel(’Time (s)’)
ylabel(’Amplitude’)
title(’AM Wave: fc = 2e4 Hz, fm = 1e3 Hz, \mu = 0.75’)
L = length(y);
Y = fft(y,L);
Y = fftshift(Y);
Ys = Y.*conj(Y);
f = 1e6/L*(-(L/2):L/2-1);
figure(2)
plot(f,Ys)
xlim([-0.5e5 0.5e5])
xlabel(’Frequency (Hz)’)
ylabel(’Power’)
title(’Spectrum AM Wave: fc = 2e4 Hz, fm = 1e3 Hz, \mu = 0.75’)
1.5
0.5
Amplitude
−0.5
−1
−1.5
Figure 1: Modulated Signal
−2
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (s) −3
x 10
33
9
x 10 Spectrum AM Wave: fc = 2e4 Hz, fm = 1e3 Hz, µ = 0.75
2.5
1.5
Power
0.5
0
−5 −4 −3 −2 −1 0 1 2 3 4 5
Figure 2: Spectrum of
Frequency (Hz) 4
x 10 modulated signal
%Problem 5.53
fo = 1;
t = 0:0.0001:5;
m = sawtooth(2*pi*fo*t,0.5);
figure(1)
plot(t,m)
xlabel(’Time (s)’)
ylabel(’Amplitude’)
title(’Triangular Wave 1 Hz’)
mu = 0.8;
y = (1+mu*m).*cos(2*pi*25*t);
figure(2);
plot(t,y);
xlim([0 2])
xlabel(’Time (s)’)
ylabel(’Amplitude’)
title(’Modulated Wave’)
figure(3)
L = length(y);
Y = fft(y,L);
Y = fftshift(Y);
Ys = abs(Y);
f = 1e4/L*(-(L/2):L/2-1);
plot(f,Ys)
34
xlim([-50 50])
xlabel(’Frequency (Hz)’)
ylabel(’Magnitude’)
title(’Spectrum AM Wave: fc = 25 Hz, fm = 1 Hz, \mu = 0.8’)
Triangular Wave 1 Hz
1
0.8
0.6
0.4
0.2
Amplitude
−0.2
−0.4
−0.6
−0.8
−1
0 0.5 1 1.5 2 2.5
Time (s)
3 3.5 4 4.5 5 (a) Figure 1: Waveform of
modulating signal
Modulated Wave
2
1.5
0.5
Amplitude
−0.5
−1
−1.5
(b) Figure 2: Modulated signal
−2
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (s)
35
x 10
4 Spectrum AM Wave: fc = 25 Hz, fm = 1 Hz, µ = 0.8
2.5
1.5
Magnitude
0.5
Figure 3
0
−50 −40 −30 −20 −10 0 10 20 30 40 50
Frequency (Hz)
5.54
x 10
4 Spectrum AM Wave: fc = 1 Hz, fm = 1 Hz, µ = 0.8
3
2.5 Carrier
2
Magnitude
Message Overlap
1.5
0.5
0
Figure 1
−20 −15 −10 −5 0 5 10 15 20
Frequency (Hz)
x 10
4 Spectrum AM Wave: fc = 2 Hz, fm = 1 Hz, µ = 0.8
3
2.5 Carrier
2
Magnitude
1.5
1
Message
0.5
0
−20 −15 −10 −5 0 5 10 15 20
Figure 2
Frequency (Hz)
36
%Problem 5.55
fo = 1;
t = 0:0.0001:5;
m = sawtooth(2*pi*fo*t,0.5);
figure(1)
plot(t,m)
xlabel(’Time (s)’)
ylabel(’Amplitude’)
title(’Triangular Wave 1 Hz’)
mu = 0.8;
y = m.*cos(2*pi*25*t);
figure(2);
plot(t,y);
xlim([0 2])
xlabel(’Time (s)’)
ylabel(’Amplitude’)
title(’DSSC Modulated Wave’)
figure(3)
L = length(y);
Y = fft(y,L);
Y = fftshift(Y);
Ys = abs(Y);
f = 1e4/L*(-(L/2):L/2-1);
plot(f,Ys)
xlim([-50 50])
xlabel(’Frequency (Hz)’)
ylabel(’Magnitude’)
title(’Spectrum of DSSC AM Wave: fc = 25 Hz, fm = 1 Hz, \mu = 0.8’)
37
DSSC Modulated Wave
1
0.8
0.6
0.4
0.2
Amplitude
−0.2
−0.4
−0.6
−0.8
(a) Figure 1: Modulated signal
−1
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (s)
10000
8000
Magnitude
6000
4000
2000
0
−50 −40 −30 −20 −10 0 10 20 30 40 50
(b) Figure 2: Spectrum of
Frequency (Hz)
modulated signal
38
%Problem 5.56
clear;clc;
wc = 0.5*pi;
res = 0.001;
Fs = 1;
sam = floor(1/(Fs*res));
t = 0:res:10-res;
m = sin(wc*t);
f = 1/res * ([0:1/(length(t)-1):1] - 0.5);
T = 0.5; %Pick pulse duration value (0.05, 0.1, 0.2, 0.3, 0.4, 0.5)
durInSam = floor(T/res); %number of samples in pulse
sm = zeros(size(t)); %Reserve vector for output waveform
y = fftshift(abs(fft(sm)));
figure(1)
subplot(2,1,1)
plot(t,sm);
xlabel(’Time (s)’)
ylabel(’Amplitude’)
title(’PAM Wave: T_0 = 0.5 s’)
subplot(2,1,2)
plot(f,y)
xlabel(’Frequency (Hz)’)
ylabel(’Amplitude’)
xlim([-10 10])
39
PAM Wave: T0 = 0.05 s
1
Amplitude 0.5
−0.5
−1
0 1 2 3 4 5 6 7 8 9 10
Time (s)
200
150
Amplitude
100
50
Figure 1: T0 = 0.05s
0
−50 −40 −30 −20 −10 0 10 20 30 40 50
Frequency (Hz)
0.5
Amplitude
−0.5
−1
0 1 2 3 4 5 6 7 8 9 10
Time (s)
350
300
250
Amplitude
200
150
100
50
0
−25 −20 −15 −10 −5 0 5 10 15 20 25
Figure 2: T0 = 0.1s
Frequency (Hz)
40
PAM Wave: T0 = 0.2 s
1
0.5
Amplitude
−0.5
−1
0 1 2 3 4 5 6 7 8 9 10
Time (s)
700
600
500
Amplitude
400
300
200
100
0 Figure 3: T0 = 0.2s
−15 −10 −5 0 5 10 15
Frequency (Hz)
0.5
Amplitude
−0.5
−1
0 1 2 3 4 5 6 7 8 9 10
Time (s)
1000
800
Amplitude
600
400
200
0
−15 −10 −5 0
Frequency (Hz)
5 10 15 Figure 4: T0 = 0.3s
41
PAM Wave: T0 = 0.4 s
1
0.5
Amplitude
−0.5
−1
0 1 2 3 4 5 6 7 8 9 10
Time (s)
1400
1200
1000
Amplitude
800
600
400
200
0
−10 −8 −6 −4 −2 0
Frequency (Hz)
2 4 6 8 10 Figure 5: T0 = 0.4s
0.5
Amplitude
−0.5
−1
0 1 2 3 4 5 6 7 8 9 10
Time (s)
2000
1500
Amplitude
1000
500
0
−10 −8 −6 −4 −2 0 2 4 6 8 10 Figure 6: T0 = 0.5s
Frequency (Hz)
42
%Problem 5.57
clear;clc;
res = 1e-6;
t = 0:res:0.01-res;
modf=1000;
m = sin(modf*2*pi*t);
r=[];
for i=1:num,
r = [r ones(1,samplesPerPulse) zeros(1,samplesPerT-samplesPerPulse)];
end
figure(1)
subplot(2,1,1)
y=r.*m;
plot(t,y)
title(’Naturally Sampled Waveform’)
xlabel(’Time (s)’)
ylabel(’Amplitude’)
subplot(2,1,2)
plot(t,y)
title(’Naturally Sampled Waveform’)
xlabel(’Time (s)’)
ylabel(’Amplitude’)
set(gca, ’xlim’, [0 0.001])
figure(2)
Fy = fftshift(abs(fft(y)));
f = 1/res * ([0:1/(length(t)-1):1]-0.5);
subplot(2,1,1)
plot(f,Fy)
title(’Spectrum of the Modulated Waveform’)
xlabel(’Frequency (Hz)’)
ylabel(’Magnitude’)
43
subplot(2,1,2)
plot(f,Fy)
title(’Spectrum of the Modulated Waveform’)
xlabel(’Frequency (Hz)’)
ylabel(’Magnitude’)
set(gca, ’xlim’, [-1e5 1e5])
0.5
Amplitude
−0.5
−1
0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
Time (s)
0.5
Amplitude
−0.5
−1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
(a) Figure 1
Time (s) x 10
−3
400
Magnitude
300
200
100
0
−5 −4 −3 −2 −1 0 1 2 3 4 5
Frequency (Hz) 5
x 10
Spectrum of the Modulated Waveform
500
400
Magnitude
300
200
100
0
−1 −0.8 −0.6 −0.4 −0.2 0
Frequency (Hz)
0.2 0.4 0.6 0.8
5
1 (b) Figure 2
x 10
44
Solutions to Additional Problems
6.26. A signal x(t) has Laplace transform X(s) as given below. Plot the poles and zeros in the s-plane
and determine the Fourier transform of x(t) without inverting X(s).
s2 +1
(a) X(s) = s2 +5s+6
(s + j)(s − j)
X(s) =
(s + 3)(s + 2)
zeros at: ±j
poles at: −3, −2
X(jω) = X(s)|s=jω
−ω 2 + 1
=
−ω 2 + 5jω + 6
Pole−Zero Map
1
0.8
0.6
0.4
0.2
Imag Axis
−0.2
−0.4
−0.6
−0.8
−1
−3.5 −3 −2.5 −2 −1.5 −1 −0.5 0
Real Axis
s2 −1
(b) X(s) = s2 +s+1
(s + 1)(s − 1)
X(s) =
(s + 0.5 − j 34 )(s + 0.5 + j 34 )
zeros at: ±1
1
√
−1 ± j 3
poles at:
2
X(jω) = X(s)|s=jω
−ω 2 − 1
=
−ω 2 + jω + 1
Pole−Zero Map
1
0.8
0.6
0.4
0.2
Imag Axis
−0.2
−0.4
−0.6
−0.8
−1
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
Real Axis
3(s − 10
3 )
X(s) =
(s − 4)(s − 2)
10
zero at:
3
poles at: 4, 2
X(jω) = X(s)|s=jω
1 2
= +
jω − 4 jω − 2
2
Pole−Zero Map
1
0.8
0.6
0.4
0.2
Imag Axis
−0.2
−0.4
−0.6
−0.8
−1
0 0.5 1 1.5 2 2.5 3 3.5 4
Real Axis
6.27. Determine the bilateral Laplace transform and ROC for the following signals:
∞
X(s) = x(t)e−st dt
−∞
∞
= e−t u(t + 2)e−st dt
−∞
∞
= e−t(1+s) dt
−2
2(1+s)
e
=
1+s
ROC: Re(s) > -1
3
X(s) = e−st dt
−∞
−3s
−e
=
s
ROC: Re(s) < 0
3
(c) x(t) = δ(t + 1)
∞
X(s) = δ(t + 1)e−st dt
−∞
s
= e
ROC: all s
∞
1 jt
X(s) = e − e−jt e−st dt
2j
0 ∞ ∞
1 t(j−s) 1 −t(j+s)
= e dt − e dt
2j 2j
0
0
1 −1 1
= −
2j j − s j + s
1
=
(1 + s2 )
ROC: Re(s) > 0
6.28. Determine the unilateral Laplace transform of the following signals using the defining equation:
∞
X(s) = x(t)e−st dt
−
0 ∞
= u(t − 2)e−st dt
−
0 ∞
= e−st dt
2
e−2s
=
s
∞
X(s) = u(t + 2)e−st dt
0−
∞
= e−st dt
0−
1
=
s
4
∞
X(s) = e−2t u(t + 1)e−st dt
0−
∞
= e−t(s+2) dt
0−
1
=
s+2
∞
X(s) = e2t u(−t + 2)e−st dt
0−
2
= et(2−s) dt
0−
e −1
2(2−s)
=
2−s
∞
1 jωo t
X(s) = e − e−jωo t e−st dt
0− 2j
∞ ∞
1 t(jωo −s) −t(jωo +s)
= e dt − e dt
2j 0− −
0
1 −1 1
= −
2j jωo − s jωo + s
ωo
=
s2 + ωo2
2
X(s) = e−st dt
0−
1 − e−2s
=
s
1 jπt
1
X(s) = e − e−jπt e−st dt
0− 2j
π(1 + e−s )
=
s2 + π 2
5
6.29. Use the basic Laplace transforms and the Laplace transform properties given in Tables D.1 and
D.2 to determine the unilateral Laplace transform of the following signals:
(a) x(t) = d
dt {te−t u(t)}
Lu 1
a(t) = te−t u(t) ←−−−→ A(s) =
(s + 1)2
d Lu s
x(t) = a(t) ←−−−→ X(s) =
dt (s + 1)2
Lu 1
a(t) = tu(t) ←−−−→ A(s) =
s2
Lu s
b(t) = cos(2πt)u(t) ←−−−→
s2 + 4π 2
Lu
x(t) = a(t) ∗ b(t) ←−−−→ X(s) = A(s)B(s)
1
X(s) =
s (s + 4π 2 )
2 2
Lu 1
a(t) = tu(t) ←−−−→ A(s) =
s2
Lu d −2
b(t) = −ta(t) ←−−−→ B(s) = A(s) = 3
ds s
Lu d 6
x(t) = −tb(t) ←−−−→ X(s) = B(s) = 4
ds s
Lu 1
a(t) = u(t) ←−−−→ A(s) =
s
Lu e−s
b(t) = a(t − 1) ←−−−→ B(s) =
s
Lu 1
−2t
c(t) = e u(t) ←−−−→ C(s) =
s+2
Lu e−(s+2)
d(t) = e−2 c(t − 1) ←−−−→ D(s) =
s+2
Lu
x(t) = b(t) ∗ d(t) ←−−−→ X(s) = B(s)D(s)
e−2(s+1)
X(s) =
s(s + 2)
6
t
(e) x(t) = 0
e−3τ cos(2τ )dτ
Lu s+3
a(t) = e−3t cos(2t)u(t) ←−−−→ A(s) =
(s + 3)2 + 4
t 0−
Lu 1 A(s)
a(τ )dτ ←−−−→ a(τ )dτ +
−∞ s −∞ s
s+3
X(s) =
s((s + 3)2 + 4)
d
(f) x(t) = t dt (e−t cos(t)u(t))
Lu s+1
a(t) = e−t cos(t)u(t) ←−−−→ A(s) =
(s + 1)2 + 1
d Lu s(s + 1)
b(t) = a(t) ←−−−→ B(s) =
dt (s + 1)2 + 1
Lu d
x(t) = tb(t) ←−−−→ X(s) = − B(s)
ds
−s2 − 4s − 2
X(s) =
(s2 + 2s + 2)2
6.30. Use the basic Laplace transforms and the Laplace transform properties given in Tables D.1 and
D.2 to determine
the
time
signals corresponding to the following unilateral Laplace transforms:
1 1
(a) X(s) = s+2 s+3
1 −1
X(s) = +
s+2 s+3
x(t) = e−2t − e−3t u(t)
(b) X(s) = e−2s ds
d 1
(s+1)2
1 Lu
A(s) = 2
←−−−→ a(t) = te−t u(t)
(s + 1)
d Lu
B(s) = A(s) ←−−−→ b(t) = −ta(t) = −t2 e−t u(t)
ds
Lu
X(s) = e−2s B(s) ←−−−→ x(t) = b(t − 2) = −(t − 2)2 e−(t−2) u(t − 2)
1
(c) X(s) = (2s+1)2 +4
s Lu
B( ) ←−−−→ ab(at)
a
1 Lu 1 −t
2
←−−−→ e sin(2t)u(t)
(s + 1) + 4 2
1 −0.5t
x(t) = e sin(t)u(t)
4
7
2
d 1 1
(d) X(s) = s ds2 s2 +9 + s+3
1 1Lu
A(s) = ←−−−→ a(t) =
sin(3t)u(t)
s2 +9 3
d Lu t
B(s) = A(s) ←−−−→ b(t) = −ta(t) = − sin(3t)u(t)
ds 3
d Lu t2
C(s) = B(s) ←−−−→ c(t) = −tb(t) = sin(3t)u(t)
ds 3
Lu d 2t
D(s) = sC(s) ←−−−→ d(t) = c(t) − c(0− ) = sin(3t)u(t) + t2 cos(3t)u(t)
dt 3
1 Lu
E(s) = ←−−−→ e(t) = e−3t u(t)
s+3
2t
x(t) = e(t) + d(t) = e−3t + sin(3t) + t2 cos(3t) u(t)
3
Lu
6.31. Given the transform pair cos(2t)u(t) ←−−−→ X(s), determine the time signals corresponding to
the following Laplace transforms:
(a) (s + 1)X(s)
Lu d
sX(s) + X(s) ←−−−→ x(t) + x(t)
dt
= [−2 sin(2t) + cos(2t)] u(t)
(b) X(3s)
s Lu
X( ) ←−−−→ ax(at)
a
1 2
x(t) = cos( t)u(t)
3 3
(c) X(s + 2)
Lu
X(s + 2) ←−−−→ e−2t x(t)
x(t) = e−2t cos(2t)u(t)
t
1 Lu
B(s) = X(s) ←−−−→ x(τ )dτ
s −∞
t
Lu
←−−−→ cos(2τ )u(τ )dτ
−∞
t
Lu
←−−−→ cos(2τ )dτ
0
8
1 Lu
B(s) ←−−−→ sin(2t)
2
t
1 Lu 1
B(s) ←−−−→ sin(2τ )dτ
s 0 2
Lu 1 − cos(2t)
←−−−→ u(t)
4
(e) d
ds e−3s X(s)
Lu
A(s) = e−3s X(s) ←−−−→ a(t) = x(t − 3) = cos(2(t − 3))u(t − 3)
d Lu
B(s) = A(s) ←−−−→ b(t) = −ta(t) = −t cos(2(t − 3))u(t − 3)
ds
Lu
6.32. Given the transform pair x(t) ←−−−→ 2s
s2 +2 , where x(t) = 0 for t < 0, determine the Laplace
transform of the following time signals:
(a) x(3t)
Lu 1 s
x(3t) ←−−−→ X( )
3 3
2 3s
X(s) =
( 3s )2 + 2
6s
= 2
s + 18
(b) x(t − 2)
Lu 2s
x(t − 2) ←−−−→ e−2s X(s) = e−2s
s2+2
(c) x(t) ∗ d
dt x(t)
d Lu
b(t) = x(t) ←−−−→ B(s) = sX(s)
dt
Lu
y(t) = x(t) ∗ b(t) ←−−−→ Y (s) = B(s)X(s) = s[X(s)]2
2
2s
Y (s) = s 2
s +2
Lu 2(s + 1)
e−t x(t) ←−−−→ X(s + 1) =
(s + 1)2 + 2
9
(e) 2tx(t)
Lu d 4s2 − 8
2tx(t) ←−−−→ −2 X(s) = 2
ds (s + 2)2
t
(f) 0
x(3τ )dτ
t Lu X( 3s )
x(3τ )dτ ←−−−→ Y (s) =
0 3s
2
Y (s) =
s2 + 18
Lu
6.33. Use the s-domain shift property and the transform pair e−at u(t) ←−−−→ 1
s+a to derive the
unilateral Laplace transform of x(t) = e−at cos(ω1 t)u(t).
Lu 1
e−at u(t) ←−−−→
s+a
x(t) = e−at cos(ω1 t)u(t)
1 −at jω1 t
= e e + e−jω1 t u(t)
2
Using the s-domain shift property:
1 1 1
X(s) = +
2 (s − jω1 ) + a (s + jω1 ) + a
1 2(s + a)
=
2 (s + a)2 + ω12
(s + a)
=
(s + a)2 + ω12
(b) Scaling
z(t) = x(at)
10
∞
Z(s) = x(at)e−st dt
0
1 ∞
x(τ )e− a τ dτ
s
=
a 0
1 s
= X( )
a a
z(t) = x(t − τ )
∞
Z(s) = x(t − τ )e−st dt
0
Let m = t − τ
∞
Z(s) = x(m)e−s(m+τ ) dm
−τ
If x(t − τ )u(t) = x(t − τ )u(t − τ )
∞
Z(s) = x(m)e−sm e−sτ dm
0
−sτ
= e X(s)
(e) Convolution
11
(f) Differentiation in the s-domain
z(t) = −tx(t)
∞
Z(s) = −tx(t)e−st dt
0
∞
d
= x(t) (e−st ) dt
ds
0 ∞
d
= x(t)e−st dt
0 ds
∞
d
Assume: (.) dt and (.) are interchangeable.
0 ds
∞
d
Z(s) = x(t)e−st dt
ds 0
d
Z(s) = X(s)
ds
6.35. Determine the initial value x(0+ ) given the following Laplace transforms X(s):
1
(a) X(s) = s2 +5s−2
s
x(0+ ) = lim sX(s) = =0
s→∞ s2 + 5s − 2
s+2
(b) X(s) = s2 +2s−3
s2 + 2s
x(0+ ) = lim sX(s) = =1
s→∞ s2 + 2s − 3
2
(c) X(s) = e−2s s26s +s
+2s−2
6s3 + s2
x(0+ ) = lim sX(s) = e−2s =0
s→∞ s2+ 2s − 2
6.36. Determine the final value x(∞) given the following Laplace transforms X(s):
2
(a) X(s) = s22s +3
+5s+1
2s3 + 3s
x(∞) = lim sX(s) = =0
s→0 s2 + 5s + 1
s+2
(b) X(s) = s3 +2s2 +s
s+2
x(∞) = lim sX(s) = =2
s→0 s2 + 2s + 1
12
2
(c) X(s) = e−3s s(s+2)
2s +1
2
2s2 + 1 1
x(∞) = lim sX(s) = e−3s 2
=
s→0 (s + 2) 4
6.37. Use the method of partial fractions to find the time signals corresponding to the following uni-
lateral Laplace transforms:
s+3
(a) X(s) = s2 +3s+2
s+3 A B
X(s) = = +
s2 + 3s + 2 s+1 s+2
1 = A+B
3
2A + B=
2 −1
X(s) = +
s+1 s+2
x(t) = 2e−t − e−2t u(t)
2s2 +10s+11
(b) X(s) = s2 +5s+6
2s2 + 10s + 11 1
X(s) =
2
=2−
s + 5s + 6 (s + 2)(s + 3)
1 A B
= +
(s + 2)(s + 3) s+2 s+3
0 = A+B
1 =
3A + 2B
1 1
X(s) = 2 − +
s+2 s+3
x(t) = 2δ(t) + e−3t − e−2t u(t)
2s−1
(c) X(s) = s2 +2s+1
2s − 1 A B
X(s) = = +
s2 + 2s + 1 s + 1 (s + 1)2
2 = A
−1 = A+B
x(t) = 2e−t − 3te−t u(t)
5s+4
(d) X(s) = s3 +3s2 +2s
5s + 4 A B C
X(s) = = + +
s3 + 3s2 + 2s s s+2 s+1
13
0 = A+B+C
5 = 3A + B + 2C
4
2A =
2 −3 1
X(s) = + +
s s+2 s+1
x(t) = 2 − 3e−2t + e−t u(t)
s2 −3
(e) X(s) = (s+2)(s2 +2s+1)
s2 − 3 A B C
X(s) = = + +
(s + 2)(s2 + 2s + 1) s + 2 s + 1 (s + 1)2
1 = A+B
0 = 2A + 3B + C
−3 = A + 2B + 2C
1 −2
X(s) = +
s + 2 (s + 1)2
x(t) = e−2t − 2te−t u(t)
3s+2
(f) X(s) = s2 +2s+10
3s + 2 3(s + 1) − 1
X(s) = =
s2 + 2s + 10 (s + 1)2 + 32
1 −t
x(t) = 3e−t cos(3t) − e sin(3t) u(t)
3
4s2 +8s+10
(g) X(s) = (s+2)(s2 +2s+5)
2 2(s + 1) −2
X(s) = + +
s + 2 (s + 1)2 + 22 (s + 1)2 + 22
x(t) = 2e−2t + 2e−t cos(2t) − e−t sin(2t) u(t)
3s2 +10s+10
(h) X(s) = (s+2)(s2 +6s+10)
3s2 + 10s + 10 A Bs + C
X(s) = = +
(s + 2)(s2 + 6s + 10) s + 2 s2 + 6s + 10
3 = A+B
10 = 6A + 2B + C
10 = 10A + 2C
1 2(s + 3) 6
X(s) = + −
s + 2 (s + 3) + 1 (s + 3)2 + 1
2
−2t
x(t) = e + 2e−3t cos(t) − 6e−3t sin(t) u(t)
14
2s2 +11s+16+e−2s
(i) X(s) = s2 +5s+6
6.38. Determine the forced and natural responses for the LTI systems described by the following dif-
ferential equations with the specified input and initial conditions:
d
(a) dt y(t) + 10y(t) = 10x(t), y(0− ) = 1, x(t) = u(t)
1
X(s) =
s
Y (s)(s + 10) = 10X(s) + y(0− )
10X(s)
Y f (s) =
s + 10
10
=
s(s + 10)
1 −1
= +
s s + 10
y f (t) = 1 − e−10t u(t)
y(0− )
Y n (s) =
s + 10
y n (t) = e−10t u(t)
(b) d2 d
y(t) + 6y(t) = −4x(t) − 3 dt
d
x(t), y(0− ) = −1, d = 5, x(t) = e−t u(t)
dt2 y(t) + 5 dt dt y(t) t=0−
1
Y (s)(s2 + 5s + 6) − 5 + s + 5 = (−4 − 3s)
s+1
−1 s
Y (s) = +
(s + 1)(s + 2)(s + 3) (s + 2)(s + 3)
= Y f (s) + Y n (s)
−0.5 −2 2.5
Y f (s) = + +
s+1 s+2 s+3
y f (t) = −0.5e−t − 2e−2t + 2.5e−3t u(t)
−2 3
Y n (s) = +
s+2 s+3
y n (t) = −2e−2t + 3e−3t u(t)
(c) d2
+ y(t) = 8x(t), y(0− ) = 0, d = 2, x(t) = e−t u(t)
dt2 y(t) dt y(t) t=0−
Y (s)(s2 + 1) = 8X(s) + 2
15
4 4 4s
Y f (s) = + 2 − 2
s+1 s +1 s +1
y f (t) = 4 e−t + sin(t) − cos(t) u(t)
2
Y n (s) = 2
s +1
y n (t) = 2 sin(t)u(t)
(d) d2 d d
y(0− ) = 2, d
dt2 y(t) + 2 dt y(t) + 5y(t) = dt x(t), dt y(t) t=0− = 0, x(t) = u(t)
6.39. Use Laplace transform circuit models to determine the current y(t) in the circuit of Fig. P6.39
assuming normalized values R = 1Ω and L = 12 H for the specified inputs. The current through the
inductor at time t = 0− is 2 A.
2 2
Y (s) = +
(s + 1)(s + 2) s + 2
2 2 2
= − +
s+1 s+2 s+2
2
=
s+1
y(t) = 2e−t u(t)
2s 2
Y (s) = +
(s2 + 1)(s + 2) s + 2
16
2 2s + 1 2 2
= 2
− +
5 s +1 s+2 s+2
4 s 2 1 1
= + +
5 s2 + 1 5 s2 + 1 5 s+2
1
y(t) = 4 cos(t) + 2 sin(t) + e−2t u(t)
5
6.40. The circuit in Fig. P6.40 represents a system with input x(t) and output y(t). Determine the
forced response and the natural response of this system under the specified conditions.
Forced Response:
1
X(s) = RI(s) + Y (f ) (s) + I(s)
SC
but
Y (f ) (s)
I(s) =
sL
Y (f ) (s) 1 Y (f ) (s)
X(s) = R + Y (f ) (s) +
sL SC sL
s CLX(s) = sRCY (s) + s CLY (s) + Y (f ) (s)
2 (f ) 2 (f )
X(s)s2 CL
Y (f ) (s) =
s2 CL + sRC + 1
Natural Response:
1
0 = RI(s) + Y (n) (s) + Ic (s)
SC
iL (0− ) Y (n) (s) iL (0− )
I(s) = IL (s) + = +
s sL s
Y (n) (s) iL (0− )
Ic (s) = I(s) + Cvc (0− ) = + + Cvc (0− )
sL s
So:
(n)
RiL (0− ) Y (n) (s) −
RYsL
(s)
+ s + Y (n) (s) + 1
SC sL + iL (0s ) + Cvc (0− ) = 0
sCRY (n)
(s) + sRCLiL (0− ) + s2 CLY (n)
(s) + Y (n)
(s) + LiL (0− ) + sLCvc (0− ) = 0
(a) R = 3Ω, L = 1 H, C = 12 F, x(t) = u(t), current through the inductor at t = 0− is 2 A, and the
voltage across the capacitor at t = 0− is 1 V.
1
2s
Y (f ) (s) = 1 2
2s + 32 s +2
17
−1 2
= +
s+1 s+2
y (f ) (t) = 2e−2t − e−t u(t)
−( 32 s + 1)2 − 12 s
Y (n) (s) =
1 + 32 s + 12 s2
−(3s + 2)2 − s
=
s2 + 3s + 2
3 10
= −
s+1 s+2
y (n) (t) = 3e−t − 10e−2t u(t)
(b) R = 2Ω, L = 1 H, C = 15 F, x(t) = u(t), current through the inductor at t = 0− is 2 A, and the
voltage across the capacitor at t = 0− is 1 V.
1
5s
Y (f ) (s) = 1 2
5s + 25 s +1
s+1 −1 2
= +
(s + 1)2 + 22 2 (s + 1)2 + 22
−t 1 −t
y (f ) (t) = e cos(2t) − e sin(2t) u(t)
2
−( 25 s + 1)2 − 15 s
Y (n) (s) =
1 + 25 s + 15 s2
s+1 5 2
= −5 2 2
−
(s + 1) + 2 2 (s + 1)2 + 22
−t 5 −t
(n)
y (t) = −5e cos(2t) − e sin(2t) u(t)
2
6.41. Determine the bilateral Laplace transform and the corresponding ROC for the following signals:
(a) x(t) = e−t/2 u(t) + e−t u(t) + et u(−t)
∞
X(s) = x(t)e−st dt
−∞
∞ ∞ 0
= e−t/2 dt + e−t dt + et dt
0 0 −∞
1 1 1
= + −
s + 0.5 s + 1 s − 1
ROC: -0.5 < Re(s) < 1
s−1 1 1
X(s) = − + +
(s − 1)2 + 4 s + 1 s − 1
2
18
ROC: 0.5 < Re(s) < 1
L
a(t) ∗ b(t) ←−−−→ A(s)B(s)
s 1
X(s) = − 2
s +9 s+1
ROC: -1 < Re(s) < 0
d
−2t
(f) x(t) = et dt e u(−t)
L −1
a(t) = e−2t u(−t) ←−−−→ A(s) =
s+2
d L
b(t) = a(t) ←−−−→ B(s) = sA(s)
dt
L 1−s
x(t) = et b(t) ←−−−→ X(s) = B(s − 1) =
s+1
ROC: Re(s) < -1
6.42. Use the tables of transforms and properties to determine the time signals that correspond to the
following bilateral Laplace transforms:
19
1
(a) X(s) = e5s s+2 with ROC Re(s) < −2
(left-sided)
1 L
A(s) = ←−−−→ a(t) = −e−2t u(−t)
s+2
L
X(s) = e5s A(s) ←−−−→ x(t) = a(t + 5) = −e−2(t+5) u(−(t + 5))
d2 1
(b) X(s) = ds2 s−3 with ROC Re(s) > 3
(right-sided)
1 L
A(s) = ←−−−→ a(t) = e3t u(t)
s−3
d2 L
X(s) = 2 A(s) ←−−−→ x(t) = t2 e3t u(t)
ds
e−s e−2s
(c) X(s) = s 1
s2 − s2 − s with ROC Re(s) < 0
(left-sided)
d
x(t) = (−tu(−t) + tu(−t − 1) + u(−t − 2))
dt
x(t) = −u(−t) + u(−t − 1) − δ(t + 2)
e−3s
(d) X(s) = s−2 ds
d
s with ROC Re(s) > 0
(right-sided)
1 L
A(s) = ←−−−→ a(t) = u(t)
s
L
B(s) = e−3s A(s) ←−−−→ b(t) = a(t − 3) = u(t − 3)
d L
C(s) = B(s) ←−−−→ c(t) = −tb(t) = −tu(t − 3)
ds
t
1 L
D(s) = ←−−−→ d(t) = c(τ )dτ
s −∞
t
L 1
←−−−→ d(t) = − τ dτ = − (t2 − 9)
3 2
t
1 L
X(s) = D(s) ←−−−→ x(t) = d(τ )dτ
s −∞
L 1 t 2
←−−−→ x(t) = − (τ − 9)dτ
2 3
L 1 3 9
←−−−→ x(t) = − (t − 27) + (t − 3) u(t − 3)
6 2
20
6.43. Use the method of partial fractions to determine the time signals corresponding to the following
bilateral Laplace transforms:
(a) X(s) = s2−s−4
+3s+2
−3 2
X(s) = +
s+1 s+2
(left-sided)
x(t) = 3e−t − 2e−2t u(−t)
(right-sided)
x(t) = −3e−t + 2e−2t u(t)
(two sided)
x(t) = 3e−t u(−t) + 2e−2t u(t)
4s2 +8s+10
(b) X(s) = (s+2)(s2 +2s+5)
2 2(s + 1) −2
X(s) = + 2 2
+
s + 2 (s + 1) + 2 (s + 1)2 + 22
(left-sided)
x(t) = −2e−2t − 2e−t cos(2t) + e−t sin(2t) u(−t)
(right-sided)
x(t) = 2e−2t + 2e−t cos(2t) − e−t sin(2t) u(t)
21
(iii) with ROC −2 < Re(s) < −1
(two sided)
x(t) = 2e−2t u(t) + −2e−t cos(2t) + e−t sin(2t) u(−t)
5s+4
(c) X(s) = s2 +2s+1
5 1
X(s) = −
s + 1 (s + 1)2
(left-sided)
x(t) = −5e−t + te−t u(−t)
(right-sided)
x(t) = 5e−t − te−t u(t)
2s2 +2s−2
(d) X(s) = s2 −1
1 1
X(s) = 2+ +
s+1 s−1
(left-sided)
x(t) = 2δ(t) − e−t + et u(t)
(right-sided)
x(t) = 2δ(t) + e−t + et u(t)
(two sided)
x(t) = 2δ(t) + e−t u(t) − et u(−t)
22
6.44. Consider the RC-circuit depicted in Fig. P6.44.
(a) Find the transfer function assuming y1 (t) is the output. Plot the poles and zeros and characterize
the system as lowpass, highpass, or bandpass.
1 t
x(t) = i(t)R + i(τ )dτ
C −∞
1 t
y1 (t) = i(τ )dτ
C −∞
d 1
y1 (t) = i(t)
dt C
1
sY1 (s) = = I(s)
C
d d 1
x(t) = R i(t) + i(t)
dt dt C
1
sX(s) = I(s) Rs +
C
Y1 (s) 1 1
H(s) = = 1
X(s) RC s + RC
RC = 10−3 :
Pole−Zero Map
1
0.8
0.6
0.4
0.2
Imag Axis
−0.2
−0.4
−0.6
−0.8
−1
−1000 −800 −600 −400 −200 0
Real Axis
1
RC
H(jω) = 1
jω + RC
H(j0) = 1
23
H(j∞) = 0
y2 (t) = i(t)R
Y2 (s) = I(s)R
t
1
x(t) = y2 (t) + i(τ )dτ
C −∞
t
1
x(t) = i(t)R + i(τ )dτ
C −∞
d d 1
x(t) = R
i(t) + i(t)
dt dt C
1
sX(s) = I(s) sR +
C
s
H(s) = 1
s + RC
RC = 10−3 :
Pole−Zero Map
1
0.8
0.6
0.4
0.2
Imag Axis
−0.2
−0.4
−0.6
−0.8
−1
−1000 −900 −800 −700 −600 −500 −400 −300 −200 −100 0
Real Axis
24
jω
H(jω) = 1
jω + RC
H(j0) → 0
H(j∞) = 1
(c) Find the impulse responses for the systems in parts (a) and (b).
1 − RC
1
t
For part (a), h(t) = RC e u(t).
For part (b):
1 L
←−−−→ a(t) = e− RC t u(t)
1
A(s) = 1
s + RC
L d 1 − 1 t
H(s) = sA(s) ←−−−→ h(t) = a(t) = − e RC u(t) + δ(t)
dt RC
6.45. A system has transfer function H(s) as given below. Determine the impulse response assuming
(i) that the system is causal, and (ii) that the system is stable.
2
(a) H(s) = 2s s+2s−2
2 −1
1 1
H(s) = 2+ +
s+1 s−1
h(t) = 2δ(t) + e−t + et u(t)
2s−1
(b) H(s) = s2 +2s+1
2 −3
H(s) = +
s + 1 (s + 1)2
h(t) = 2e−t − 3te−t u(t)
25
(ii) system is stable
h(t) = 2e−t − 3te−t u(t)
s2 +5s−9
(c) H(s) = (s+1)(s2 −2s+10)
−1 2(s − 1) 3
H(s) = + +
s + 1 (s − 1)2 + 32 (s − 1)2 + 32
h(t) = −e−t + 2et cos(3t) + et sin(3t) u(t)
h(t) = −e−t u(t) − 2et cos(3t) + et sin(3t) u(−t)
6.46. A stable system has input x(t) and output y(t) as given below. Use Laplace transforms to de-
termine the transfer function and impulse response of the system.
(a) x(t) = e−t u(t), y(t) = e−2t cos(t)u(t)
1
X(s) =
s+1
s+2
Y (s) =
(s + 1)2 + 1
Y (s) s2 + 3s + 2
H(s) = = 2
X(s) s + 4s + 5
−(s + 2) −1
= 1+ +
(s + 2) + 1 (s + 2)2 + 1
2
h(t) = δ(t) − e−2t cos(t) + e−2t sin(t) u(t)
26
(b) x(t) = e−2t u(t), y(t) = −2e−t u(t) + 2e−3t u(t)
1
X(s) =
s+2
−2 2
Y (s) = +
s+1 s+3
Y (s) −4(s + 2)
H(s) = =
X(s) (s + 1)(s + 3)
−2 −2
= +
s+1 s+3
h(t) = −2e−t − 2e−3t u(t)
6.47. The relationship between the input x(t) and output y(t) of a causal system is described by the
differential equation given below. Use Laplace transforms to determine the transfer function and impulse
response of the system.
d
(a) dt y(t) + 10y(t) = 10x(t)
d2 d d
(b) dt2 y(t) + 5 dt y(t) + 6y(t) = x(t) + dt x(t)
6.48. Determine a differential equation description for a system with the following transfer function.
1
(a) H(s) = s(s+3)
27
Y (s) 1
H(s) = =
X(s) s(s + 3)
Y (s)(s2 + 3s) = X(s)
d2 d
2
y(t) + 3 y(t) = x(t)
dt dt
6s
(b) H(s) = s2 −2s+8
Y (s)(s2 − 2s + 8) = X(s)(6s)
d2 d d
2
y(t) − 2 y(t) + 8y(t) = 6 x(t)
dt dt dt
2(s−2)
(c) H(s) = (s+1)2 (s+3)
6.49. (a) Use the time-differentiation property to show that the transfer function of a LTI system is
expressed in terms of the state-variable description as shown by
d
q(t) = Aq(t) + bx(t)
dt
sQ(s) = AQ(s) + bX(s)
Q(s) = (sI − A)−1 bX(s)
y(t) = cq(t) + Dx(t)
Y (s)= cQ(s) + DX(s)
Y (s)
H(s) = = c(sI − A)−1 b + D
X(s)
(b) Determine the transfer function, impulse response, and differential equation descriptions for a stable
LTI system represented
by the following
state variable descriptions:
−1 1 3
(i) A = , b= , c = 1 2 , D = [0]
0 −2 −1
28
h(t) = 2e−t − e−2t u(t)
d2 d d
y(t) + 3 y(t) + y(t) = x(t) + 3x(t)
dt2 dt dt
1 2 1
(ii) A = , b= , c= 0 1 , D = [0]
1 −6 2
2s − 1
H(s) =
s2 + 5s − 8
2(s + 2.5) − 6
=
(s + 2.5)2 − 14.25
2(s + 2.5) −6
= +
(s + 2.5)2 − 14.25 (s + 2.5)2 − 14.25
−2.5t
√ 6 −2.5t
√
h(t) = 2e cos(t 14.25) − √ e sin(t 14.25) u(t)
14.25
d2 d d
y(t) + 5 y(t) − 8y(t) = 2 x(t) − x(t)
dt2 dt dt
6.50. Determine whether the systems described by the following transfer functions are(i) both stable
and causal, and (ii) whether a stable and causal inverse system exists:
(s+1)(s+2)
(a) H(s) = (s+1)(s 2 +2s+10)
s+2
H(s) =
s2 + 2s + 10
zero at: −2
poles at: −1 ± 3j
(i) All poles are in the LHP, and with ROC: Re(s) > -1, the system is both stable and causal.
(ii) All zeros are in the LHP, so a stable and causal inverse system exists.
s2 +2s−3
(b) H(s) = (s+3)(s2 +2s+5)
s−1
H(s) =
s2 + 2s + 5
zero at: 1
poles at: −1 ± 2j
(i) All poles are in the LHP, and with ROC: Re(s) > -1, the system is both stable and causal.
(ii) Not all zeros are in the LHP, so no stable and causal inverse system exists.
s2 −3s+2
(c) H(s) = (s+2)(s2 −2s+8)
s2 − 3s + 2
H(s) =
s3 + 4s + 16
29
zeros at: 1, 2
√
poles at: −2, 1 ± j 7
(i) Not all poles are in the LHP, so the system is not stable and causal.
(ii) No zeros are in the LHP, so no stable and causal inverse system exists.
s2 +2s
(d) H(s) = (s2 +3s−2)(s2 +s+2)
s2 + 2s
H(s) =
s4+ 4s3 + 3s2 + 4s − 4
zeros at: 0, −2
√
−3 ± 17 7
poles at: , −0.5 ± j
2 4
(i) Not all poles are in the LHP, so the system is not stable and causal.
(ii) There is a zero at s = 0, so no stable and causal inverse system exists.
6.51. The relationship between the input x(t) and output y(t) of a system is described by the differential
equation
d2 d d2 d
2
y(t) + y(t) + 5y(t) = 2
x(t) − 2 x(t) + x(t)
dt dt dt dt
(a) Does this system have a stable and causal inverse? why?
Y (s)(s2 + s + 5) = X(s)(s2 − 2s + 1)
(s − 1)2
H(s) =
s2 + s + 5
Since H(s) has zeros in the RHP, this system does not have a causal and stable inverse.
1
H inv (s) =
H(s)
s2 + s + 5
=
s2 − 2s + 1
Inverse system:
d2 d d2 d
2
y(t) − 2 y(t) + y(t) = 2
x(t) + x(t) + 5x(t)
dt dt dt dt
6.52. A stable, causal system has a rational transfer function H(s). The system satisfies the following
conditions: (i) The impulse response h(t) is real valued; (ii) H(s) has exactly two zeros, one of which
d2 d
is at s = 1 + j; (iii) The signal dt2 h(t) + 3 dt h(t) + 2h(t) contains an impulse and doublet of unknown
30
strengths and a unit amplitude step. Find H(s).
d2 d
h(t) + 3 h(t) + 2h(t) = bδ (1) (t) + aδ(t) + u(t)
dt2 dt
1
H(s) s2 + 3s + 2 = bs + a +
s
bs + a + 1s
H(s) =
s2 + 3s + 2
bs2 + as + 1
=
s(s + 2)(s + 1)
One zero is 1 + j and h(t) is real valued, which implies zeros occur in conjugate pairs, so the other zero
is 1 − j.
1 2
2s −s+1
H(s) =
s(s + 2)(s + 1)
6.53. Sketch the magnitude response for the systems described by the following transfer functions using
the relationship between the pole and zero locations and the jω axis in the s-plane.
s
(a) H(s) = s2 +2s+101
|ω|
|H(jω)| =
|j(ω − 10) + 1||j(ω + 10) + 1|
s2 +16
(b) H(s) = s+1
s−1
(c) H(s) = s+1
|jω − 1|
|H(jω)| =
|jω + 1|
31
Magnitude response for 6.53 (a)
0.8
0.6
0.4
0.2
0
−15 −10 −5 0 5 10 15
Magnitude response for 6.53 (b)
20
15
10
0
−15 −10 −5 0 5 10 15
Magnitude response for 6.53 (c)
2
1.5
0.5
0
−15 −10 −5 0 5 10 15
w
6.54. Sketch the phase response for the systems described by the following transfer functions using the
relationship between the pole and zero locations and the jω axis in the s-plane.
(a) H(s) = s−1
s+2
ω
H(jω) = π − arctan(ω) − arctan( )
2
s+1
(b) H(s) = s+2
ω
H(jω) = arctan(ω) − arctan( )
2
1
(c) H(s) = s2 +2s+17
1
H(s) =
(s + 1)2 + 42
1
H(jω) =
(jω + 1 + j4)(jω + 1 − j4)
H(jω) = − [arctan(ω + 4) + arctan(ω − 4)]
32
(d) H(s) = s2
H(jω) = −ω 2
H(jω) = π
6
0.2
5
Phase
Phase
4
0
3
2
−0.2
1
0 −0.4
−20 −10 0 10 20 −20 −10 0 10 20
ω ω
4
2
3.5
Phase
Phase
0
3
−2
2.5
−4 2
−20 −10 0 10 20 −20 −10 0 10 20
ω ω
6.55. Sketch the Bode diagrams for the systems described by the following transfer functions.
50
(a) H(s) = (s+1)(s+10)
(b) H(s) = s20(s+1)
2 (s+10)
5
(c) H(s) = (s+1) 3
s+2
(d) H(s) = s2 +s+100
s+2
(e) H(s) = s2 +10s+100
33
Bode Diagram
Gm = Inf, Pm = 78.63 deg (at 4.4561 rad/sec)
20
0
Magnitude (dB)
−20
−40
−60
0
−45
Phase (deg)
−90
−135
−180
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
−50
−100
−120
Phase (deg)
−150
−180
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
34
Bode Diagram
Gm = 4.0836 dB (at 1.7322 rad/sec), Pm = 17.37 deg (at 1.387 rad/sec)
20
0
Magnitude (dB)
−20
−40
−60
0
−90
Phase (deg)
−180
−270
−1 0 1
10 10 10
Frequency (rad/sec)
0
Magnitude (dB)
−10
−20
−30
−40
90
0
Phase (deg)
−90
−180
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
35
Bode Diagram
Gm = Inf, Pm = Inf
−15
−20
Magnitude (dB)
−25
−30
−35
−40
45
0
Phase (deg)
−45
−90
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
6.56. The output of a multipath system y(t) may be expressed in terms of the input x(t) as
where a and Tdif f respectively represent the relative strength and time delay of the second path.
(a) Find the transfer function of the multipath system.
(b) Express the transfer function of the inverse system as an infinite sum using the formula for summing
a geometric series.
1 1
H −1 (s) = =
H(s) 1 + ae−sTdif f
∞
n
= −ae−sTdif f
n=0
(c) Determine the impulse response of the inverse system. What condition must be satisfied for the
inverse system to be both stable and causal?
36
∞
n
hinv (t) = (−a) δ(t − nTdif f )
n=0
1
H inv (s) =
1 + ae−sTdif f
Use long division in the positive powers of esTdif f , i.e., divide 1 by ae−sTdif f + 1. This yields:
∞ n
1
H inv (s) = − − ensTdif f
n=1
a
∞ n
1
hinv (t) = − − δ(t + nTdif f )
n=1
a
6.57. In Section 2.12 we derived block-diagram descriptions for systems described by linear constant-
coefficient differential equations by rewriting the differential equation as an integral equation. Consider
the second-order system with the integral equation description
y(t) = −a1 y (1) (t) − a0 y (2) (t) + b2 x(t) + b1 x(1) (t) + b0 x(2) (t)
Recall that v (n) (t) is the n-fold integral of v(t) with respect to time. Use the integration property to take
the Laplace transform of the integral equation and derive the direct form I and II block diagrams for the
transfer function of this system.
x(t) y(t)
b1 −a1
b0 −a0
37
Figure P6.57. Direct Form I
By the properties of linear systems, H1 (s) can be interchanged with H2 (s), which leads to direct form II
after combining the integrators.
X(s) Y(s)
H1(s) H2(s)
X(s) Y(s)
H2(s) H1(s)
Figure P6.57. Properties of Linear Systems
x(t) y(t)
−a1 b1
−a0 b0
6.58. Prove the initial value theorem by assuming x(t) = 0 for t < 0 and taking theLaplace transform
of the Taylor series expansion of x(t) about t = 0+ .
Assume that there exists function f (t) such that x(t) = f (t)u(t). The Taylor series expansion of f (t) is
∞
f (n) (a)
f (t) = (t − a)n
n=0
n!
f (0+ ) f (0+ )
= f (0+ ) + (t − 0+ ) + (t − 0+ )2 + ...
1! 2!
Assuming the expansion of t is around a = 0+ . The Laplace transform for x(t) is thus:
f (0+ ) f (0+ )
x(t) = f (0+ )u(t) + (t − 0+ )u(t) + (t − 0+ )2 u(t) + ...
1! 2!
38
f (0+ ) f (0+ ) 2f (0+ )
X(s) = + − + ...
s s2 s3
f (0+ ) 2f (0+ )
sX(s) = f (0+ ) + − + ...
s s2
Thus:
lim sX(s) = f (0+ )
s→∞
6.59. The system with impulse response h(t) is causal and stable and has a rational transfer function.
Identify the conditions on the transfer function so that the system with impulse response g(t) is stable
and causal, where
d
(a) g(t) = dt h(t)
d L
g(t) = h(t) ←−−−→ G(s) = sH(s) − h(0− ) = sH(s)
dt
All poles of H(s) are in the left half plane, so no conditions are needed.
t
(b) g(t) = −∞ h(τ )dτ
t 0−
L 1 H(s) H(s)
g(t) = h(τ )dτ ←−−−→ G(s) = h(τ )dτ + =
−∞ s −∞ s s
H(s) must have at least one zero at s = 0 for the transfer function to be stable.
6.60. Use the continuous-time representation xδ (t) for the discrete-time signal x[n] introduced in Sec-
tion 4.4 to determine the Laplace transforms of the following discrete-time signals.
∞
∞
L
xδ (t) = x[n]δ(t − nTs ) ←−−−→ Xδ (s) = x[n]e−snTs
n=−∞ n=−∞
1, −2 ≤ n ≤ 2
(a) x[n] =
0, otherwise
∞
Xδ (s) = x[n]e−snTs
n=−∞
∞ n
1
= e−snTs
n=0
2
39
∞
n
1 −sTs
= e
n=0
2
1
= 1 −sTs
1− 2e
(c) x[n] = e−2t u(t)t=nT
∞
Xδ (s) = e−2nTs e−snTs
n=0
∞
n
= e−Ts (2+s)
n=0
1
=
1− e−Ts (2+s)
(a) Write r(t) = x(t) ∗ h(t). Express h(t) in terms of x(t). The system with impulse response h(t) is
called a matched filter for x(t).
let:
h(t) = x(−t)
∞
h(t) ∗ x(t) = h(τ )x(t − τ )dτ
−∞
∞
= x(−τ )x(t − τ )dτ
−∞
let γ = −τ
−∞
= − x(γ)x(t + γ)dγ
∞
∞
= x(γ)x(t + γ)dγ
−∞
(b) Use the result from part (a) to find the Laplace transform of r(t).
L
x(−t) ←−−−→ X(−s)
L
r(t) = x(t) ∗ x(−t) ←−−−→ R(s) = X(s)X(−s)
(c) If x(t) is real and X(s) has two poles, one of which is located at s = σp + jωp , determine the location
of all the poles of R(s).
Since x(t) is real, then the poles of X(s) are conjugate symmetric, thus s = σp ± jωp . Therefore the poles
of X(−s) are s = −σp ± jωp , which implies that the poles of R(s) are at s = σp ± jωp , − σp ± jωp .
40
6.62. Suppose a system has M poles at dk = αk + jβk and M zeros at ck = −αk + jβk . That is, the
pole and zero locations are symmetric about the jω-axis.
(a) Show that the magnitude response of any system that satisfies this condition is unity. Such a system
is termed an all-pass system since it passes all frequencies with unit gain.
M
k=1 (s − ck )
H(s) = M
k=1 (s − dk )
M
|jω − αk − jβk |
|H(jω)| = M
k=1
k=1 |j(ω − βk ) + αk |
M
(ω − βk )2 − αk2
|H(jω)| = M
k=1
k=1 (ω − βk )2 + αk2
H(s) = 1
s−α
(b) Evaluate the phase response of a single real pole-zero pair, that is, sketch the phase response of s+α
where α > 0.
s−α
H(s) =
s+α
jω − α
H(jω) =
jω + α
ω ω
H(jω) = π − arctan − arctan
α α
ω
H(jω) = π − 2 arctan
α
π 3π
For α = 1, then H(jα) = 2, and H(−jα) = 2 .
41
Plot of ∠ H(jω)
7
0
−10 −8 −6 −4 −2 0 2 4 6 8 10
ω
6.63. Consider the nonminimum phase system described by the transfer function
(s + 2)(s − 1)
H(s) =
(s + 4)(s + 3)(s + 5)
(a) Does this system have a stable and causal inverse system?
The zeros of H(s) : s = −2, 1. Since one of the zeros is in the right half plane, the inverse system can
not be stable and causal.
(b) Express H(s) as the product of a minimum phase system, Hmin (s), and an all-pass system, Hap (s)
containing a single pole and zero. (See Problem 6.62 for the definition of an all-pass system.)
(s + 2)(s − 1)
Hmin (s) =
(s + 4)(s + 3)(s + 5)
s−1
Hap (s) =
s+1
H(s) = Hmin (s)Hap (s)
inv inv
(c) Let Hmin (s) be the inverse system for Hmin (s). Find Hmin (s). Can it be both stable and causal?
inv
The poles of Hmin (s) are: s = −1, −2. All are in the left half plane, so hinv
min (t) can be both causal and
stable.
42
inv
(d) Sketch the magnitude response and phase response of the system H(s)Hmin (s).
inv s−1
H(s)Hmin (s) =
s+1
= Hap (s)
jω − 1
Hap (jω) =
jω + 1
|Hap (jω)| = 1
Hap (jω) = π − arctan(ω) − arctan(ω)
= π − 2 arctan(ω)
1.5
Magnitude
0.5
0
−10 −8 −6 −4 −2 0 2 4 6 8 10
5
Phase
0
−10 −8 −6 −4 −2 0 2 4 6 8 10
ω
43
ω
Hap (jω) = π − arctan
c
6.64. An N -th order lowpass Butterworth filter has squared magnitude response
1
|H(jω)|2 =
1 + (jω/jωc )2N
The Butterworth filter is said to be maximally flat because the first 2N derivatives of |H(jω)|2 are zero
at ω = 0. The cutoff frequency, defined as the value for which |H(jω)|2 = 1/2, is ω = ωc . Assuming the
impulse response is real, then the conjugate symmetry property of the Fourier transform may be used
to write |H(jω)|2 = H(jω)H ∗ (jω) = H(jω)H(−jω). Noting that H(s)|s=jω = H(jω), we conclude that
the Laplace transform of the Butterworth filter is characterized by the equation
1
H(s)H(−s) =
1 + (s/jωc )2N
(a) Find the poles and zeros of H(s)H(−s) and sketch them in the s-plane.
The roots of the denominator polynomial are located at the following points in the s-plane:
1
s = jωc (−1) 2N
(2k+N −1)
= ωc ejπ 2N for k = 0, 1, ..., 2N − 1
Assuming N = 3 and ωc = 1:
Pole−Zero Map
1
0.8
0.6
0.4
0.2
Imag Axis
−0.2
−0.4
−0.6
−0.8
−1
−1.5 −1 −0.5 0 0.5 1 1.5
Real Axis
(b) Choose the poles and zeros of H(s) so that the impulse response is both stable and causal. Note that
if sp is a pole or zero of H(s), then −sp is a pole or zero of H(−s).
From the graph in part (a), picking the poles in the left half plane makes the impulse response stable
44
and causal. This implies selecting the poles for k = 0, 1, ..., N − 1.
(c) Note that H(s)H(−s)|s=0 = 1. Find H(s) for N = 1 and N = 2.
For N = 1, the poles are at:
s0 = ωc
s1 = −ωc
which implies:
1
H(s) =
s + ωc
1
s0 = ωc ejπ 4
3
s1 = ωc ejπ 4
5
s2 = ωc ejπ 4
7
s3 = ωc ejπ 4
which implies:
1
H(s) = 3 5
(s − ωc ejπ 4 )(s − ωc ejπ 4 )
(d) Find the third-order differential equation that describes a Butterworth filter with cutoff frequency
ωc = 1. For N = 3, the 2N = 6 poles of H(s)H(−s) are located on a circle of unit radius with angular
spacing of 60 degrees. Hence the left half plane poles of H(s) are:
√
1 3
s1 = − +j
2 2
s2 = −1
√
1 3
s3 = − −j
2 2
1
H(s) = √ √
(s + 1)(s + + j 1
2
3
2 )(s − 1
2 −j 3
2 )
1
=
s3 + 2s2 + 2s + 1
Which implies
d3 d2 d
y(t) + 2 y(t) + 2 y(t) + y(t) = x(t)
dt3 dt2 dt
45
6.65. It is often convenient to change the cutoff frequency of a filter, or change a lowpass filter to a
highpass filter. Consider a system described by the transfer function
1
H(s) =
(s + 1)(s2 + s + 1)
(a) Find the poles and zeros and sketch the magnitude response of this system. Determine whether this
system is lowpass or highpass, and find the cutoff frequency (the value of ω for which |H(jω)| = 1/ (2).
√
−1 ± 3
poles at s : = −1,
2
−10
−20
−30
|H(jω)| (dB)
−40
−50
−60
−70
−10 −8 −6 −4 −2 0 2 4 6 8 10
ω rads/sec
(b) Perform the transformation of variables in which s is replaced by s/10 in H(s). Repeat part (a)
for the transformed system.
1
H(s) = s s2 s
( 10+ + 1)( 10 10 + 1)
√
poles at s : = −10, −5 ± 5
46
(b) Magnitude response of H(jω)
0
−5
−10
−15
|H(jω)| (dB)
−20
−25
−30
−35
−40
−40 −30 −20 −10 0 10 20 30 40
ω rads/sec
(c) Perform the transformation of variables in which s is replaced by 1/s in H(s). Repeat part (a)
for the transformed system.
1
H(s) =
( 1s + 1)( s12 + 1
s + 1)
√
−1 ± 3
poles at s : = −1,
2
Three zeros at s : = 0
47
(c) Magnitude response of H(jω)
0
−10
−20
−30
−40
|H(jω)| (dB)
−50
−60
−70
−80
−90
−100
−3 −2 −1 0 1 2 3
ω rads/sec
(d) Find the transformation that converts H(s) to a highpass system with cutoff frequency ω = 100.
Replace s by 100
s :
1
H(s) =
( 100
s + 1)( 100
s2 +
100
s + 1)
48
(d) Magnitude response of H(jω)
0
−10
−20
−30
−40
|H(jω)| (dB)
−50
−60
−70
−80
−90
−100
−200 −150 −100 −50 0 50 100 150 200
ω rads/sec
6.66. Use the MATLAB command roots to determine the poles and zeros of the following systems:
s2 +2
(a) H(s) = s3 +2s 2 −s+1
s3 +1
(b) H(s) = s4 +2s2 +1
4s2 +8s+10
(c) H(s) = 2s3 +8s2 +18s+20
P6.66 :
======= Part (a) :
———-
ans =
0 + 1.4142i
0 - 1.4142i
ans =
-2.5468
0.2734 + 0.5638i
0.2734 - 0.5638i
Part (b) :
49
———-
ans =
-1.0000
0.5000 + 0.8660i
0.5000 - 0.8660i
ans =
0.0000 + 1.0000i
0.0000 - 1.0000i
-0.0000 + 1.0000i
-0.0000 - 1.0000i
Part (c) :
———-
ans =
-1.0000 + 1.2247i
-1.0000 - 1.2247i
ans =
-1.0000 + 2.0000i
-1.0000 - 2.0000i
-2.0000
6.67. Use the MATLAB command pzmap to plot the poles and zeros for the following systems:
s3 +1
(a) H(s) = s4 +2s
2 +1
1 2 1
(b) A = , b= , c = 0 1 , D = [0]
1 −6 2
50
P6.67(a)
1.5
1 double
pole
0.5
Imag Axis
−0.5
−1 double
pole
−1.5
−1 −0.5 0 0.5
Real Axis
P6.67(b)
1
0.8
0.6
0.4
0.2
Imag Axis
−0.2
−0.4
−0.6
−0.8
−1
−7 −6 −5 −4 −3 −2 −1 0 1 2
Real Axis
6.68. Use the MATLAB command freqresp evaluate and plot the magnitude and phaseresponses for
51
Examples 6.23 and 6.24.
P6.68 : Ex 6.23
5
3
|H(w)|
−10 −8 −6 −4 −2 0 2 4 6 8 10
w:rad/s
P6.68 : Ex 6.24
3
2
arg(H(w)):rad
−1
−2
−10 −8 −6 −4 −2 0 2 4 6 8 10
w:rad/s
Figure P6.68. Magnitude and phase plot for Ex 6.23 & 6.24
6.69. Use the MATLAB command freqresp evaluate and plot the magnitude and phase responses for
Problem 6.53.
52
P6.69(a)
0.5
0.4
0.3
|H(w)|
0.2
0.1
0
−50 −40 −30 −20 −10 0 10 20 30 40 50
w:rad/s
1.5
0.5
< (H(w)):rad
−0.5
−1
−1.5
−50 −40 −30 −20 −10 0 10 20 30 40 50
w:rad/s
Figure P6.69. Magnitude and phase plot for Prob 6.53 (a)
P6.69(b)
50
40
30
|H(w)|
20
10
0
−50 −40 −30 −20 −10 0 10 20 30 40 50
w:rad/s
1.5
1
< (H(w)):rad
0.5
−0.5
−1
−1.5
Figure P6.69. Magnitude and phase plot for Prob 6.53 (b)
53
P6.69(c)
|H(w)| 1.5
0.5
−50 −40 −30 −20 −10 0 10 20 30 40 50
w:rad/s
2
< (H(w)):rad
−1
−2
Figure P6.69. Magnitude and phase plot for Prob 6.53 (c)
6.70. Use your knowledge of the effect of poles and zeros on the magnitude response to design systems
having the specified magnitude response.Place poles and zeros in the s-plane, and evaluate the corre-
sponding magnitude response using the MATLAB command freqresp. Repeat this process until you find
pole and zero locations that satisfy the specifications.
(a) Design a high-pass filter with two poles and two zeros that satisfies |H(j0)| = 0, 0.8 ≤ |H(jω)| ≤ 1.2
for |ω| > 100π, and has real valued coefficients.
Two conjugate poles are needed around the transition, which implies one possible solution is :
s2
H(s) =
(s + 25 + j10π)(s + 25 − j10π)
(b) Design a low-pass filter with real valued coefficients that satisfies 0.8 ≤ |H(jω)| ≤ 1.2 for |ω| < π,
and |H(jω)| < 0.1 for |ω| > 10π.
One possible solution is:
(s − j50)(s + j50)
H(s) =
(s + 2 + jπ)(s + 2 − jπ)
54
P6.70(a) : HPF
1
0.8
0.6
|H(w)|
0.4
0.2
0
0 50 100 150 200 250 300 350 400 450 500
w:rad/s
P6.70(b) : LPF
0.8
0.6
|H(w)|
0.4
0.2
0
0 5 10 15 20 25 30 35 40 45 50
w:rad/s
6.71. Use the MATLAB command bode to find the bode diagrams for the systems in Problem 6.55.
Bode Diagram
Gm = Inf, Pm = 78.63 deg (at 4.4561 rad/sec)
20
0
Magnitude (dB)
−20
−40
−60
0
−45
Phase (deg)
−90
−135
−180
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
55
Figure P6.71. (a) Bode Plot of H(s)
Bode Diagram
Gm = Inf, Pm = 52.947 deg (at 2.1553 rad/sec)
50
Magnitude (dB)
−50
−100
−120
Phase (deg)
−150
−180
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
0
Magnitude (dB)
−20
−40
−60
0
−90
Phase (deg)
−180
−270
−1 0 1
10 10 10
Frequency (rad/sec)
56
Bode Diagram
Gm = Inf, Pm = 157.6 deg (at 10.099 rad/sec)
10
0
Magnitude (dB)
−10
−20
−30
−40
90
0
Phase (deg)
−90
−180
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
−20
Magnitude (dB)
−25
−30
−35
−40
45
0
Phase (deg)
−45
−90
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
6.72. Use the MATLAB command ss to find state-variable descriptions for the systems in Problem 6.48.
57
P6.72 :
=======
Part (a) :
==========
a=
x1 x2
x1 -3 -0
x2 1 0
b=
u1
x1 1
x2 0
c=
x1 x2
y1 0 1
d=
u1
y1 0
Continuous-time model.
Part (b) :
==========
a=
x1 x2
x1 2 -2
x2 4 0
b=
u1
x1 2
x2 0
c=
x1 x2
y1 3 0
d=
58
u1
y1 0
Continuous-time model.
Part (c) :
==========
a=
x1 x2 x3
x1 -5 -0.875 -0.09375
x2 8 0 0
x3 0 4 0
b=
u1
x1 0.5
x2 0
x3 0
c=
x1 x2 x3
y1 0 0.5 -0.25
d=
u1
y1 0
Continuous-time model.
6.73. Use the MATLAB command tf to find transfer function descriptions for the systems in Prob-
lem 6.49.
P6.73 :
=======
Part (a) :
==========
Transfer function:
s+3
s2 +3s+2
Part (b) :
==========
Transfer function:
2s−1
s2 +5s−8
59
60
Solutions to Additional Problems
7.17. Determine the z-transform and ROC for the following time signals: Sketch the ROC, poles, and
zeros in the z-plane.
(a) x[n] = δ[n − k], k > 0
∞
X(z) = x[n]z −n
n=−∞
= z −k , z = 0
Im
k multiple
Re
X(z) = z k , all z
Im
k multiple
Re
1
(c) x[n] = u[n]
∞
X(z) = z −n
n=0
1
= , |z| > 1
1 − z −1
Im
1 Re
1 n
(d) x[n] = 4 (u[n] − u[n − 5])
4
n
1
X(z) = z −1
n=0
4
1 −1 5
1 − 4z
=
1 − 14 z −1
5
z 5 − 14
= , all z
z 4 (z − 14 )
4 poles at z = 0, 1 pole at z = 0
2π
5 zeros at z = 14 ejk 5 k = 0, 1, 2, 3, 4
1
Note zero for k = 0 cancels pole at z = 4
2
Im
0.25
Re
1 n
(e) x[n] = 4 u[−n]
0 n
1 −1
X(z) = z
n=−∞
4
∞
n
= (4z)
n=0
1 1
= , |z| <
1 − 4z 4
Im
0.25
Re
−1
n
X(z) = 3z −1
n=−∞
∞ n
1
= z
n=1
3
3
1
3z
=
1 − 13 z
−1
= , |z| < 3
1 − 3z −1
Pole at z = 3
Zero at z = 0
Im
3
Re
2 |n|
(g) x[n] = 3
−1
n ∞ n
3 −1 2 −1
X(z) = z + z
n=−∞
2 n=0
3
−1 1
= 3 −1 +
1 − 2z 1 − 23 z −1
− 56 z 2 3
= , < |z| <
(z − 32 )(z − 23 ) 3 2
Im
2 3
3 2
Re
1 n 1 n
(h) x[n] = 2 u[n] + 4 u[−n − 1]
4
∞
n −1
n
1 1 −1
X(z) = z −1 + z
n=0
2 n=−∞
4
1 1 1 1
= + , |z| > and |z| <
1 − 12 z −1 1 − 23 z −1 2 4
No region of convergence exists.
7.18. Given the following z-transforms, determine whether the DTFT of the corresponding time signals
exists without determining the time signal, and identify the DTFT in those cases where it exists:
(a) X(z) = 1+ 15z−1 , |z| > 13
3
(b) X(z) = 5
1+ 13 z −1
, |z| < 1
3
z −1
(c) X(z) = (1− 12 z −1 )(1+3z −1 )
, |z| < 1
2
z −1
(d) X(z) = (1− 12 z −1 )(1+3z −1 )
, 1
2 < |z| < 3
e−jΩ
X(ejΩ ) =
(1 − 12 e−jΩ )(1 + 3e−jΩ )
7.19. The pole and zero locations of X(z) are depicted in the z-plane on the following figures. In each
case, identify all valid ROCs for X(z) and specify the characteristics of the time signal corresponding to
each ROC.
(a) Fig. P7.19 (a)
Cz(z − 32 )
X(z) =
(z + 34 )(z − 13 )
5
(2) 13 < |z| < 34
x[n] is two-sided.
C(z 4 − 1)
X(z) = √ √
2ej 4 )(z − 2e−j 4 )
π π
z(z −
√
(1) |z| > 2
x[n] is right-sided.
√
(2) |z| < 2
x[n] is two-sided.
1 9
X(z) = (z − )(z + 1)(z 2 + )C, |z| < ∞
2 16
7.20. Use the tables of z-transforms and z-transform properties given in Appendix E to determine the
z-transforms of the following signals:
n
(a) x[n] = 12 u[n] ∗ 2n u[−n − 1]
n
1 z 1 1
a[n] = u[n] ←−−−→ A(z) = , |z| >
2 1 − 12 z −1 2
z 1
b[n] = 2n u[−n − 1] ←−−−→ B(z) = , |z| < 2
1 − 2z −1
z
x[n] = a[n] ∗ b[n] ←−−−→ X(z) = A(z)B(z)
1 1 1
X(z) = , < |z| < 2
1 − 12 z −1 1 − 2z −1 2
1 n 1 n
(b) x[n] = n 2 u[n] ∗ 4 u[n − 2]
n
1 z 1 1
a[n] = u[n] ←−−−→ A(z) = , |z| >
2 1 − 12 z −1 2
6
n
1 z 1 1
b[n] = u[n] ←−−−→ B(z) = , |z| >
4 1 − 14 z −1 4
z z −2
c[n] = b[n − 2] ←−−−→ C(z) =
1 − 14 z −1
z d
x[n] = n[a[n] ∗ b[n]] ←−−−→ X(z) = −z A(z)B(z)
dz
2z −2 − 34 z −3 1
X(z) = , |z| >
1 − 34 z −1 + 18 z −2 )2 2
1
X(z) = 1 −1
1− z
1
= , |z| < 1
1−z
π
x[n]= −n sin(− n)u[−n]
2 −1
d z
X(z) = −z
dz 1 + z −2 z= 1
z
−z −2 z −1 (−2z −3 )
= −z −
1 + z −2 (1 + z −2 )2 z= 1
z
z 2z 3
= 2
+
1+z (1 + z 2 )2
1
1 n z
a[n] = 3 u[n] ←−−−→ A(z) = 9
9 1 − 3z −3
π π π π
b[n] = cos( n + )u[n] = cos( n) cos(π3) − sin( n) sin(π3) u[n]
6 3 6 6
z cos( π3 )(1 + z −1 cos( π6 )) sin( π3 )(z −1 sin( π6 ))
b[n] ←−−−→ B(z) = −
1 − 2z −1 cos( π6 ) + z −2 1 − 2z −1 cos( π6 ) + z −2
1
9 cos( π3 )(1 + z −1 cos( π6 )) − sin( π3 ) sin( π6 )z −1
X(z) = A(z)B(z) =
1 − 3z −3 1 − 2z −1 cos( π6 ) + z −2
z 2
7.21. Given the z-transform pair x[n] ←−−−→ z2z−16 with ROC |z| < 4, use the z-transform properties
to determine the z-transform of the following signals:
(a) y[n] = x[n − 2]
7
z 1
y[n] = x[n − 2] ←−−−→ Y (z) = z −2 X(z) =
z2 − 16
1 z z2
y[n] = ( )n x[n] ←−−−→ Y (z) = X(2z) = 2
2 z −4
z 1 z2
y[n] = x[−n] ∗ x[n] ←−−−→ Y (z) = X( )X(z) =
z 257z 2 − 16z 4 − 16
z d 32z 2
y[n] = nx[n] ←−−−→ Y (z) = −z X(z) = 2
dz (z − 16)2
z z3 + z
y[n] = x[n + 1] + x[n − 1] ←−−−→ Y (z) = (z 1 + z −1 )X(z) =
z 2 − 16
z z
y[n] = x[n] ∗ x[n − 3] ←−−−→ Y (z) = X(z)z −3 X(z) =
(z 2 − 16)2
z
7.22. Given the z-transform pair n2 3n u[n] ←−−−→ X(z), use the z-transform properties to determine
the time-domain signals corresponding to the following z transforms:
(a) Y (z) = X(2z)
z 1 1
Y (z) = X(2z) ←−−−→ y[n] = ( )n x[n] = ( )n n2 3n u[n]
2 2
1 z
Y (z) = X( ) ←−−−→ y[n] = x[−n] = n2 3−n u[−n]
z
8
d
(c) Y (z) = dz X(z)
d −1 d z
Y (z) = X(z) = −z −z X(z) ←−−−→ y[n] = −(n − 1)x[n − 1] = −(n − 1)3 3n−1 u[n − 1]
dz dz
z 2 −z −2
(d) Y (z) = 2 X(z)
z 2 − z −2 z 1
Y (z) = X(z) ←−−−→ y[n] = (x[n + 2] − x[n − 2])
2 2
1
y[n] = (n + 2)2 3n+2 u[n + 2] − (n − 2)2 3n−2 u[n − 2]
2
(e) Y (z) = [X(z)]2
z
Y (z) = X(z)X(z) ←−−−→ y[n] = x[n] ∗ x[n]
n
y[n] = u[n] k 2 3k (n − k)2 3n−k
k=0
n
2 2
= 3n u[n] k n − 2nk 3 + k 4
k=0
z 1
x[n] ←−−−→ X( )
z
y[n] = x[−n]
∞
Y (z) = x[−n]z −n
n=−∞
let l = −n
∞
1
= x[l]( )−l
z
l=−∞
1
= X( )
z
z
x[n − no ] ←−−−→ z −no X(z)
y[n] = x[n − no ]
∞
Y (z) = x[n − no ]z −n
n=−∞
let l = n − no
9
∞
= x[l]z −(l+no )
l=−∞
∞
−l
= x[l]z z −no
l=−∞
−no
= z X(z)
z z
αn x[n] ←−−−→ X( )
α
y[n] = αn x[n]
∞
Y (z) = αn x[n]z −n
n=−∞
∞
z
= x[n]( )−n
n=−∞
α
z
= X( )
α
(d) Convolution
Let c[n] = x[n] ∗ y[n]
z
x[n] ∗ y[n] ←−−−→ X(z)Y (z)
∞
C(z) = (x[n] ∗ y[n]) z −n
n=−∞
∞
∞
= x[p]y[n − p] z −n
n=−∞ p=−∞
∞
∞
= x[p] y[n − p]z −(n−p) z −p
p=−∞ n=−∞
Y (z)
∞
−p
= x[p]z Y (z)
p=−∞
X(z)
= X(z)Y (z)
z d
nx[n] ←−−−→ −z X(z)
dz
∞
X(z) = x[n]z −n
n=−∞
10
Differentiate with respect to z and multiply by −z.
∞
d z
−z X(z) ←−−−→ nx[n]z −n
dz n=−∞
Therefore
z d
nx[n] ←−−−→ −z X(z)
dz
7.24. Use the method of partial fractions to obtain the time-domain signals corresponding to the fol-
lowing z-transforms:
1+ 7 z −1
(a) X(z) = (1− 1 z−16)(1+ 1 z−1 ) , |z| > 12
2 3
x[n] is right-sided
A B
X(z) = 1 −1 +
1− 2z 1 + 13 z −1
1 = A+B
7 1 1
= A− B
6 3 2
2 −1
X(z) = +
1 − 12 z −1 1 + 13 z −1
1 n 1 n
x[n] = 2( ) − (− ) u[n]
2 3
1+ 76 z −1
(b) X(z) = (1− 12 z −1 )(1+ 13 z −1 )
, |z| < 1
3
1+ 76 z −1
(c) X(z) = (1− 12 z −1 )(1+ 13 z −1 )
, 1
3 < |z| < 1
2
z 2 −3z
(d) X(z) = z 2 + 32 z−1
, 1
2 < |z| < 2
x[n] is two-sided
1 − 3z −1
X(z) =
1 + 32 z −1 − z −2
A B
= +
1 − 12 z −1 1 + 2z −1
11
1= A+B
1
−3 = 2A − B
2
−1 2
X(z) = +
1 + 12 z −1 1 − 2z −1
1
x[n] = −(− )n u[n] − 2(2)n u[−n − 1]
2
3z 2 − 14 z
(e) X(z) = z 2 −16 , |z| > 4
x[n] is right-sided
A B
X(z) = −1
+
1 + 4z 1 − 4z −1
3 = A+B
1
− = −4A + 4B
4
49 47
32 32
X(z) = +
1 + 4z −1 1 − 4z −1
49 47
x[n] = (−4)n + 4n u[n]
32 32
z 3 +z 2 + 32 z+ 12
(f) X(z) = z 3 + 32 z 2 + 12 z
, |z| < 1
2
x[n] is left-sided
2 −1
X(z) = z −1 + +
1 + z −1 1 + 12 z −1
1
x[n] = δ[n − 1] + (− )n − 2(−1)n u[−n − 1]
2
2z 4 −2z 3 −2z 2
(g) X(z) = z 2 −1 , |z| > 1
x[n] is right-sided
1 −1
X(z) = 2+ + z2
1 + z −1 1 − z −1
x[n] = 2δ[n + 2] + [(−1)n − 1] u[n + 2]
12
x[n] = δ[n] + 2δ[n − 6] + 4δ[n − 8]
10 1 −k
(b) X(z) = k=5 k z , |z| > 0
10
1
x[n] = δ[n − k]
k
k=5
X(z) = (δ[n] + δ[n − 1]) ∗ (δ[n] + δ[n − 1]) ∗ (δ[n] + δ[n − 1])
x[n] = δ[n] + 3δ[n − 1] + 3δ[n − 2] + δ[n − 3]
7.26. Use the following clues to determine the signal x[n] and rational z-transform X(z).
(a) X(z) has poles at z = 1/2 and z = −1, x[1] = 1, x[−1] = 1, and the ROC includes the point z = 3/4.
A B
X(z) = +
1− 1 −1
2z
1 + z −1
n
1
x[n] = A u[n] − B(−1)n u[−n − 1]
2
1
x[1] = 1 = A
2
A = 2
x[−1] = 1 = −1B(−1)
B = 1
n
1
x[n] = 2 u[n] − (−1)n u[−n − 1]
2
(b) x[n] is right-sided, X(z) has a single pole, and x[0] = 2, x[2] = 1/2.
13
c = 2
1 2
x[2] = = 2 (p)
2
1
p =
2
n
1
x[n] = 2 u[n]
2
(c) x[n] is two-sided, X(z) has one pole at z = 1/4, x[−1] = 1, x[−3] = 1/4, and X(1) = 11/3.
A B
X(z) = +
1− 1 −1
4z
1 − cz −1
n
1
x[n] = A u[n] − B(c)n u[−n − 1]
4
x[−1] = 1 = −Bc−1
1
x[−3] = = −Bc−3
4
c = 2
B = −2
11 A −2
X(1) = = 1 + 1−2
3 1− 4
5
A =
4
n
5 1
x[n] = u[n] + 2(2)n u[−n − 1]
4 4
7.27. Determine the impulse response corresponding to the following transfer functions if (i) the system
is stable, or (ii) the system is causal:
2− 32 z −1
(a) H(z) = (1−2z−1 )(1+ 1 −1
z )
2
1 1
H(z) = +
1 − 2z −1 1 + 12 z −1
1
h[n] = −(2)n u[−n − 1] + (− )n u[n]
2
n 1 n
h[n] = 2 + (− ) u[n]
2
14
5z 2
(b) H(z) = z 2 −z−6
3 2
H(z) = +
1 − 3z −1 1 + 2z −1
4z
(c) H(z) = z 2 − 14 z+ 16
1
4z −1
H(z) =
(1 − 14 z −1 )2
1
h[n] = 16n( )n u[n]
4
1
h[n] = 16n( )n u[n]
4
7.28. Use a power series expansion to determine the time-domain signal corresponding to the following
z-transforms:
(a) X(z) = 1− 11z−2 , |z| > 14
4
∞
1
X(z) = ( z −2 )k
4
k=0
15
∞
1
x[n] = ( )k δ[n − 2k]
4
k=0
n
1 2
4 n even and n ≥ 0
=
0 n odd
(b) X(z) = 1
1− 14 z −2
, |z| < 1
4
∞
X(z) = −4z 2 (2z)2k
k=0
∞
= − 22(k+1) z 2(k+1)
k=0
∞
x[n] = − 22(k+1) δ[n + 2(k + 1)]
k=0
Note:
∞
(−1)k
cos(α) = (α)2k
(2k)!
k=0
∞
(−1)k
X(z) = (z −3 )2k
(2k)!
k=0
∞
(−1)k −6k
= z
(2k)!
k=0
∞
(−1)k
x[n] = δ[n − 6k]
(2k)!
k=0
∞
(−1)k−1
ln(1 + α) = (α)k
k
k=0
∞
(−1)k−1
X(z) = (z −1 )k
k
k=1
∞
(−1)k−1
x[n] = δ[n − k]
k
k=1
16
7.29. A causal system has input x[n] and output y[n]. Use the transfer function to determine the
impulse response of this system.
(a) x[n] = δ[n] + 14 δ[n − 1] − 18 δ[n − 2], y[n] = δ[n] − 34 δ[n − 1]
1 1
X(z) 1 + z −1 − z −1
=
4 8
3 −1
Y (z) = 1 − z
4
Y (z)
H(z) =
X(z)
− 23 5
3
= 1 −1 +
1 − 4z 1 + 12 z −1
1 1 n 1 n
h[n] = 5(− ) − 2( ) u[n]
3 2 4
n 1 n
(b) x[n] = (−3) u[n], y[n] = 4(2)n u[n] − 2 u[n]
1
X(z) =
1 + 3z −1
3
Y (z) =
(1 − 2z −1 )(1 − 12 z −1 )
Y (z)
H(z) =
X(z)
10 −7
= +
1 − 2z −1 1 − 12 z −1
1 n
h[n] = 10(2) − 7( ) u[n]
n
2
1 n
7.30. A system has impulse response h[n] = 2 u[n]. Determine the input to the system if the output
is given by
1
H(z) =
1 − 12 z −1
Y (z) = 2z −4
Y (z)
X(z) =
H(z)
= 2z −4 − z −5
x[n] = 2δ[n − 4] − δ[n − 5]
17
−1 n
(b) y[n] = 13 u[n] + 2
3 2 u[n]
1 2
3 3
Y (z) = +
1− z −1 1+ 1 −1
2z
Y (z)
X(z) =
H(z)
1 4
1
= − + 6
+ 3
2 1 − z −1 1 + 12 z −1
1 1 4 1
x[n] = − δ[n] + u[n] + (− )n u[n]
2 6 3 2
7.31. Determine (i) transfer function and (ii) impulse response representations for the systems de-
scribed by the following difference equations:
(a) y[n] − 12 y[n − 1] = 2x[n − 1]
1
Y (z) 1 − z −1 = 2z −1 X(z)
2
Y (z)
H(z) =
X(z)
2z −1
=
1 − 12 z −1
1
h[n] = 2( )n−1 u[n − 1]
2
Y (z) = 1 − z −2 + z −4 − z −6 X(z)
Y (z)
H(z) =
X(z)
= 1 − z −2 + z −4 − z −6
h[n] = δ[n] − δ[n − 2] + δ[n − 4] − δ[n − 6]
4 16
Y (z) 1 − z −1 − z −2 = (2 + z −1 )X(z)
5 25
Y (z)
H(z) =
X(z)
13 −1
2 5 z
= +
1 − 4 z −1 (1 − 45 z −1 )2
5
4 n 13 4 n
h[n] = 2( ) + n( ) u[n]
5 4 5
18
7.32. Determine (i) transfer function and (ii) difference-equation representations for the systems with
the following impulse responses:
n
(a) h[n] = 3 14 u[n − 1]
n−1
1 1
h[n] = 3 u[n − 1]
4 4
3 −1
4z
H(z) =
1 − 14 z −1
Y (z)
=
X(z)
1 3
y[n] − y[n − 1] = x[n − 1]
4 4
1 n 1 n−2
(b) h[n] = 3 u[n] + 2 u[n − 1]
n n−1
1 1
h[n] = u[n] + 2 u[n − 1]
3 2
1 + 32 z −1 − 23 z −2
H(z) =
1 − 56 z −1 + 16 z −2
Y (z)
=
X(z)
5 1 3 2
y[n] − y[n − 1] + y[n − 2] = x[n] + x[n − 1] − x[n − 2]
6 6 2 3
2 n 1 n
(c) h[n] = 2 3 u[n − 1] + 4 [cos( π6 n) − 2 sin( π6 n)]u[n]
4 −1
3z 1 − 14 z −1 cos( π6 ) − 12 z −1 sin( π6 )
H(z) = +
1 − 23 z −1 1 − z −1 21 cos( π6 ) + 16 1 −2
z
5 √ −1
√ −2 1 −3
1 + 12 − 8 3 z + 6 − 4 3 z + 12
1 1 1
z
= 2 1√ 1 √
1 −1
− 3 + 4 3 z + 16 + 6 3 z − 24 z 1 −2 1 −3
19
(d) h[n] = δ[n] − δ[n − 5]
H(z) = 1 − z −5
7.33. (a) Take the z-transform of the state-update equation Eq. (2.62) using the time-shift property
Eq. (7.13) to obtain
q̃(z) = (zI − A)−1 bX(z)
where
Q1 (z)
Q2 (z)
q̃(z) =
..
.
QN (z)
is the z-transform of q[n]. Use this result to show that the transfer function of a LTI system is expressed
in terms of the state-variable description as
(b) Determine transfer function and difference-equation representations for the systems described by the
following state-variable
descriptions.
Plot the pole and zero locations in the z-plane.
−2 0
1
0
(i) A = 1
, b= , c = 1 −1 , D = [1]
0 2 2
20
1.5
0.5
Imaginary Part
−0.5
−1
−1.5
−1 −0.5 0 0.5 1 1.5 2 2.5
Real Part
Figure P7.33.
(b)-(i) Pole-Zero
Plot
1
− 1
1
(ii) A = 2 2 , b = , c = , D = [0]
2 1
− 12 − 14 0
2z
H(z) =
z2 − 14 z − 3
8
0.8
0.6
0.4
0.2
Imaginary Part
−0.2
−0.4
−0.6
−0.8
−1
−1 −0.5 0 0.5 1
Real Part
21
− 14 1
2
(iii) A = 8 , b= , c= , D = [0]
0 1
− 72 3
4 2
2z − 13 2
H(z) =
z 2 − 12 z + 1
4
1.5
0.5
Imaginary Part
−0.5
−1
−1.5
7.34. Determine whether each of the systems described below are (i) causal and stable and (ii) mini-
mum phase.
(a) H(z) = z22z+3
+z− 5 16
3
zero at: z=−
2
5 1
poles at: z=− ,
4 4
(i) Not all poles are inside |z| = 1, the system is not causal and stable.
(ii) Not all poles and zeros are inside |z| = 1, the system is not minimum phase.
2
zeros at: z = 0,
3√
1± 2
poles at: z=
2
22
(i) Not all poles are inside |z| = 1, the system is not causal and stable.
(ii) Not all poles and zeros are inside |z| = 1, the system is not minimum phase.
z(z − 12 )
H(z) =
z2 − 2
1
zeros at: z = 0,
√2
poles at: z=± 2
(i) Not all poles are inside |z| = 1, the system is not causal and stable.
(ii) Not all poles and zeros are inside |z| = 1, the system is not minimum phase.
7.35. For each system described below, identify the transfer function of the inverse system, and deter-
mine whether it can be both causal and stable.
−1
+16z −2
(a) H(z) = 1−8z
1− 1 z −1 + 1 z −2
2 4
(z − 4)2
H(z) =
(z − 12 )2
(z − 12 )2
H inv (z) =
(z − 4)2
poles at: z = 4 (double)
For the inverse system, not all poles are inside |z| = 1, so the system is not causal and stable.
z 2 − 100
81
(b) H(z) = z 2 −1
z2 − 1
H inv (z) =
z 2 − 100
81
9
poles at: z= (double)
10
For the inverse system, all poles are inside |z| = 1, so the system can be causal and stable.
−1 n −1 n
(c) h[n] = 10 2 u[n] − 9 4 u[n]
z(z − 2)
H(z) =
(z + 12 )(z + 14 )
(z + 12 )(z + 14 )
H inv (z) =
z(z − 2)
23
poles at: z = 0, 2
For the inverse system, not all poles are inside |z| = 1, so the system cannot be both causal and stable.
1 n 1 n
(d) h[n] = 24 2 u[n − 1] − 30 3 u[n − 1]
2(z + 12 )
H(z) =
(z − 12 )(z − 13 )
(z − 12 )(z − 13 )
H inv (z) =
2(z + 12 )
1
pole at: z=−
2
For the inverse system, all poles are inside |z| = 1, so the system can be both causal and stable.
X(z)
H inv (z) =
Y (z)
(z − 12 )(z + 12 )
=
6z 2 + 7z + 3
√
7 ± j 23
poles at: z=
12
For the inverse system, all poles are inside |z| = 1, so the system can be both causal and stable.
z − 12
H inv (z) =
z
pole at: z=0
For the inverse system, all poles are inside |z| = 1, so the system can be both causal and stable.
7.36. A system described by a rational transfer function H(z) has the following properties: 1) the
system is causal; 2) h[n] is real; 3) H(z) has a pole at z = j/2 and exactly one zero; 4) the inverse system
∞
has two zeros; 5) n=0 h[n]2−n = 0; 6) h[0] = 1.
By 2) and 3)
24
j
poles at z=±
2
By 4)
1
H inv =
H
1 ±j π
H has two poles. z= e 2
2
A(1 − Cz −1 )
H(z) =
1 − z −1 cos( π2 ) + 14 z −2
A(1 − Cz −1 )
=
1 + 14 z −2
By 5)
∞
∞
−n −n
h[n]2 = h[n]z = H(z)
n=0 n=0 z=2
A(1 − Cz −1 )
Since H(z) = ,
1 + 14 z −2
H(z) = 0 implies
C =
2 n
n
1 π 1 π
h[n] = A cos( n) − 2A sin( n) u[n]
2 2 2 2
h[0] = 1 = A
1 − 2z −1
H(z) =
1 + 14 z −2
n n
1 π 1 π
h[n] = cos( n) − 2 sin( n) u[n]
2 2 2 2
No, the inverse system has a pole at z = 2, which is not inside |z| = 1.
n n
1 π 1 π
h[n] = cos( n) − 2 sin( n) u[n]
2 2 2 2
25
7.37. Use the graphical method to sketch the magnitude response of the systems having the following
transfer functions:
−2
(a) H(z) = 1+z49 z−2
64
1
H(z) =
(z + − j 78 )
j 78 )(z
1
H(ejΩ ) =
(e + j 8 )(ejΩ − j 78 )
jΩ 7
Im
7
8
1
Re
3.5
3
|H(ejΩ)|
2.5
1.5
0.5
−4 −3 −2 −1 0 1 2 3 4
Ω
26
z2 + z1 + 1
H(z) =
3z 2
j2Ω
e + ejΩ + 1
H(ejΩ ) =
3ej2Ω
poles at: z = 0, (double)
z = e±j
2π
zeros at: 3
Im
3
1
Re
0.9
0.8
0.7
0.6
|H(ejΩ)|
0.5
0.4
0.3
0.2
0.1
0
−4 −3 −2 −1 0 1 2 3 4
Ω
27
1 + z −1
H(z) = 3 9 −j 34 π −1
(1 − 9 j
10 e
4π z −1 )(1 − 10 e z )
ej2Ω + e jΩ
H(ejΩ ) =
ejΩ + (18/10) cos( π4 )ejΩ + (81/100)
zeros: z = −1
9 ±j π jπ
poles: z= e 4e
10
Im
3
4
1
Re
9
10
4
|H(ejΩ)|
0
−4 −3 −2 −1 0 1 2 3 4
Ω
7.38. Draw block-diagram implementations of the following systems as a cascade of second-order sec-
28
tions with real-valued coefficients:
π π π π
(1− 14 ej 4 z −1 )(1− 14 e−j 4 z −1 )(1+ 14 ej 8 z −1 )(1+ 14 e−j 8 z −1 )
(a) H(z) = π π 7π 7π
(1− 12 ej 3 z −1 )(1− 12 e−j 3 z −1 )(1− 34 ej 8 z −1 )(1− 34 e−j 8 z −1 )
X(z) Y(z)
z −1 z −1
−1 cos( ) 3 7 1 cos( )
cos( ) cos( )
3 2 4 2 8 2 8
z −1 z −1
−1 1 −9 1
4 16 16 16
X(z) Y(z)
z −1 z −1
−3 3
cos( )
8 4 4 3
z −1 z −1
9 −9 1
32 4 64 4
29
7.39. Draw block diagram implementations of the following systems as a parallel combination of second-
order sections with real-valued coefficients:
n n n n
(a) h[n] = 2 12 u[n] + 2j u[n] + −j 2 u[n] + −1
2 u[n]
2 1 1 1
H(z) = 1 −1 + + +
1− 2z 1− j −1
2z 1+ j −1
2z
1 + 12 z −1
1 −1
3+ 2z 2
= +
1 −2
1− 4z 1 + 14 z −2
H(z) = H1 (z) + H2 (z)
X(z) 3
z −1
0.5
Y(z)
z −1
0.25
z −1
z −1
−0.25
1 jπ
n 1 jπ
n 1 −j π
n 1 −j π
n
(b) h[n] = 2 2e
4 u[n] + 4e
3 u[n] + 4e
3 u[n] + 2 2e
4 u[n]
2 1 1 2
H(z) = 1 jπ + 1 jπ + 1 −j π + 1 −j π
1− 4 z −1 1− 3 z −1 1− 3 z −1 1− 4 z −1
2e 4e 4e 2e
√ −1
4 − 2z 2 − 14 z −1
= +
1− √1 z −1 + 1 z −2 1− 1 −1 1 −2
2 4 4z + 16 z
H(z) = H1 (z) + H2 (z)
30
X(z) 4
1 −1
z
2 2
Y(z)
z −1
−0.25
z −1
0.25 −0.25
z −1
−1/16
7.40. Determine the transfer function of the system depicted in Fig. P7.40.
X(z) Y(z)
H1(z) H2(z)
H3(z)
Figure P7.40. System diagram
1 − 2z −1
H1 (z) =
1 − 14 z −2
z −2
H2 (z) =
1 + 34 z −1 − 18 z −2
1
H3 (z) =
1 + 23 z −1
H(z) = H1 (z)H2 (z) + H1 (z)H3 (z)
31
7.41. Let x[n] = u[n + 4].
(a) Determine the unilateral z-transform of x[n].
∞
zu
x[n] = u[n + 4] ←−−−→ X(z) = x[n]z −n
n=0
∞
X(z) = z −n
n=0
1
=
1 − z −1
(b) Use the unilateral z-transform time-shift property and the result of (a) to determine the unilateral
z-transform of w[n] = x[n − 2].
zu
w[n] = x[n − 2] ←−−−→ W (z) = x[−2] + x[−1]z −1 + z −2 X(z)
z −2
W (z) = 1 + z −1 +
1 − z −1
7.42. Use the unilateral z-transform to determine the forced response, the natural response, and the
complete response of the systems described by the following difference equations with the given inputs
and initial conditions.
(a) y[n] − 13 y[n − 1] = 2x[n], y[−1] = 1, x[n] = ( −1 n
2 ) u[n]
1
X(z) =
1 + 12 z −1
1 −1
Y (z) − z Y (z) + 1 = 2X(z)
3
1 1
Y (z) 1 − z −1 = + 2X(z)
3 3
1 1 1
Y (z) = −1
+2 X(z)
3 1 − 3z
1
1 − 13 z −1
Y (n) (z) Y (f ) (z)
Natural Response
1 1
Y (n) (z) =
3 1 − 13 z −1
n
1 1
y (n) [n] = u[n]
3 3
Forced Response
6 4
Y (f ) (z) = 5
1 −1 + 5
1+ 2z
1 − 13 z −1
n n
6 1 4 1
y (f ) [n] = − + u[n]
5 2 5 3
32
Complete Response
n n
6 1 17 1
y[n] = − + u[n]
5 2 15 3
2
X(z) =
1 − z −1
1 −2
Y (z) − z Y (z) + z −1 = z −1 X(z)
9
1 −2 1 −1
Y (z) 1 − z = z + z −1 X(z)
9 9
1 z −1 z −1 X(z)
Y (z) = +
9 1 − 19 z −2 1 − 19 z −2
Y (n) (z) Y (f ) (z)
Natural Response
1 z −1
Y (n) (z) =
9 1 − 19 z −2
1 1 1 1
= −
6 1 − 13 z −1 6 1 + 13 z −1
n n
1 1 1
y (n) [n] = − − u[n]
6 3 3
Forced Response
9 3 3
Y (f ) (z) = 4
− 4
− 2
1 − z −1 1 + 13 z −1 1− 1 −1
3z
n n
9 3 1 3 1
y (f ) [n] = − − − u[n]
4 4 3 2 3
Complete Response
n n
n n
9 3 1 3 1 1 1 1
y[n] = − − − u[n] + − − u[n]
4 4 3 2 3 6 3 3
(c) y[n] − 14 y[n − 1] − 18 y[n − 2] = x[n] + x[n − 1], y[−1] = 1, y[−2] = −1, x[n] = 3n u[n]
1
X(z) =
1 − 3z −1
1 −1 1 −2
Y (z) − z Y (z) + 1 − z Y (z) + z −1 − 1 = X(z) + z −1 X(z)
4 8
1 −1 1 −2 1 1 −1
Y (z) 1 − z − z = + z + (1 + z −1 )X(z)
4 8 8 8
1 1 + z −1 (1 + z −1 )X(z)
Y (z) = +
8 (1 − 12 z −1 )(1 + 14 z −1 ) (1 − 12 z −1 )(1 + 14 z −1 )
Y (n) (z) Y (f ) (z)
Natural Response
1 1 1 1
Y (n) (z) = −
4 1 − 12 z −1 8 1 + 14 z −1
33
n n
1 1 1
y (n) [n] = 2 − − u[n]
8 2 4
Forced Response
− 25
96
− 13
1
Y (f ) (z) = 65
+
+
1 − 3z −1 1 − 12 z −1 1 + 14 z −1
n n
96 n 2 1 1 1
y (f ) [n] = (3) − − − u[n]
65 5 2 13 4
Complete Response
n n
96 n 3 1 21 1
y[n] = (3) − − − u[n]
65 20 2 104 4
7.43. Use the z-transform of u[n] and the differentiation in the z-domain property to derive the formula
for evaluating the sum
∞
n2 an
n=0
∞
X(z) = x[n]z −n
n=0
let
x[n] = an u[n]
∞
d
X(z) = −nx[n]z −(n−1)
dz n=−∞
∞
d2
X(z) = n(n − 1)x[n]z −(n−2)
dz 2 n=−∞
∞ ∞
= n2 x[n]z −(n−2) − nx[n]z −(n−2)
n=−∞ n=−∞
∞ ∞
d2 1 2 n −(n−2)
= n a z − nan z −(n−2)
dz 2 1 − az −1 n=0 n=0
Evaluate at z = 1
∞
∞
d2 1
= n2 an − nan
dz 2 1 − az −1
z=1 n=0 n=0
d
|
dz X(z) z=1
∞
d2 1 d 1
n2 an = −
dz 2 1 − az −1 dz 1 − az −1
n=0 z=1 z=1
2a a
= +
(1 − a)3 (1 − a)2
34
3a − a2
=
(1 − a)3
d
y(t) + 2y(t) = x(t)
dt
y[n] − y[n − 1]
+ 2y[n] = x[n]
Ts
1 1
y[n] + 2 − y[n − 1] = x[n]
Ts Ts
1 Ts
y[n] − y[n − 1] = x[n]
1 + 2Ts 1 + 2Ts
1
α = −
1 + 2Ts
Ts
v[n] = x[n]
1 + 2Ts
7.45. The autocorrelation signal for a real-valued causal signal x[n] is defined as
∞
rx [n] = x[l]x[n + l]
l=0
35
∞
rx [n] = x[p]x[n + p]
p=−∞
∞
= x[l]x[n + l]
l=−∞
∞
= x[l]x[n + l]
l=0
since x[l] = 0, for l < 0
1
Rx (z) = X( )X(z)
z
1 1
=
1 − αz 1 − αz −1
Implies
1
X(z) =
1 − αz −1
x[n] = αn u[n]
7.46. The cross-correlation of two real-valued signals x[n] and y[n] is expressed as
∞
rxy (n) = x[l]y[n + l]
l=−∞
(b) Find the z-transform of rxy [n] as a function of the z-transforms of x[n] and y[n].
1
Rxy (z) = X(z)Y ( )
z
7.47. A signal with rational z-transform has even symmetry, that is, x[n] = x[−n].
(a) What constraints must the poles of such a signal satisfy?
z
x[n] ←−−−→ X(z)
z 1
x[−n] ←−−−→ X( )
z
Implies
1
X(z) = X( )
z
36
1
This means if there is a pole at zo , there must also be a pole at zo . Hence poles occur in reciprocal pairs.
∞
(b) Show that the z-transform corresponds to a stable system if and only if n=−∞ x[n] < ∞.
The reciprocal poles are zo , z1o assume they take the following form:
zo = ro ejθo
1 1 −jθo
= e
zo ro
If zo is inside |z| = 1, its z-transform is right-sided and stable. For the pole at z1o , its corresponding
z-transform is either right-sided unstable, or left-sided stable. For convergence, the ROC must include the
unit circle, |z| = 1, which means the z-transforms are exponentially decaying as they approach ∞, − ∞
respectively.
(c) Suppose
2 − (17/4)z −1
X(z) =
(1 − (1/4)z −1 )(1 − 4z −1 )
Determine the ROC and find x[n].
For the system to be stable, the pole at z = 14 must be right-sided, and the pole at z = 4 must be
left sided so their z-transforms are exponentially decaying as they approach ∞, − ∞ respectively. This
implies the ROC is 14 < |z| < 4
1 − a∗ z
H(z) = , |a| < 1
z−a
Here the pole and zero are a conjugate reciprocal pair.
(a) Sketch a pole-zero plot for this system in the z-plane.
Im j
Let a = |a| e
j
then 1 = 1 e
a * |a|
a1 1 Re
a
37
(b) Use the graphical method to show that the magnitude response of this system is unity for all fre-
quency. A system with this characteristic is termed an all-pass system.
1 − a∗ ejΩ
H(ejΩ ) = jΩ
e −a
1
= 1 − a∗ ejΩ
|ejΩ− a|
As shown below, H(ejΩ ) = 1 for all Ω.
Im H1(ej )
1+a
1−a
a1 1 Re +
a
H2(ej )
Im
1
1−a
1
1+a
a1 1 Re
a +
38
H (ej ) H (ej )
1 2
(c) Use the graphical method to sketch the phase response of this system for a = 12 .
1 − 12 ejΩ
H(ejΩ ) =
ejΩ − 12
" # " #
! 1 1
arg H(ejΩ ) = arg 1 − ejΩ − arg ejΩ −
2 2
" #
! 1
= π + arg ejΩ − 2 − arg ejΩ −
2
Im Im
pole zero
0.5
2
Re Re
39
zero
2 2
pole
H(e j )
(d) Use the result from (b) to prove that any system with a transfer function of the form
$
P
1 − a∗k z
H(z) = |ak | < 1
z − ak
k=1
40
corresponds to a stable and causal all-pass system.
Since |ak | < 1, if the system is causal, then the system is stable.
$ P
1 − a∗k ejΩ
H(ejΩ ) =
ejΩ − ak
k=1
1 − a∗ ejΩ 1 − a∗ ejΩ − ∗ jΩ
H(ejΩ ) 1 ap e
= jΩ 1 2
· · · jΩ
e − a1 ejΩ − a2 e − ap
$ P
1 − a∗k ejΩ
H(ejΩ ) =
ejΩ − ak
k=1
1 − a∗1 ejΩ 1 − a∗2 ejΩ 1 − a∗ ejΩ
H(ejΩ ) p
= jΩ · · · jΩ
e − a1 ejΩ − a2 e − ap
= 1
(e) Can a stable and causal all-pass system also be minimum phase? Explain.
For a stable and causal all-pass system, |ak | < 1 for all k. Using P=1:
1 − a∗1 z
H(z) =
z − a1
1
The zero is zz =
a∗1
Which implies
1
|zz | = >1
|a∗1 |
7.49. Let
H(z) = F (z)(z − a) and G(z) = F (z)(1 − az)
1 − az
G(z) = H(z)
z−a
all-pass term
1 − az
G(ejΩ ) = H(ejΩ )
z−a
= H(ejΩ )
41
1 − az
Since = 1, see prob 7.48
z−a
1 − az
V (z) =
z−a
z −1 − a
=
1 − az −1
z
G(z) = H(z)V (z) ←−−−→ g[n] = h[n] ∗ v[n]
(c) One definition of the average delay introduced by a causal system is the normalized first moment
∞
kv 2 [k]
d = k=0
∞ 2
k=0 v [k]
z −1 a
V (z) = −
1 − az −1 1 − az −1
v[k] = ak−1 u[k − 1] − aak u[k]
for k = 0
v[0] = −a
v 2 [0] = a2
for k ≥ 1
v[k] = ak−1 − ak+1
v 2 [k] = a2k−2 + a2k+2 − 2a(k−1)+(k+1)
= a2k (a−2 + a2 − 2)
∞
∞
kv 2 [k] = (a−2 + a2 − 2) k(a2 )k
k=0 k=0
1 + a4 − 2a2
=
(1 − a2 )2
∞
∞
v 2 [k] = a2 + (a−2 + a2 − 2) (a2 )k
k=0 k=1
1 + a − 2a 4 2
= a2 +
1 − a2
1−a 2
=
1 − a2
= 1, which also follows from Parseval’s Theorem.
∞
kv 2 [k]
d = k=0
∞ 2
k=0 v [k]
42
1 + a4 − 2a2
=
(1 − a2 )2
%M −1
−1 b0 k=1 (1 − ck z −1 )
H(z) = (1 − cM z ) %N
−1 )
k=1 (1 − dk z
%M −1
b0 (1 − ck z −1 )(1 − cM1 ∗ z −1 ) 1 − cM z −1
=
k=1
%N
−1 ) 1 − 1 z −1
(1 − d k z cM ∗
k=1
Hmin (z) Hap (z)
(b) Find a minimum phase equalizer with transfer function Heq (z) chosen so that |H(ejΩ )Heq (ejΩ )| = 1
and determine the transfer function of the cascade H(z)Heq (z).
1
Heq (z) =
Hmin (z)
so H(z)Heq (z) = Hap (z)
|H(z)Heq (z)| = |Hap (z)| = 1
1 − cM z −1
Hap (z) =
1 − cM1 ∗ z −1
7.51. A very useful structure for implementing nonrecursive systems is the so-called lattice stucture.
The lattice is constructed as a cascade of two input, two output sections of the form depicted in Fig. P7.51
(a). An M th order lattice structure is depicted in Fig. P7.51 (b).
(a) Find the transfer function of a second-order (M = 2) lattice having c1 = 12 and c2 = − 14 .
A(z)
z −1 z −1
X(z) 0.5 −0.25
−0.25
0.5 Y(z)
B(z)
Figure P7.51. (a) Lattice Diagram.
43
1
Y (z) = − A(z)z −1 + B(z)
4
1
A(z) = X(z)(z −1 + )
2
1 −1
B(z) = X(z)( z + 1)
2
1 −2 3 −1
Y (z) = − z + z + 1 X(z)
4 8
Y (z)
H(z) =
X(z)
3 1
= 1 + z −1 − z −2
8 4
(b) We may determine the relationship between the transfer function and lattice structure by examining
the effect of adding a section on the transfer function, as depicted in Fig. P7.51(c).
Here we have defined Hi (z) as the transfer function between the input and the output of the lower
branch in the ith section and H̃i (z) as the transfer function between the input and the output of the
upper branch in the ith section. Write the relationship between the transfer functions to the (i − 1)st and
ith stages as
H̃i (z) H̃i−1 (z)
= T(z)
Hi (z) Hi−1 (z)
where T(z) is a two-by-two matrix. Express T(z) in terms of ci and z −1 .
44
H̃k+1 (z) = z −1 ck+1 H̃k (z) + Hk (z)
substitute H̃k (z) = z −k Hk (z −1 )
H̃k+1 (z) = z −(k+1) Hk (z −1 ) + ck+1 Hk (z)
Hk+1 (z) = z −(k+1) ck+1 Hk (z −1 ) + Hk (z)
Hk+1 (z −1 ) = z (k+1) ck+1 Hk (z) + Hk (z −1 )
H̃k+1 (z) = z −(k+1) z (k+1) ck+1 Hk (z) + Hk (z −1 )
H̃k+1 (z) = z −(k+1) Hk+1 (z −1 )
Therefore
H̃i (z) = z −i Hi (z −1 )
H̃i z −1 ci H̃i−1
=
Hi z −1 ci 1 Hi−1
Hi = z −1 ci H̃i−1 + Hi−1
H̃i−1 (z) = z −(i−1) + . . . + ci−1
The highest order of (z −1 ) in Hi (z) is (i), and the coefficients of z −i is (ci ), since Hi−1 (z) does not
contribute to z −i , therefore the coefficient of z −i is Hi (z) is given by (ci ).
(e) By combining the results of (b) - (d) we may derive an algorithm for finding the ci required by
the lattice structure to implement an arbitrary order M nonrecursive transfer function H(z). Start with
i = M so that HM (z) = H(z). The result of (d) implies that cM is the coefficient of z −M in H(z).
By decreasing i, continue this algorithm to find the remaining ci . Hint: Use the result of (b) to find a
two-by-two matrix A(z) such that
H̃i−1 (z) H̃i (z)
= A(z)
Hi−1 (z) Hi (z)
H̃i (z) H̃i−1 (z)
= T
Hi (z) Hi−1 (z)
H̃i−1 (z) H̃i−1 (z)
= A (1)
Hi−1 (z) Hi−1 (z)
−1
where A = T
1 1 −ci
A =
z −1 (1 − c2i ) −z −1 ci
let
M
H(z) = bk z −k
k=0
45
= HM (z)
Where H(z) is given. From this we have cM = bM . The following is an algorithm to obtain all ci ’s.
(1) cM = bM
(2) for i = M to 2, descending
compute H̃i−1 (z) and Hi−1 (z) from (1)
get ci−1 from Hi−1 (z)
end
Thus we will have c1 , c2 , . . . cM .
7.52. Causal filters always have a nonzero phase response. One technique for attaining zero phase re-
sponse from a causal filter involves filtering the signal twice, once in the forward direction and the second
time in the reverse direction. We may describe this operation in terms of the input x[n] and filter impulse
response h[n] as follows. Let y1 [n] = x[n] ∗ h[n] represent filtering the signal in the forward direction.
Now filter y1 [n] backwards to obtain y2 [n] = y1 [−n] ∗ h[n]. The output is then given by reversing y2 [n]
to obtain y[n] = y2 [−n].
(a) Show that this set of operations is equivalently represented by a filter with impulse response ho [n] as
y[n] = x[n] ∗ ho [n] and express ho [n] in terms of h[n].
(b) Show that ho [n] is an even signal and that the phase response of any system with an even impulse
response is zero.
Which shows that ho [n] is an even signal. Since ho [n] is even, the phase response can be found from the
following:
∞
Ho (ejΩ ) = ho [n]e−jΩn
n=−∞
∞
Ho∗ (ejΩ ) = ho [n]ejΩn
n=−∞
46
∞
= ho [−n]e−jΩn
n=−∞
∞
= ho [n]e−jΩn
n=−∞
1
(c) For every pole or zero at z = β in h[n], show that ho [n] has a pair of poles or zeros at z = β and z = β.
1
Therefore, Ho (z) has a pair of poles at z = β, β
let
z−β
H(z) =
z−p
z − β z −1 − β
Ho (z) =
z − p z −1 − p
β (z − β)(z − β )
1
=
p (z − p)(z − p1 )β
1
Therefore, Ho (z) has a pair of zeros at z = β, β
7.53. The present value of a loan with interest compounded monthly may be described in terms of the
first-order difference equation
y[n] = ρy[n − 1] − x[n]
r/12
where ρ = 1 + 100 , r is the annual interest rate expressed as a percent, x[n] is the payment credited
at the end of the n month, and y[n] is the loan balance at the beginning of the n + 1st month. The
th
beginning loan balance is the initial condition y[−1]. If uniform payments of $c are made for L consecutive
months, then x[n] = c{u[n] − u[n − L]}.
47
(a) Use the unilateral z-transform to show that
L−1
y[−1]ρ − c n=0 z −n
Y (z) =
1 − ρz −1
Hint: Use long division to show that
1 − z −L
L−1
= z −n
1 − z −1 n=0
y[−1]ρ − X(z)
Y (z) =
1 − ρz −1
1 − z −L
X(z) = c
1 − z −1
= c 1 + z −1 + z −2 + . . . + z −L+1
L−1
= c z −n
n=0
which implies
L−1
y[−1]ρ − c n=0 z −n
Y (z) =
1 − ρz −1
(b) Show that z = ρ must be a zero of Y (z) if the loan is to have zero balance after L payments.
L−1
y[−1]p + c n=0 z −n
Y (z) =
1 − ρz −1
The pole at z = p results in an infinite length y[n] in general. If the loan reaches zero after the Lth
payment, we have:
y[n] = 0, n ≥ L − 1
L−2
So, Y (z) = y[n]z −n
n=0
Thus we must have:
L−1
L−2
y[−1]ρ − c z −n = (1 − ρz −1 ) y[n]z −n
n=0 n=0
to cancel the pole at z = p
r
From polynomial theory, the first term is zero if f (z = ρ) = 0, or ρ = 1 + 12 is a zero of Y (z)
(c) Find the monthly payment $c as a function of the intitial loan value y[−1] and the interest rate
r assuming the loan has zero balance after L payments.
L−1
y[−1]ρ − c ρ−n = 0
n=0
48
1 − ρ−L
c = y[−1]ρ
1 − ρ−1
ρ−1
c = y[−1]
1 − ρ−L
7.54. Use the MATLAB command zplane to obtain a pole-zero plot for the following systems:
−2
(a) H(z) = 2+z−1 −1+z
1 −2
z + 1 z −3 2 4
P7.54(a)
0.8
0.6
0.4
0.2
Imaginary Part
−0.2
−0.4
−0.6
−0.8
−1
−1 −0.5 0 0.5 1
Real Part
49
P7.54(b)
0.8
0.6
0.4
0.2
Imaginary Part
−0.2
−0.4
−0.6
−0.8
−1
7.55. Use the MATLAB command residuez to obtain the partial fraction expansions required to solve
Problem 7.24 (d) - (g).
P7.55 :
=======
Part (d) :
==========
r=
2
-1
p=
-2.0000
0.5000
k=
Part (e) :
50
==========
r=
1.4688
1.5312
p=
4
-4
k=
Part (f) :
==========
r=
2
-1
p=
-1.0000
-0.5000
k=
0 1
Part (g) :
==========
r=
1
-1
p=
-1
51
1
k=
2 0 0
7.56. Use the MATLAB command tf2ss to find state-variable descriptions for the systems in
Problem 7.27.
P7.56 :
=======
Part (a) :
==========
A=
1.5000 1.0000
1.0000 0
B=
1
0
C=
1.5000 2.0000
D=
Part (b) :
==========
A=
1 6
1 0
B=
1
0
52
C=
5 30
D=
Part (c) :
==========
A=
0.2500 -0.0625
1.0000 0
B=
1
0
C=
4 0
D=
7.57. Use the MATLAB command ss2tf to find the transfer functions in Problem 7.33.
P7.57 :
=======
Part (b)-(i) :
==========
Num =
Den =
1.0000 0 -0.2500
53
Part (b)-(ii) :
==========
Num =
0 2 0
Den =
Part (b)-(iii) :
==========
Num =
0 2.0000 -6.5000
Den =
7.58. Use the MATLAB command zplane to solve Problem 7.35 (a) and (b).
54
P7.58(a) Poles−Zeros of the inverse system
1.5
0.5
Imaginary Part
2
0
−0.5
−1
−1.5
−2
0.8
0.6
0.4
0.2
Imaginary Part
−0.2
−0.4
−0.6
−0.8
−1
−1 −0.5 0 0.5 1
Real Part
55
7.59. Use the MATLAB command freqz to evaluate and plot the magnitude and phase response of the
system given in Example 7.21.
P7.59
12
10
Magnitude
−3 −2 −1 0 1 2 3
Omega
1
Phase (rad)
−1
−2
−3 −2 −1 0 1 2 3
Omega
7.60. Use the MATLAB command freqz to evaluate and plot the magnitude and phase response of the
systems given in Problem 7.37.
56
P7.60(a)
3.5
3
Magnitude
2.5
1.5
−3 −2 −1 0 1 2 3
Omega
1
Phase(rad)
−1
−2
−3
−3 −2 −1 0 1 2 3
Omega
P7.60(b)
1
0.8
Magnitude
0.6
0.4
0.2
−3 −2 −1 0 1 2 3
Omega
1
Phase(rad)
−1
−2
−3 −2 −1 0 1 2 3
Omega
57
P7.60(c)
4
Magnitude
−3 −2 −1 0 1 2 3
Omega
1.5
0.5
Phase(rad)
−0.5
−1
−1.5
−3 −2 −1 0 1 2 3
Omega
7.61. Use the MATLAB commands filter and filtic to plot the loan balance at the start of each month
n = 0, 1, . . . L + 1 for Problem 7.53. Assume that y[−1] = $10, 000, L = 60, r = 0.1 and the monthly
payment is chosen to bring the loan balance to zero after 60 payments.
ρ−1
c = y[−1]
1 − ρ−L
y[−1] = 10, 000
L = 60
r
ρ = 1+ = 1.00833
12
c = 0.02125
b = [y[−1]ρ − c, − c(ones(1, 59))]
a = [1, ρ]
58
P7.61
10000
9000
8000
7000
6000
Balance
5000
4000
3000
2000
1000
0
0 10 20 30 40 50 60
Month
7.62. Use the MATLAB command zp2sos to determine a cascade connection of second-order sections
for implementing the systems in Problem 7.38.
=======
Part (a) :
==========
sos =
Part (b) :
==========
sos =
59
7.63. A causal discrete-time LTI system has the transfer function
(a) Use the pole and zero locations to sketch the magnitude response.
Im 0.3338
a 1 = tan−1
0.7686
a 2 = tan−1 0.5889
0.3575
a1
double a
2
double
Re
symmetric
a1 a2
2
60
P7.63(b)
0.8
|H(Omega)|
0.6
0.4
0.2
0
−3 −2 −1 0 1 2 3
Omega
2
< H(Omega) : rad
−1
−2
−3
−3 −2 −1 0 1 2 3
Omega
0.1413(1 + 2z −1 + z −2 ) 0.6907(1 − 2z −1 + z −2 )
H(z) =
1 − 0.715z −1 + 0.4746z −2 1 − 1.5372z −1 + 0.7022z −2
(d) Use the MATLAB command freqz to evaluate and plot the magnitude response of each section in (c).
61
P7.63(d)
0.6
0.5
|H1(Omega)|
0.4
0.3
0.2
0.1
0
−3 −2 −1 0 1 2 3
Omega
1.5
|H2(Omega)|
0.5
0
−3 −2 −1 0 1 2 3
Omega
Figure P7.63. (d) Plot of the Magnitude Response for each section.
(e) Use the MATLAB command filter to determine the impulse response of this system by obtaining the
output for an input x[n] = δ[n].
P7.63(e)
0.2
0.15
0.1
0.05
0
Impulse Resp
−0.05
−0.1
−0.15
−0.2
−0.25
−0.3
0 5 10 15 20 25 30 35 40 45
62
(f) Use the MATLAB command filter to determine the system output for the input
π π 3π
x[n] = 1 + cos( n) + cos( n) + cos( n) + cos(πn) u[n]
4 2 4
P7.63(f)
6
4
Input
0
0 50 100 150 200
1.5
0.5
Output
−0.5
−1
−1.5
0 50 100 150 200
The system eliminates “1” and “cos(πn)” terms. It also greatly attenuates the “cos( 3π
4 n)” term. The
π π
“cos( 2 n)” term is also attenuated, so the output is dominated by “cos( 4 n)”.
63
CHAPTER 8
Additional Problems
8.16 Provided that the channel bandwidth is not smaller than the reciprocal of the transmitted
pulse duration T, the received pulse is recognizable at the channel output. With T = 1µs, a
small enough value for the channel bandwidth is (1/T) = 106 Hz = 1 MHz.
8.17 For a low-pass filter of the Butterworth type, the squared magnitude response is defined by
2 1
H ( jω ) = ----------------------------------
2N
(1)
1 + ( ω ⁄ ωc )
Define
2 2
∈ 0 = 1 – (1 - ∈ ) = 2∈ - ∈
Hence
2 1
δ = ------------------------------------
2N
(3)
1 + ( ωs ⁄ ωc )
Define
2
δ0 = δ
1
8.18 We start with the relation
2
H ( jω ) jω=s = H ( s )H ( – s )
For a Butterworth low-pass filter of order 5, the 10 poles of H(s)H(-s) are uniformly
distributed around the unit circle in the s-plane as shown in Fig. 1.
jω
s-plane
x x
x x
x x σ
x x
x x
Figure 1
Identifying the zeros of D(s)D(-s) in the left-half plane with D(s) and those in the right-
half plane with D(-s), we may express D(s) as
D ( s ) = ( s + 1 )(s + cos 144° + j sin 144°) ( s + cos 144° – j sin 144° )
× (s + cos 108° + j sin 108°) ( s + cos 108° – j sin 108° )
5 4 3 2
= s + 3.2361s + 5.2361s + 5.2361s + 3.2361s + 1
Hence,
1
H ( s ) = -----------
D(s)
1
= ---------------------------------------------------------------------------------------------------------------------------
5 4 3 2
-
s + 3.2361s + 5.2361s + 5.2361s + 3.2361s + 1
8.19 (a) For filter order N that is odd, the transfer function H(s) of the filter must have a real
pole in the left-half plane. Let this pole be s = -a where a > 0. We may then write
1
H ( s ) = ------------------------------
( s + a )D′ ( s )
2
where D′ ( s ) is the remainder of the denominator polynomial. For a Butterworth low-
pass filter of cutoff frequency ωc, all the poles of H(s) lie on a circle of radius ωc in the
left-half plane. Hence, we must have a = -ωc.
(b) For a Butterworth low-pass filter of even order N, all the poles of the transfer function
H(s) are complex. They all lie on a circle of radius ωc in the left-half plane. Let s = -a -
jb, with a > 0 and b > 0, denote a complex pole of H(s). All the coefficients of H(s) are
real. This condition can only be satisfied if we have a complex conjugate pole at s = -a
+ jb. We may then express the contribution of this pair of poles as
1 1
--------------------------------------------------------- = ------------------------------
( s + a + jb ) ( s + a – jb ) (s + a) + b
2 2
whose coefficients are all real. We therefore conclude that for even filter order N, all
the poles of H(s) occur in complex-conjugate pairs.
1.4
1.2
1
Magnitude Response
0.8
0.6
0.4
Figure 1
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Normalized Frequency w/wc
3
8.21 We are given the transfer function
1
H ( s ) = -------------------------------------------------------------------------------------------------
2
- (1)
( s + 1 ) ( s + 0.618s + 1 ) ( s + 1.618s + 1 )
To modify this low-pass filter so as to assume a cutoff frequency ωc, we use the
transformation
s
s → ------
ωc
To transform this low-pass filter into a band-pass filter with bandwidth B centered on ω0,
we use the following transformation:
2 2
s + ω0
s → -----------------
Bs
4
3
0.001s
= ---------------------------------------------------------------------------------------------------------------
2 4 3 2
- (3)
( s + 0.1s + 1 ) ( s + 0.1s + 2.01s + 0.1s + 1 )
The magnitude response of this band-pass filter of the Butterworth type, obtained by
putting s = jω in Eq. 3, is plotted in Fig. 1.
Bandpass Response
1.4
1.2
1
Squared Magnitude Response
0.8
0.6
0.4
Figure 1
0.2
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Normalized Frequency w/wc
8.23 For the counterpart to the low-pass filter of order one in Fig. 8.14(a), we have
1Ω
o o o
+
v1(t) + IF v2(t)
-
-
o o o
Input Output
Filter
5
For the counterpart to the low-pass filter of order three in Fig. 8.14(b), we have
1Ω 1H
o o o o
+
v1(t) + IF v2(t)
-
IF
-
o o o o
Input Output
Filter
Note that in both of these figures, the 1Ω resistance may be used to account for the source
resistance. Note also that the load resistance is infinitely large.
8.24 (a) For Fig. 8.14(a), the capacitor has the value
1
C = ---------------------------------------F
4 5
( 10 ) ( 2π × 10 )
3
10
= -------- pF
2π
= 159 pF
(b) For Fig. 8.14(a), the two capacitors are 159 PF each. The inductor has the value
4
( 10 )
L = -------------------------
5
-H
( 2π × 10 )
100
= --------- mH
2π
= 15.9 mH
where A(z) is an arbitrary polynomial in z-1. The H(z) of Eq. (1) has a zero at z = 1 as
prescribed. Let the sequence a[n] denote the inverse z-transform of A(z). Expanding Eq.
(1):
–1
H (z) = A(z) – z A(z) (2)
6
which may be represented by the block diagram:
From Eq. (2) we readily find that the impulse response of the filter must satisfy the
condition
h[n] = a[n] – a[n – 1]
where a[n] is the inverse z-transform of an arbitrary polynomial A(z).
∑
jΩ - jnΩ
H′ ( e ) = h d [ n ]e
n=-M ⁄ 2
Replacing n with n - M/2 so as to make the filter causal, we may thus write
- j n – ----- Ω
M M
2
∑ hd
jΩ M
H′ ( e ) = n – ----- e
2
n=0
M
jMΩ ⁄ 2
∑ hd
M - jnΩ
= e n – ----- e (1)
2
n=0
Equivalently we have
jΩ – j MΩ ⁄ 2 jΩ
H (e ) = e H′ ( e )
which is the desired result.
7
8.27 According to Eqs. (8.64) and (8.65), the magnitude r = |z| and phase θ = arg{z} are defined
by
1⁄2
( 1 + σ ) 2 + ω 2
r = --------------------------------
- (1)
( 1 – σ ) 2 + ω 2
–1 ω –1 ω
θ = tan ------------- – tan ------------ (2)
1 + σ 1 – σ
For the more general case of a sampling rate 1/Ts for which we have
1 z–1
s = ----- -----------
Ts z + 1
or
Ts
1 + -----s
2
z = ------------------
Ts
1 – -----s
2
Ts Ts
we may rewrite Eqs. (1) and (2) by replacing ω with -----ω and σ with -----σ , obtaining
2 2
1⁄2
2 2
- + σ + ω
2
----
Ts
r = ------------------------------------
2
----- – σ + ω
2 2
Ts
– 1
ω – 1 ω
θ = tan ---------------- – tan ---------------
----
2
- + σ ----
2
- – σ
Ts Ts
Taking z-transforms:
–1
Y ( z ) = X ( z ) + ρz Y ( z )
8
Y (z) 1
H ( z ) = ----------- = ------------------- (1)
X (z) 1 – ρz
–1
For ρ = 1, we have
1
H ( z ) = ---------------
–1
- (2)
1–z
with
jΩ 1
H (e ) = ----------------------
– jΩ
1–e
1
= --------------------------------------------------------------
1⁄2
-
2 2
[ ( 1 – cos Ω ) + sin Ω ]
1
= -------------------------------------
1⁄2
-
( 2 – 2 cos Ω )
which is plotted in Fig. 1 for 0 ≤ Ω ≤ π . From this figure we see that the filter defined
in Eq. (2) does not deviate from the ideal integrator by more than 1% for
0 ≤ Ω ≤ 0.49 .
ρ=1
4
3.5
2.5
Magnitude
1.5
1
Filtered
0.5
Ideal
Figure 1
0
0 0.5 1 1.5 2 2.5 3
Normalized Frequency
9
(b) For ρ = 0.99, the use of Eq. (1) yields
1
H ( z ) = --------------------------
–1
- (3)
1 – 0.99z
That is,
jΩ 1
H (e ) = --------------------------------
– jΩ
-
1 – 0.99e
1
= -----------------------------------------------------------------------------------------
-
2 2 1⁄2
[ ( 1 – 0.99 cos Ω ) + ( 0.99 sin Ω ) ]
1
≈ ----------------------------------------------------
1⁄2
-
( 1.98 – 1.98 cos Ω )
which is plotted in Fig. 2. From this second figure we see that the usable range of the filter
of Eq. (3) as an integrator is reduced to 0.35.
ρ = 0.99
4
3.5
2.5
Magnitude
1.5
1
Filtered
Figure 2
0.5
Ideal
0
0 0.5 1 1.5 2 2.5 3
Normalized Frequency
10
z-1, we may write
–1 –2 –3
0.0181 ( 1 + 3z + 3z + z )
H ( z ) = --------------------------------------------------------------------------------------------
–1 –2 –3
-
1 – 1.7564z + 1.0308z – 0.2014z
.
Hence, the filter may be implemented in direct form II using the following configuration:
0.0205 +
Σ
Input
+ Σ Output
x[n] − + y[n]
z-1
Σ
1.7564
. 3
Σ
.
z-1
-1.0308 3
Σ Σ
z-1
0.2014
.
8.30 (a) The received signal, ignoring channel noise, is given by
y ( t ) = x ( t ) + 0.1x ( t – 10 ) + 0.2x ( t – 15 )
where x(t) is the transmitted signal, and time t is measured in microseconds. Suppose
y(t) is sampled uniformly with a sampling period of 5 µs, yielding
y [ n ] = x [ n ] + 0.1x [ n – 2 ] + 0.2x [ n – 3 ] (1)
y[n] +
-
Σ . Equalizer
output
z-2
Σ 0.1 .
z-1
0.2
11
For H eq ( z ) to be stable, all of its three poles or, equivalently, all three roots of the
cubic equation
–2 –3
1 + 0.1z + 0.2z = 0 , or equivalently,
3
z + 0.1z + 0.2 = 0
must lie inside the unit circle in the z-plane. Using MATLAB, we find the roots are
z = 0.2640 + j0.5560
z = 0.2640 - j0.5560
z = -0.5280
which confirm stability of the IIR equalizer.
.
y[n]
z-2 . z-1 . z-1 . z-1 . z-1 . z-2
Σ Σ Σ Σ Σ Σ Equalizer
output
12
Advanced Problems
FT
Let x ( t ) ↔ X ( jω ) . We may therefore reformulate the expression for y(t) as
1- ∞
∫ X ( jω )e dω
t jωt
y ( t ) = ∫ -----
2π –∞ dτ
t-T 0
x(τ)
– ∞ 2π t-T 0
T 0
∞ T0 ωT 0 jω t – -----
2
-
= ------ ∫ X ( jω ) ⋅ ------ sin c ---------- e
1
dω (2)
2π –∞ 2π 2π
(a) Invoking the formula for the inverse Fourier transform, we immediately deduce from
Eq. (2) that the Fourier transform of the integrator output y(t) is given by
T0 ωT 0 – j ωT 0 ⁄ 2
Y ( jω ) = ------ sin c ---------- e (3)
2π 2π
Examining this formula, we also readily see that y(t) can be equivalently obtained by
passing the input signal x(t) through a filter whose frequency response is defined by
T0 ωT 0 – j ωT 0 ⁄ 2
H ( jω ) = ------ sin c ---------- e
2π 2π
The magnitude response of the filter is depicted in Fig. 1:
0.2
0.18
T/2*pi
0.16
0.12
0.1
0.08
0.06
Figure 1
0.04
0.02
0
−6*pi/T −4*pi/T −2*pi/T 0 2*pi/T 4*pi/T 6*pi/T
13
(b) Figure 1 also includes the magnitude response of an “approximating” ideal low-pass
filter. This latter filter has a cutoff frequency ω0 = 2π/T0 and passband gain of T0/2π.
Moreover, the filter has a constant delay of T0/2. The response of this ideal filter to a
step function applied at time t = 0 is given by
2π T 0
------ t – ------
T0 T0 2 sin λ
y′ ( t ) = ------
π ∫–∞ ----------- dλ
λ
From Eq. (1) we find that the ideal integrator output at time t = T0 in response to the
step function x(t) = u(t) is given by
T0
y(T 0) = ∫0 u ( τ ) dτ
It follows therefore that the output of the “approximating” ideal low-pass filter exceeds
the output of the ideal integrator by 9%. It is noteworthy that this overshoot is indeed a
manifestation of the Gibb’s phenomenon.
8.32 To transform a prototype low-pass filter into a bandstop filter of midband rejection
frequency ω0 and bandwidth B, we may use the transformation
Bs
s → -----------------
2 2
(1)
s + ω0
Using the transformation of Eq. (1) in Eq. (2), we obtain a bandstop filter defined by
1
H ( s ) = ---------------------------
Bs
-----------------
2 2
+1
s + ω0
14
2 2
s + ω0
= -----------------------------
2
-
2
s + B s + ω0
which is characterized as follows:
H (s) s = 0 = H (s) s = ∞ = 1
H (s) s = ± jω 0 = 0
8.33 An FIR filter of type 1 has an even length M and is symmetric about M/2 in that its
coefficients satisfy the condition
h[n] = h[ M – n] for n = 0, 1, …, M
∑ h [ n ]e
jΩ – j nΩ
H (e ) =
n=0
Define
M M
a [ k ] = 2h ----- – k , k = 1, 2, …, -----
2 2
M
a [ 0 ] = h -----
2
and let
M
n = ----- – k
2
15
M
----2-
– j MΩ ⁄ 2 M
∑ h ----
jΩ M jkΩ – j kΩ
H (e ) = e - – k (e +e ) + h -----
k=1 2 2
M
----2-
– j MΩ ⁄ 2
∑ 2a [ k ] ( e
jkΩ – j kΩ
= e +e ) + a(0)
k=1
M
----2-
– j MΩ ⁄ 2
= e ∑ a [ k ] cos ( kΩ ) (2)
k=0
From Eq. (2) we may make the following observations for an FIR filter of type I:
jΩ
1. The frequency response H ( e ) has a linear phase component exemplified by the
– j MΩ ⁄ 2
exponential e .
2. At Ω = 0,
M⁄2
∑ a[k ]
j0
H (e ) =
k=0
At Ω = π,
M⁄2 M
----- + k
∑ a [ k ] ( –1 )
jπ 2
H (e ) =
k=0
jΩ
The implications of these two results are that there are no restrictions on H ( e ) at
Ω = 0 and Ω = π.
8.34 For an FIR filter of type II, the filter length M is even and it is antisymmetric in that its
coefficients satisfy the condition
M
h [ n ] = –h [ M – n ] , 0 ≤ n ≤ ----- – 1
2
16
M
----- -1
2 M
M – j MΩ ⁄ 2
∑ h [ n ]e ∑
jΩ – j nΩ – j nΩ
H (e ) = + h ----- e + h [ n ]e
2
n=0 M
n= ----- +1
2
M M
----- -1 ----- -1
2 2
M – j MΩ ⁄ 2 – j ( M – n )Ω
∑ h [ n ]e ∑ h [ M – n ]e
– j nΩ
= + h ----- e +
2
n=0 n=0
M M
----- -1 ----- -1
2 2
M – j MΩ ⁄ 2 – j ( M – n )Ω
∑ h [ n ]e ∑ h [ n ]e
– j nΩ
= + h ----- e – (1)
2
n=0 n=0
Define
M M
a [ k ] = 2h ----- – k , k = 1, 2, …, -----
2 2
M
a [ 0 ] = h ----- ,
2
and let
M
k = ----- – n
2
From Eq. (2) we may make the following observations on the frequency response of an
FIR filter of Type II
2. At Ω = 0,
17
j0
H (e ) = 0
jπ
H (e ) = 0
∑ h [ n ]e
jΩ – j nΩ
H (e ) =
n=0
∑ h [ n ]e ∑
jΩ – j nΩ – j nΩ
H (e ) = + [ n ]e
n=0 M+1
n= ------------
2
M-1 M-1
---------- n= ----------
2 2
– j ( M – n )Ω
∑ h [ n ]e ∑
– j nΩ
= + h [ M – n ]e
n=0 n=0
M-1
-----------
2
– j ( M – n )Ω
∑ h[n](e
– j nΩ
= +e )
n=0
M-1
----------- M M
j ----2- – n Ω – j ----- – n Ω
2
– j MΩ ⁄ 2 2
= e ∑ h [ n ] e + e
(1)
n=0
Define
M+1 M+1
b [ k ] = 2h ------------ – k for k = 1, 2, …, ------------
2 2
and let
18
M+1
n = ------------ – k
2
∑ b ( k ) cos Ω k – --2-
– j MΩ ⁄ 2 1
= e (2)
k=1
From Eq. (2) we may make the following observations on the frequency response of an
FIR filter of type III:
1. The phase response of the filter is linear as exemplified by the exponential factor
– j MΩ ⁄ 2
e .
2. At Ω = 0,
M+1
------------
2
∑ b(k )
j0
H (e ) =
k=1
j0
which shows that there is no restriction on H ( e ) .
At Ω = π,
M+1
------------
2
∑ b ( k ) cos π k – --2-
jπ – j Mπ ⁄ 2 1
H (e ) = e
k=1
M+1
------------
2
– j Mπ ⁄ 2
= e ∑ b ( k ) sin ( πk )
k=1
which is zero since sin(πk) = 0 for all integer values of k.
19
M
∑ h [ n ]e
jΩ - jnΩ
H (e ) =
n=0
which may be reformulated as follows:
M-1
-----------
2 M
∑ h [ n ]e ∑
jΩ - jnΩ - jnΩ
H (e ) = + h [ n ]e
n=0 M+1
n= ------------
2
M-1 M-1
----------- -----------
2 2
- j ( M – n )Ω
∑ h [ n ]e ∑ h [ M – n ]e
- jnΩ
= +
n=0 n=0
M-1 M-1
----------- -----------
2 2
- j ( M – n )Ω
∑ h [ n ]e ∑ h [ n ]e
- jnΩ
= –
n=0 n=0
M-1
----------- M M
– j n – ----2- Ω j n – ----- Ω
2
– j MΩ ⁄ 2 2
= e ∑ h [ n ] e –e
(1)
n=0
Define
M+1 M+1
b [ k ] = 2h ------------ – k for k = 1, 2, …, ------------
2 2
and let
M+1
k = ------------ – n
2
From Eq. (2) we may make the following observations on the FIR filter of type IV:
20
1. The phase response of the filter includes a linear component exemplified by the
– j MΩ ⁄ 2
exponential e .
2. At Ω = 0,
j0
H (e ) = 0
At Ω = π,
M+1
------------
2
8.37 The FIR digital filter used as a discrete-time differentiator in Example 8.6 exhibits the
following properties:
• The filter length M is an odd integer.
• The frequency response of the filter satisfies the conditions:
1. At Ω = 0,
j0
H (e ) = 0
2. At Ω = π,
jΩ
H (e ) = 0
These properties are basic properties of an FIR filter of type III discussed in Problem 8.34.
We therefore immediately deduce that the FIR filter of Example 8.6 is antisymmetric
about the noninteger point n = M/2.
8.38 For a digital IIR filter, the transfer function H(z) may be expressed as
N (z)
H ( z ) = ------------
D(z)
where N(z) and D(z) are polynomials in z-1. The filter is unstable if any pole of H(z) or,
equivalently, any zero of the denominator polynomial D(z) lies outside the unit circle in
the z-plane. According to the bilinear transform,
H (z) = H a(s) z-1
s = ---------
z+1
21
where Ha(s) is the transfer function of an analog filter used as the basis for designing the
digital IIR filter. The poles of H(z) outside the unit circle in the z-plane correspond to
certain poles of H(s) in the right half of the s-plane. Conversely, the poles of H(s) in the
right half of the s-plane are mapped onto the outside of the unit circle in the z-plane. Now
if any pole of Ha(s) lies in the right-half plane, the analog filter is unstable. Hence if any
such filter is used in the bilinear transform, the resulting digital filter is likewise unstable.
∑ Ak e
dkt
ha ( t ) = (1)
k=1
According to the method of impulse invariance, the impulse response of a digital filter
derived from the analog filter of Eq. (1) is defined by
h [ n ] = T s h a ( nT s )
where Ts is the sampling period. Hence, from Eq. (1) we find that
N
∑ T s Ak e
nd k T s
h[n] = (2)
k=1
Hence, the transfer function of the digital filter is deduced from Eq. (2) to be
N
T s Ak
H (z) = ∑ ---------------------------
d T –1
k=1 1 – e k sz
8.40 Consider a discrete-time system whose transfer function is denoted by H(z). By definition,
22
Y (z)
H ( z ) = -----------
X (z)
where Y(z) and X(z) are respectively the z-transforms of the output sequence y[n] and input
sequence x[n]. Let Heq(z) denote the z-transform of the equalizer connected in cascade
with H(z).
Let x′ [ n ] denote the equalizer output in response to y[n] as the input. Ideally,
x′ [ n ] = x [ n – n 0 ]
jΩ
Putting z = e , we may thus write
– jn Ω
jΩ e 0
H eq ( e ) = -----------------
jΩ
-
H (e )
8.41 The phase delay of an FIR filter of even length M and antisymmetric impulse response is
linear with frequency Ω as shown by
θ ( Ω ) = – MΩ
The implication of this result is that as we make the filter length M larger, the constant
delay introduced by the equalizer is correspondingly increased. From a practical
perspective, such a trend is highly undesirable.
23
Computer Experiments
%Solution to 8.42
b = fir1(22,1/3,hamming(23));
subplot(2,1,1)
plot(b);
title(’Impulse Response’)
ylabel(’Amplitude’)
xlabel(’Time (s)’)
grid
[H,w] = freqz(b,1,512,2*pi);
subplot(2,1,2)
plot(w,abs(H))
title(’Magnitude Response’)
ylabel(’Magnitude’)
xlabel(’Frequency (w)’)
grid
Impulse Response
0.4
0.3
Amplitude
0.2
0.1
−0.1
0 5 10 15 20 25
Time (s)
Magnitude Response
1.4
1.2
1
Magnitude
0.8
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5
Frequency (w)
clear;
M = 100;
n = 0:M;
f = (n-M/2);
24
%Integration by parts (see example 8.6)
h = cos(pi*f)./f - sin(pi*f)./(pi*f.^2);
k = isnan(h);
h(k) = 0;
h_rect = h;
h_hamm = h .* hamming(length(h))’;
[H,w] = freqz(h_rect,1,512,2*pi);
figure(1)
subplot(2,1,1)
plot(h_rect);
title(’Rectangular Windowed Differentiator’)
xlabel(’Step’)
ylabel(’Amplitude’)
grid
subplot(2,1,2)
plot(w,abs(H))
title(’Magnitude Response’)
ylabel(’Magnitude’)
xlabel(’Frequency (w)’)
grid
[H,w] = freqz(h_hamm,1,512,2*pi);
figure(2);
subplot(2,1,1)
plot(h_hamm);
title(’Hamming Windowed Differentiator’)
xlabel(’Step’)
ylabel(’Amplitude’)
grid
subplot(2,1,2)
plot(w,abs(H))
title(’Magnitude Response’)
ylabel(’Magnitude’)
xlabel(’Frequency (w)’)
grid
25
Rectangular Windowed Differentiator
1
0.5
Amplitude
−0.5
−1
0 20 40 60 80 100 120
Step
Magnitude Response
4
3
Magnitude
0
0 0.5 1 1.5 2 2.5 3 3.5
Frequency (w)
0.5
Amplitude
−0.5
−1
0 20 40 60 80 100 120
Step
Magnitude Response
3.5
2.5
Magnitude
1.5
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5
Frequency (w)
8.44 For a Butterworth low-pass filter of order N, the squared magnitude response is
2 1
H ( jω ) = --------------------------
- (1)
ω 2N
1 + ------
ω c
26
2
10 log 10 H ( jω ) = – 15 dB
or, equivalently
2 1
H ( jω ) = -------------------
31.6228
omegaC = 0.2;
N = 5;
wc = tan(omegaC/2);
ns = wc^N;
ds = coeff .* (wc.^[0:N]);
[nz,dz]=bilinear(ns,ds,0.5);
[H,W]=freqz(nz,dz,512);
subplot(2,1,1)
plot(W,abs(H))
title(’Magnitude Response of IIR low-pass filter’)
xlabel(’rad/s’)
ylabel(’Magnitude’)
grid
27
%set(gcf,’name’,[’Low Pass: order=’ num2str(N) ’ wc=’num2str(omegaC)])
1.2
1
Magnitude
0.8
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5
rad/s
Phase Response
200
100
degrees
−100
−200
0 0.5 1 1.5 2 2.5 3 3.5
rad/s
omegaC = 0.6;
N = 5;
wc = tan(omegaC/2);
ns = [1/wc^N zeros(1,N)];
ds = fliplr(coeff ./ (wc.^[0:N]));
[nz,dz]=bilinear(ns,ds,0.5);
[H,W]=freqz(nz,dz,512);
subplot(2,1,1)
plot(W,abs(H))
title(’Magnitude Response of IIR high-pass filter’)
xlabel(’rad/s’)
ylabel(’Magnitude’)
grid
28
grid
0.8
Magnitude
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5
rad/s
Phase Response
200
100
degrees
−100
−200
0 0.5 1 1.5 2 2.5 3 3.5
rad/s
w = 0:pi/511:pi;
den = sqrt(1+2*((w/pi).^2) + (w/pi).^4);
Hchan = 1./den;
taps = 95;
M = taps -1;
n = 0:M;
f = n-M/2;
%Term 1
hh1 = fftshift(ifft(ones(taps,1))).*hamming(taps);
%Term 2
h = cos(pi*f)./f - sin(pi*f)./(pi*f.^2);
k=isnan(h); h(k)=0;
hh2 = 2*(hamming(taps)’.*h)/pi;
%Term 3
hh3a = -(1./(pi*f)) .* sin(pi*f);
hh3b = -(2./(pi*f).^2) .* cos(pi*f);
hh3c = (2./(pi*f).^3) .* sin(pi*f);
hh3 = hamming(taps) .* (hh3a + hh3b + hh3c)’;
hh = hh1’ + hh2 + hh3’;
hh(48)=2/3;
29
[Heq,w]=freqz(hh,1,512,2*pi);
p = 0.7501;
Hcheq = (p*abs(Heq)).*Hchan’;
plot(w,p*abs(Heq),’b--’)
hold on
plot(w,abs(Hchan),’g-.’)
plot(w,abs(Hcheq),’r-’)
legend(’Heq’, ’Hcan’, ’Hcheq’,1)
hold off
xlabel(’Frequency (\Omega)’)
ylabel(’Magnitude Response’)
1.5
Heq
Hcan
Hcheq
1
Magnitude Response
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5
Frequency (Ω)
30
CHAPTER 9
Additional Problems
G
(c) We are given: H = 1 and Gp = 1.5. Hence for S T p = 1% = 0.01, we require
F = 100
1
The corresponding value of Ga is therefore
F–1
G a = ------------
HGp
99
= ------- = 66
1.5
9.23 The local feedback around the motor has the closed-loop gain Gp/(1 + HGp). The closed-
loop gain of the whole system is therefore
K r Gc G p ⁄ ( 1 + H G p )
T = -----------------------------------------------------------
-
1 + K r Gc G p ⁄ ( 1 + H G p )
K r Gc G p
= -----------------------------------------------
-
1 + H G p + K r Gc G p
2
1
----------- > >R 1
ωC 1
we may approximate Eq. (1) as
V 2(s)
-------------- ≈ – sC 1 R 2
V 1(s)
That is, the operational amplifier acts as a differentiator.
9.26 Throughout this problem, H(s) = 1, in which case the open-loop transfer equals G(s). In
any event, the open-loop transfer function of the feedback control system may be
expressed as the rational function P(s)/(spQ1(s)), where neither the polynomial P(s) nor
Q1(s) has a zero at s = 0. Since 1/s is the transfer function of an integrator, it follows that p
is the number of free integrators in the feedback loop. The order p is referred to as the type
of the feedback control system.
(b) For
5
G ( s ) = ------------------------------------
s(s + 1)(s + 4)
the control system is type 1. The steady-state error for a step input is zero. For a ramp
of unit slope, the steady-state error is
1
∈ ss = ------
Kv
where
3
5
K v = lim ---------------------------------
s → 0 (s + 1)(s + 4)
5
= ---
4
The steady-state error is therefore
4
∈ ss = ---
5
For a parabolic input the steady-state error is infinitely large.
(c) For
5(s + 1)
G ( s ) = --------------------
2
-
s (s + 3)
the control system is type 2. Hence, the steady-state error is zero for both step and
ramp inputs. For a unit parabolic input the steady-state error is
1
∈ ss = ------
Ka
where
5(s + 1)
K a = lim -------------------
s→0 s+3
5
= ---
3
The steady-state error is therefore 3/5. For a unit parabolic input the steady-state error
is infinitely large.
(d) For
5(s + 1)(s + 2)
G ( s ) = ------------------------------------
2
s (s + 3)
the control system is type 2. The steady-state error is therefore zero for both step and
ramp inputs. For a unit parabolic input the steady-state error is
1
∈ ss = ------
Kn
where
5(s + 1)(s + 2)
K n = lim ------------------------------------
s→0 s+3
10
= ------
3
The steady-state error is therefore 3/10.
9.27 For the results on steady-state errors calculated in Problem 9.26 to hold, all the feedback
control systems in parts (a) to (d) of the problem have to be stable.
4
15
(a) G ( s )H ( s ) = ---------------------------------
(s + 1)(s + 3)
The characteristic equation is
A ( s ) = ( s + 1 ) ( s + 3 ) + 15
2
= s + 4s + 18
both roots of which are in the left-half plane. The system is therefore stable.
5
(b) G ( s )H ( s ) = ------------------------------------
s(s + 1)(s + 4)
5
= ------------------------------
3 2
-
s + 5s + 4s
3 2
A ( s ) = s + 5s + 4s + 5
s3 1 4
s2 5 5
s1 15/5 0
s0 5 0
There are no sign changes in the first column coefficients of the array; the system is
therefore stable.
5(s + 1)
(c) G ( s )H ( s ) = --------------------
2
-
s (s + 3)
3 2
A ( s ) = s + 3s + 5s + 5
s3 1 5
s2 3 5
s1 10/3 0
s0 5 0
Here again there are no sign changes in the first column of coefficients, and the control
system is therefore stable.
5
5(s + 1)(s + 2)
(d) G ( s )H ( s ) = ------------------------------------
2
s (s + 3)
3 2 2
A ( s ) = s + 3s + 5s + 15s + 10
3 2
= s + 8s + 15s + 10
s3 1 15
s2 8 10
s1 110/8 0
s0 10 0
Here again there are no sign changes in the first column of array coefficients, and the
control system is therefore stable.
4 2
9.28 (a) s + 2s + 1 = 0
Equivalently, we may write
2 2
(s + 1) = 0
which has double roots at s = +j. The system is therefore on the verge of instability.
4 3
(b) s + s + s + 0.5 = 0
By inspection, we can say that this feedback control system is unstable because the
term s2 is missing from the characteristic equation. We can verify this observation by
constructing the Routh array:
s4 1 0 0.5
s3 1 1 0
s2 -1 0.5 0
s1 +1.5 0
s0 9.5 0
There are two sign changes in the first column of array coefficients, indicating that the
characteristic equation has a pair of complex-conjugate roots in the right-half of the s-
plane. The system is therefore unstable as previously observed.
4 3 2
(c) s + 2s + 2s + 2s + 4 = 0
6
The Routh array is
s4 1 3 4
s3 2 2 0
s2 2 4 0
s1 -2 0
s0 -4 0
There are two sign changes in the first column of array coefficients, indicating the
presence of two roots of the characteristic equation in the right-half of the s-plane. The
control system is therefore unstable.
s3 1 1
s2 1 K
s1 1-K 0
s0 K 0
The control system is therefore stable provided that the parameter K satisfies the
condition:
0<K<1
s3 a3 a1
s2 a2 a0
a2 a1 – a3 a0
s1 ---------------------------
- 0
a2
s0 a0
7
a 3 > 0, a 2 > 0, a 0 > 0 and
a2 a1 – a3 a0
---------------------------- > 0 (1)
a2
Since L(s) has a pair of complex-conjugate poles, we need (in addition to the rules
described in the text) a rule concerning the angle at which the root locus leaves a
complex pole (i.e., angle of departure). Specifically, we wish to determine the angle
θdep indicated in Fig. 1 for the problem at hand:
8
jω
s-plane x
θdep
θ1
σ
0
θ2
x
Figure 1
jω
x s-plane
x σ
0
Figure 2
9
Applying the Routh-Hurwitz criterion:
s3 1 2
s2 1 K
s1 2-K 0
s0 K 0
The system is therefore on the verge of instability when K = 2. For this value of K the
root locus intersects the jω-axis at s2 + K = 0 or s = ± j K = ± j 2 , as indicated in
Fig. 2.
9.32 The closed-loop transfer function of a control system with unity feedback is
L(s)
T ( s ) = --------------------
1 + L(s)
We are given
K K
L ( s ) = ------------------- = -------------
-
s(s + 1) 2
s +3
Hence
K
T ( s ) = ------------------------
2
s +3+K
10
Figure 1 plots the respective step responses of these three special cases of the feedback
system.
t = 0:0.1:40;clc;
%Underdamped System
K = 0.1;
w = sqrt(K);
z = 0.5/w;
figure(1);clf;
plot(t,y1,’-’)
%ylim([0 1.5])
xlabel(’Time (s)’)
ylabel(’Response’)
%title(’Underdamped K = 0.1’)
hold on
y2 = 1 - exp(-t/tau) - t.*exp(-t/tau);
plot(t,y2,’-.’)
y3 = 1 - k1*exp(-t/t1) - k2*exp(-t/t2);
plot(t,y3,’--’)
hold off
legend (’K = 0.1’,’K = 0.25’,’K = 2.5’)
11
1.4
K = 0.1
K = 0.25
1.2 K = 2.5
0.8
0.6
Response
0.4
0.2
Figure 1
−0.2
−0.4
0 5 10 15 20 25 30 35 40
Time (s)
12
9.33 We are given the loop transfer function
K ( s + 0.5 )
L ( s ) = ------------------------
4
-
(s + 1)
Figure 1 shows the root locus diagram of the closed-loop feedback system for varying
positive values of K.
num = [1 0.5];
den = [1 4 6 4 1];
rlocus(num,den)
axis([-1.5 .1 -2.2 2.2])
Root Locus
1.5
0.5
Imag Axis
−0.5
−1
−1.5
−2
−1.5 −1 −0.5 0
Real Axis
13
9.34 We are given the loop transfer function
K
L ( s ) = -----------------------------------
2
(s + 1) (s + 5)
(a) Figure 1 shows the root locus diagram of the closed-loop feedback system for varying
K.
Parts (a), (b) and (c) of Fig. 2 show plots of the Nyquist locus of the system for K = 50,
72, and 100. On the basis of these figures we can make the following statements:
1. For K = 50 the locus does not encircle the critical point (-1, 0) and the system is
stable.
2. For K = 100 the locus encloses the critical point (-1, 9) and the system is unstable.
3. For K = 72 the Nyquist locus passes through the critical point (-1,0) and the system
is on the verge of instability.
14
The phase of L(jω) at ω = 2.4986 is
– 1 2.4986
2 tan ( 2.4986 ) + tan ---------------- = 2 × 68.2° + 26.5°
–1
2
= 162.9°
The phase margin is therefore
ϕ m = 180° – 162.9° = 17.1°
clear; clc;
num = [1];
den = [1 7 11 5];
figure(1);clf;
rlocus(num,den)
figure(2);clf;
nyquist(num,den)
xlim([-1.1 0.22])
Root Locus
10
5
K = 73.56
Imag Axis
−5
−10
Figure 1
−15 −10 −5 0 5
Real Axis
15
Nyquist Diagram
0.1
0.05
Imaginary Axis
−0.05
−0.1
16
9.35 We are given
K
L ( s ) = -------------------
s(s + 1)
For s = jω,
K
L ( jω ) = ----------------------------
jω ( jω + 1 )
From Eq. (2) we observe that the phase response arg{L(jω)} is confined to the range [-90o,
-180o]. The value of -180o is attained only at ω = ∞. At this frequency we see from Eq. (1)
that the magnitude response |L(jω)| is zero. Hence, the Nyquist locus will never encircle
the critical point (-1,0) for all positive values of K. The feedback system is therefore stable
for all K > 0.
For s = jω,
K
L ( jω ) = -----------------------------
2
-
-ω ( jω + 1 )
Hence the Nyquist locus will encircle the critical point (-1,0) for all K > 0; that is, the
system is unstable for all K > 0.
s3 1 0
s2 1 K
s1 -K 0
17
s0 K 0
There are 2 sign changes in the first column of coefficients in the array, assuming K > 0.
Hence the system is unstable for all K > 0.
Hence
K
L ( jω ) = -------------------------------------------------------------
1⁄2 1⁄2
(1)
2 2
ω(ω + 1) (ω + 4)
–1 ω
arg { L ( jω ) } = – 90° – tan ( ω ) – tan ----
–1
(2)
2
2
where ωp is the phase-crossover frequency. Putting ω p = x and rearranging terms:
3 2
x + 5x + 4x – 36 = 0
Solving this cubic equation for x we find that it has only one positive root at x = 2.
Hence,
ωp = 2
18
We may also verify this result by applying the Routh-Hurwitz criterion to the
characteristic equation:
3 2
s + 3s + 2s + K = 0
Specifically, we write
s3 1 2
s2 3 K
s1 6-K 0
----------
3
s0 K
(c) Let ωg denote the gain-crossover frequency for the required phase margin ϕ m = 20° .
We may then write
L ( jω g ) = 1
–1 ω
arg { L ( jω g ) } = – 90° – tan ( ω g ) – tan ------
–1 g
2
With
arg { L ( jω g ) } = 180° – 20°
we thus have
19
ωg –1
70° = tan ( ω g ) + tan ------
–1
2
Through a process of trial and error, we obtain the solution
ω g = 0.972
For L ( jω g ) = 1 we thus require
2 1⁄2 2 1⁄2
K = ωg ( ωg + 1 ) ( ωg + 4 )
1⁄2 1⁄2
= 0.972 ( 1.9448 ) ( 4.9448 )
= 3.0143
The gain margin is therefore
9.38 For the purpose of illustration, suppose the loop frequency response L(jω) has a finite
magnitude at ω = 0. Suppose also the feedback system represented by L(jω) is stable. We
may then sketch the Nyquist locus of the system for 0 < ω < ∞, including gain margin and
phase margin provisions, as follows
Im{L(jω)}
(ω = ωp)
.
|L(jωp)|
(ω = ∞)
. |L(0)|
Re{L(jω)}
(-1,0)
critical point
. ϕm
0
(ω = 0)
(ω = ωg)
The phase margin of the system is ϕm (measured at the gain-crossover frequency ωg). The
1
gain margin is 20 log 10--------------------- (measured at the phase crossover frequency ωp).
L ( jω p )
20
(a) Figure 1 on the next page plots the Bode diagram of L(jω) for K = 1. Changing the
value of K merely shifts the loop gain response by a constant amount equal to
20log10K. This constant gain is tabulated as follows:
K 20log10K, dB
7 16.90
8 18.06
9 10.08
10 20.00
11 20.83
Applying the gain adjustments (as shown in this table) to the loop response of Fig. 1,
we may make the following observations:
To calculate the phase margin we need to know the gain-crossover frequency ωg. At
ω = ωg the following condition is satisfied
42
1 = -----------------------------------------------------------------------------
1 ⁄ 2 1⁄2
-
2 2 2
( ωg + 1 ) ( ωg + 4 ) ( ωg + 9 )
2
Let ω g = x and so rewrite this equation as
3 2
x + 14x + 49x – 1728 = 0
The only positive root of this cubic equation is at x = 7.8432. Hence,
ω g = 7.8432 = 2.8006
The phase margin for K = 7 is therefore
–1 –1 –1
180° – tan ( 2.8006 ) – tan ( 1.4003 ) – tan ( .9335 )
= 180° – 70.4° – 54.5° – 43°
= 12.2°
21
• For K = 9, gain margin = 0.915 dB
phase margin - 3.41o
clear; clc;
for K = 7:11,
figure(K-6)
num = [6*K];
den = [1 6 11 6];
subplot(1,2,1)
margin(num,den)
subplot(1,2,2)
nyquist(num,den)
text(0.3,0.3,[’K = ’ num2str(K)])
end
Bode Diagram
Gm = 3.098 dB (at 3.3166 rad/sec), Pm = 12.154 deg (at 2.8005 rad/sec) Nyquist Diagram
20
5
0
4
−20
Magnitude (dB)
3
−40
−60 2
−80 1
Imaginary Axis
−100 K=7
0
0
−45 −1
−90 −2
Phase (deg)
−135
−3
−180
−4
−225
−5
−270
−1 0 1 2 0 2 4 6
10 10 10 10
Frequency (rad/sec) Real Axis
Figure 1
22
Bode Diagram
Gm = 1.9382 dB (at 3.3166 rad/sec), Pm = 7.3942 deg (at 2.9889 rad/sec) Nyquist Diagram
20
0 5
−20 4
Magnitude (dB)
−40 3
−60
2
−80
1
Imaginary Axis
−100 K=8
0
0
−1
−45
−2
−90
Phase (deg)
−135 −3
−180 −4
−225 −5
−270
−1 0 1 2 0 2 4 6 8
10 10 10 10
Frequency (rad/sec) Real Axis
Figure 2
23
Bode Diagram
Gm = 0.91515 dB (at 3.3166 rad/sec), Pm = 3.408 deg (at 3.1598 rad/sec) Nyquist Diagram
20
6
0
−20
Magnitude (dB)
4
−40
−60
2
−80
Imaginary Axis
−100 K=9
0
0
−45
−2
−90
Phase (deg)
−135
−4
−180
−225
−6
−270
−1 0 1 2 −2 0 2 4 6 8
10 10 10 10
Frequency (rad/sec) Real Axis
Figure 3
24
Bode Diagram
Gm = 4.7762e−006 dB (at 3.3166 rad/sec), Pm = 3.3141e−006 deg (at 3.3166 rad/sec) Nyquist Diagram
20
0
6
−20
Magnitude (dB)
−40 4
−60
2
−80
Imaginary Axis
−100 K = 10
0
0
−45
−2
−90
Phase (deg)
−135 −4
−180
−6
−225
−270
−1 0 1 2 −2 0 2 4 6 8 10
10 10 10 10
Frequency (rad/sec) Real Axis
Figure 4
25
Bode Diagram
Gm = −0.82785 dB (at 3.3166 rad/sec), Pm = −2.9625 deg (at 3.462 rad/sec) Nyquist Diagram
50 8
6
0
Magnitude (dB)
−50
Imaginary Axis
−100 K = 11
0
0
−45
−2
−90
Phase (deg)
−4
−135
−180
−6
−225
−270 −8
−1 0 1 2 −2 0 2 4 6 8 10
10 10 10 10
Frequency (rad/sec) Real Axis
Figure 5
26
9.40 Figures 1, 2, 3, and 4 on the next four pages plot the Bode diagrams for the following loop
transfer functions:
50
(a) L ( s ) = ---------------------------------
(s + 1)(s + 2)
5
(b) L ( s ) = --------------------------------------------------
(s + 1)(s + 2)(s + 5)
5
(c) L ( s ) = ------------------3-
(s + 1)
10 ( s + 0.5 )
(d) L ( s ) = --------------------------------------------------
(s + 1)(s + 2)(s + 5)
clear; clc;
figure(1)
num = [50];
den = [1 3 2];
margin(num,den)
figure(2)
num = [5];
den = [1 8 17 10];
margin(num,den)
figure(3)
num = [5];
den = [1 3 3 1];
margin(num,den)
figure(4)
num = [10 5];
den = [1 8 17 10];
margin(num,den)
figure(4)
num = [10 5];
den = [1 8 17 10];
margin(num,den)
27
Bode Diagram
Gm = Inf, Pm = 24.432 deg (at 6.8937 rad/sec)
30
25
20
Magnitude (dB)
15
10
−5
−10
−45
Phase (deg)
−90
−135
−180
−1 0 1
10 10 10
Frequency (rad/sec)
Figure 1
28
Bode Diagram
Gm = 28.036 dB (at 4.1248 rad/sec), Pm = Inf
0
−20
−40
Magnitude (dB)
−60
−80
−100
−120
−45
−90
Phase (deg)
−135
−180
−225
−270
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
Figure 2
29
Bode Diagram
Gm = 4.0836 dB (at 1.7322 rad/sec), Pm = 17.37 deg (at 1.387 rad/sec)
20
10
0
Magnitude (dB)
−10
−20
−30
−40
−50
−60
−45
−90
Phase (deg)
−135
−180
−225
−270
−1 0 1
10 10 10
Frequency (rad/sec)
Figure 3
30
Bode Diagram
Gm = Inf, Pm = Inf
0
−10
−20
Magnitude (dB)
−30
−40
−50
−60
−70
−80
45
0
Phase (deg)
−45
−90
−135
−180
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
Figure 4
31
9.41 From Example 9.9 we have the loop transfer function
0.5K ( s + 2 )
L ( s ) = --------------------------------------
s ( s + 12 ) ( s – 4 )
For s = jω,
0.5K ( jω + 2 )
L ( jω ) = ----------------------------------------------------
jω ( jω + 12 ) ( jω – 4 )
Figures 1, 2, and 3 on the next three pages plot the Bode diagrams of L(jω) for K = 100,
128, and 160, respectively.
(b) For K = 128 the Bode diagram exactly satisfies the conditions |L(jω)| = 1 and
arg{L(jω)} = 180o. Hence the system is on the verge of instability for K = 128.
(c) For K = 100 the gain margin is -2.14 dB, which is negative. The system is therefore
unstable for K = 100.
(d) For K = 160 the gain margin is 1.94 dB, which is positive. The system is therefore
stable for K = 160.
These observations reconfirm the conclusions reached on the stability performance of L(s)
in Example 9.9.
clear; clc;
figure(1)
K=128;
num = 0.5*K*[1 2];
den = [1 8 -48 0];
[Gm128,Pm128,Wcg128,Wcp128] = margin(num,den)
figure(2)
K=100;
num = 0.5*K*[1 2];
den = [1 8 -48 0];
[Gm100,Pm100,Wcg100,Wcp100] = margin(num,den)
figure(3)
K=160;
32
num = 0.5*K*[1 2];
den = [1 8 -48 0];
[Gm160,Pm160,Wcg160,Wcp160] = margin(num,den)
Bode Diagram
Gm = −1.9287e−015 dB (at 4 rad/sec), Pm = 0 (unstable closed loop)
40
20
Verge of Instability
Magnitude (dB)
−20
−40
−60
225
180
Phase (deg)
135
90
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
Figure 1
33
Bode Diagram
Magnitude (dB)
Phase (deg)
Frequency (rad/sec)
34
Bode Diagram
Gm = −1.9382 dB (at 4 rad/sec), Pm = 7.9361 deg (at 5.1942 rad/sec)
40
20 Unstable
Magnitude (dB)
−20
−40
−60
225
180
Phase (deg)
135
90
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
Figure 3
35
9.42 Let r(t) denote the feedback (return) signal produced by the sensor H(s). Then, following
the material presented in Section 9.16, we may, insofar as the computation of the Laplace
transform R(s) = L{r(t)} is concerned, replace the sampled-data system of Fig. P9.42 with
that shown in Fig. 1 below:
R(s)
Figure 1
The blocks labelled Aδ(s) and B(s) are defined as follows, respectively,
Rδ ( s ) Lδ ( s )
-------------
- = ---------------------
- (1)
X δ(s) 1 + Lδ ( s )
where
L δ ( s ) = A δ ( s )B δ ( s ) (2)
∞
1
B δ ( s ) = -----
Ts ∑ B ( s – jkωs )
k=-∞
where ωs = 2π/Ts.
36
From Fig. P9.42 we note that
E ( s ) = H ( s )Y ( s )
Hence,
E δ ( s ) = H δ ( s )Y δ ( s ) (3)
where
∞
1
H δ ( s ) = -----
Ts ∑ H ( s – jkωs )
k=-∞
Lδ ( s ) ⁄ H δ ( s )
Y δ ( s ) = -------------------------------- X δ ( s )
1 + Lδ ( s )
L(z) ⁄ H (z)
Y ( z ) = --------------------------- X ( z )
1 + L(z)
where
Y (z) = Y δ(s) sT s
e =z
9.43 From the material presented in Section 9.16 we note that (see Eq. (9.94))
Lδ ( s )
Y δ ( s ) = ----------------------X δ ( s ) (1)
1 + Lδ ( s )
where
L δ ( s ) = A δ ( s )B δ ( s ) (2)
37
– sT s
1. A δ ( s ) = ( 1 – e )D δ ( s ) (3)
where
Dδ ( s ) = D ( z ) sT s
z=e
∞
1
∑ B ( s – jkωs ) ,
2π
2. B δ ( s ) = ----- ω s = ------
Ts Ts
k=-∞
where
1
B ( s ) = --- G ( s )
s
K
= ----3
s
We are given
D ( z ) = K 1.5 + -------
z-1
z
–1
= K ( 2.5 – z )
Hence,
– sT s
D δ ( s ) = K ( 2.5 – e )
– sT s – sT s
Aδ ( s ) = K ( 1 – e ) ( 2.5 – e )
– sT s – 2sT s
= K ( 2.5 – 3.5e +e )
–1 –2
A ( z ) = K ( 2.5 – 3.5z +z )
38
–1
b(t ) = L { B(s)}
2
Kt
= --------u ( t )
2
Hence,
∑ b [ n ]e
– nsT s
Bδ ( s ) =
k=-∞
∞
K
∑n
2 – nsT s
= ---- e
2
k=0
B ( z ) = Bδ ( s ) Ts
e =z
2 2 –1 –1
KTs z(z + 1) K T s z (1 + z )
= ---------- ------------------3- = ---------- ----------------------------
-
4 (z – 1) 4 –1 3
(1 – z )
L ( z ) = Lδ ( s ) sT s
e =z
= A ( z )B ( z )
–1 –1
2 –1 –2 T s z ( 1 + z )
= K ( 2.5 – 3.5z + z ) ----- ----------------------------
-
4 –1 3
(1 – z )
2 2
K T s z –1 ( 2.5 – z –1 ) ( 1 + z –1 )
= ------------- ------------------------------------------------------
-
4 –1 2
(1 – z )
9.44 Here again following the material presented in Section 9.16 we may state that
Y (z) L(z)
----------- = --------------------
X (z) 1 + L(z)
39
where
L ( z ) = Lδ ( s ) sT s
e =z
L δ ( s ) = A δ ( s )B δ ( s )
– sT s
Aδ ( s ) = ( 1 – e )
∞
1
∑ B ( s – jkωs ) ,
2π
B δ ( s ) = ----- ω s = ------
Ts Ts
k=-∞
1
B ( s ) = --- G ( s )
s
5
= --------------------
2
-
s (s + 2)
5⁄4 5⁄2 5⁄4
= – ---------- + ---------
2
- + -----------
s s s+2
5 5 5 –2t
b ( t ) = – --- u ( t ) + --- t u ( t ) + --- e u ( t )
4 2 4
Hence,
∑ b [ n ]e
– nsT s
Bδ ( s ) =
n=-∞
∞ ∞ ∞
5 – nsT s 5 – nsT s 5
= – --- ∑ e + --- ∑ ne + --- ∑ e
– 2nsT s – nsT s
e
4 2 4
n=0 n=0 n=0
–1
5 1 5 T sz 5 1
B ( z ) = – --- ---------------
–
- + --- ----------------------
1
- + --- ---------------------------
2
-
4 1–z 2 –1 4 1 – e 2T s z –1
–
(1 – z )
–1
A(z) = (1 – z )
40
L ( z ) = A ( z )B ( z )
–1
5 –1 1 5 T sz 5 1
= ( 1 – z ) – --- ---------------
–
-
1
+ --
- - + --- ---------------------------
----------------------
2
-
4 1–z 2 –1 4 1 – e 2T s z –1
–
(1 – z )
–1 – 2T – 2T –1
5 z ( ( – 1 + 2T s + e ) + ( 1 – e s ( 1 + 2τ )z ) )
s
L ( z ) = --- ----------------------------------------------------------------------------------------------------------------------
– 2T s – 1
-
4 (1 – z )(1 – e
–1
z )
L(z)
T ( z ) = --------------------
1 + L(z)
(a) For sampling period Ts = 0.1s, the loop transfer function takes the value
–1 – 0.2 – 0.2 –1
5 z ( ( – 1 + 0.2 + e ) + ( 1 – e ( 1.2 )z ) )
L ( z ) = --- ----------------------------------------------------------------------------------------------------------
–1 – 0.2 – 1
-
4 (1 – z )(1 – e z )
–1 –1
5 z ( 0.019 + 0.017z )
= --- -------------------------------------------------------
-
4 ( 1 – z –1 ) ( 1 – 0.819z –1 )
The closed-loop transfer function is therefore
–1 –1
5 z ( 0.019 + 0.017z )
--- ------------------------------------------------------- -
4 ( 1 – z –1 ) ( 1 – 0.819z –1 )
T ( z ) = ------------------------------------------------------------------------
–1 –1
-
5 z ( 0.019 + 0.017z )
1 + --- ------------------------------------------------------- -
4 ( 1 – z –1 ) ( 1 – 0.819z –1 )
5 –1 –1
--- z ( 0.019 + 0.017z )
4
= ---------------------------------------------------------------------------------------------------------------------------
–1 –1 5 –1 –1
( 1 – z ) ( 1 – 0.819z ) + --- z ( 0.019 + 0.017z )
4
5 –1 –1
--- z ( 0.019 + 0.017z )
4
= --------------------------------------------------------
–1 –2
-
1 – 1.795z + 0.840z
T(z) has a zero at z = -0.895 and a pair of complex poles at z = 0.898 + j0.186. The
poles are inside the unit circle and the system is therefore stable.
41
(b) For sampling period Ts = 0.05s, L(z) takes the value
5 –1 – 0.1 – 0.1 –1
--- z ( ( – 1 + 0.1 + e ) + ( 1 – e ( 1.1 ) )z )
4
L ( z ) = --------------------------------------------------------------------------------------------------------------
–1 – 0.1 – 1
-
(1 – z )(1 – e z )
–1 –1
5 z ( 0.005 + 0.005z )
= --- -------------------------------------------------------
-
4 ( 1 – z –1 ) ( 1 – 0.996z –1 )
The closed-loop transfer function is therefore
–1 –1
5 z ( 0.005 + 0.005z )
--- ------------------------------------------------------- -
4 ( 1 – z –1 ) ( 1 – 0.996z –1 )
T ( z ) = ------------------------------------------------------------------------
–1 –1
-
5 z ( 0.005 + 0.005z )
1 + --- ------------------------------------------------------- -
4 ( 1 – z –1 ) ( 1 – 0.996z –1 )
5 –1 –1
--- z ( 0.005 + 0.005z )
4
= ---------------------------------------------------------------------------------------------------------------------------
–1 –1 5 –1 –1
( 1 – z ) ( 1 – 0.996z ) + --- z ( 0.005 + 0.005z )
4
–1 –1
0.006z ( 1 + z )
= --------------------------------------------------------
–1 –2
-
1 – 1.989z + 1.001z
T(z) has a zero at z ≈ 1 and a pair of complex poles at z = 0.995 + j0.109. The poles lie
inside the unit circle in the z-plane and the sampled-data system remains stable. Note,
however, the reduction in the sampling period has pushed the closed-loop poles much
closer to the unit circle.
42
Advanced Problems
w = 1;
Q = 100;
num = [w 0];
den = [Q w Q*w^2];
figure(1)
rlocus(num,den)
43
Root Locus
0.8
0.6
0.4
0.2
Imag Axis
−0.2
−0.4
−0.6
−0.8
Figure 1
−1
−1.6 −1.4 −1.2 −1 −0.8 −0.6 −0.4 −0.2 0
Real Axis
By definition, we have
ω
Q = -----0-
B
where B is the bandwidth. Therefore, for fixed ω0, if the quality factor Q is reduced by
the amount 1 + βA as a result of applying the feedback, the closed-loop bandwidth is
increased by the same amount.
44
Hence the closed-loop gain (i.e., transfer function) of the phase-locked loop model
shown in Fig. P9.46 is
V (s) G(s)
-------------- = ---------------------------------
Φ1 ( s ) 1 + G ( s )H ( s )
K 0H (s)(1 ⁄ K v)
= -------------------------------------
-
1
1 + --- K 0 H ( s )
s
sK 0 H ( s ) ( 1 ⁄ K v )
= ---------------------------------------- (1)
s + K 0H (s)
(b) For positive frequencies that satisfy the condition |K0H(jω)| >> ω, we may
approximate Eq. (1) as
V ( s ) sK 0 H ( s ) ( 1 ⁄ K v )
-------------- ≈ ----------------------------------------
Φ1 ( s ) K 0H (s)
s
= ------
Kv
9.47 The error signal e(t) is defined as the difference between the actuating or target signal yd(t)
and the controlled signal (i.e., actual response) y(t). Expressing these signals in terms of
their respective Laplace transforms, we may write
E(s) = Y d(s) – Y (s)
= [ 1 – T ( s ) ]Y d ( s ) (1)
G ( s )H ( s )
= 1 – --------------------------------- Y d ( s )
1 + G ( s )H ( s )
1
= --------------------------------- Y d ( s ) (2)
1 + G ( s )H ( s )
The steady-state error of a feedback control system is defined as the value of the error
signal e(t) when time t approaches infinity. Denoting this quantity by ∈ ss, we may thus
write
∈ ss = lim e ( t ) (3)
s→0
Using the final value theorem of Laplace transform theory described in Chapter 6, we may
redefine the steady-state error ∈ ss in the equivalent form
45
∈ ss = lim sE ( s ) (4)
s→0
Hence, substituting Eq. (2) into (4), we get
sY d ( s )
∈ ss = lim --------------------------------- (5)
s → 0 1 + G ( s )H ( s )
Equation (5) shows that the stead-state error ∈ ss of a feedback control system depends on
two quantities:
• The open-loop transfer function G(s)H(s) of the system
• The Laplace transform Yd(s) of the target signal yd(t)
However, for Eq. (5) to be valid, the closed-loop control system of Fig. 9.14 must be
stable.
Step Input
For the step input yd(t) = u(t), we have Yd(s) = 1/s. Hence, Eq. (5) yields the steady-state
error
1
∈ ss = lim ---------------------------------
s→0 1 + G ( s )H ( s )
1
= ---------------- (7)
1 + Kp
where Kp is called the position error constant, defined by
K p = lim G ( s ) H ( s )
s→0
P(s)
= lim -------------------
p
(8)
s → 0 s Q (s)
1
46
Ramp Input
For the ramp input yd(t) - tu(t), we have Yd = 1/s2. In this case. Eq. (5) yields
1
∈ ss = lim -----------------------------------
s → 0 s + sG ( s )H ( s )
1
= ------ (9)
Kv
where Kv is the velocity error constant, defined by
K v = lim sG ( s )H ( s )
s→0
P(s)
= lim ----------------------- (10)
s → 0 s p-1 Q ( s )
1
Parabolic Input
For the parabolic input yd(t) = (t2/2)u(t), we have Yd = 1/s3. The use of Eq. (5) yields
1
∈ ss = lim ----------------------------------------
2 2
s → 0 s + s G ( s )H ( s )
1
= ------ (11)
Ka
where Ka is called the acceleration error constant, defined by
P(s)
K a = lim ----------------------- (12)
s → 0 s p-2 Q ( s )
1
47
Additional Notes
A type 0 system is referred to as a regulator. The object of such a system is to maintain a
physical variable of interest at some prescribed constant value despite the presence of
external disturbances. Examples of regulator systems include:
• Control of the moisture content of paper, a problem that arises in the paper-making
process
• Control of the chemical composition of the material outlet produced by a reactor
• Biological control system, which maintains the temperature of the human body at
approximately 37oC despite variations in the temperature of the surrounding
environment
Type 1 and higher systems are referred to as servomechanisms. The objective here is to
make a physical variable follow, or track, some desired time-varying function. Examples
of servomechanisms include:
Example: Figure P9.47 shows the block diagram of a feedback control system involving a
dc motor. The dc motor is an electromechanical device that converts dc electrical energy
into rotational mechanical energy. Its transfer function is approximately defined by
K
G ( s ) = -------------------------
s ( τL s + 1 )
where K is the gain and τL is the load time constant. Here it is assumed that the field time
constant of the dc motor is small compared to the load time constant. The transfer function
of the controller is
ατs + 1
H ( s ) = ------------------
τs + 1
The requirement is to find the steady-state errors of this control system.
48
αK
P ( s ) = -------- s + ------
1
τL ατ
Q 1 ( s ) = s + ----- s + ---
1 1
τ L τ
p = 1
Hence the use of these values in Eqs. (8), (10), and (12) yields the following steady-state
errors for the control system of Fig. P9.47:
(a) Step input: ∈ ss = 0.
(b) Ramp input: ∈ ss = 1/K = constant.
(c) Parabolic input: ∈ ss = ∞ .
The effect of making the gain K large is to reduce the steady-state error of the system due
to a ramp input. This, in turn, improves the behavior of the system as a velocity control
system.
Input
+
-
Σ
Controller
ατs + 1
τs + 1
DC motor
K
s(τLs + 1)
. Output
Figure P9.47
9.48 From Fig. P9.20 the closed-loop transfer function of the feedback system is
2
K ⁄ ( s + 2s )
T ( s ) = --------------------------------------
2
-
1 + K ⁄ ( s + 2s )
K
= --------------------------
2
- (1)
s + 2s + K
We are given K = 20, for which the use of Eqs. (4) and (5) yields
ωn = 20 = 4.472 rad/second
ζ = 0.224
49
The time constant of the system is
1
τ = --------- = 1 second
ζω n
Hence,
ωn = 3 + 0.2K P (3)
ζ = 2 ⁄ 3 + 0.2K P (4)
T ( 0 ) = 0.2K p ⁄ ( 3 + 0.2K P ) (5)
We are required to have
ω n = 2 rad/s
That is,
4–3
K p = ------------ = 5
0.2
50
Next, the use of Eq. (4) yields
2
ζ = ------------------------------
3 + 0.2 × 5
2
= ------- = 1
4
which means that the system is critically damped.
s-plane
x 0 x σ
-1 -0.1 0
Figure 1
51
The closed-loop transfer function of the system is
L(s)
T ( s ) = -------------------- (2)
1 + L(s)
For a closed-loop at s = -5 we require that the denominator of T(s) satisfy the following
equation
(s + 5)(s + a) = 0 (4)
where s = -a is the other closed-loop pole of the system. Comparing the denominator of
Eq. (3) with Eq. (4):
5 + a = 1 + 0.25K P
5a = 0.1 × 0.25K P
L ( s ) = ( K P + K D s ) -------------------
1
s ( s + 1 )
K P 1
= K D s + ------- -------------------
K D s ( s + 1 )
52
%Solution to problem 9.51
clear; clc;
figure(1)
K = 1;
num = K*[1 4];
den = [1 (1+K) K*4];
rlocus(num,den)
figure(2)
K = 3;
num = K*[1 4];
den = [1 (1+K) K*4];
rlocus(num,den)
Root Locus
2 + j2sqrt(2)
2
1
Imag Axis
−1
−2
2 − j2sqrt(2)
−3
53
The closed-loop transfer function of the system is
L(s)
T ( s ) = --------------------
1 + L(s)
K D(s + 4)
= -------------------------------------------
2
- (1)
s + s + K D(s + 4)
9.52 (a) For a feedback system using PI controller, the loop transfer function is
K
L ( s ) = K P + ------I L′ ( s )
s
where L′ ( s ) is the uncompensated loop transfer function. For s = jω we may write
K 1
K P + ------I = ------ ( K I + jK P ω )
jω jω
The contribution of the PI controller to the loop phase response of the feedback system
is
–1 K ω
φ = – 90° + tan -----------
P
KI
For all positive values of KP/KI, the angle tan-1(KPω/KI) is limited to the range [0,90o].
It follows therefore that the use of a PI controller introduces a phase lag into the loop
phase response of the feedback system, as shown in Fig. 1.
(b) For a feedback system using PD controller, the loop transfer function of the system
may be expressed as
L ( s ) = ( K P + K D s )L′ ( s )
where L′ ( s ) is the uncompensated loop transfer function. For s = jω, the contribution
of the PD controller to the loop phase response of the system is tan-1(KDω/KP). For all
54
positive values of KD/KP, this contribution is limited to the range [0,90o]. We therefore
conclude that the use of PD controller has the effect of introducing a phase lead into
the loop phase response of the system, as illustrated in Fig. 2.
clear; clc;
w = 0:0.01:5*pi;
Kp = 1.2;
Ki = 1;
y = -pi/2 + atan(w*Kp/Ki);
plot(w,y)
xlabel(’\omega’)
ylabel(’Phase
hi’)
title(’-
i/2 + tan^{-1}(\omega Kp/Ki)’)
figure(2)
y = -pi/2 + atan(w*Kp/Ki);
plot(w,y)
xlabel(’\omega’)
ylabel(’Phase
hi’)
title(’tan^{-1}(\omega Kp/Ki)’)
−0.2
−0.4
Kp/Ki = 1.2
−0.6
Phase φ
−0.8
−1
−1.2
−1.4
Figure 1
−1.6
0 2 4 6 8 10 12 14 16
ω
55
tan−1(ω Kp/Ki)
0
−0.2
−0.4
Kp/Ki = 1.2
−0.6
Phase φ
−0.8
−1
−1.2
−1.4
Figure 2
−1.6
0 2 4 6 8 10 12 14 16
ω
K
I
9.53 The transfer function of the PID controller is defined by K P + ------
s
+ K D s . The requirement
is to use this controller to introduce zeros at s = -1 +j2 into the loop transfer function of the
feedback system. Hence,
2 2 2
s + ( K P ⁄ K D )s + ( K I ⁄ K D ) = ( s + 1 ) + ( 2 )
2
= s + 2s + 5
Comparing terms:
KP
------- = 2
KD
K
------I = 5
D
K
K P + ------I + K D s
s
L ( s ) = -------------------------------------
(s + 1)(s + 2)
2
K D ( s + 2s + 5 )
= --------------------------------------
-
s(s + 1)(s + 2)
56
Figure 1 displays the root locus of L(s) for varying KD. From this figure we see that the
root locus is confined to the left half of the s-plane for all positive values of KD. The
feedback system is therefore stable for KD > 0.
clear; clc;
num = [1 2 5];
den = [1 3 2 0];
rlocus(num,den)
Root Locus
1.5
0.5
Imag Axis
−0.5
−1
−1.5
−2
−3.5 −3 −2.5 −2 −1.5 −1 −0.5 0 Figure 1
Real Axis
9.54 Let KP denote the action of the proportional controller. We may then express the loop
transfer function of the controlled inverted pendulum as
K P ( s + 3.1 ) ( s – 3.1 )
L ( s ) = -------------------------------------------------
2
s ( s + 4.4 ) ( s – 4.4 )
which has zeros at s = +3.1 and poles at s = 0 (order 2) and s = +4.4. The resulting root
locus is sketched in Fig. 1. This diagram shows that for all positive values of KP, the
57
closed-loop transfer function of the system will have a pole in the right-half plane and a
pair of poles on the jω-axis.
s-plane
double
pole
x 0 x 0 x σ
-4.4 -3.1 0 3.1 4.4
Figure 1
The stabilization of an inverted pendulum is made difficult by the presence of two factors
in the loop transfer function L(s):
1. A double pole at s = 0.
2. A zero at s = 3.1 in the right-half plane.
We may compensate for (1) but nothing can be done about (2) if the compensator is itself
to be stable. Moreover, we have to make sure that the transfer function of the compensator
is proper for it to be realizable. We may thus propose the use of a compensator (controller)
whose transfer function is
2
K s ( s – 4.4 )
C ( s ) = ------------------------------------------------------
( s + 1 ) ( s + 2 ) ( s + 3.1 )
L′ ( s ) = C ( s )L ( s )
K ( s – 3.1 )
= ------------------------------------------------------
( s + 1 ) ( s + 2 ) ( s + 4.4 )
Figure 2 shows a sketch of the root locus of L′ ( s ) . From this figure we see that the
compensated system is stable provided that the gain factor K satisfies the condition
4×2
0 < K < ------------ = 2.839
3.1
58
%Solution to problem 9.54
clear; clc;
num = [1 0 -961/100];
den = [1 0 -484/25 0 0];
rlocus(num,den)
figure(2); clc;
num = [1 -3.1];
den = [1 37/5 76/5 44/5];
rlocus(num,den)
Root Locus
1
Imag Axis
−1
−2
−3
−4
−4 −3 −2 −1 0 1 2 3 4
Real Axis
Root Locus
30
20
10
Imag Axis
−10
−20
−30
−5 −4 −3 −2 −1 0 1 2 3
Real Axis
59
9.55 For linear control systems, the transient response is usually measured in terms of the step
response. Typically, the step response, denoted by y(t), is oscillatory as illustrated in Fig.
P9.55. In describing such a response, we have two conflicting criteria: swiftness of the
response, and closeness of the response to the desired response. Swiftness of the response
is measured in terms of the rise time and peak time. Closeness of the response to the
desired response is measured in terms of the percentage overshoot and settling time. these
four quantities are defined as follows:
• Rise time, Tr, is defined as the time taken by the step response to rise from 10% to 90%
of its final value y(∞).
• Peak time, Tp, is defined as the time taken by the step response to reach the overshoot
(overall) maximum value ymax.
• Percentage overshoot, P.O., is defined in terms of the maximum value ymax and final
value y(∞) by
y max – y ( ∞ )
P.O. = ----------------------------- × 100
y(∞)
• Settling time, Ts, is defined as the time required by the step response to settle within
+δ% of the final value y(∞), where δ is user specified.
Figure P9.55 illustrates the definitions of these four quantities, assuming that y(∞) = 1.0.
They provide an adequate description of the step response y(t). Most importantly, they
lend themselves to measurement. Note that in the case of an overdamped system, the peak
time and percentage overshoot are not defined. In such a case, the step response of the
system is specified simply in terms of the rise time and settling time.
For reasons that will become apparent later, the underdamped response of a second-order
system to a step input often provides an adequate approximation to the step response of a
linear feedback control system. Accordingly, it is of particular interest to relate the above-
mentioned quantities to the parameters of a second-order system.
Solution: Unfortunately, it is difficult to obtain an explicit expression for the rise time Tr
in terms of the damping ratio ζ and natural frequency ωn. Nevertheless, it can be
determined by simulation. Table 9.2 presents the results of simulation for the range 0.1 <
ζ < 0.9. In this table we have also included the results obtained by using the approximate
formula:
1
T r ≈ ------ ( 0.60 + 2.16ζ )
ωn
This formula yields fairly accurate results for 0.3 < ζ < 0.8, as can be seen from Table 1.
60
To determine the peak time Tp, we may differentiate Eq. (...) with respect to time t and
then set the result equal to zero. We thus obtain the solutions t = ∞ and
nπ
t = -------------------------, n = 0, 1, 2, …
2
ωn 1 – ζ
The solution t = ∞ defines the maximum of the step response y(t) only when ζ > 1 (i.e.,
the critically damped or overdamped case). We are interested in the underdamped case.
The first maximum of y(t) occurs for n = 1; hence the peak time is
π
T p = -------------------------
2
ωn 1 – ζ
The first maximum of y(t) also defines the percentage overshoot. Thus, putting t = Tp in
Eq. (...) and simplifying the result, we get
– πζ ⁄ ( 1 – ζ )
2
y max = 1 + e
The percentage overshoot is therefore
– πζ ⁄ ( 1 – ζ )
2
P.O. = 100e
Finally, to determine the settling time Ts we seek the time t for which the step response
y(t) defined in Eq. (...) decreases and stays within +δ% of the final value y(∞) = 1.0. For
– ζω n t
δ = 1, this time is closely approximated by the decaying exponential factor e , as
shown by
– ζω n T
e ≈ 0.01
or
4.6
T s ≈ ---------
ζω n
61
9.56 We often find that the poles and zeros of the closed-loop transfer function T(s) of a
feedback system are grouped in the complex s-plane roughly in the manner illustrated in
Fig. P9.56. In particular, depending on how close the poles and zeros are to the jω-axis we
may identify two groupings:
1. Dominant poles and zeros, which are those poles and zeros of T(s) that lie close to the
jω-axis. They are said to be dominant because they exert a profound influence on the
frequency response of the system. Another way of viewing this situation is to
recognize that poles close to the jω-axis correspond to large time constants of the
system. The contributions made by these poles to the transient response of the system
are slow and therefore dominant.
2. Insignificant poles and zeros, which are those poles and zeros of T(s) that are far
removed from the jω-axis. They are said to be insignificant because they have
relatively little influence on the frequency response of the system. In terms of time-
domain behavior, poles that are far away from the jω-axis correspond to small time
constants. The contributions of such poles to the transient response of the system are
much faster and therefore insignificant.
Let s = -a and s = -b define the boundaries of the dominant poles and the insignificant
poles, as indicated in Fig. P9.56. As a rule of thumb, the grouping of poles into dominant
poles and insignificant poles is justified if the ratio b/a is greater than 4.
Given that we have a high-order feedback system whose closed-loop transfer function fits
the picture portrayed in Fig. P9.56, we may then approximate the system by a reduced-
order model simply by retaining the dominant poles and zeros of T(s). The use of a
reduced-order model in place of the original system is motivated by the following
considerations:
• Low-order models are simple; they are therefore intuitively appealing in system
analysis and design.
• Low-order models are less demanding in computational terms than high-order ones.
A case of particular interest is when the use of a first-order or second-order model as the
reduced-order model is justified, for then we can exploit the wealth of information
available on such low-order models.
62
3 2
s + 6s + 11s + 54 = 0
Using the computer, the roots of this equation are found to be
s = – 5.7259, s = – 0.1370 ± j3.0679
The locations of these three roots are plotted in Fig. 2. We immediately observe from the
pole-zero map of Fig. 2 that the poles at s = -0.1370 + j3.0679 are the dominant poles, and
the poles at s = -5.7259 is an insignificant pole. The numerator of the closed-loop transfer
function T(s) consists simply of 6K. Accordingly, the closed-loop gain of the feedback
amplifier may be approximated as
6K′
T ′ ( s ) ≈ ---------------------------------------------------------------------------------------------------------------
( s + 0.1370 + j3.0679 ) ( s + 0.1370 – j3.0679 )
6K′
= ----------------------------------------------------
2
-
s + 0.2740s + 9.4308
To make sure that T′ ( s ) is scaled properly relative to the original T(s), the gain K′ is
chosen as follows:
9.4308
K′ = ---------------- × 8 = 1.3972
54
for which we thus have T′ ( 0 ) = T(0).
In light of Eq. (9.41), we set
2ζω n = 0.2740
2
ω n = 9.4308
from which we readily find that
ζ = 0.0446
ω n = 3.0710
The step response of the feedback amplifier is therefore underdamped. The time constant
of the exponentially damped response is from Eq. (9.44)
1 1
τ = --------- = ------------- = 8.2993s
ζω n 0.137
The frequency of the exponentially damped response is
2 2
ω n 1 – ζ = 3.0710 1 – ( 0.0446 )
= 3.0679 rad/s
Figure 3 shows two plots, one displaying the step response of the original third-order
feedback amplifier with K = 8, and the other displaying the step response of the
63
approximating second-order model with K′ = 1.3972. The two plots are very similar,
which indicates that the reduced-order model is adequate for the example at hand.
Imaginary
Dominant
pole x s-plane
Insignificant
pole
x Real
Dominant
pole x
Root Locus
2
Imag Axis
−2
−4
−6
−9 −8 −7 −6 −5 −4 −3 −2 −1 0 1
Real Axis
64
1.8
3rd Order
Reduced 2nd Order
1.6
1.4
1.2
1
Response
0.8
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35 40 45
Time
Figure 3: Step response for third-order system shown as dashed curve, and step response
for (reduced) second-order system shown as solid curve.
figure(3)
[order3,T] = step(tf(num,den));
plot(T,order3,’b-’,T,order2,’r--’)
legend(’3rd Order’,’Reduced 2nd Order’)
xlabel(’Time’)
ylabel(’Response’)
65
9.57 Consider first the original system described by the transfer function
48
T ( s ) = ---------------------------------------------------------------------------------------
2
-
( s + 5.7259 ) ( s + 0.2740s + 9.4308 )
The corresponding Bode diagram, obtained by putting s = jω, is plotted in Fig. 1 on the
next page.
which is obtained from T(s) by ignoring the distant pole at s = -5.7259 and readjusting the
constant gain factor. Figure 2, on the page after the next one, plots the Bode diagram of the
approximating system.
Comparing these two figures, 1 and 2, we see that the frequency responses of the original
feedback system and its reduced-order approximate model are close to each other over the
frequency range 0 < ω < 4.0.
clear; clc;
num = [8.3832];
den = [1 0.2740 9.4308];
margin(num,den)
figure(2); clc;
num = [48];
den = [1 6 11 54];
margin(num,den)
Bode Diagram
Gm = Inf, Pm = 7.9113 deg (at 4.2112 rad/sec)
20
Second Order
10
Magnitude (dB)
−10
−20
−30
−90
−135
−180
0 1
10 10
Frequency (rad/sec)
66
Bode Diagram
Gm = −12.04 dB (at 3.3167 rad/sec), Pm = −25.849 deg (at 4.0249 rad/sec)
20
Third Order
0
−40
−60
−80
−100
0
Figure 2: Frequency response
−45
−90
of reduced-order model
Phase (deg)
−135
−180
−225
−270
0 1 2
10 10 10
Frequency (rad/sec)
9.58 The guidelines used in the classical (frequency-domain) approach to the design of a linear
feedback control system are usually derived from the analysis of second-order
servomechanism dynamics. Such an approach is justified on the following grounds. First,
when the loop gain is large the closed-loop transfer function of the system develops a pair
of dominant complex-conjugate poles. Second, a second-order model provides an
adequate approximation to a higher-order model whose transfer function is dominated by
a pair of complex-conjugate poles.
This system was studied in Section 9.11. When the loop gain K is large enough to produce
an underdamped step response (i.e., the closed-loop poles form a complex-conjugate pair),
the damping ratio and natural frequency of the system are defined by, respectively (see
Drill Problem 9.8),
1 K
ζ = -------------- and ωn = ----
2 τK τ
Accordingly, we may redefine the loop transfer function in terms of ζ and ωn as follows:
2
ωn
L ( s ) = ----------------------------
- (1)
s ( s + 2ζω n )
Therefore, putting s = jωg in Eq. (1) and solving for ωg, we get
67
4 2
ωg = ωn 4ζ + 1 – 2ζ (2)
Equation (3) provides an exact relationship between the phase margin φ m , a quantity
pertaining to the open-loop frequency response, and the damping ratio ζ , a quantity
pertaining to the closed-loop step response. This exact relationship is plotted in Fig. 1. For
values of the damping ratio in the range 0 < ζ < 0.6, Eq. (3) is closely approximated by
φ m ≈ 100ζ , 0 < ζ < 0.6
Once we have obtained a value for the damping ratio ζ , we can use Eq. (2) to determine
the corresponding value of the natural frequency ωn in terms of the gain cross-over
frequency ωg. With the values of ζ and ωn at hand, we can then go on to determine the
rise time, peak time, percentage overshoot, and settling time as descriptors of the step
response using the formulas derived in ..........
68
80
70
60
Approximate
40
30
20
Figure 1
10
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Damping ratio ξ
Computer Experiments
The MATLAB command for finding the value of K corresponding to a desired pair of
closed-loop poles, and therefore damping factor ζ , is given below.
The root locus of the unity feedback system is presented in Fig. 1. A damping
factor ζ = 0.5 corresponds to a pair of dominant closed-loop poles lying on the angles
+ 120o., Hence using the command rlocfind, we obtain the value K = 1.
The corresponding values of the complex closed-loop poles are s = -0.5 + j0.866.
2 2
Hence the natural frequency ω n = 0.5 + 0.866 = 1 .
num = [1];
K = 0;
den = [1 3 3 1];
rlocus(num,den)
K = rlocfind(num,den)
den = [1 3 3 1];
[Wn z]=damp(den)
69
Root Locus
0.8
K=1
0.6
0.4
0.2
Imag Axis
−0.2
−0.4
−0.6
Figure 1
−0.8
Figure 1 displays the root locus for the loop transfer function
K
L ( s ) = -----------------------------
2
-
s(s + s + 2)
The value of K, corresponding to a pair of complex poles with damping factor ζ = 0.0707,
is computed to be K = 1.46 using rlocfind.
Figure 2 presents the Bode diagram of L(s) for K = 1.5. From this figure we find the
following:
figure(1); clf;
num = [1];
den = [1 1 2 0];
rlocus(num,den)
axis([-1 1 -2 2])
K = rlocfind(num,den)
70
figure(2); clf;
K = 1.5;
num = K*[1];
margin(num,den)
Root Locus
2
1.5
0.5
Imag Axis
−0.5
−1
Figure 1
−1.5
−2
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
Real Axis
Bode Diagram
Gm = 2.4988 dB (at 1.4142 rad/sec), Pm = 34.487 deg (at 1.1118 rad/sec)
20
10
0
Magnitude (dB)
−10
−20
−30
−40
−50
−60
−90
−135
Phase (deg)
−180
−225
Figure 2
−270
−1 0 1
10 10 10
Frequency (rad/sec)
Figure 1 displays the root locus of the feedback system defined by the loop transfer
function
K (s – 1)
L ( s ) = -------------------------------------------
2
-
(s + 1)(s + s + 1)
71
Using the command rlocfind, we find that the value of K for which the only real closed-
loop pole lies on the jω-axis (i.e., the system is on the verge of instability) is K = 1. We
may verify this result by constructing the Routh array for the characteristic equation
2
(s + 1)(s + s + 1) + K (s – 1) = 0
as shown by
3
s 1 2+K
2
s 2 –K
1 4 + 3K
s ----------------- 0
2
0
s –K 0
For K = 1 there is only one sign change in the first column of array coefficients.
Figure 2 displays the Nyquist locus of L(jω) for K = 0.8. We see that the critical point is
not enclosed, and therefore the feedback system is stable.
Figure 3 displays the Bode diagram of L(jω) for K = 0.8. From this figure we obtain the
following values:
figure(1); clf;
K = 1;
num = K*[1 -1];
den = [1 2 2 1];
rlocus(num,den)
ylim([-5 5])
K = rlocfind(num,den)
figure(2); clf;
K = 0.8;
num = K*[1 -1];
nyquist(num,den)
return
72
figure(3); clf;
K = 0.8;
num = K*[1 -1];
margin(num,den)
Root Locus
5
1
Imag Axis
−1
−2
−3 Figure 1
−4
−5
−1 −0.5 0 0.5 1
Real Axis
Nyquist Diagram
2
Imaginary Axis
−2
−4
−6
−8
Figure 2
−8 −6 −4 −2 0 2 4 6 8
Real Axis
73
Constructing the Routh array:
4
s 1 6 K–8
3
s 5 K+2 0
2
s 5.6 – 0.2K K–8 0
2
1 51.2 + 0.2K – 0.2K
s ------------------------------------------------- 0
5.6 – 0.2K
0
s K–8 0
1. For stability, K > 8, which follows from the last entry of the first column of array
coefficients. For K = 8, the system is on the verge of instability. From the fourth row, it
follows that this occurs for the last row: s0.
2. From the fourth row of the array, it also follows that K must satisfy the condition
2
51.2 + 0.2K – 0.2K > 0
for the system to be stable. That is,
( K – 16.508 ) ( K + 15.508 ) < 0
from which it follows that for stability
K < 16.508
If this condition is satisfied, then 5.6 - 0.2K > 0.
When K = 16.508 the system is again on the verge of instability. From the third row of
the Routh array, this occurs when
2
( 5.6 – 0.2K )s + ( K – 8 ) = 0
or
8.508
s = ± j ------------- = ± j1.923
2.302
Accordingly, we may state that the feedback system is conditionally stable provided that K
satisfies the condition
8 < K <16.508
The result is confirmed using the following constructions:
(a) Root locus. Figure 1 shows the root locus of the system. Using the command rlocfind,
we obtain the following values of K:
K min = 8
K max = 16.5
For K < 8, the system has a single closed-loop pole in the right-half plane. For
74
K > 16.5, the complex closed-loop poles of the system move to the right-half plane.
Hence for stability, we must have 8 < K < 16.5.
(b) Bode diagram. Figure 2(a) shows the Bode diagram of L(s) for
K max + K min
K = -----------------------------
-
2
16.5 + 8
= -------------------
2
= 12.25
From this figure we obtain the following stability margins:
Gain margin = -3.701 dB; phase-crossover frequency = 0 rad/s
Phase margin = 14.58o, gain-crossover frequency = 1.54 rad/s
Figure 2(b) shows the Bode diagram for K = 8. From this second Bode diagram we see
that the gain margin is zero, and the system is therefore on the verge of instability.
Figure 2(c) shows the Bode diagram for K = 16.508. From this third Bode diagram we
see that the phase margin is zero, and the feedback system is again on the verge of
instability.
(c) Nyquist diagram. Figure 3(a) shows the Nyquist diagram of L(jω) for K = 12.25,
which lies between Kmin = 8 and Kmax = 16.5. The critical point (-1,0) is not encircled
for this value of K and the system is therefore stable. Figure 3(b) shows the Nyquist
locus of L(jω) for K = 8. The locus of Fig. 3(b) passes through the critical point (-1,0)
exactly and the system is therefore on the verge of instability. Figure 3(c) shows the
Nyquist locus for K < 8, namely K = 5. The locus of Fig. 3(c) encircles the critical
point (-1,0) and the system is again unstable. Figure 3(d) shows the Nyquist locus for
K > 16.508, namely, K = 20. The locus of Fig. 3(d) encircles the critical point (-1,0)
and the system is therefore unstable. Finally, Fig. 3(c) shows the Nyquist locus for K =
16.508. Here again we see that the locus passes through the critical point (-1,0)
exactly, and so the system is on the verge of instability.
Care has to be exercised in the interpretation of these Nyquist loci, hence the
reason for the use of shading.
figure(1); clf;
K = 1;
num = K*[1 1];
den = [1 5 6 2 -8];
rlocus(num,den);
Kmin = rlocfind(num,den)
Kmax = rlocfind(num,den)
figure(2); clf;
Kmid = (Kmin+Kmax)/2;
num = Kmid*[1 1];
margin(num,den)
75
figure(3); clf;
nyquist(num,den)
Root Locus
1
Imag Axis
−1
−2
−3
−4 Figure 1
−7 −6 −5 −4 −3 −2 −1 0 1
Real Axis
Bode Diagram
Gm = 2.6725 dB (at 1.924 rad/sec), Pm = 15.132 deg (at 1.5257 rad/sec)
20
−20
Magnitude (dB)
−40
−60
−80
−100
−135
−180
Phase (deg)
−225
−270
10
−1 0
10
Frequency (rad/sec)
10
1 2
10 Figure 2
Nyquist Diagram
0.8
0.6
0.4
0.2
Imaginary Axis
−0.2
−0.4
−0.6
Figure 3
−0.8
−2 −1.8 −1.6 −1.4 −1.2 −1 −0.8 −0.6 −0.4 −0.2 0
Real Axis
76
%Solution to Problem 9.63
figure(1); clf;
K = 1;
num1 = 0.5*K*[1 2];
den1 = [1 16 48 0];
subplot(3,1,1)
rlocus(num1,den1)
figure(2); clf;
subplot(2,2,1)
nyquist(num1,den1)
subplot(2,2,3)
nyquist(num2,den2)
subplot(2,2,4)
nyquist(num3,den3)
Root Locus
10
Imag Axis
−10
−12 −10 −8 −6 −4 −2 0
Real Axis
Root Locus
0.5
Imag Axis
−0.5
−1 −0.9 −0.8 −0.7 −0.6 −0.5 −0.4 −0.3 −0.2 −0.1 0
Real Axis
Root Locus
20 Figure 1
Imag Axis
−20
−12 −10 −8 −6 −4 −2 0 2 4
Real Axis
77
Nyquist Diagram
Imaginary Axis 1
−1
−2
−1 −0.8 −0.6 −0.4 −0.2 0
Real Axis
10 1
Imaginary Axis
Imaginary Axis
0 0
−10 −1
Figure 2
−2
−20
−1 −0.8 −0.6 −0.4 −0.2 0 −1 −0.8 −0.6 −0.4 −0.2 0
Real Axis Real Axis
9.64 We are given a unity feedback system with loop transfer function
K
L ( s ) = -------------------
s(s + 1)
K
= ------------
2
- (1)
s +s
The closed-loop transfer function of the system is
L(s)
T ( s ) = --------------------
1 + L(s)
K
= -----------------------
2
- (2)
s +s+K
78
Figure 1 shows the root locus of the uncompensated system.
jω
closed-loop
s-plane
pole for
K=1 . j√3/2
σ
x x0
−1
. − j√3/2
Figure 1
Closed-loop jω
pole
. j√3
s-plane
120ο
θ2 θ1
x o x x σ
-1
- 1 - 1 0
τ ατ
. − j√3
Figure 2
For this to happen, the angle criterion of the root locus must be satisfied at
s = – 1 ± j 3 . With the open-loop poles of the uncompensated system at s = 0 and
s = -1, we readily see from Fig. 2 that the sum of contributions of these two poles to
the angle criterion is
– 120° – 90° = – 210°
We therefore require a phase advance of 30o to satisfy the angle criterion.
79
Figure 2 also includes the pole-zero pattern of the phase-lead compensator, where the
angles θ1 and θ2 are respectively defined by
– 1 3
θ 1 = tan ---------------- (5)
1
------ – 1
ατ
– 1 3
θ 2 = tan ------------ (6)
1
--- – 1
τ
where the parameters α and τ pertain to the compensator.
To realize a phase advance of 30, we require
θ 1 – θ 2 = 30°
or
θ 1 = 30° + θ 2
Using Eqs. (5) and (6) in (7) and rearranging terms, we find that with α > 1 the time
constant τ is constrained by the equation
2
τ – 0.95τ + 0.025 = 0
(c) The loop transfer function of the compensated feedback system for α = 10 is
L c ( s ) = G c ( s )L ( s )
ατs + 1 K
= ------------------ -------------------
τs + 1 s ( s + 1 )
80
K ( 0.27s + 1 )
= --------------------------------------------------
s ( s + 1 ) ( 0.027s + 1 )
Figure 3(a) shows a complete root locus of L(s). An expanded version of the root locus
around the origin is shown in Fig. 3(b). Using the RLOCFIND command of
MATLAB, the point – 1 + j 3 is located on the root locus. The value of K
corresponding to this closed-loop pole is 3.846.
figure(1); clf;
K = 1;
t = 0.027;
num = K*[10*t 1];
den = [t 1+t 1 0];
rlocus(num,den)
figure(2); clf;
rlocus(num,den)
axis([-5 1 -4 4])
K = rlocfind(num,den)
Root Locus
40
30
20
10
Imag Axis
−10
−20
Figure 1
−30
−40
Root Locus
4
2
K=3.897
1
Imag Axis
−1
Figure 2
−2
−3
−4
−5 −4 −3 −2 −1 0 1
Real Axis
81
9.65 The loop transfer function of the compensated feedback system is
L ( s ) = G ( s )H ( s )
10K ( ατs + 1 )
= ----------------------------------------------- , α<1 (1)
s ( 0.2s + 1 ) ( τs + 1 )
We start the system design with the requirement for a steady-state error of 0.1 to a ramp
input of unit slope. The system under study is a type-1 system; see Problem 9.47. The
velocity error constant of such a system is given by
K v = lim sG ( s ) H ( s )
s→0
Hence,
10K ( ατs + 1 )
K v = lim -----------------------------------------------
s → 0( 0.25s + 1 ) ( τs + 1 )
= 10K
Next, we use the prescribed value of percentage overshoot to calculate the minimum
permissible phase margin. We do this in two steps:
1. We use the relation between percentage overshoot P.O. and damping ratio ζ (see
Problem 9.55)
– πζ ⁄ 1 – ζ
2
P.O. = 100e (2)
with P.O. = 10% in response to a step input, the use of Eq. (2) yields
ζ 1
------------------ = --- log e10 = 0.7329
2 π
1–ζ
Hence, solving for ζ :
ζ = 0.5911
We may thus set ζ = 0.6.
2. We use the relation between phase margin ϕ m and damping ratio ζ (see Problem
9.55)
– 1 2ζ
ϕ m = tan -----------------------------------------
4 2
4ζ + 1 – 2ζ
Using the value ζ = 0.6:
82
– 1 1.2
ϕ m = tan -----------------------------------------------------------
4 2
4 × 0.6 + 1 – 2 × 0.6
–1
= tan ( 1.6767 )
= 59.19°
Hence, we may set ϕ m = 59° .
The next step in the design is to calculate the minimum value of the gain-crossover
frequency ω q . To do this, we use the requirement that the 5% settling time of the step
response should be less than 2s. We may again proceed in two stages:
1. Using the formula for the settling time Tsetting with δ = 5% = 0.05 (see Problem 9.55)
– ζω T
e n s = 0.05
Solving this equation for ωn with Tsetting = 2 seconds and ζ = 0.6:
log e20
ω n = ----------------
2 × 0.6
= 2.5 rad/s
2. Using the formula for the gain-crossover frequency (see Problem 9.58):
4 2
ωg = ωn 4ζ + 1 – 2ζ
4 2
= 2.5 4 × 0.6 + 1 – 2 × 0.6
= 1.79 rad/s
So we may set ωg = 1.8 rad/s.
The stage is now set for calculating the parameters of the compensating network. Figures
1(a) and 1(b) show the uncompensated loop gain response and loop phase response,
respectively. From Fig. 1(a) we see that at ω = ωg = 1.8 rad/s, the uncompensated loop
gain is 14.4 dB, which corresponds to the numerical value 5.23. Hence,
1
α = ---------- = 0.19
5.23
We also note that the corner frequency 1/ατ should coincide with ωg/10, and so we may
set
ω 1
-----g- = ------
10 ατ
83
10
τ = ----------
αω g
10
= ------------------------
0.19 × 1.8
= 29 seconds
Figure 2 shows the compensated loop response of the feedback system. According to this
figure, the phase margin ϕ m is 65.46o and the gain-crossover frequency ωg is 1.823 rad/s,
both of which are within the design specifications.
Figure 3 shows the response of the closed-loop system to a step input. The overshoot is
less than the prescribed value of 10%. But the 5% settling time is greater than the
prescribed value of 2 seconds. We therefore need to fine tune the compensator design.
We propose to move the pole-zero pattern of the compensator’s transfer function H(s)
away from the jω-axis so as to reduce the settling time. Specifically, we modify H(s) as
5.2s + 1
H ( s ) = -------------------
20s + 1
Hence the modified loop transfer function is
10 ( 5.2s + 1 )
L ( s ) = ----------------------------------------- (3)
s ( 0.2s ) ( 20s + 1 )
Figures 4 and 5 show the modified loop frequency response and closed-loop step response
of the feedback system, respectively. From these figures we observe the following:
1. The phase margin is 61.3o and the gain-crossover frequency is 2.359, both of which are
within the design specifications.
2. The percentage overshoot of the step response is just under 10% and the 5 percent
settling time is just under 2 seconds.
84
We can therefore say that the modified transfer function of Eq. (3) does indeed meet all the
prescribed design specifications.
C1 R1
R3
.. R2
.
o -
+ . o V2(s)
Figure 6
Hence,
R
-----2- = 1
R3
R 1 C 1 = 5.2
( R 1 + R 2 )C 1 = 20
Choose C1 = 10 µF. We may then solve these three equations for the resistive elements of
the circuit:
R 1 = 0.52MΩ
R 2 = 1.48MΩ
R 3 = 1.48MΩ
85
%Solution to Problem 9.65
%Uncompensated
figure(1); clf;
num = [10];
den = [0.2 1 0];
margin(num,den)
%Compensated
figure(2); clf;
a = 5.6;
b = 0.2;
num = [10*a 10];
den = [29*b (b+29) 1 0];
margin(num,den)
%Fine Tuned
figure(4); clf;
a = 5.2;
b = 0.2;
num = [10*a 10];
den = [20*b (b+20) 1 0];
margin(num,den)
Bode Diagram
Gm = Inf, Pm = 38.668 deg (at 6.2481 rad/sec)
20
14.4 dB
Magnitude (dB)
−10
−20
−30
−40 wg=1.8
−50
−60
−90
−120
Phase (deg)
−150 Figure 1
−180
0 1 2
10 10 10
Frequency (rad/sec)
86
Bode Diagram
Gm = Inf, Pm = 65.46 deg (at 1.8226 rad/sec)
100
−50
−100
−90
Phase (deg)
−135
Figure 2
−180
−3 −2 −1 0 1 2
10 10 10 10 10 10
Frequency (rad/sec)
Bode Diagram
Gm = Inf, Pm = 61.298 deg (at 2.3587 rad/sec)
60
40
20
Magnitude (dB)
−20
−40
−60
−90
Phase (deg)
−135
wg=2.359
−180
−2 −1 0 1 2
Figure 3
10 10 10 10 10
Frequency (rad/sec)
This is the same as the L(s) considered in Problem 9.61, except for the fact that this
time the gain factor K is negative. Let
K = – K′ K′ ≥ 0
87
K′ ( – s + 1 )
L ( s ) = -------------------------------------------
2
-
(s + 1)(s + s + 1)
Now we can proceed in exactly the same way as before, treating K′ as a positive gain
factor.
Figure 1 shows the root locus of L(s). Using the command rlocfind, we find that the
system is on the verge of instability (i.e., the closed-loop poles reside exactly on the
jω-axis) when K′ = 1 or K = -1.
We may verify this special value of K′ using the Routh-Hurwitz criterion. The
characteristic equation of the system is
3 2
s + 2s + ( 2 – K′ )s + ( 1 + K′ ) = 0
The third element of the first column of array coefficients is zero when K′ = 1 or K =
-1. This occurs when
2
2s + ( 1 + K′ ) = 0
or
s = ±j
as shown on the root locus in Fig. 1.
88
Figure 3 shows the root locus of L(s) for six different values of K, namely, K = -1, -2, -
3 and K = -0.1, -0.2, -0.3. We see that for all these values of K or the corresponding
values of K′ , we see that the root locus has a pole in the right-half plane. Indeed, the
feedback system described here will always have a closed-loop pole in the right-half
plane. Hence, the system is unstable for all K < 0.
figure(1); clf;
num = -1*[1 -1];
den = [1 2 2 1];
rlocus(num,den)
figure(2)
K = [-3 -2 -1 -0.4 -0.2 -0.1];
for n = 1:length(K),
num = K(n)*[1 1];
den = [1 5 6 2 -8];
subplot(2,3,n)
rlocus(num,den)
title([’K = ’num2str(K(n))])
end
Root Locus
1 K = −1
0.8
0.6
0.4
0.2
Imag Axis
−0.2
−0.4
−0.6
−0.8
−1 Figure 1
−10 −8 −6 −4 −2 0 2 4 6
Real Axis
89
Root Locus Root Locus Root Locus
4 4 4
2 2 2
Imag Axis
Imag Axis
Imag Axis
0 0 0
−2 −2 −2
−4 −4 −4
−4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4
Real Axis Real Axis Real Axis
4 4 4
2 2 2
Imag Axis
Imag Axis
Imag Axis
0 0 0
−2 −2 −2
Figure 2
−4 −4 −4
−4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4
Real Axis Real Axis Real Axis
90