Professional Documents
Culture Documents
ECT 2036:
CIRCUITS &
CIRCUITS & SIGNALS
SIGNALS
Chapter 2:
Introduction to Signals
CONTENTS
§ Definition and Classification of Signals
§ Mathematical Model of Ideal Signals
§ Linear Convolution
§ Discrete-time Signals
§ Discrete-time Convolution
1. DEFINITION
1. DEFINITION && CLASSIFICATION
CLASSIFICATION
OF SIGNALS
OF SIGNALS
§ SIGNAL: A function of one or more variables and it carries
qualitative as well as quantitative information of a physical
event.
§ Single variable function: most common is the time variable,
t (continuous-time) or n (discrete-time) -> mathematically
denoted by f(t) or f[n] respectively.
§ Classifications:
a) Continuous & Discrete-Time Signals
b) Even & Odd Signals
c) Deterministic & Stochastic Signals
d) Energy & Power Signals
CONTINUOUS &
CONTINUOUS & DISCRETE
DISCRETE
Continuous-time Signal
-Signal is defined for all time instants
-Occurs naturally in any physical process
-We use a round bracket ( ) to denote the function: f( )
-Commonly used: f(t) or f(τ) for single variable
-f(t) = t, f(t) = t2, f(t) = sin(t), etc.
-Example: voice signal
CONTINUOUS &
CONTINUOUS & DISCRETE
DISCRETE
Discrete-time Signal
-Signal is defined only at discrete values of time variable
-We use a square bracket [ ] to denote the function: f[ ]
-Commonly used: f[n] or f[k] for single variable
-f[n] = δ[n], f[n] = u[n], f[n] = 2n, etc.
-Example: sampled voice signal
§ Some discrete-time signals can be obtained from continuous-time
signals by sampling operation mathematical given by:
f[n] = f(nT) , n = 0, ± 1, ± 2, ± 3, …
where T is the sampling period. :
f (t ) = f e (t ) + f o (t )
1
f e (t ) = [ f (t ) + f (−t )]
2
where
1
f o (t ) = [ f (t ) − f (−t )]
2
Example 1.1:
Example 1.1:
Even &
Even & Odd
Odd
§ Find the odd and even components of continuous-
time signal, f (t ) = t 2
+ 4t 3
+ 6t 5
Solution:
1
2
(
1 2
)
f e (t ) = [ f (t ) + f (−t )] = t + 4t 3 + 6t 5 + t 2 − 4t 3 − 6t 5 = t 2
2
1
2
(
1 2
)
f o (t ) = [ f (t ) − f (−t )] = t + 4t 3 + 6t 5 − t 2 + 4t 3 + 6t 5 = 4t 3 + 6t 5
2
Example 1.2:
Example 1.2:
Even &
Even & Odd
Odd
§ Find the odd and even components of the signal f(t).
½[(f(t)+f(-t)]
=1.5
3 3 ½[(f(t)-f(-t)]
+ t , −2 ≤ t ≤ 2
f (t ) = 2 4
0, elsewhere
=(3/4) t
Example 1.3:
Example 1.3:
Even &
Even & Odd
Odd
§ Find the even and odd components of the following signal:
f(t)
1 1, 0 < t < 3
f (t ) =
t 0, elsewhere
-3 0 3
fe(t) fo(t)
0.5
0.5
t t
-3 0 3 -3 0 3
EVEN &
EVEN & ODD
ODD SIGNALS
SIGNALS
§ Bear in mind that any arbitrary signals can be expressed
as sum of odd and even components. Look at Examples
1.1 to 1.3, the main signal f(t) itself is neither even nor odd
but when decomposed, has odd fo(t) and even fe(t) parts.
§ If the signal f(t) itself is already an even signal, then its
even part is exactly the same as itself, f(t)=fe(t), the odd
part being zero.
§ If the signal f(t) itself is already an odd signal, f(t)=fo(t), then
its odd part is exactly the same as itself, the even part
being zero.
§ Thus, a signal can be purely even, purely odd or neither
even nor odd.
Example 1.4:
Example 1.4:
Even &
Even & Odd
Odd
§ a) Is sin(ωt) an odd or even signal?
Let f(t) = sin(ωt)
sin(ωt) = - sin(-ωt) for all t
f(t) = - f(-t)
∴ It is an odd signal.
§ b) Is cos(ωt) an odd or even signal?
Let f(t) = cos(ωt)
cos(ωt) = cos(-ωt) for all t
f(t) = f(-t)
∴ It is an even signal.
§ c) Is sin(ωt+(π/6)) an odd or even signal?
sin(ωt+(π/6)) = sin(π/6)cos(ωt) + cos(π/6)sin(ωt)
= 0.5cos(ωt) + 0.866sin(ωt)
∴ sin(ωt+(π/6)) is neither an even nor an odd signal.
0.5cos(ωt)
Even
0.5
sin(ωt+(π/6))
1 ωt
0 π 2π
0.5 -0.5
§ Stochastic
(Random Signal)
ENERGY &
ENERGY & POWER
POWER
Continuous-Time Discrete-Time
Signal f(t) f[n]
T N
Total
Energy, E E = lim
T →∞ ∫
2
f (t )dt E = lim
N →∞
∑
n =− N
2
f [n]
−T
T
Average 1 1 N
Power, P P = lim
T →∞ 2T ∫ f (t )dt P = lim
2
N →∞ 2 N
∑
n=− N
f 2 [ n]
−T
1 2sin(2ωT )
= lim 2T − =∞
T →∞ 2
2ω
E=∞ (the value is indefinite). ∴ f(t) is not an energy signal.
T T
1 1
P = lim ∫ f (t )dt = lim ∫ (ωt )dt
2 2
sin
T →∞ 2T T →∞ 2T
−T −T
T
1 1
= lim
T →∞ 2T ∫−T 2 [1 − cos(2ωt )]dt
1 2 sin( 2ωT )
= lim 2T −
T →∞ 4T 2ω
1 2 sin( 2ωT ) 1
= lim − =
T →∞ 2 8ωT 2
T T
f (t ) = eαt u (t )
t t
Positive α
Negative α à Neither energy signal
à Energy signal nor power signal
ENERGY &
ENERGY & POWER
POWER
§ Observations:
– Bounded periodic signals are power signals (Example
1.5).
– Bounded decreasing signals are energy signals
(Example 1.6).
– Unbounded growing signals are neither energy nor
power signals (Example 1.6).
– Energy signal: E is finite and nonzero, P is zero.
– Power signal: E is infinite, P is finite and nonzero.
– Neither energy nor power signal: E and P infinite.
2π t
f ( t ) = A sin +θ
f1(t) T
= A sin (2 π ft + θ )
f2(t)
= A sin (ω t + θ )
A = signal amplitude
where T = period
θ = phase angle
V final=A
V final=0
V initial=0
f (t ) = Ae − t /τ (
f (t ) = A 1 − e − t /τ )
Arbitrary Exponential − t /τ
Signal:
f (t ) = V final + (Vinitial − V final )e
Example 2.1:
Example 2.1:
Exponential Signal
Exponential Signal
§ Draw the exponential signals described by:
i) 5exp(-t/τ) and
ii) 5[1-exp(-t/τ)]
(i) (ii)
5exp(-t/τ) 5[1-exp(-t/τ)]
Decaying Growing
Approaches 5
5 5
3.16
1.84 Approaches 0
t=τ t t
0 0 t=τ
UNIT STEP
UNIT STEP FUNCTION
FUNCTION
1 t ≥ 0 1 t ≥ T
u (t ) = u (t − T ) =
0 t < 0 0 t < T
Example 2.2:
Example 2.2:
Unit Step
Unit Step
§ Sketch the waveform of
f (t ) = u (t ) + u (t − 2)
Example 2.3:
Example 2.3: Unit
Unit Step
Step
§ Draw the exponential signals described by:
i) 5exp(-t/τ)u(t) and
ii) 5[1-exp(-t/τ)]u(t) Note that the functions are
now zero for t < 0.
5exp(-t/τ)u(t) (i) 5[1-exp(-t/τ)]u(t) (ii)
Approaches 5
5 5
3.16
1.84 Approaches 0
t=τ t t
0 0 t=τ
§ Unit step function can be used in converting an arbitrary
function into a right-sided function.
UNIT PULSE
UNIT PULSE FUNCTION
FUNCTION
P∆ (t ) = u (t + ∆ / 2) − u (t − ∆ / 2)
UNIT IMPULSE
UNIT IMPULSE FUNCTION
FUNCTION
let ∆
approach 0
P∆ (t )
lim = δ (t )
∆ →0 ∆ Unit Impulse
Area = ∆×1/∆ =1 δ (t ) = 0 t ≠ 0
∞
Area = ∫ δ (t )dt = 1
−∞
Properties of Unit Impulse Function
Property 1: Property 4:
f (t )δ (t − T ) = f (T )δ (t − T ) δ (−t ) = δ (t )
Property 2: Property 5:
∞ 1
δ ( βt ) = δ (t )
∫
−∞
f (t )δ (t )dt = f (0) β
Property 3:
∞
∫ f (t )δ (t − T )dt = f (T )
−∞
Unit Impulse
Unit Impulse Function:
Function: Properties
Properties 11 &
& 22
f(t) δ(t-T)
δ(t-T)=0, t≠T
X
0 t T t
f(t)δ(t-T)
f(T)
=
f(t)δ(t-T)=f(T)δ(t-T)
T t
f(t) δ(t)
δ(t)=0, t≠0
X
0 f(t)δ(t) t 0 t
= f(0) When T=0
f(t)δ(t)=f(0)δ(t)
0 t
Unit Impulse
Unit Impulse Function:
Function:
Properties 22 &
Properties & 33
§ Property 2
∞ ∞ ∞
∫
−∞
f (t )δ (t )dt = ∫
−∞
f (0)δ (t )dt = f (0) ∫ δ (t )dt = f (0)
−∞
1 424 3
1
§ Property 3 Property 1
∞ ∞ ∞
∫
−∞
f (t )δ (t − T )dt = ∫
−∞
f (T )δ (t − T )dt = f (T ) ∫ δ (t − T )dt
−∞
14243
1
= f (T )
Example 2.4:
Example 2.4: Unit
Unit Impulse
Impulse
Evaluate the following integrals:
∞ ∞
a) ( t + 3) δ (t + 3)dt
∫ b)
∫ sin(2π t ) δ (t − 50)dt
5
−∞ ∞ −∞
∞
c)
∫ ( t + 2 ) δ (2t )dt
−∞
d)
∫ cos(2π t )δ (2t − 1)dt
−∞
Solution:
∞ ∞
a)
∫( t + 3) δ (t + 3)dt = ∫
5
f (t )δ (t + 3)dt
−∞ −∞
= f (−3) = ( −3 + 3) = 0
5
Property 3
b) ∞ ∞
∫ sin(2π t ) δ (t − 50)dt = ∫
−∞ −∞
f (t ) δ (t − 50)dt
∞
1
= ∫ f (t )δ (t )dt = f (0) = ( 0 + 2 ) = 1 Property 2
−∞
2
∞ ∞
d)
∫ cos(2π t )δ (2t − 1)dt = ∫ cos(2π t )δ [2(t − 1/ 2)]dt
−∞ −∞
∞
1
= ∫ cos(2π t ) δ (t − 1/ 2) dt Property 5
−∞ 2
∞
= ∫
−∞
f (t )δ (t − 1/ 2)dt
1 1 Property 3
= f (1/ 2) = cos(2π ×1/ 2) =−
2 2
APPROXIMATION OF
APPROXIMATION OF SIGNALS
SIGNALS BY
BY
IMPULSE FUNCTIONS
IMPULSE FUNCTIONS
∞
f (t ) ≅ ∑ Tf (kT )δ (t − kT )
k = −∞
… …
-2T –T 0 T 2T
-2T -T 0 T 2T
∞
f (t ) ≅ ∑
k =−∞
f (kT ) PT (t − kT )
Signal Approximation
Signal Approximation by
by Impulse
Impulse
f(t) f(t)
Let the pulse width be very
small so the unit pulse
becomes unit impulse
-2T –T 0 T 2T
∞
PT (t − kT ) ∞
∑
k =−∞ T
≅ ∑ δ (t − kT )
k =−∞
T T→very small
∞ ∞ ∞
f (t) ≅ ∑ f (kT)PT (t −kT) = ∑ f (kT)T [ PT (t −kT)/T] ≅ ∑Tf (kT)δ(t −kT)
k=−∞ k=−∞ k=−∞
3. LINEAR
3. LINEAR CONVOLUTION
CONVOLUTION
Input Output
Transform operator
3. LINEAR
3. LINEAR CONVOLUTION
CONVOLUTION
Single Impulse
Impulse response
k =−∞
∞
= ∑ Tx(kT )G [δ (t − kT )] → Linearity Property
k =−∞
∞
= ∑ Tx(kT )h(t − kT ) → Time invariant Property
k =−∞
Time invariant Property:
Linearity Property: If G[δ(t)]=h(t);
G[kx(t)]=kG[x(t)]; k=constant
then G[δ(t-τ)]=h(t-τ); τ=constant
3. LINEAR
3. LINEAR CONVOLUTION
CONVOLUTION
Approximation Output
by Impulses response
∞
y (t ) = ∑ Tx(kT )h(t − kT )
k =−∞
2.
shift forward if t is
positive, backward if
negative
3.
multiply both signals, then
compute the area
5. Repeat
4.
6.
Example 3.1:
Example 3.1:
Graphical Linear
Graphical Linear Convolution
Convolution
§ Evaluate the convolution of f1(t) and f2(t) at t = 0 and
t = 1.
y (t ) = f1 (t ) * f 2 (t )
∞
= ∫
−∞
f1 (τ ) f 2 (t − τ )dτ
At t = 0 At t = 1
× ×
τ τ
τ τ
0
y (0) = 0.1∑ f1 (0.1k ) f 2 (−0.1k )
k =0
0 1
At n = 1, 1
y (0.1) = 0.1∑ f1 (0.1k ) f 2 (0.1 − 0.1k )
k =0
At n = 2,
2
y (0.2) = 0.1∑ f1 (0.1k ) f 2 (0.2 − 0.1k )
k =0
T=0.1
τ τ
1
0.04
0.01
1
0.04 X = y(0)= f1(τ)f2(-τ)
0.01
τ =0
0 0.1 0.2 0.3 0
τ
f1(τ)= τ 2u(τ) f2(0.1-τ)= u(0.1-τ)
1 = y(0.1)=f1(τ)f2(0.1-τ)
0.04 X
0.01 =0.01x0.1
τ τ
0 0.1 0.2 0.3 0.1 =0.001
Interpretation of
Interpretation of Numerical
Numerical Evaluation
Evaluation of
of Convolution
Convolution
Graphically using
Graphically using Example
Example 3.2
3.2
1, n ≥1
u[n − 1] =
0, n <1
1, n = 1
δ [n − 1] =
0, n ≠ 1
1, n = 2
δ [n − 2] =
0, n ≠ 2
q Unit sample/impulse using unit step
1, n ≥ 0
u[n] =
0, n < 0
1, n ≥ 1
u[n − 1] =
0, n < 1
∞
u[n ] = δ [n ] + δ [n − 1] + δ [n − 2] + δ [n − 3] + ... = ∑ δ [n − i ]
i =0
x0 x2
x1
x-1
∞
x[n ] = ... + x−1δ [n + 1] + x0δ [n ] + x1δ [n − 1] + x2δ [n − 2] + ... = ∑ x δ [n − i ]
i = −∞
i
Example 4.1:
Example 4.1:
Discrete Sequences
Discrete Sequences
- =
=
+
5. DISCRETE-TIME
5. DISCRETE-TIME
CONVOLUTION
CONVOLUTION
§ For a LTI discrete-time system, the discrete-time
convolution is given mathematically by:
∞
y [ n] = ∑ x [k ]h [n − k ]
k =−∞
= f 1 [ 0 ] f 2 [3 ] + f 1 [1] f 2 [ 2 ] + f 1 [ 2 ] f 2 [1] + f 1 [3 ] f 2 [ 0 ]
0 2
1 1
(1/3)3 = 0 + + 2 + 3
3 3 3 (1/3)0
= 3.777
5. DISCRETE-TIME
5. DISCRETE-TIME
CONVOLUTION
CONVOLUTION
§ All the properties for continuous-time convolution
still hold for discrete-time convolution.
§ Graphical method can be performed on discrete-
time signals to obtain discrete-time convolution.
Same procedures as in continuous-time case.
GRAPHICAL EVALUATION
GRAPHICAL EVALUATION
§ Steps involved in the graphical evaluation of two
signals à y[n] = h[n]*x[n] ∞
y [n] = ∑ h [k ] x [n − k ]
1. Plot h[k] and x[k]. k =−∞
§ At n= 3
x =
Example 5.3:
Example 5.3:
Discrete-Time Convolution
Discrete-Time Convolution
§ Find mathematically, the discrete time convolution of
the two signals below.
f[k] h[k]
k k k
-2 -2 -2
n=0: n=1: n=2:
y[0]=2x3=6 c[1]=2x5+1x3=13 y[2]=2x(-2)+1x5+3x3=10
f[k] f[k] f[k]
k k -2 k
-2 -2
n=3: n=4:
y[3]=1x(-2)+3x5+(-1)x3=10 y[4]=3x(-2)+(-1)x5=-11 n=5: y[5]=(-1)x(-2)=2
Example 5.5:
Example 5.5:
Discrete-Time Convolution
Discrete-Time Convolution
§ For the two discrete signals defined below:
-3 -2 -1 0 1 2 3 4 5 6
-3 -2 -1 0 1 2 3 4 5 6
3
(ii) y[n] = x[n]*h[n] 2
1
0 1 2 3 4 5 6 7 8 9 10 11
CONVOLUTION TABLE
CONVOLUTION TABLE
Index 0 + 0 = 0
Start of convolution
sequence, y[0]
Σ
y[0]
Σ
y[1]
y[2] Σ
y[3] Σ Σ
y[4]
CONVOLUTION TABLE
CONVOLUTION TABLE
Index 0 + 1 = 1
Start of convolution
sequence, y[1]
For n = 3, compute y[3]
y[3]
Σ(3, 2/3, 1/9) = 34/9 = 3.777
Example 5.7:
Example 5.7:
Convolution Table
Convolution Table
§ Repeat Example 5.3 using convolution table.
h[0]=3 h[1]=5 h[2]=-2
ΣIndex(0,0) = 0
f[0]=2 f[0]h[0]=6 f[0]h[1]=10 f[0]h[2]=-4
Start of f[1]=1 f[1]h[0]=3 f[1]h[1]=5 f[1]h[2]=-2
convolution f[2]=3 f[2]h[0]=9 f[2]h[1]=15 f[2]h[2]=-6
sequence, y[0] f[3]=-1 f[3]h[0]=-3 f[3]h[1]=-5 f[3]h[2]=2
y[0]=6 y[3]=-3+15+(-2)=10
y[1]=3+10=13 y[4]=-5+(-6)=-11
y[2]=9+5+(-4)=10 y[5]=2
Summary
Summary
§ At the end of this chapter, you should understand:
– Concept of signals and its common classifications
• Able to define, draw, compare, compute and give examples
– Mathematical model of ideal signals (continuous) and discrete-time
signals
• Able to formulate signal functions as well as graphically drawn the
signals, perform signal operations mathematically and graphically, able
to differentiate continuous- and discrete-time signals
– Linear convolution (continuous) and discrete-time convolution
• Able to perform convolution operations mathematically and graphically,
able to differentiate continuous- and discrete-time convolutions