DSP-First, 2/e
LECTURE #4Phasor Addition Theorem
Aug 2016 1© 2003-2016, JH McClellan & RW Schafer
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 2
License Info for SPFirst Slides
§ This work released under a Creative Commons Licensewith the following terms:
§ Attribution§ The licensor permits others to copy, distribute, display, and perform
the work. In return, licensees must give the original authors credit.
§ Non-Commercial§ The licensor permits others to copy, distribute, display, and perform
the work. In return, licensees may not use the work for commercial purposes—unless they get the licensor's permission.
§ Share Alike§ The licensor permits others to distribute derivative works only under
a license identical to the one that governs the licensor's work.§ Full Text of the License§ This (hidden) page should be kept with the presentation
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 3
READING ASSIGNMENTS
§ This Lecture:§ Chapter 2, Section 2-6
§ Other Reading:§ Appendix A: Complex Numbers
§ Appendix B: MATLAB§ Next Lecture: start Chapter 3
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 4
LECTURE OBJECTIVES
§ Phasors = Complex Amplitude§ Complex Numbers represent Sinusoids
§ Develop the ABSTRACTION:§ Adding Sinusoids = Complex Addition§ PHASOR ADDITION THEOREM
}){()cos( tjj eAetA wjjw Â=+
Adding Complex Numbers
§ Polar Form§ Could convert to Cartesian and back out§ Use Calculator that does complex ops !§ Use MATLAB§ Visualize the vectors
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 5
180/79.141
180/200180/70
532.1?9.17.1
p
jpp
j
jjj
eAeee =+
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 6
Cos = REAL PART
}{}{)cos( )(
tjj
tj
eAeAetA
wj
jwjw
Â=
Â=+ +
What about sinusoidal signals over time?Real part of Euler’s
}{)cos( tjet ww Â=General Sinusoid
Complex Amplitude: Constant Varies with time
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 7
POP QUIZ: Complex Amp§ Find the COMPLEX AMPLITUDE for:
§ Use EULER’s FORMULA:
p5.03 jeX =
)5.077cos(3)( pp += ttx
}3{
}3{)(775.0
)5.077(
tjj
tj
ee
etxpp
pp
Â=
Â= +
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 8
POP QUIZ-2: Complex Amp§ Determine the 60-Hz sinusoid whose
COMPLEX AMPLITUDE is:
§ Convert X to POLAR:33 jX +=
)3/120cos(12)( pp +=Þ ttx
}12{
})33{()(1203/
)120(
tjj
tj
ee
ejtxpp
p
Â=
+Â=
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 9
WANT to ADD SINUSOIDS§ Main point to remember: Adding
sinusoids of common frequency results in sinusoid with SAME frequency
)cos(
)cos()(
0
10
jw
jw
+=
+=å=
tA
tAtxN
kkk
jj jN
k
jk AeeA kå
=
=1
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 10
PHASOR ADDITION RULE
Get the new complex amplitude by complex addition
( ){ } )cos(
}{)cos(
0
1
1
1
)(
10
0
0
0
0
jw
jw
wj
wj
wj
jw
+=Â=þýü
îíì
÷ø
öçè
æÂ=
þýü
îíì
Â=
Â=+
å
å
åå
=
=
=
+
=
tAeAe
eeA
eeA
eAtA
tjj
tjN
k
jk
N
k
tjjk
N
k
tjk
N
kkk
k
k
k
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 11
Phasor Addition Proof
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 12
POP QUIZ: Add Sinusoids
§ ADD THESE 2 SINUSOIDS:
§ COMPLEX (PHASOR) ADDITION:
pp 5.031 jj ee +-
)5.077cos(3)(
)77cos()(
2
1
pp
pp
+=
-=
ttx
ttx
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 13
POP QUIZ (answer)
§ COMPLEX ADDITION:
§ CONVERT back to cosine form:
)77cos(2)( 32
3pp += ttx
1-=- pje
3/2231 pjej =+-
pp 5.031 jj ee +-
33 2/ je j =p
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 14
ADD SINUSOIDS EXAMPLE
§ ALL SINUSOIDS have SAME FREQUENCY
§ HOW to GET {Amp,Phase} of RESULT ?
}{
)cos()()()(20
213tjj eAe
tAtxtxtxpj
jw
Â=
+=+=
Convert Sinusoids to Phasors
§ Each sinusoid à Complex Amp
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 15
180/200
180/70
9.1)180/20020cos(9.17.1)180/7020cos(7.1
p
p
pp
ppj
j
etet
®+
®+
)180/79.14120cos(532.1532.1?9.17.1
180/79.141
180/200180/70
pp
p
pp
+®
=+
te
eej
jj
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 16
Phasor Add: Numerical
§ Convert Polar to Cartesian§ X1 = 0.5814 + j1.597§ X2 = -1.785 - j0.6498§ sum =§ X3 = -1.204 + j0.9476
§ Convert back to Polar§ X3 = 1.532 at angle 141.79p/180§ This is the sum
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 17
ADDING SINUSOIDS IS COMPLEX ADDITION
VECTOR(PHASOR)ADD
X1
X2
X3
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 18
POP QUIZ: Add Sinusoids
§ ADD THESE 2 SINUSOIDS:
§ COMPLEX ADDITION:
p5.00 31 jj ee +
)5.077cos(3)(
)77cos()(
2
1
pp
p
+=
=
ttx
ttx
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 19
POP QUIZ (answer)
§ COMPLEX ADDITION:
§ CONVERT back to cosine form:
j 3 = 3e j0.5p
1
31 j+ 3/231 pjej =+
)77cos(2)( 33pp += ttx
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 20
Euler’s FORMULA
§ Complex Exponential§ Real part is cosine§ Imaginary part is sine§ Magnitude is one
)sin()cos( tjte tj www +=
)sin()cos( qqq je j +=
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 21
Real & Imaginary Part Plots
PHASE DIFFERENCE = p/2
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 22
COMPLEX EXPONENTIAL
§ Interpret this as a Rotating Vector§ q = wt§ Angle changes vs. time§ ex: w=20p rad/s§ Rotates 0.2p in 0.01 secs
e jjq q q= +cos( ) sin( )
)sin()cos( tjte tj www +=
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 23
Rotating Phasor
See Demo on CD-ROMChapter 2
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 24
ADD SINUSOIDS EXAMPLE
tm1
tm2
tm3
)()()( 213 txtxtx +=
)(1 tx
)(2 tx
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 25
Convert Time-Shift to Phase
§ Measure peak times:§ tm1=-0.0194, tm2=-0.0556, tm3=-0.0394
§ Convert to phase (T=0.1)§ f1=-wtm1 = -2p(tm1 /T) = 70p/180, § f2= 200p/180
§ Amplitudes§ A1=1.7, A2=1.9, A3=1.532
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 26
ADD SINUSOIDS: Amp/Phase
§ ALL SINUSOIDS have SAME FREQUENCY§ HOW to GET {Amp,Phase} of RESULT ?
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 27
Complex number relations for SCALARSCartesian and polar forms
cos(q) =Â{e jq}
r2 = x 2 + y 2
q = Tan-1 yx( ) q
qsincosryrx
==
re jq = rcos(q)+ jrsin(q)Euler’s formula
Real part of Euler’s
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 28
COMPLEX AMPLITUDE
}{)cos()( tjj eAetAtx wjjw Â=+=General Sinusoid
x(t) =Â{Xe jw t} =Â{z(t)}Sinusoid = REAL PART of complex exp: z(t)=(Aejf)ejwt
X is a (complex) constant -> amplitude and phaseCalled COMPLEX AMPLITUDE or PHASOR
X = Ae jj when z(t) = Xe jw t