chapter 2 problem solutionstestbanksolutions.org/sample/solution-manual-for-introduction-to... ·...

23
Chapter 2 Problem Solutions Concept Problems 1. When does [] ( ) x n x nT ? When does it not? Solution: See Equation (2.1). 2. If a continuous-time signal is sampled and the sample values applied in a digital computer, why is the sample value used in the computer generally not equal to the value of the continuous- time signal at the sampling instant. Solution: Refer to Shannon’s Sampling Theorem. 3. Discuss the relationship between the sampling period and the numerical accuracy of the calculation of the integral of a continuous-time signal using the sampled values. Solution: Consider Figure 2.2. The numerical accuracy of the integration algorithm also may place a limit on the sampling frequency. 4. Discuss the differences between the continuous-time function 0 () () ( ) x t ut ut t and the discrete-time function 0 [] [] [ ] x n un un n . Solution: for , () 1 xt 0 0 t t 0 [ ] 1 for 0 . x n n n 5. Discuss the difference between the continuous-time impulse 0 (t t ) and the discrete-time impulse 0 [ ] n n . Solution: See Equations (2.11)-(2.13). 6. Explain why a discrete-time signal formed by sampling a periodic continuous-time signal may not be periodic. What are the conditions required for the discrete-time signal to be periodic? Solution: See Equations (2.34)-(2.35). 7. Why is the time-average value of a signal always contained in the even part of the signal? Solution: By definition (2.27), the odd part of a signal has a time-average value of zero. 8. Give an example of a periodic continuous-time signal that sampled with resulting in a non-periodic discrete-time signal. 1 ms T Solution: Consider any periodic, continuous-time signal for which 0 0.001 T is irrational. 9. Describe, in English, the process of convolution with respect to a signal being processed through a system. Solution: Consider the sum of a continuing series of impulse responses. 10. Give an example of a finite impulse response system that is different from the system discussed in Example 2.7.

Upload: doanlien

Post on 06-Feb-2018

239 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

Chapter 2 Problem Solutions

Concept Problems 1. When does [ ] ( )x n x nT ? When does it not? Solution: See Equation (2.1). 2. If a continuous-time signal is sampled and the sample values applied in a digital computer, why is the sample value used in the computer generally not equal to the value of the continuous-time signal at the sampling instant. Solution: Refer to Shannon’s Sampling Theorem. 3. Discuss the relationship between the sampling period and the numerical accuracy of the calculation of the integral of a continuous-time signal using the sampled values. Solution: Consider Figure 2.2. The numerical accuracy of the integration algorithm also may place a limit on the sampling frequency. 4. Discuss the differences between the continuous-time function 0( ) ( ) ( )x t u t u t t and the

discrete-time function 0[ ] [ ] [ ]x n u n u n n .

Solution: for , ( ) 1x t 00 t t 0[ ] 1 for 0 .x n n n

5. Discuss the difference between the continuous-time impulse 0(t t ) and the discrete-time

impulse 0[ ]n n .

Solution: See Equations (2.11)-(2.13). 6. Explain why a discrete-time signal formed by sampling a periodic continuous-time signal may not be periodic. What are the conditions required for the discrete-time signal to be periodic? Solution: See Equations (2.34)-(2.35). 7. Why is the time-average value of a signal always contained in the even part of the signal? Solution: By definition (2.27), the odd part of a signal has a time-average value of zero. 8. Give an example of a periodic continuous-time signal that sampled with resulting in a non-periodic discrete-time signal.

1 msT

Solution: Consider any periodic, continuous-time signal for which 0 0.001T is irrational.

9. Describe, in English, the process of convolution with respect to a signal being processed through a system. Solution: Consider the sum of a continuing series of impulse responses. 10. Give an example of a finite impulse response system that is different from the system discussed in Example 2.7.

Page 2: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

Solution: Revise Figure 2.24 and Equation (2.88). Analysis and Design Problems Section 2.1 Problems: Discrete-Time Signals and Systems 2.1. Determine which of the following discrete-time functions is different from all the others.

1

1

( ) [ ] [ 1] [ 2]

( ) [ ] [ ]

1, [ 1,1]( ) [ ]

0, otherwise

( ) [ ] [ 1] [ ] [ 1] [ 2]

a

bk

c

d

a x n u n u n

b x n n k

nc x n

d x n n n n n

