EE2010Notes+Tutorials of PartI (For EEE Club)
EE2010Notes+Tutorials of PartI (For EEE Club)
Notes and the attached tutorial set are from Assoc/Prof Teh Kah Chan.
Refer to NTUlearn regularly for important announcement, including rules
and assessment criteria.
Subject Outline
Signals and Systems
Classication of Signals
Elementary and Singularity Signals
Operations on Signals
Properties of Systems
Linear Time-Invariant (LTI) Systems
Continuous-Time and Discrete-Time LTI Systems
Convolution
LTI System Properties
Correlation Functions
Textbook
1. M. J. Roberts, Fundamentals of Signals and Systems,
McGraw-Hill, International Edition, 2008. (TK5102.9.R646F)
References
1. M. J. Roberts, Signals and Systems, McGraw-Hill, International
Edition, 2003. (TK5102.9.R63)
2. A. V. Oppenheim and A. S. Willsky, Signals and Systems,
Prentice-Hall, 2nd Edition, 1997. (QA402.P62)
3. S. Haykin and B. V. Veen, Signals and Systems, Wiley, 2nd
Edition, 2003. (TK5102.5.H419)
4. S. S. Soliman and M. D. Srinath, Continuous and Discrete Signals
and Systems, Prentice-Hall, 2nd Edition, 1998. (TK5102.9.S686)
5. B. P. Lathi, Linear Systems and Signals, Oxford University Press,
1st Edition, 2002. (TK5102.5.L352)
3
Input
Transducer
Input
Signal
Transmitter
Transmitted
Signal
Channel
Output
Message
Output
Transducer
Output
Signal
Receiver
Received
Signal
Distortion
and Noise
Classication of Signals
Continuous-Time vs Discrete-Time Signal
Continuous-Value vs Discrete-Value Signal
Deterministic vs Random Signal
Even vs Odd Signal
Periodic vs Aperiodic Signal
Energy-Type vs Power-Type Signal
x (t )
3
0
-1
4
5
7 n
x [ n]
5
-3 -2
0
-5
-5
3
2
-1 1
-1 0 1
-2
-3
x( t )
2T
y[n]
1
-3
0
-A
-2
-1
0
-1
y (t )
A
0
-A
x e( t )
12
;T0
xe (t)dt = 2
T0
Z
0
xe (t)dt
and
Z
T0
;T0
xo (t)dt = 0
13
1
=
[x(t) + x(t)]
2
1
=
[cos(t) + sin(t) cos(t) + cos(t) + sin(t) cos(t)]
2
= cos(t)
Example 5: Evaluate
T0
3
3
x(t)dt
where
x(t)
=
t
cos
(10t).
T0
Since
x(t) = (t)3 cos3 [10(t)]
=
t3 cos3 (10t)
x(t)
16
x(t) = x(t + T0 )
;1 < t < 1
xn] = xn + K0 ]
;1 < n < 1
Aperiodic Signal: A signal y(t) or yn] that does not satisfy the
above equation
17
y (t )
x (t )
...
...
T0
2T0
T0
x [ n]
y [n]
...
0
...
1 2
K0=2
18
{ A signal x(t) or xn] that has nite energy, i.e., 0 < Ex < 1,
where
CT signal:
Ex =
DT signal:
Ex =
;1
1
X
jx(t)j
n=;1
dt
jxn]j
Power-Type Signal
{ A signal x(t) or xn] that has nite power, i.e., 0 < Px < 1,
where
19
CT signal:
DT signal:
Z T=2
1
2
Px = Tlim
jx(t)j dt
!1 T
;T=2
K
X
1
jxn]j2
Px = Klim
!1 2K + 1 n=;K
Z t1 +T0
Px = T1
0 t1
jx(t)j
K0 ;1
1 k+X
2
jxn]j
Px = K
0 n=k
dt
Ex =
=
1
Px = Tlim
!1 T
1
;1
1
;1
T=2
;T=2
T0 =2
= T
0 ;T0 =2
jx(t)j
dt
jA cos(2
f0 t)j2 dt =
1
jx(t)j dt =
T
2
T0 =2
;T0 =2
jx(t)j
dt
2
A
jA cos(2 f0 t)j dt =
2
2
Ey =
=
;1
1
jy (t)j
dt
jexp(;jtj)j
;1Z
= 2
dt
exp(;2t)dt = 1
T=2
1
2
jy (t)j dt
Py = Tlim
!1 T ;T=2
1
= lim E = 0
Z
T !1 T
Ex =
=
1
X
n=;1
1
X
n=;1
jxn]j
jA sin(2
n=4)j2 =
k+X
K0 ;1
3
X
1
1
jxn]j2 =
jA sin(2 n=4)j2
Px = K
4 n=0
0 n=k
2
2
A
A
2
2
2
2
= 4 0 + 1 + 0 + (;1) = 2
Ideal
Sampling
x [ n]
x [ n]
Quantization
y [ n]
Discrete Noise
w [ n]
signal
signal
25
x( t )
x [ n]
x [ n]
y [ n]
exp ( at )
1
a >0
a< 0
1
0
Sinusoidal signal
x(t) = A cos (2 f0 t + ) or A sin (2 f0 t + )
where A is the amplitude, f0 is the frequency in Hertz, and is
the phase angle in radians
{ A sinusoidal signal is periodic with period T0 = 1=f0
...
A cos ( 2 f0 t )
...
T0
-A
K0
K0
where A is the amplitude, K0 is a positive integer dened as the
fundamental period, and is the phase angle in radians
2n)
n
x
(
[
]
=
A
cos
A
8
... .
. . .
8
...
.
-A
f0 t)j = A
< fA exp(j 2
f0 t) exp(j)g
A sin (2 f0 t + ) =
= fA exp(j 2
f0 t) exp(j)g
and
30
0.1
0.2
0.3
-5
n] =
8
<
:
[n]
A [n 3]
A
. ....
-1 0
1 n = 0
0 n 6= 0:
.... .
-1 0
(t) =
8
< 1
:
(t )
A (t T0 )
t = 0
0 t 6= 0:
T0
{ Property 1
Z
;1
(t)dt = 1
{ Property 2
x(t) (t ; T0 ) = x(T0 ) (t ; T0)
{ Property 3
Z
1
;1
x(t) (t ; T0 ) dt = x(T0 )
34
u(t) =
8
<
:
1 t 0
0 t < 0:
u (t )
1
un] =
8
<
:
1 n 0
0 n < 0:
u [ n]
...
.....
...
1
sgn(t) =
>
>
:
1
0
t > 0
t = 0
;1 t < 0:
sgn(t )
1
0
t
-1
sgnn] =
>
>
:
1 n > 0
0 n = 0
;1 n < 0:
sgn [n]
...
1
-6 -5 -4 -3 -2 -1
...
0
-1
;t
rect Tt
8
<
:
1 jtj T=2
0 otherwise.
rect (Tt )
1
T
2
T
2
n
The DT unit rectangular function rect K (assume that K is
even) is dened as
i
n
rect K =
h
8
<
:
1 jnj K=2
0 otherwise.
rect[Kn ]
1
...
...
...
K
-1 0
...
sinc (t )
1
-4
-3
-2
-1
4 t
xs (t) =
=
=
1
X
n=;1
1
X
n=;1
1
X
n=;1
42
x (t ) = 5sinc(t)
5
-4
-3
-2
-1
xs (t )
5
. . . .
-4
-3
-2
-1
. . . .
1
4 t
Operations on Signals
Amplitude scaling: The operation Ax(t) (or Axn]) is to multiply
the amplitude of x(t) (or xn]) by an amount A
x (t)
2 x (t)
1.5 x (t)
4
3
2
2
0
2 t
2 t
-2
-3
-4
2
0
0 0.5
2.5
-1 0
x[n 1]
x [ n]
x [ n +1]
3
0
x ( t +1)
x ( t 0.5)
3
1
-1
;t
;
T
T
t+ ;u t; .
2
u( t + T2 )
t
0
1
u( t T2 )
T
2
T
2
x (t )
A
0
x ( 2t)
A
2
A
4 t
-1 0
x[n]
3
6
5
4
12
-1 0 1 2 3 4
x[n/2]
4
2
-2 -1 0
. ... .
1 2
-2 0
5
6
8 n
;
t
4
;
t;2
2
x ( t)
0.5
-2
x (t)
0.5
-2
2 x ( t /2)
4
-4
0
-1
y( t) = 2 x( t 2 )
2
-2
0
-1
x (t)
y (t)
x [n]
y [n]
Properties of Systems
Stability
stable if and only if every bounded input (i.e., jx(t)j < 1 for
all t, or jxn]j < 1 for all n) results in bounded output
{ An example of a BIBO stable system
Memory
y(t) = x2 (t)
53
Causality
Linearity
x 1(t)
y1(t)
x 3( t) = a1x 1( t) + a2x 2( t)
x 2 (t )
y3 ( t) = a1 y1( t) + a2 y2 ( t)
y2 (t)
x (t)
y ( t ) = x (2t )
56
y 1 (t) = x 1(2t) x 2 ( t)
x 3 (t) = a1x 1( t) + a2 x 2( t)
y 3 (t) = a1 x1 (2 t) + a2 x 2 (2 t)
= a1y 1( t) + a2 y 2( t)
57
y 2 (t) = x 2 (2 t)
Time Invariant
x (t )
y ( t)
x1( t ) = x ( t T )
y1( t) = y ( t T )
58
x (t )
y ( t ) = x ( t) + c
59
x ( t)
y ( t) = x ( t ) + c
x1 ( t) = x ( t T )
y1 ( t) = x ( t T ) + c
= y (t T )
60
y1( t)
x 2( t)
y 2( t )
x (t)
y ( t) = x (2t)
x1(t) = x ( t T )
y1(t) = x (2t T ) y ( t T )
(t)
h (t )
[n]
h [n]
x (t )
h (t)
y (t ) = x (t ) * h (t )
x [n]
h[n]
1
X
m=;1
xm]hn ; m]
65
;1
Example 17: Sketch the waveform of yn] = xn] hn] using the
graphical approach for convolution sum.
x [n]
h [n]
2
1
-1 0
-1 0
66
1
X
m=;1
m
2 h[ ]
1
-2 -1 0
2
1
2 m
-1 0
xm]hn ; m]
h[n m ]
n2 n1
(i)n =-1,
x [m ]
2
1
1
-1 0
(ii)n =0,
2 m
-3 -2 -1
x [m ]
2
1
1
-1 0
2 m
-3 -2
1 m
-1 0
h[ m ]
-1 0
67
1 m
y [n]
h[ 1 m ]
y [n]
-1 0
2 n
(iii)n =1,
x [ m]
2
1
1
-1 0
2m
-2
-1 0
(iv) n =2,
x [ m]
2
1
1
-1 0
h[1 m ]
2m
-2
2 m
-1 0
h[2 m]
-1 0
2 m
1
-1 0
h[3 m ]
1
1
2m
-1 0
3 m
3
2
1
-1 0
(v) n =3,
x [ m]
3
2
1
3
2
1
-1 0
y [ n]
y [ n]
2 n
y [ n]
2 n
3 n
Example 18: Show that n ; 2] xn] = xn ; 2] where xn] is shown
in Figure 46.
x [n]
2
1
-2
-1 0
69
-1
(ii) n =1,
-1
n 2 n 1 n n+1
3 m
-2
-1
2
1
2 m
. . .
-2
-1 0
x [1 m ]
-1
2 n
y [ n]
2
1
2
1
3 m
y [n ]
2
1
[m 2]
-2
x[n m ]
x[ m]
1
-1
m ; 2]xn ; m]
2
1
[m 2]
m=;1
x [ m]
1
-1
1
X
70
3 m
. . .
-2
-1 0
2 n
(iii)n =2,
x [2 m]
[m 2]
(iv)n=3,
3 m
-1 0
(v) n=4,
3 m
...
-2
-1 0
2 n
3 n
2
1
4 m
..
-1
y [n] = x [n 2 ]
2
1
2
1
3 m
y [n]
x [4 m ]
[m 2 ]
2
1
1
-1 0
3 m
x [3 m ]
[m 2]
1
-1 0
2
1
2
1
1
-1
y [n]
5m
..
-1 0
4 n
8
<
m ; 2] =
Hence
yn] =
1
X
m=;1
1
X
m=;1
m ; 2]xn ; m]
1 m = 2
0 m 6= 2:
m ; 2]xn ; m]
= xn ; 2]
72
Example 19: Sketch the waveform of y(t) = x(t) x(t) using the
graphical approach for convolution integral.
x(t)
3
-2
73
-2
(i) t<-4,
t -2
;1
x ( )
0
3
-2
x ( )
x(t)
t +2 -2
x ( )
t -2
0
3
x ()
x ( t )
0 t +2
y ( t)
-4
74
x (t)
-2 t +2 0
t -2
(iii) 0<t <4,
x( ) 3
(iv) t >4,
-2
3
0
36
-4
x (t)
0 t -2
-2
x( )
x( )
2 t -2
t +2
0
36
-4
x (t)
-4
t
y (t)
0
36
t +2
y (t)
y (t)
Example 20: Sketch the waveform of y(t) = x1 (t) x2 (t) using the
graphical approach for convolution integral.
A1
x 1( t)
x 2 (t )
5
0
A1
76
;1
x1 ( )x2 (t ; )d
x 1()
x 2()
5
-5
0
A1
A1
x 1()
x 2( t )
t -5
5
t
0
A1
(i) t <0,
t -5
x1 ()
A1
y (t)
t
0
x 2( t )
A1
77
x 1()
A1
t -5
x 1()
0
10 t
10
5A12
x 2(t )
x 1()
y ( t)
t -5
0
A1
y ( t)
5
0
A1
5A21
A1
t -5
A1
x 2(t )
(iv) t >10,
t
0
y ( t)
5A21
x 2(t )
Properties of Convolution
Commutative
79
Associative
80
;1
1
;1
= x(t ; T0 )
= x(t ; T0 )
81
;1
( ; T0 )d
n
X
m=;1
;1
m=;1
hm]un ; m]
hm]
1
X
h( )d
82
;1
R
u(t)
s (t)
;1
h( )d
exp ;
u
(
)
d
=
RC
;1 RC
Z t
1
= RC exp ; RC d
0
8
< 1 ; exp ;; t t 0
RC
= :
0
t < 0:
84
hn] = cn]
h(t) = c(t)
DT system:
CT system:
85
DT system:
CT system:
86
1
X
DT system:
jhn]j
<
jh(t)jdt
<
n=;1
CT system:
;1
87
1
;1
jh(t)jdt
Z
0
exp(;at)dt
= 1=a <
88
System Interconnections
Parallel Connection
h 1 [ n]
x [ n]
h 1 (t)
x (t)
y [ n]
h 1 [ n] + h 2 [ n]
y(t)
h 2 (t) +
h 2 [ n] +
x [ n]
y [ n]
x (t )
h 1 (t) + h 2 (t)
y (t)
Cascade Connection
x [n]
x [n]
h 1[n]
h 2[n]
h 1[n] * h 2[n]
y [n]
x (t)
y [n]
x (t)
h 1( t )
h 1 ( t ) * h 2 ( t)
90
h 2( t )
y ( t)
y (t)
h 1 [ n]
x [ n]
h 2 [ n] +
h 3 [ n]
+
y [ n]
h 4 [ n]
hn] =
92
x [ n]
+
+
y [n ]
3
x (t )
+
+
y (t )
5
4
d
dt
1
2
d
dt
R
x (t)
y (t )
In this case, the input and output relation of the lter is given by
d
x(t) = RC dt y(t) + y(t)
y(t) = x(t) ; RC dtd y(t)
x (t )
y (t)
RC
d
dt
Correlation Function
The correlation function is a mathematical expression of how
correlated two signals are as a function of how much one of them
is shifted
The correlation function between two functions is a function of
the amount of shift
Two types of correlation functions
{ Autocorrelation function
{ Cross correlation function
97
Autocorrelation function
{ The autocorrelation is the correlation of a function with itself
{ For an energy-type signal xn] or x(t)
DT signal:
Rxx m]
CT signal:
Rxx ( )
1
X
n=;1
Z 1
;1
xn]x n + m]
x(t)x (t + )dt
1
Rxx ( ) = lim
T !1 T
98
T=2
;T=2
x(t)x (t + )dt
Ex =
Ex =
DT signal:
CT signal:
Rxx 0]
Rxx (0)
Px =
Px =
DT signal:
CT signal:
99
Rxx 0]
Rxx (0)
Rxx 0]
Rxx (0)
Rxx m]
Rxx ( )
DT signal:
CT signal:
=
Rxx ( ) =
Rxx ;m]
Rxx (; )
T=2
;T=2
x(t)x (t + )dt
Z T=2
1
2
= Tlim
A
sin(2 f0 t) sin(2 f0 (t + ))dt
!1 T
1
= Tlim
!1 T
;T=2
T=2
;T=2
2
A
= 2 cos(2 f0 )
101
T !1 T ;T=2
1 Z T0 =2
2
jx(t)j dt
= T
0 ;T0 =2
Z T0 =2
= T1
jA sin(2 f0 t)j2 dt
0
2
A
= 2
;T0 =2
102
y(t) = A sin(2 f0 t ; 2 f0 T )
= A sin(2 f0 t ; )
Since y(t) is a power-type signal, the autocorrelation function is
given by
1
Ryy ( ) = lim
T !1 T
103
T=2
;T=2
y(t)y (t + )dt
1
= Tlim
!1 T
T=2
;T=2
Z T=2
2
A
1
cos(2 f0 ) ; cos(2 f0 (2t + ) ; 2)] dt
= Tlim
!1 T ;T=2 2
2
A
= 2 cos(2 f0 )
104
x [n]
2
1
0
2
1
-1 0
1
X
n=;1
xn]x n + m] =
x [ n]
1
2 n
2
1
0
m 1 m m+1
1
X
n=;1
x [ n+m ]
1
(i)m =2,
2
1
-1
x [ n]
1
(ii) m=1,
x [ n]
2
1
-1 0
1
2
1
2 n
2 n
-2
-2
-1
2
1
-1 0
x [ n +2]
1
2 n
-2
106
2 n
6
4
2
-1 0
6
4
2
x[ n +1]
2 n
xn]xn + m]
-2
-1 0
R xx [ m]
.m
2
R xx [ m]
.m
2
(iii) m=0,
2
1
-1 0
x [n]
1
2 n
-2
2
1
-1 0
(iv) m =-1,
2
1
x [n]
-1 0
-2
-1 0
(v) m=-2,
2
1
-1 0
x [n]
1
2
1
2 n
-1 0
2 n
4
2
-2 -1 0
2 m
2 n
-2
3 n
6 R xx [ m]
4
2
-2 -1 0
1 2 m
x [n 2]
1
6 R xx [ m]
4
2
x [n 1]
2
1
2 n
[ m]
R
xx
6
x [n]
-1 0
2 m
Rxy m]
CT signal:
Rxy ( )
1
X
n=;1
Z 1
;1
xn]y n + m]
x(t)y (t + )dt
{ For power-type signals xn] and yn] (or x(t) and y(t))
DT signal:
CT signal:
K
X
1
n + m]
Rxy m] = lim
x
n
]
y
K !1 2K + 1 n=;K
Z T=2
1
(t + )dt
x
(
t
)
y
Rxy ( ) = lim
T !1 T
;T=2
108
Example 29: Find the cross correlation function between the two
signals x(t) = exp(j 2 f0 t) and y(t) = exp(j 2 2f0 t).
Since x(t) and y(t) are power-type signals,
Z T=2
1
(t + )dt
x
(
t
)
y
Rxy ( ) = lim
T !1 T
1
= Tlim
!1 T
;T=2
T=2
;T=2
Z T=2
1
= Tlim
exp(;j 2 f0 t) exp(;j 4 f0 )dt
!1 T
;T=2
1
= exp(;j 4 f0 ) Tlim
!1 T
T=2
= 0
109
;T=2
Example 30: Find the cross correlation function between the two
signals x(t) and y(t) as shown in Figure 62 using the graphical
approach.
x (t)
y (t )
2
2
-2
-2
0
-2
=
2
-2
(i) >4,
;1
x(t)y (t + )dt =
;1
x(t)y(t + )dt
y (t + )
2
+2
-2
x(t)
0
-2
x ( t)
0
-2
y (t + )
-2
y (t + )
x(t)
+2
0
-2
R xy()
t
R xy ()
+2
0
-8
111
(iii) 0<<2,
y (t +)
R xy ()
x(t)
+2
2 -2
x(t)
2 0
-2
x(t)
-2
(vi) <-4,
-2
2
0
-2
0
-2
R xy ()
+2
-2
(v) -4< <-2,
-8
-2
(iv) -2< <0,
t
y (t +)
-2
-8
y (t +)
2 2
+2
-4
-2
R xy ()
-8
()
8 R xy
y (t +)
x(t)
2
+2
t
-4
-2
0
-8
Q1.2: Determine whether the following signals are energy-type or power-type signals:
(a)
e|t| , for 2 t 2,
x (t ) =
0, otherwise.
(b)
y[n ] = ( 1) n .
Q1.3: A sinusoidal signal x (t ) = 2 sin(20t ) is passed through a half-wave rectifier circuit to produce:
x (t ), if x (t ) > 0,
y (t ) =
0, otherwise.
(a) Sketch the waveforms of x(t) and y(t), respectively.
(b) Determine the energy and power levels of x(t) and y(t), respectively.
Answers :
Q1.1 : xe [n ] = ( 1)n , xo [n ] = n.
Q1.2 : (a) E x = e 4 1, Px = 0. (b) E y = , Py = 1.
Q1.3 : (b) E x = , Px = 2, E y = , Py = 1.
1
y (t )dt.
t
, where T0 = 1 / f 0 .
w(t ) = v (t ) rect
2T0
(a)
(b)
x (t ) = sgn(w(t ) ).
(c)
y (t ) =
x(t ) (t nT
n =
/ 4).
n = 1
and T0 = 2.
t +4
, where v (t ) = t[u(t ) u(t T0 )]
2
v(t nT ) and y (t ) = x
0
Q2.3: Assuming that the signal v(t) is an energy-type signal and its energy is denoted as Ev, determine
the energy levels of the following signals as a function of Ev.
(a)
x (t ) = 3v (t ).
(b)
y (t ) = v (t 3).
Answers :
Q 2.1 :
y (t )dt = 0.
1, for n = 1,0,1.
0, otherwise.
Q3.1: Evaluate the convolution sum y[n ] = x[n ] x[n ] where x[n ] =
Q3.2: For the system as shown in Figure Q3.2, evaluate the system output y(t) where
t 1
t 3
t 2
x1 (t ) = A rect
A rect
and x 2 (t ) = A rect
.
2
2
4
Figure Q3.2.
Q3.3: Determine the properties of the system shown in Figure Q3.3 in terms of linearity and time
invariance.
Figure Q3.3.
Answers :
Q 3.3 : The system is linear but not time invariant.
3
1
h(t ) = (t 3k ).
k =0 2
t -1
Assume that the input signal is given by x (t ) = t rect
.
2
2
Figure Q4.3.
Answers :
Q 4.1 : (a) The system is not memoryless, it is causal and stable. (b) E y =
21
Ex .
16
2 e 2 t , for t 0,
Q 4.2 : s(t ) = 2 t
e , for t < 0.
Q 4.3 : (a) h[n ] = [n 1] + [n 3]. (b) The system is not memoryless, it is causal and stable.
(c) s[n ] = u[n 1] + u[n 3].
4
n
Q5.2: Find the cross-correlation function between the two signals x[n ] = rect and y[n ] = [n 1].
2
Figure Q5.2.
Answers :
Q5.3 : (b) Px = 9, Py = 16. (c) R xy ( ) = 0.
5