Problem 1: Sketch the following CT signals as function of the independent variable t over the specified
range.
i) x1(t ) = cos ( 3 t 4 + 8 ) for ( 1 t 2)
ii) x 2(t ) = sin ( 3 t 8 + 2 ) for ( 1 t 2) (added)
iii) x 3(t ) = 5t + 3e t for ( 2 t 2)
x 4(t ) = ( sin ( 3 t 4 + 8 ) )
2
iv) for ( 1 t 2) (added)
v) x5(t ) = cos ( 3 t 4 ) + sin ( t 2 ) for ( 2 t 3)
vi) x 6(t ) = t exp ( 2t ) for ( 2 t 3)
vii) x1[k ] = cos ( 3 k 4 + 8 ) for ( 5 k 5)
viii) x 2[ k ] = sin ( 3 k 8 + 2 ) for ( 10 k 10) (added)
ix) x 3[ k ] = 5k + 3 k for ( 5 k 5)
x) x 4[ k ] = sin ( 3 k 4 + 8 ) for ( 6 k 10)
xi) x5[ k ] = cos ( 3 k 4 ) + sin ( k 2 ) for ( 10 k 10) (added)
k
xii) x 6[ k ] = k 4 for ( 10 k 10)
Solution:
The CT signals ((i) to (vi)) can be plotted in MATLAB as follows. The CT signals are plotted in Fig. 1.
% clear figure
clf
% signal defined in part (i)
t1 =-1:0.01:2 ;
x1 = cos(3*pi*t1/4+pi/8) ;
subplot(3,2,1), plot(t1, x1), grid on
xlabel('t') % Label of X-axis
ylabel('x_1(t)') % Label of Y-axis
1
% signal defined in part (v)
t5 =-2:0.01:3 ;
x5 = cos(3*pi*t5/4) + sin(pi*t5/2) ;
subplot(3,2,5), plot(t5, x5), grid
xlabel('t') % Label of X-axis
ylabel('x_5(t)') % Label of Y-axis
clf
% signal defined in part (i)
k1 =-5:5 ;
x1 = cos(3*pi*k1/4+pi/8) ;
subplot(3,2,1), stem(k1, x1, 'filled'), grid on
xlabel('k') % Label of X-axis
ylabel('x_1[k]') % Label of Y-axis
2
k3 =-5:5 ;
x3 = 5*k3+ 3*exp(-k3);
subplot(3,2,3), stem(k3, x3, 'filled'), grid on
xlabel('k') % Label of X-axis
ylabel('x_3[k]') % Label of Y-axis
3
Problem 2 Determine if the following CT signals are periodic. If yes, calculate the fundamental period To
for the CT signals.
i) x 2(t ) = sin( 5 t / 8 + 2)
ii) x 3(t ) = sin ( 6 t 7 ) + 2cos ( 3t 5 )
iii) x5(t ) = exp ( j 3 t 8 ) + exp ( t 8 6 )
iv) x1[k ] = 5 (1) k
v) x 2[ k ] = exp ( j ( 7 k 4 ) ) + exp ( j ( 3k 4 ) )
vi) x 4[k ] = sin (3k 8) + cos(63k 64)
vii) x5[ k ] = exp ( j ( 7 k 4 ) ) + cos ( 4 k 7 + )
Solution:
i) Consider x 2(t ) = sin( 5 t / 8 + 2) = cos(5 t / 8) . The signal x2(t + T2) is given by
Since the second term is not periodic, the overall function x5(t) is not periodic.
iv) Expressing (1) = ej, x1[k] is expressed as
x1[k ] = 5 e jk .
Computing x1[k + K 1 ] = 5 e j( k + K1 ) . For x1[k] = x1[k + K1], clearly ejK1 = 1 = ej2, which gives K1 = 2.
v) Looking at the individual terms
x 2[ k ] = exp( j (7 k 4 )) + exp( j (3k 4))
144244 3 142 4 43 4
Term I Term II
Term I is periodic since 0/2 = 7/8 is a rational number. Term II is not periodic since 0/2 = 3/8 is not
a rational number. Signal x2[k] is therefore not periodic.
vi) Looking at the individual terms
4
x 4[k ] = sin (3k 8) + cos(63k 64 )
14243 14 4244 3
Term I Term II
Term I is periodic with a period K41 of 16. Term II is also K42 periodic with a period of 128. Since K41/K42
= 1/8 is a rational number, x4[k] is a periodic signal. Using Equation (1.9), the fundamental period of
x4[k] is given by 16n = 128m. Picking n = 8 and m = 128, the overall period of x4[k] is given by 128.
vii) Looking at the individual terms
x5[k ] = exp( j (7 k 4 )) + cos(4k 7 + )
144244 3 1442443
Term 1 Term 2
Term I is periodic with a period K51 of 8. Term II is also K42 periodic with a period of 7. Since K41/K42 =
8/7 is a rational number, x4[k] is a periodic signal. Using Equation (1.9), the fundamental period of x4[k]
is given by 8n = 7m. Picking n = 7 and m = 8, the overall period of x5[k] is given by 56.
Problem 3: Show that the average power of the DT periodic signal x[k] = A cos(k) is given by A2/2.
Solution: By definition,
N 1 2 N 1
1
[A cos(k )]2 = N cos2 (k ) ,
A
P =
N k =0 k =0
where N is the fundamental period and is given by N = 2/. By expressing the squared cosine as a linear
term, we get
N 1
A2 1 + cos(2k )
P =
N
k =0 2
or,
N 1 N 1
A2 A2
P =
2N
k =0
1+
2N cos(2k ) .
k =0
Using the Eulers formula to express the cosine as a sum of two complex exponentials, gives
N 1 N 1
A2 A2 A2
P =
2N
N +
4N
k =0
e j 2 k +
4N e
k =0
j 2 k
. (1)
and
N 1
1 e j 2 N 1 e j 4
e
k =0
j 2 k
=
1 e j 2
=
1 e j 2
=0.
5
i) x1( t ) = 2 sin ( 2 t ) 2 + cos ( 4 t )
ii) x 2 ( t ) = t 2 + cos ( 3t )
3t 0t2
iii) 6 2t4
x5 ( t ) =
3( t + 6) 4t6
0 elsewhere
iv) x1[ k ] = sin ( 4k ) + cos ( 2 k 3) .
v) x 3[ k ] = exp ( j ( 7 k 4 ) ) + cos ( 4 k 7 + ) .
( 1)k k 0
vi) x5 [ k ] = .
1 k <0
Solution:
i) Since x1( t ) = 2 sin ( 2 t ) 2 + cos ( 4 t ) ,
14243 1424 3
= odd 144244 = even
3
= even
14444244443
= odd
is periodic with the fundamental period T = 1. Since periodic signals are always power signals, x1(t) is a
power signal.
Total energy Ex1 in x1(t) is infinite. Based on Problem 1.6, the average power in a sinusoidal signal x(t) =
A sin(0t + ) is given by A2/2. The average power in x1(t) is, therefore, given by 1/8 + 1/8 = 1/4.
7
ii) The CT signal
cos(3t ) 3 t 3
x 2(t ) =
0 elsewhere
is a finite duration signal. Since finite duration signals are always energy signals, x2(t) is an energy signal.
Average power Px2 in x2(t) is zero. The total energy in x2(t) is given by
3 3
[1 + cos(6t )]dt = [t + ]
3
E x 2 = cos 2 (3t )dt = 12 1
2
1
6
sin(6t ) 3 = 3.
3 3
3 (4 t )3
E x 5 = t dt + (4 t ) 2 dt = t3
2
3
= 83 0 83 = 163 .
0 2
0 2
indicating that x1[k] is periodic with an overall period of N0 = 16. Since periodic signals are always power
signals, x1[k] is a power signal.
Total energy Ex1 in x1(t) is infinite. Based on Problem 1.6, the average power in a sinusoidal signal x[k] =
A sin(0k + ) is given by A2/2. The average power in x1(t) is, therefore, given by 1/4 + 1/4 = 1/2.
(v) The DT signal x3[k] = (1)k is periodic with a period of N0 = 2. Since periodic signals are always
power signals, x3[k] is a power signal.
Total energy Ex1 in x1(t) is infinite. The average power in x1(t) is, therefore, given by (1 + 1) = 1.
(vi) The DT signal
2 k 0 k 10
x5[k ] = 1 11 k 15
0 elsewhere
is a finite duration signal with length 16. Since finite duration signals are energy signals, x5[k] is an
energy signal.
Average power Px2 in x5[k] is zero. The total energy in x5[k] is given by
10 15
(211 1)
Ex 2 =
k =0
2k +
k =11
1=
(2 1)
+ 5 = 2052.
8
Problem 6: Sketch the following CT signals.
i) x1 ( t ) = u ( t ) + 2u ( t 3) 2u ( t 6 ) u ( t 9 )
ii) x 4 ( t ) = u ( sin ( t ) )
iii) x5 ( t ) = rect ( t 6 ) + rect ( t 4 ) + rect ( t 2 )
iv) x 2 [ k ] = [ k m]
m =0
v) x5 [ k ] = ku [ k ]
vi) x 6 [ k ] = k ( u [ k + 4 ] u [ k 4 ])
Solution:
The waveforms for the above signals are shown in Fig. 3. These plots should be sketched by hand.
4 1
0.8
3
0.6
2
0.4
1
0.2
0 0
-0.2
-1
-5 0 5 10 15 -5 -4 -3 -2 -1 0 1 2 3 4 5
t t
(i) (ii)
(v) x5(t) = rect(t/6) + rect(t/4) + rect(t/2) (ii) x[k] = [k-m] for m 0
4 2
3.5 1.8
1.6
3
1.4
2.5
1.2
2
1
1.5 0.8
1 0.6
0.4
0.5
0.2
0
0
-5 -4 -3 -2 -1 0 1 2 3 4 5 -2 -1 0 1 2 3 4 5 6 7 8 9
t k
(iii) (iv)
9
(v) x5[k]= ku[k] (vi) x6[k]= |k| (u[k+4] - u[k-4])
10 6
9
5
8
7
4
6
5 3
4
2
3
2
1
1
0 0
-4 -2 0 2 4 6 8 10 -8 -6 -4 -2 0 2 4 6 8
k k
(v) (vi)
Figure 3: Waveforms for CT signals specified in Problem 6.
Sketch x(t 3), x(2t 3), x(2t 3), and x( 3t 4 3) . Determine the analytical expressions for each of
the four functions.
Solution: The waveforms for signals x(t 3), x(2t 3), x(2t 3), and x( 3t 4 3) are shown in Fig. 4.
x(t)
1
t
4 3 2 1 0 1 2 3 4 5
x(t 3)
1
t
4 3 2 1 0 1 2 3 4 5
x(2t 3)
1
t
4 3 2 1 0 1 2 3 4 5
10
x(2t 3)
1
t
4 3 2 1 0 1 2 3 4 5
x(3t/4 3)
1
t
4 3 2 0 1 2 3 4 5
6.67 0.75
Figure 4: Waveforms for the shifted and scaled signals specified in Problem 7.
f (t)
t
4 3 2 1 0 1 2 3 4 5
(t 3) (5t/3 3)
3
f (9 3t)
2 (5t +12)
t
4 3 2 1 0 1 2 3 4 5
3 (3t 12)
11
(ii) Since f(t) is a finite duration signal, it is an energy signal. The average power in f(t) is 0, while its
total energy is given by
0 3 0 3
(t 3)3 (5t / 3 3)3
3
E f = ( t 3) 2 dt + (5t / 3 3) 2 dt =
0
(1)(3) 3
+
(5 / 3)(3) 0
= 9 + 7 = 16 .
(iii) We solve part (iii) for Problem 8 graphically.
f (t)
1
t
6 5 4 3 2 1 0 1 2 3 4 5
3
f (t)
1
t
6 5 4 3 2 1 0 1 2 3 4 5 6
3
feven (t)
1
t
6 5 4 3 2 1 0 1 2 3 4 5 6
3/2
3
fodd(t)
1
t
6 5 4 3 2 1 0 1 2 3 4 5 6
3/2
12
x1 [k ] = k (u[k + 4] u[k 4])
x1[k]
4
k
10 8 6 4 2 0 2 4 6 8 10 12
x2[k]
4
k
10 8 6 4 2 0 2 4 6 8 10 12
k
10 8 6 4 2 0 2 4 6 8 10 12
k
10 8 6 4 2 0 2 4 6 8 10 12
13
x1[2k] + x2[3k]
4
k
10 8 6 4 2 0 2 4 6 8 10 12
4
x1[k + 5] x2[7 k] = 0 for all k.
x1[2k] x2[k]
4
k
10 8 6 4 2 0 2 4 6 8 10 12
14
e
t 1
sin ( ( t + 5)
4
)(1 t )dt
= e
t 1
sin ( ( t + 5)
4
)((1)(t 1))dt
= e
t 1
sin ( ( t + 5)
4
)(t 1)dt
=e t 1
sin ( ( t + 5)
4 t =1
)
= 1.
(iv) Integration (iv) simplifies to
[sin ( )e ]( t 5)dt
3 t 2 t +1
4
[sin ( )e ] (t + 1)dt
3 t 2 t +1
= 4
[ ]
= sin (34t )e 2t +1 t = 1
3
= 1
2
e.
= [u (t 6) u (t 10)]sin (34t )
t =5
=0
15