Solution Only function (d) has a non-zero value at n = 2. 2.2. Write a MATLAB® program to generate a plot of [ 4] [ 10]u n u n over the discrete sequence 0 15.n Solution for m=1:16 y(m)=0; n=m-1; k(m)=n; if n-4>=0, y(m)=1; end w(m)=0; if n-10>=0, w(m)=1; end x(m)=y(m)-w(m); end stem(k,x) Section 2.1 Problems 2.3. The trapezoidal rule for numerical integration is shown in Figure P2.3. The value of the integral at time nT is equal to the value at (n-1)T plus the area of the trapezoid shown. (a) Write a difference-equation model for the integration operation that relates y[n] to x[n]. (b) Write a MATLAB program that integrates , 0 5te t seconds, with a sampling period of

second. 0.1T

Page 3: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

Figure P2.3

Solution P2.3

(a) [ ] [ 1] [ ] [ 1]2

Ty n y n x n x n

(b) y(1)=0; T=0.1; for n=1:51 y(n+1)=y(n)+T/2*(exp(-n*T)+exp(-(n-1)*T)); end y Final result: y(5) ≈y[51] = 0.9941. Section 2.1 Problems 2.4. The sequence shown in Figure P2.4 was acquired by sampling a continuous-time signal

using a sampling period of 0.1 second. 6.9315( ) [ ( ) ( 0.55)]tx t e u t u t (a) Approximate the integral of the signal using rectangular (Euler) integration. (b) Approximate the integral of the signal using trapezoidal integration. (c) Calculate the integral of the continuous-time signal x(t). (d) Compare the results of (a), (b), and (c).

0 1 2 3 4 5 6 7 80

4

8

12

16

20

24

28

32

36

n

x[n]

Figure P2.4

Solution (a) rectangular-rule integration:

Page 4: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

(b) trapezoidal itegration:

[ 1] 0; [ 1] 0; 0.1

[0] [ 1] [0] [ 1] 0 0.05 (1 0) 0.052

[1] [0] [1] [0] 0.05 0.05 (2 1) 0.22

[2] [2] [1] 0.2 0.05 (4 2) 0.52

[6] [5] [6] [5] 4.7 0.05 (0 32) 6.32

x y T

Ty y x x

Ty y x x

Ty x x

Ty y x x

M

0.55 6.915 6.9315 0.55

00

1(c) 6.385

6.9315t ty e dt e

Section 2.2 Problems: Transformations of Discrete-Time Signals

2.5. The discrete-time signals shown in Figure P2.5 are zero except as shown. Plot the following: ( ) [2 ] ( ) [ 2]

( ) [ ] ( ) [ 2 ]

( ) [ 2] ( ) [2 ]

( ) 2 3 [ ] ( ) 1 2 [ 2]

a x n b x n

c x n d x n

e x n f x n

g x n h x n

Figure P2.5 Solution P2.5 (a) Time scaling: 2 2m n n m

(b) Time scaling: / 2 2m n n m

Page 5: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

(c) Time reversal: n m

-5 -4 -3 -2 -1 0 1 2 3 4 5-6

-5

-4

-3

-2

-1

0

1

2

3

4

(d) Time reversal and scaling: 2 /m n n m 2

-5 -4 -3 -2 -1 0 1 2 3 4 5-6

-5

-4

-3

-2

-1

0

1

2

3

4

(e) Time shift: 2 2m n n m

-5 -4 -3 -2 -1 0 1 2 3 4 5-6

-5

-4

-3

-2

-1

0

1

2

3

4

(f) Time shift and time reversal: 2 2m n n m

-5 -4 -3 -2 -1 0 1 2 3 4 5

-6

-5

-4

-3

-2

-1

0

1

2

3

4

(g) Amplitude shift and amplitude scaling: ( ) 2 3 ( )y n x n

-5 -4 -3 -2 -1 0 1 2 3 4 5-6

-4

-2

0

2

4

6

8

10

12

14

16

(h) Amplitude shift, amplitude scaling, and time shift: ( ) 1 2 ( 2)y n x n

Section 2.2 Problems 2.6 The signal in Figure P2.5 is zero except as shown. Plot:

( ) [ ] [ ] ( ) [ ] [ ]

( ) [ ] [ 2] ( ) [ ] [2 ]

( ) [ ] [ 1] ( ) [ ]( [ ] [ 2])

a x n u n b x n u n

c x n u n d x n u n

e x n n f x n n n

Solution (a) Time reversal on x[n], followed by multiplication by a unit step function:

-5 -4 -3 -2 -1 0 1 2 3 4 5-2

-1

0

1

2

3

4

