Docsity

Continuous Time Fourier Transform, Exercises of Digital Signal Processing

Toggle sidebar
bg1
1. Compute the continuous time Fourier series (CTFS) representation for the waveform shown in Fig. P1.
x(t)
1
t
4T2T02T4T
x(t)
1
t
4T2T02T4T
Figure P1: Half sawtooth wave with period T.
Solution:
Time period To =
7
, with fundamental frequency Z0 = 2S/T.
The exponential CTFS coefficient ak is given by
³Z
0
0
0
)(
1
T
tjk
T
kdtetxa
which reduces to ³Z
T
tjk
T
t
T
kdtea
0
10
)1( ,
or,
>@
T
jk
e
Tjk
e
T
t
T
k
tjktjk
a
0
)(
1
)(
1
2
0
0
0
0)()1( Z
Z
ZZ .
Substituting the upper and lower limits on t, we get
>@>@
)()1()(0 2
0
22
0
2
0
22
1
)(
11
2
11
Tkj
jkT
kj
Tkj
T
kea Z
Z
S
Z
or, S
kj
k
a2
1.
Clearly, for k = 0, the value of a0 is infinite from the above relationship. So, we evaluate a0 separately using
2
1
)(2
)1(
0
)(2
)1(
)1( 1
2
1
0
1
2
1
0
1
0
u
»
»
¼
º
«
«
¬
ª
u ³
T
T
T
T
T
t
T
T
T
t
Tdta .
2. Repeat Problem 1 for the sawtooth wave shown in Fig. P2.
x(t)
1
t
4T2T02T4T
x(t)
1
t
4T2T02T4T
1
t
4T2T02T4T
Figure P2: Sawtooth wave with period 2T.
Solution:
Time period To = 2
7
, with fundamental frequency Z0 = S/T.
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Continuous Time Fourier Transform and more Exercises Digital Signal Processing in PDF only on Docsity!

1. Compute the continuous time Fourier series (CTFS) representation for the waveform shown in Fig. P1.

x ( t )

t

 4 T  2 T 0 2 T 4 T

x ( t )

t

 4 T  2 T 0 2 T 4 T

Figure P1: Half sawtooth wave with period T.

Solution:

Time period T o = 7 , with fundamental frequency Z 0 = 2S/ T.

The exponential CTFS coefficient a k is given by

 Z

0

0 0

()

T

jk t ak (^) T xte dt

which reduces to ³

 Z



T

jk t T

t k (^) T a e dt

0

(^1) ( 1 ) 0

or, >^ @

T

jk

e jk T

e T

t k T

jk t jk t a ( ) 0

2 0

0 0

0 ( 1 ) ( )  Z  Z

Z Z   .

Substituting the upper and lower limits on t , we get

0

2 0 2 2 0

22

T jk jk T

jk k (^) T jk T a e  Z Z

 S
Z

  

or,

k j k S a 2

Clearly, for k = 0, the value of a 0 is infinite from the above relationship. So, we evaluate a 0 separately using

2

1

2 ( )

( 1 ) 0 2 ( )

( 1 ) ( 1 ) 1



 u »

» ¼

º

«

« ¬

ª





³  u

T
T
T
T
T

t

T

T
T

t a (^) T dt.

2. Repeat Problem 1 for the sawtooth wave shown in Fig. P2.

x ( t )

t

 4 T  2 T 0 2 T 4 T

x ( t )

t

 4 T  2 T 0 2 T 4 T

t

 4 T  2 T 0 2 T 4 T

Figure P2: Sawtooth wave with period 2 T.

Solution:

Time period T o = 2 7 , with fundamental frequency Z 0 = S/ T.

The exponential CTFS coefficient a k is given by

− ω

0

0 0

(^1) ()

T

jk t k (^) T a xte dt

which reduces to

− ω

− ω = + + −

T

jk t T

t T T

jk t T

t k (^) T a e dt e dt

0

(^1) ( 1 ) (^0) ( 1 ) (^0) ,

or, [ ] [ ]

T

jk

e jk T

e T

t jk T T

e jk T

e T

t k T

jkt jkt jk t jk t a ( ) 0

2 0

0 0

0 2 0

0 0

0 ( 1 ) ( ) ( 1 ) ( ) − ω − ω − − ω − ω

−ω −ω −ω −ω = + − + − − −.

Substituting the upper and lower limits on t , we get

[ ] [ ]

[ ] [ 2 ]

(^00) 2 0

2 0

2 (^00)

0 ( ) ( 1 ) ( )

( ) 0 ( )

− ω − ω − ω

− ω − ω − ω

  • − − − − −

= − − −

−π

π

jk T jk T jk

e T T

jk

e k T jk T jk T T

jk

jk a

or, [ 2 ] 22

0

2 0

1 cos( ) ( )

1 2 cos( ) ( )

(^1) ( ) ( ) π

− π − ω

π − ω

= − − = k

k jk

k ak (^) T T jk T ,

which reduces to

⎪ ⎩

⎪ ⎨

⎧ =

= π 0 if is odd.

if isodd

if 0 (usingL'Hopital'sRule)

2 2

k

k

k

a k k

3. The impulse response of an LTIC system is given by

t

h t e

(a) Based on definition (4.49), calculate the transfer function H (ω) of the LTIC system.

(b) The plot of magnitude | H (ω)| with respect to ω is referred to as the magnitude spectrum of the LTIC

system. Plot the magnitude spectrum of the LTIC system for the range (−∞ < ω < ∞).

(c) Calculate the output response y ( t ) of the LTIC system if the periodic signal shown in Fig. P1 is applied

as input to the LTIC system.

Solution:

(a) The transfer function H (ω) is given by

( 2 )

1

( 2 )

1 ( )

− ∞

−ω

− +ω

−ω

− −ω

− −ω

  • ω

− − ω

t (^) j t t j t t j t j t j t e j

e j

H e e dt e e dt e e dt ,

which reduces to

[ ] [ ]

( 4 )

4 1 0 ( 2 )

1 0 1 ( 2 )

1 ( ) 2

  • ω

− = − ω

− + − − ω

ω = j j

H.

(b) The magnitude spectrum | H (ω)| is shown in the following figure

T

te dt T

xt e dt T

a

T
T

jk t

T

jk t k

1 ()

1 ()

1

= 0 = δ^0 = ∫ ∫ −

− ω − ω

The the exponential CTFS of an impulse train is, therefore, given by

∑ ∑

− π

ω = = k

jktT T k

jk t T

x t e e

( ).

Taking the CTFT results in the following transform

∑^ (^ )

ω = π^ δω+ π k

T

k X (^) T ( )^22 ,

which is another impulse train in the frequency domain.

(b) The exponential CTFS of the periodic raised square wave is given by

∑

− ω

k

jk t x t ak e ()^0

where ω 0 = π/ T. The CTFS coefficients a k of the periodic raised square wave are calculated as

[ ] [ ]

[ ] [ ]

[ ] [ ]

sinc( )[ 1 ],

  1. 5 ( 2 sin( 0. 5 )) 2 sin( 0. 5 )

  2. 5 0. 5

  3. 5

0

0 0

0 0 0

π −^ π

− π − π − π

− π − π − π

− π π − π

− ω − − ω

− ω

− ω

= −

= π + − π

= − + −

= + = +

−ω −ω ∫ ∫

k^ jk

jk jk jk

j k j k jk

j k j jk jk

T

jk T

e T

T

jk T

e T

T
T

jk t T

T
T

jk t k T

e

j k e j k

e e e e

a e dt e dt

jk t jkt

or,

[ ] ⎩

⎨

⎧

− ≠

= = (^) − π sinc(π^ ) 1 if 0.

if 0

e k

k a (^) jk k k

The CTFS of the periodic raised square wave is, therefore, given by

∑

− ω

k

jk t x t ak e ( )^0.

Taking the CTFT results in the following transform

∑^ (^ )

π ω = π δω+ k

T

k X ( ) 2 ak.

(c) The exponential CTFS of the half sawtooth wave is given by

∑

− ω

k

jk t x t ak e ()^0

where ω 0 = 2π/ T. The CTFS coefficients a k are calculated in P1 as

⎩

⎨

⎧

− ≠

=

π

0

0

j k

k a k

k.

Taking the CTFT results in the following transform

∑^ (^ )

π ω = π δω+ k

T

k X ak

( ) 2.

(d) The exponential CTFS of the full sawtooth wave is given by

∑

− ω

k

jk t x t ak e ()^0

where ω 0 = π/ T. The CTFS coefficients a k are calculated in P2 as

⎪ ⎩

⎪ ⎨

⎧

≠

=

= π 0 is even.

0 , isodd

0

2

k

k k

k

a k k

Taking the CTFT results in the following transform

∑^ (^ )

π ω = π δω+ k

T

k X ( ) 2 ak.

(e) The exponential CTFS of the periodic wave is given by

∑

− ω

k

jk t x t ak e ()^0

where ω 0 = π/ T. The periodic signal x ( t ) is defined over one period 2 T as follows

( ) ⎩

⎨

⎧

− ≤ <

− ≤ < = (^) π 1 0. 5 sin for 0.

0 for 0 ( ) t T

T t xt T

t

The CTFS coefficients a k are calculated as

[ ( )] [ ]

[ ] [ ]

[ 1 ] [ ].

1 0. 5 sin

( 1 ) ( 1 )

( 1 )/ ( 1 )/

0

0 0 0

− − π − + π − − π − + π

− π π

− ω − − π − + π

π − ω − ω π π − ω

=− − + − − +

= + −

= − = − −

− −π − +π

−π − −π − +π

∫ ∫ ∫

jk jk j k

e jk

jk e k

T

jk T

e jk T

e jk T

e T

T

jtT jtT jk t jT

T

jk t T

T

jk t T

t k T

jk jk

jk jk tT jk tT

j e j

j

a e dt e dt e e e dt

Taking the CTFT results in the following transform

∑^ (^ )

ω = π δω+ π k

T

k X ( ) 2 ak.

(f) The exponential CTFS of the half square wave is given by

2 (^ ) =^ cos(^0 )^ ⎯⎯→∞. ∫ ∫

∞

−∞

ω

∞

−∞

x t dt t dt

Clearly the area enclosed by the cosine term would be infinite. Since the CTFT existence condition is

not satisfied, the CTFT for x 2 ( t ) does not exist. Also, it can be checked that x 2 ( t ) has an infinite number

of maximas and minimas, which is a second violation of the existence of the CTFT.

(c) Checking the CTFT existence condition,

[ ]

[ 0 0 0 0 0 ] [ 0 0 0 0 24 ]^.

() () 4 12 24 24

5 5

2 3 4 5

= − + − + − − + − + = < ∞

= = = − + − +

− − − − − ∫ ∫ ∫

a a

a

e a

e a

e a

e a x t dt t e at^ ut dt t eatdt t eat t at t at t at at

Since the CTFT existence condition is satisfied, the CTFT for x 3 ( t ) exists.

The CTFT for x 3 ( t ) is given by

[ ]

[ 0 0 0 0 0 ] [ 0 0 0 0 24 ].

4 12 24 24

( ) () ()

5 5

5

( ) 4

( ) 3

( ) 2

( ) ( )

− +ω + ω

− +ω − +ω − +ω − +ω − +ω

− +ω

− −ω

−ω

= − + − + − − + − + =

= − + − +

ω = = =

−+ω −+ω −+ω −+ω −+ω

∫ ∫ ∫

a j a j

a j

e a j

e a j

e a j

e a j

e

j t at jt a j t

aj t aj t aj t aj t aj t t t t t

X x te dt te ute dt t e dt

(d) Checking the CTFT existence condition,

[ ]

1 4 2 4 4 3 4 1 4 2 4 4 3 4 II

a j t

I

at at j t j t a j t ∫ x^ t dt ∫ e tut dt ∫ e e e dt ∫ e dt ∫ e dt

− +ω

− −ω

− ω −ω

= ω = + ≤ +

0

() cos( ) ()^0000

Integral I is given by

[ ] [ ] [( (^) )]

0 0 0

( 0 ) (^0 ) − −ω −ω

− −ω

− −ω = = = − =

−−ω ∫ a j a j a j

a j t eaj t I e dt ,

while Integral II is given by

[ ] [ ] [ (^) ( )]

0 0 0

( 0 ) (^0 ) − +ω +ω

− +ω

− +ω = = = − =

−+ω

∫ a j a j a j

a j t e aj t II e dt.

The CTFT existence condition is given by

( ) 2. 0 0 0 2

4 =^ + = + = <∞ −ω +ω +ω

∫ x t dt I II a j a j a

Since the CTFT existence condition is satisfied, the CTFT for x 4 ( t ) exists.

The CTFT for x 4 ( t ) is given by

[ ]

[ ] [ ]

[ 0 ] [ 0 ] [ ].

( ) () cos( ) ()

2 0

2 0 0 0 0

0

( 0 )

0

( 0 ) 0 0

0 0

+ω + ω

+ω − +ω−ω − +ω+ω +ω−ω +ω+ω

− +ω+ω

− +ω−ω

− +ω−ω − +ω+ω

− +ω ω −ω

− −ω

−ω

= − + − = + =

= + = +

ω = = ω = +

∫ ∫

∫ ∫ ∫

−+ω−ω −+ω+ω

a j

a j a j j a j j a j j a j j

a j j

e a j j

a j j t a j j t e

j t at j t a j t j t j t

aj j t aj j t e dt e dt

X x te dt e tute dt e e e dt

6. Determine the time domain representations for the following CTFT’s.

a.

( )

X 1 ω = + j ω−

b.

X (^) 2 ( ω) =cos( 2 ω+ 6 π)

c.

( )

[ ( )]

ω−π

5 sin 4

X 3

d.

X (^) 4 ( ω) =( 3 + 2 j ) (δ ω− 10 ) +( 1 − 2 j ) (δω + 10 )

e.

( ) ( 1 )( 3 ) (^2 5 2 )

X 5 ω = + j ω + j ω +ω

Solution:

(a) From Table 5.2, 5 ()

inverseCTFT 2 2

(^5) e tut j

  • ω

←⎯ ⎯⎯⎯→.

Using the frequency shifting property,

[ 5 ()] 5 ().

inverseCTFT 2 5 ( 2 5 ) 2 ( 5 )

5 e tut ejt e j tut

j

− − +

+ ω− ←⎯^ ⎯⎯⎯→ ⋅ =

(b) From Table 5.2, cos( 2 ) [^ ( 2 ) ( 2 )]

CTFT

t ←⎯ ⎯→πδω− +δω+.

Using the duality property, π[ δ ( − 2 )+δ( + 2 )] ←⎯ ⎯⎯→ 2 πcos( − 2 ω) = 2 πcos( 2 ω)

CTFT

t t

Using the frequency shifting property, [ ( 2 ) ( 2 )] 2 cos( 2 ( 12 ))

− 12 CTFT π π δ − +δ + ←⎯ ⎯→ π ω+

j π^ t t t e.

The signal x 2 ( t ) is given by [ ]

j t x (^) 2 ( t ) 21 ( t 2 ) ( t 2 ) e^12

−^ π = δ − +δ +.

(c) From Table 5.2, ( ) ( ) (^) ω

ω πω π

πω π π

ω ←⎯ ⎯⎯→ = =

sin( 2 ) ( 4 / 2 )

sin( 4 / 2 ) 2

CTFT 4

rect 4 4 sinc 4 2

t

Using the time scaling property, ( ) ω

ω ω

ω ⋅

←⎯ ⎯ → ⋅ =

sin( 4 ) 2

CTFT sin(^4 ) 4 2

rect t^ 2 2 2.

Using the frequency shifting property, ( ) ( )

CTFT sin( 4 ( )) 8

rect 2 ω−π

π ω−π ←⎯ ⎯⎯→ t jt e.

The signal x 3 ( t ) is given by ( )

t jt x t e

π = (^28)

3 (^ ) rect.

(d) Expressing X 4 (ω) as

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

( 3 2 ) [ ( 10 ) ( 10 )] ( 2 4 ) ( 10 )

4 3 2 10 10 1 2 3 2 10

= + δω− +δω+ − + δω +

ω = + δω− +δω+ + − − − δω+

j j

X j j j

Taking the inverse CTFT gives

ω+ ω+ ω+ − ω+

0 elsewhere

0 elsewhere

( 2 )^6

5 2

5 6

5

6

5 2

F e j^5 tx t^1

In other words,

⎪ ⎩

⎪ ⎨

⎧

− − ≤ω≤−

  • − ≤ω≤−

= ω+

ω+

−

0 elsewhere

1 5 1

1 11 5

( 2 ) 6

F e x t

j t

(b) Using the frequency differentiation property, ( ) 2

2 CTFT^2

( ) ω

←⎯ ⎯ → d

dX jt xt

or, ( ) 2

2 CTFT^2

ω

←⎯ ⎯ →− d

dX t xt.

The CTFT of ()

t xt is given by

{ ( )} [ ( )] [rect ( )] [ ( 3 ) ( 3 )] [ ( 3 ) ( 3 )]

2

2 = − ∆ =− =−δω+ −δω− =δω− −δω +

ω ω

ω ω d

d d

d F t xt.

(c) Express ( ) dt

dx dt

dx dt

dx t + 5 = t + 5.

Using the time differentiation property, the CTFT of dt

dx is given by ( )

CTFT

dt ←⎯^ ⎯^ → j ω X ω

dx

Applying the frequency differentiation property to the above CTFT pair, gives

←⎯ ⎯ → ω [ ω ω] = ω + ω d ω

dX d

d dt

dx jt j X ( ) jX ( ) j

CTFT

The CTFT of ( ) dt

dx t + 5 is given by

F { (^ t + 5 ) }^ = X (ω)+ω d ω + 5 ω X (ω)

dX dt

dx .

(d) Using the time multiplication property, x ( t^ )^ ⋅ x ( ) t^ ←⎯⎯ → 2 π X (^ ω)^ ∗ X (ω^ )

CTFT 1

Solve the convolution in the frequency domain to get the result.

(e) Using the time convolution property, x ( t ) x ( ) t ←⎯ ⎯ → X ( ω) ⋅ X ( ω)

CTFT

The CTFT of x ( t )∗ x ( t )is given by

[ ]

⎪⎩

⎪ ⎨

⎧ (^) + − ω≤

⎪ ⎩

⎪ ⎨

⎧ − ω≤ ∗ =

ω ω ω

0 elsewhere

1 3

0 elsewhere

1 3 ( ) ()^3

2

F xt x t.

8. Suppose the CT signal

x ( t ) e u ( t )

− t

is applied as input to a causal LTI system modeled by the impulse response

h t e ut

− t

Calculate the resulting output y ( t ) using:

a. Direct convolution.

b. Transfer function, H (ω).

Solution:

(a) We know that

∗ = [ − ] α≠β

−α −β β−α

−α −β ( ) () ( ) () provided

e ut e ut e e ut

t t t t

Therefore, the output y ( t ) is given by

( ) () () [ ] ().

y t e ut e ut e e ut

− t − t − t − t = ∗ = −

(b) Taking the CTFT of the impulse response results in the transfer function

  • ω

ω = j

H 2

( )^1.

Taking the CTFT of the input gives

X ω = 1 + j ω ( )^1.

The CTFT of the output is given by

ω = ω ω = = − j j j j

Y H X 2

( ) ( ) ( )^1.

Taking the inverse CTFT results in the output signal

( ) [ ] ().

y t e e ut

− t − t = −

Methods (a) and (b) yield the same result.

9. Calculate the output if the input signal

x ( t )= sin ( ω 0 t +θ)

is applied to a causal LTI system modeled by the impulse response

h t e ut

− t

Solution:

Expressing the input as

[ ]

ω θ −ω −θ = −

j t j j t j x ( t ) j e. e e. e 0 0 2

the CTFT of the input signal is given by

( ω) = 21 [ 2 π δ(ω−ω 0 )− 2 π δ(ω+ω 0 )]

j θ − j θ X j j e e.

Taking the CTFT of the impulse response results in the transfer function

  • ω

ω = j

H 2

( )^1.

Using the convolution property, the CTFT of the output is given by

[ (^) +ω]

−θ +ω

θ ω = ω ω = π δω−ω − π δω+ω j

j j

j Y H X j e e 2

( ) ( ) ( )^1 2 ( ) 2 ( ) ,

or,

[ ] 0 2 0

( ) ( ) ( ) 2 ( ) 2 ( ) −ω

−θ +ω

θ ω = ω ω = π δω−ω − π δω+ω j

j j

j Y H X j e e.