Lecture2 2
Lecture2 2
e-t
et
t t
t = -1 : 0.01 : 1; t = -1 : 0.01 : 1;
e1 = exp(t); e2 = exp(-t);
2-3
plot(t, e1) plot(t, e2)
Exponential Signals
• Complex numbers y
r
Cartesian form x + j y for real x and y
Polar form r e jq = r cos(q) + j r sin(q) q
Polar-to-Cartesian: x = r cos(q) and y = r sin(q) x
æ ö
Cartesian-to-Polar: r = x 2 + y 2 and q = arctan ç y ÷
èxø
• Complex sinusoid: Euler’s formula
e jq = cos(q ) + j sin(q ) e jq + e − jq = 2 cos(q ) “inverse”
jq − jq
e- jq = cos(q )- j sin(q ) e −e = 2 j sin(q ) Euler formula
2-4
t
Many Faces of Signals
• Function, e.g. cos(t) in continuous time or cos(p n) in
discrete time, useful in analysis
• Sequence of numbers, e.g. {1,2,3,2,1} or a
sampled triangle function, useful in simulation
1
• Set of properties, e.g. even symmetric,
t
useful in reasoning about behavior -1/2 0 1/2
• A piecewise representation, e.g. rect(t) below,
useful in analysis 1
1 t 2
rect(t)
1 1
rect (t ) =
1
t =
Above mathematical models 2 2
1 t
can be used to approximate 0 t
2 -1/2 0 1/2
measured/observed signals 2-5
Spectrum Representation
• Sinusoidal waveforms
( ) { } {
x(t) = Acos 2p f 0t + f0 = Re A e j (2p f0t + f0 ) = Re Ae jf0 e j 2p f0t }
• Spectrum is collection of amplitude, phase and
frequency info to express more complicated signals
N ìï N ü
j 2p fk t ï
(
x(t) = A0 + å Ak cos 2p f k t + fk = )
X 0
+ Re íå k
ï
î k=1
X e ý
ïþ
k=1
= ½ + ½ cos(2 p 880 t) f1 f2
2-6
Two-Sided Spectrum
• Expanding cosine terms with inverse Euler formula
N Nìï X j 2 p f t X * - j 2 p f t üï
x(t) = A0 + å Ak cos ( 2p f k t + fk ) = X 0 + åí k e k + k e k
ý
k=1 k=1 îï 2 2 þï
where Xk = Ak e jfk and X*k = Ak e- jfk
• Two-sided spectrum
2N+1 frequencies and 2N+1 complex amplitudes
{ (0, X0), (f1, ½ X1), (-f1, ½ X1*), …, (fk, ½ Xk), (-fk, ½ Xk*), … }
Frequency-domain representation of signal x(t)
2-7
Two-Sided Spectrum Example
• x(t) = 10 + 14 cos(200p t – p/3) + 8 cos(500p t + p/2)
Expanding cosine terms using (inverse) Euler formula
x(t) =10 + 7e- jp /3e j 2 p (100)t + 7e jp /3e- j 2 p (100)t + 4e jp /2e j 2p (250)t + 4e- jp /2 e- j 2 p (250)t
Constant term has zero frequency: 10 e j 0 t = 10
• Spectrum plot Two periods of x(t)
Complex amplitude
10
7e jp / 3 7e − jp / 3
4e − jp / 2 jp / 2
4e
t
–250 –100 0 100 250
Spectral line
f (in Hz)
2-8