(b) Multiply x[n] by a time reversed unit step function:

-5 -4 -3 -2 -1 0 1 2 3 4 5-2

-1

0

1

2

3

4

(c) Multiply x[n] by a time-shifted unit step function:

Page 6: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

-5 -4 -3 -2 -1 0 1 2 3 4 5-6

-5

-4

-3

-2

-1

0

1

2

(d) Multiply x[n] by a time reversed and time-shifted unit step function: 1, 2

[2 ]0, 2

nu n

n

-5 -4 -3 -2 -1 0 1 2 3 4 5-6

-5

-4

-3

-2

-1

0

1

2

3

4

(e) Multiply x[n] by a time-shifted impulse 00

1,[ ]

0,

n nn n

otherwise

.

-5 -4 -3 -2 -1 0 1 2 3 4 5-6

-5

-4

-3

-2

-1

0

1

2

(f) Multiply x[n] by the sum of two impulses, one occurring at n = 0 and one at n = 2.

Section 2.2 Problems 2.7. The sequence [ ]x n is shown in Figure P2.4. For each of the following, write an equation describing the sequence as a sum of discrete-time impulses and sketch the sequence. (a) [ ] [ 2] vs. .ay n x n n

(b) [ ] [ 3] vs. .by n x n n

(c) [ ] [ ] vs. .cy n x n n

(d). [ ] [ 3] vs. .dy n x n n Solution P2.7 (a)

-10 -8 -6 -4 -2 0 2 4 6 8 100

4

8

12

16

20

24

28

3234

y[n]=x[n-2]

Page 7: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

(b)

-10 -8 -6 -4 -2 0 2 4 6 8 100

5

10

15

20

25

30

y[n]=x[n+3] (c)

-10 -8 -6 -4 -2 0 2 4 6 8 100

5

10

15

20

25

30

y[n]=x[-n] (d)

-10 -8 -6 -4 -2 0 2 4 6 8 100

5

10

15

20

25

30

y[n]=x[-n+3]

Page 8: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

Section 2.2 Problems 2.8. Suppose that the sequence of Figure P2.5, [ ] 3 [0.5 2] 2x n v n

find and sketch v[n]. Solution P2.8

[ ] 2

[0.5 2]3

: 0.5 2 2

x nv n

time transformation m n n m

4

m n Av Ax -4 -4 2 4/3 -3 -2 0 2/3 -2 0 -4 -2/3 -1 2 0 4 1 6 2 8 3 10

-6 -4 -2 0 2 4 6 8 10 12-1

-0.5

0

0.5

1

1.5

Section 2.2 Problems 2.9. The general case of a signal transformed in both time and amplitude can be expressed as

[ ] [ ]y n Ax an b B where a is rational and b is an integer. Solve this expression for x[n] in terms of y[n]. Solution P2.9

[ ] [ ] ; let ,

1[ ]

m by n Ax an b B m an b n

am b B

x n yA a A

Page 9: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

Section 2.3 Problems: Characteristics of Discrete-Time Signals 2.10 Give proofs of the following statements: (a) The sum of two even functions is even. (b) The sum of two odd functions is odd. (c) The sum of an even function and an odd function is neither even nor odd. (d) The product of two odd functions is even. (e) The product of two even functions is even. (f) The product of an even function and an odd function is odd. Solution P2.10

(a) 1 2

1 2 1 2

[ ] [ ] [ ];

[ ] [ ] [ ] [ ] [ ] [ ],t e e

t e e e e t

x n x n x n

x n x n x n x n x n x n eve

n

(b) 1 2

1 2 1 2

[ ] [ ] [ ];

[ ] [ ] [ ] [ ] [ ] [ ],t o o

t o o o o t

x n x n x n

x n x n x n x n x n x n odd

(c) [ ] [ ] [ ]

[ ] [ ] [ ] [ ] [ ] [ ],t e o

t e o e o t

x n x n x n

x n x n x n x n x n x n neithe

r

(d) 1 2

1 2 1 2

[ ] [ ] [ ]

[ ] [ ] [ ] [ ] [ ] [ ],t e e

t e e e e t

x n x n x n

x n x n x n x n x n x n even

(e)

1 2

1 2 1 2

[ ] [ ] [ ]

[ ] [ ] [ ] [ ] [ ] [ ],t o o

t o o o o t

x n x n x n

x n x n x n x n x n x n even

(f)

[ ] [ ] [ ]

[ ] [ ] [ ] [ ] [ ] [ ],t e o

t e o e o t

x n x n x n

x n x n x n x n x n x n odd

Section 2.3 Problems

2.11. (a) Determine if each of the signals listed is even, odd, or neither.

1 2

3 4

5 6

( ) [ ] 3 [ 2] ( ) [ ]

( ) [ ] (0.7) ( ) [ ] 3 (0.7) (0.7)

( ) [ ] cos( ) ( ) [ ] cos( 6)

n n n

i x n u n ii x n n

iii x n iv x n

v x n n vi x n n

(b) Sketch the signals and verify the results of (a). (c) Find the even part and the odd part of each signal.

Solution P2.11 (a) (i) neither, (ii) odd, (iii) even, (iv) even,(v) even,(vi) neither

Page 10: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

(b)

(i) Neither

-5 -4 -3 -2 -1 0 1 2 3 4 5-1

-0.5

0

0.5

1

1.5

2

2.5

3

3.5

4

n

(ii) Odd

-5 -4 -3 -2 -1 0 1 2 3 4 5-5

-4

-3

-2

-1

0

1

2

3

4

5

n

(iii) Even

-5 -4 -3 -2 -1 0 1 2 3 4 5-0.5

0

0.5

1

1.5

n

(iv) Even

-5 -4 -3 -2 -1 0 1 2 3 4 5-1

0

1

2

3

4

5

6

7

8

9

n (v) Even

-5 -4 -3 -2 -1 0 1 2 3 4 5-1.5

-1

-0.5

0

0.5

1

1.5

n

(vi) Neither

-5 -4 -3 -2 -1 0 1 2 3 4 5-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

n (c)

( ) [ ] 1.5 [ 2] 1.5 [ 2], [ ] 1.5 [ 2] 1.5 [ 2]e oi x n u n u n x n u n u n

( ) [ ] 0, [ ]e oii x n x n n

( ) [ ] [ ], [ ] 0e oiii x n x n x n

( ) [ ] [ ], [ ] 0e oiv x n x n x n

( ) [ ] [ ], [ ] 0e ov x n x n x n

( ) [ ] 0.5cos( 6) 0.5cos( 6)

[ ] 0.5cos( 6) 0.5cos( 6)e

o

vi x n n n

x n n n

Section 2.3 Problems

2.12. (a) Determine and plot, separately, the even and the odd parts of the discrete-time signal

[ ]x n shown in Figure P2.12.

Page 11: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

(b) Write a MATLAB® program to calculate and plot the even and odd parts of the signal shown

in Figure P2.12.

Figure P2.12 Solution P2.12 (a) [ ] [ ] [ ] / 2; [ ] [ ] [ ] / 2e ox n x n x n x n x n x n

-10 -8 -6 -4 -2 0 2 4 6 8 100

1

2

3

4

xe[n]

-10 -8 -6 -4 -2 0 2 4 6 8 10-1.5

-1

-0.5

0

0.5

1

1.5

xo[n]

(b) >> x=[0 0 0 0 0 0 2 3 2 1 3 3 1 2 2 0 0 0 0 0 0]; >> n=[-10:10]; >> xm=fliplr(x); >> xe=(x+xm)/2; >> xo=(x-xm)/2; >> stem(n,xe); >> stem(n,xo); >> stem(xe+x0); >> stem(n,xe+xo); Section 2.3 Problems 2.13. The signals 1[ ] and [ ]2x n x n are given: 1 2cos(0.2 ) and cos(0.125 ) x n x n

(a) Determine if each of the signals is periodic, and if so, determine the number of samples per fundamental period.

Page 12: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

(b) Determine if the sum of the two signals is periodic. If so, determine the number of samples per fundamental period. Solution P2.13 (a)

1 01

01 01 1

[ ] cos(0.2 0.2 ) cos(0.2 2 )

0.2 2 10, 1, [ ] .

x n n N n

N k N k x n is periodic

k

2 02

02 02 2

[ ] cos(0.125 0.125 ) cos(0.125 2 )

20.125 2 16, 1, [ ] .

0.125

x n n N n k

N k N k x n is periodic

3 03

03 03 3

[ ] cos(0.4 0.4 ) cos(0.4 2 )

0.4 2 5, 1, [ ] .

x n n N n

N k N k x n is periodic

k

(b)

32

1 1

01 1 01

02 2 02

03 3 03

0.125 5 0.4 162,0.2 8 0.2 1 8

20.2 2 8 800.2

20.125 2 5 800.125

20.4 2 16 800.4.

kkk k

N k N

N k N

N k N

the sum is periodic

Section 2.3 Problems

2.14. (a) A continuous-time signal, ( ) cos(2 ),x t t is sampled every T seconds. Determine if the resulting discrete-time signal, [ ] ( ),x n x nT is periodic if:

( ) 5 . ( ) 0.125

( ) 0.1 ( ) 0.130

4( ) 3

i T s ii T s

iii T s iv T s

v T s

(b) For the sampled signals in part (a) that are periodic, find the number of periods of x(t) in one period of x[n]. (c) For the sampled signals in part (a) that are periodic, find the number of samples in one period of x[n]. Solution P2.14 (a)(i)

Page 13: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

0

0 0 0

[ ] cos(10 ) cos(10 10 ) cos(10 2 )

2 10 , 1, 5 (constant)5

x n n n N n k

kk N N N k periodic

(ii)

0

0 0 0

[ ] cos(0.25 ) cos(0.25 0.25 ) cos(0.25 2 )

22 0.25 , 8, 10.25

x n n n N n

kk N N N k periodic

k

(iii)

0

0 0 0

[ ] cos(0.2 ) cos(0.2 0.2 ) cos(0.2 2 )

22 0.2 , 10, 10.2

x n n n N n

kk N N N k periodic

k

(iv)

0

0 0 0

[ ] cos(0.26 ) cos(0.26 0.26 ) cos(0.26 2 )

22 0.26 , 100, 13,0.26

x n n n N n

kk N N N k periodic

k

(v)

0

0 0 0

[ ] cos 8 3 cos 8 3 8 3 cos 8 3 2

22 8 3 , 3, 4,8 3

x n n n N n

kk N N N k periodic

k

(b) (i) k = 5, (ii) k = 1, (iii) k = 1, (iv) k = 13, (v) k = 4. (c) (i) N0 = 1, (ii) N0 = 8, (iii) N0 = 10, (iv) N0 = 100, (v) N0 = 3. Section 2.3 Problems 2.15. (a) Determine which of the discrete-time signals listed below are periodic in .

( )cos( ) ( ) cos(3 2 4)

( )sin(0.01 ) ( )sin(3.15 )

( )sin(3.15 ) ( )cos( 2) 1

i n ii n

iii n iv n

v n vi n

(b) For those signals in Part (a) that are periodic, determine the number of samples per period. Solution P2.15 (a) All are periodic in , the following is a test for periodicity in n. (i)

0 0 0cos( ) cos( 2 ) 2 , 1, 2, n N n k N k k N periodic

(ii)

0 0

0

cos(3 2 4 3 2) cos(3 2 4 2 ) 3 2 2 ,

3, 4,

n N n k N

k N periodic

k

(iii)

0 0 0sin(0.01 0.01 ) sin(0.01 2 ) 2 0.01 , 1, 200, N k k N k N periodic

Page 14: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

(iv)

00

0

2sin(3.15 3.15 ) sin(3.15 2 ) ,3.15 , .

Nn N n k kN k is irrational nonperiodic

(v)

0 0

0 0

sin(3.15 3.15 ) sin(3.15 2 ) 2 3.15 ,

200 315 40 63, 63, 40,

n N n k k

N k k N periodic

N

(vi)

0 0cos(0.5 0.5 ) 1 cos(0.5 2 ) 1 0.5 2 , 1, 4,n N n k N k k N periodic0

(b) (i) N0 = 2 (ii) N0 = 4 (iii) N0 = 200 (iv) not periodic in n (v) N0 = 40 (vi) N0 = 4 Section 2.4 Problems: Common Discrete-Time Signals

2.16. Given the discrete-time sequence 0.5 , 6 6

[ ]0, otherwise

n nx n

(a) sketch the sequence as a function of n, (b) sketch [ ] [ ]x n u n vs. n. (c) sketch [ ] [ ]x n u n vs. n. (d) sketch [ ] [ ]x n u n vs. n. (e) sketch [2 ] [2 ]x n u n vs. n. Solution P2.16 (a)

-6 -4 -2 0 2 4 6

0

10

20

30

40

50

60

(a) x[n] vs. n

(b)

-6 -4 -2 0 2 4 60

0.2

0.4

0.6

0.8

1

1.2

1.4

1.6

1.8

2

(b) x[n]u[n] (c)

-6 -4 -2 0 2 4 60

10

20

30

40

50

60

70

(c) x[n]u[-n]

(d)

-6 -4 -2 0 2 4 60

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

(d) x[-n]u[-n] (e)

Page 15: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

-6 -4 -2 0 2 4 60

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

(e) x[2-n]u[2-n] Section 2.4 Problems 2.17. The discrete-time signals listed below are the result of sampling a continuous-time signal with a sampling period T = 0.1 s. Find the time constant τ for each signal and the frequency ω for each of the sinusoidal signals.

( ) (0.3) ( ) (0.3) cos( )

( ) ( 0.3) ( ) (0.3) sin( 1)

( ) (0.5) cos(3 ) ( ) (0.5) sin(120 4)

n n

n n

n n

a b n

c d n

e n f n

Solution P2.17 T = 0.1 s.

( ) , where 1 / . cos( ) cos ( ) cos( ), where .at anT aT n

t nTt nTe e e a t T n bn b

T

(a) 0.1(0.3) ln(0.3) , 0.0106 s.ln(0.3)

nTn Te

(b) from (a), 10.0106 s. 10 rad/s0.1b

T

(c) ( 0.3) (0.3) ( 1) (0.3) cos( ). From (a), 0.0106 s. 10 rad/s.n n n n n T

(d) 1(0.3) sin( 1). From (a), 0.0106. 10 rad/s.0.1n bn T

(e) 0.1 3(0.5) cos(3 ). 0.144 s. 30 rad/s.ln(0.5) 0.1n n

(f) From (e), 120(0.5) sin(120 ). 0.144 s. rad/s.4 0n n .1

Section 2.4 Problems

2.18. Use MATLAB® to generate and plot the signals of Problem 2.16(a)-(f).

Solution P2.18 (MATLAB® commands for Part (e) >> for m=-5:5 k=m+6; x(k)=(0.5)^m*cos(3*m); end >> stem(n,x)

Page 16: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

(a)

-5 -4 -3 -2 -1 0 1 2 3 4 5-100

-50

0

50

100

150

200

(b)

-5 -4 -3 -2 -1 0 1 2 3 4 5-100

-50

0

50

100

150

(c)

-5 -4 -3 -2 -1 0 1 2 3 4 5-200

-150

-100

-50

0

50

100

150

200

(d)

-5 -4 -3 -2 -1 0 1 2 3 4 5-50

-40

-30

-20

-10

0

10

20

30

40

50

(e)

-5 -4 -3 -2 -1 0 1 2 3 4 5-15

-10

-5

0

5

10

15

(f)

-5 -4 -3 -2 -1 0 1 2 3 4 5-5

0

5

10

15

Section 2.4 Problems 2.19. The discrete-time signal [ ] 4(0.6) cos(4 )nx n n is formed by sampling a continuous-time signal, x(t), with a sampling frequency of 10 samples-per-second. (a) What is the time constant associated with the signal x(t)? (b) What is the frequency of oscillations in x(t)? (c) Plot x[n] using MATLAB® and use the plot to confirm your answers to (a) and (b). Solution P2.19

Page 17: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

[ ] 4(0.6) cos(4 ) 4 cos( ), 0.1 s.n nx n n a bT T

(a) 0.1 0.196 s.ln( ) ln(0.6)T

a

(b) 4 40 rad/s.0.1b

T

Section 2.4 Problems 2.20.(a) Write a mathematical model of each of the sequences shown in Figure P2.20, defining the sequence as a function of n. (b) Use MATLAB® to generate and plot the function of n that you wrote in Part (a). Compare your plots with Figure P2.20 to check your answers for Part (a).

0 1 2 3 4 5 6 7 80

0.5

1

n

x[n]

(a)

0 1 2 3 4 5 6 7 80

10

20

30

40

n

y[n]

(b)

0 1 2 3 4 5 6 7 80

0.5

1

1.5

2

2.5

n

v[n]

(c)

Figure P2.20. Solution P2.20

(a) [ ] 0.5 [ ]n

x n u n

(b) (5 ) 5[ ] 30(0.5) [6 ] [ ] 30(2) [ ] [ 6]n ny n u n u n u n u n

(c) [ ] 1 (0.5) [ ] [ 6]nv n u n u n

Page 18: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

Section 2.5 Problems: Discrete-Time Systems 2.21. A system’s output can be calculated using the difference equation

[ ] 5 [ 1] [ 2] 3 [ 1] 4 [ 2y n y n y n x n x n ]

]

(a) Is the system linear? Justify your answer. (b) Is the system time invariant? Justify your answer. (b) Is the system causal? Justify your answer. (c) Is the system stable? Justify your answer. Solution P2.21

[ ] 5 [ 1] [ 2] 3 [ 1] 4 [ 2y n y n y n x n x n (a) The system is linear

1 2 1 2 1 2 1 2

1 2

1 1 1 1 2 2 2 2

[ ] [ ] 5 [ 1] [ 1] [ 2] [ 2] 3 [ 1] [ 1]

4 [ 1] [ 1]

[ ] 5 [ 1] 3 [ 1] 4 [ 2] [ ] 5 [ 1] 3 [ 1] 4 [ 2] 0

(0) (0) 0

ay n by n ay n by n ay n by n ax n bx n

ax n bx n

a y n y n x n x n b y n y n x n x n

a b

(b) 0 0 0 0 0[ ] 5 [ 1 ] [ 2 ] 3 [ 1 ] 4 [ 2 ], time invarianty n n y n n y n n x n n x n n (c) The system is causal since y[n] is not a function of future values of x[n]. (d) y is bounded if x is bounded. The system is BIBO stable.

Section 2.5 Problems 2.22. The impulse response of a LTID system is . The input signal

is

1[ ] (0.5) ( [ ] [ 2])nh n u n u n

[ ] [ ] [ 1]x n n n .

(a) Is the system causal? Justify your answer.

(b) Is the system stable? Justify your answer.

Solution P2.22

1[ ] 0.5 [ ] [ 2]

nh n u n u n

-6 -4 -2 0 2 4 60

0.5

1

1.5

2

2.5

3

n

h[n]

(a) The system is causal. The impulse response is zero for all n < 0.

Page 19: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

(b) The system is stable. The output will be finite for finite inputs.

Section 2.5 Problems 2.23. Determine if each of the systems described by the equations given below is causal. (a) [ ] 0.3 [ 2] 0.1 [ 1]y n x n x n

(b) [ ] [ 2]y n x n (c) [ ] 0.2 [ 1] 2 [ ] 0.5 [ 1] 0.25 [ 2]y n x n x n x n x n (d) [ ] 0.5 [ 1] 0.25 [ 2] 0.125 [ 3] 0.0625 [ 1]y n x n x n x n x n Solution P2.23 (a) Causal. The output, y[n], is determined by past or current values of the input x[n]. (b) Not Causal. The output, y[n], is determined by future values of the input, x[n]. (c) Not Causal. The output, y[n], is partially determined by future values of the input, x[n]. (d) Not Causal. The output, y[n], is partially determined by future values of the input, x[n]. Section 2.5 Problems 2.24. Sketch a block diagram for a system that will solve the difference equations:

1 2

2 1 2

1

[ 1] [ ]

[ 1] 0.5 [ ] 0.125 [ ] [ ]

[ ] 2 [ ]

x n x n

x n x n x n

y n x n

u n

Solution P2.24

Section 2.5 Problems 2.25. Write a difference equation model for the system shown in Figure P2.25.

Page 20: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

Figure P2.25

Solution P2.25 1. Recognize that the output of each block is the input to that block delayed by one sample period. 2. Write the equation for the output of the summing junction.

[ ] 0.7 [ 1] 0.1 [ 2] [ ] [ 1]y n y n y n x n x n

Section 2.6 Problems: Convolution for Discrete-Time Systems 2.26. A linear, time-invariant system has the input signal x[n], the output signal y[n], and the impulse response h[n]. For each of the cases described below, find the output y[n]. The signals are plotted in Figure P2.26. (a) x[n] in (a), h[n] in (b) (b) x[n] in (b), h[n] in (d) (c) x[n] in (a), h[n] in (c) (d) x[n] in (d), h[n] in (e) (e) x[n] in (b), h[n] in (f)

Figure P2.26

Page 21: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

Solution P2.26 (a)

[ ] 0, 0,

[0] 1 3 3

[1] 1 3 1 3 6

[2] 1 3 1 3 1 1 7

[3] 1 3 1 3 1 1 1 1 8

[4] 1 3 1 3 1 1 1 1 1 1 9

[5] 0 3 1 3 1 1 1 1 1 1 6

[6] 0 3 0 3 1 1 1 1 1 1 3

[7] 0 3 0 3 0 1 1 1 1 1 2

[8] 3 0 3 0 1 0 1 1

y n n

y

y

y

y

y

y

y

y

y

1 1

[ ] 0, 9y n n

(b) [ ] 0, 0,

[0] 2 3 6

[1] 2 3 1.5 3 10.5

[2] 2 1 1.5 3 1 3 9.5

[3] 2 1 1.5 1 1 3 0.5 3 8

[4] 2 1 1.5 1 1 3 0.5 3 0 3 8

[5] 2 0 1.5 1 1 1 0.5 3 0 3 5

[6] 2 0 1.5 0 1 1 0.5 1 0 3 1.5

[7] 2 0 1.5 0 1 0 0

y n n

y

y

y

y

y

y

y

y

.5 1 0.5

[ ] 0, 8y n n

(c) [ ] 0, 0

0 1 2 3 4 5 6 7 8 9

y[n]= 1 0 1 0 0 -1 0 -1 0 0

[ ] 0, 8

y n n

n

y n n

(d)

[ ] 0, 0

0 1 2 3 4 5 6 7 8 9

y[n]= 2 3.5 0.5 -2 -2 -1.5 -0.5 0 0 0

[ ] 0, 7

y n n

n

y n n

(e) [ ] 0, 0

0 1 2 3 4 5 6 7 8 9

y[n]= -3 -6 -1 4 2 1 2 1 0 0

[ ] 0, 8

y n n

n

y n n

MATLAB Solution: (a)

x= [1 1 1 1 1 0 0 0 0 0]; h=[3 3 1 1 1 0 0 0 0 0]; y=conv(x,h)

Section 2.6 Problems 2.27. (a) Consider two LTI systems connected in cascade. The impulse responses of the two systems are identical, with h1[n] = h2[n]= (0.8)n. Find the impulse response of the total system. (b) Repeat part (a) for h1[n] = h2[n] = δ[n-3]. (c) Repeat part (a) for h1[n] = h2[n] = u[n] – u[n-2]. Solution P2.27

(a) 1 20

[ ] [ ] [ ] 0.8 [ ] 0.8 [ ] 0.8 0.8 0.8 [ ]*n

k n k k n k n

k k

h n h n h n u k u n k n u n

(b) [ ] [ 3] [ 3] [ 6]*h n n n n

(c) 2

2

[ ] [ 2] [ 2] [ 2] [ 2 ] 1 ( 4) ( 4*n

k k

h n u n u n u k u n k n u n

)

Section 2.6 Problems 2.28. Calculate and write a mathematical expression for the output, of a linear, time-invariant, discrete- time system with the impulse response,

[ ],y n

3 [ ]n[ ] [ 1] [ 2]h n n n ].

if the input signal is [ ] 2 [ ] 3 [ 1] 4 [ 2] [ 3x n n n n n

Page 22: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

Solution P2.28 [ ] [3 1 1 0 0 0 0 ]

[ ] [2 3 4 1 0 0 0 ]

[ ] [ ] [ ]*[ ] 0, 0,

[0] 3 2 6

[1] 3 3 1 2 11

[2] 3 4 1 3 1 2 17

[3] 3 1 1 4 1 3 0 2 10

[4] 3 0 1 1 1 4 0 2 5

[5] 3 0 1 0 1 1 1

[ ] 0, 5

h n

x n

y n x n h n

y n n

y

y

y

y

y

y

y n n

L

L

n = [ 0 1 2 3 4 5 6 7 8 …] y[n]=[6 11 17 10 5 1 0 0 0 . . .]

Section 2.6 Problems

2.29. The impulse response of a LTID system is . The input signal is

1[ ] (0.5) ( [ ] [ 2])nh n u n u n [ ] [ ] [ 1]x n n n . Calculate and plot the output signal, y[n].

Solution P2.29

1[ ] (0.5) ( [ ] [ 2]) 2 [ ] 1 [ 1]

[ ] 1 [ ] 1 [ 1]

[ ] [ ] [ ]*[ ] 0, 0

[0] 2 1 2

[1] 2 1 1 1 3

[2] 2 0 1 1 1

[ ] 0, 2

nh n u n u n n n

x n n n

y n x n h n

y n n

y

y

y

y n n

Section 2.6 Problems

2.30. The impulse response of a LTID system is . The input signal is

1[ ] (0.5) ( [ ] [ 2])nh n u n u n [ ] [ ] [ 1]x n n n .

(a) Is the system causal? (b) Is the system stable?

Page 23: Chapter 2 Problem Solutionstestbanksolutions.org/sample/Solution-Manual-for-Introduction-to... · Chapter 2 . Problem Solutions . ... When does it not? Solution: See Equation (2.1)

Solution P2.30 (a) The system is causal. The response is determined by present and past inputs. (b) The system is stable. The impulse response decays to zero with increasing time and it is time limited.