DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 ©...
Transcript of DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 ©...
![Page 1: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/1.jpg)
DSP-First, 2/e
LECTURE #4Phasor Addition Theorem
Aug 2016 1© 2003-2016, JH McClellan & RW Schafer
![Page 2: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/2.jpg)
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
![Page 3: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/3.jpg)
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
![Page 4: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/4.jpg)
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 Â=+
![Page 5: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/5.jpg)
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 =+
![Page 6: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/6.jpg)
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
![Page 7: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/7.jpg)
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
Â=
Â= +
![Page 8: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/8.jpg)
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
Â=
+Â=
![Page 9: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/9.jpg)
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
![Page 10: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/10.jpg)
)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
![Page 11: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/11.jpg)
( ){ } )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
![Page 12: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/12.jpg)
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
![Page 13: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/13.jpg)
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
![Page 14: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/14.jpg)
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
Â=
+=+=
![Page 15: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/15.jpg)
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
![Page 16: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/16.jpg)
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
![Page 17: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/17.jpg)
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 17
ADDING SINUSOIDS IS COMPLEX ADDITION
VECTOR(PHASOR)ADD
X1
X2
X3
![Page 18: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/18.jpg)
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
![Page 19: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/19.jpg)
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
![Page 20: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/20.jpg)
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 +=
![Page 21: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/21.jpg)
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 21
Real & Imaginary Part Plots
PHASE DIFFERENCE = p/2
![Page 22: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/22.jpg)
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 +=
![Page 23: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/23.jpg)
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 23
Rotating Phasor
See Demo on CD-ROMChapter 2
![Page 24: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/24.jpg)
Aug 2016 © 2003-2016, JH McClellan & RW Schafer 24
ADD SINUSOIDS EXAMPLE
tm1
tm2
tm3
)()()( 213 txtxtx +=
)(1 tx
)(2 tx
![Page 25: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/25.jpg)
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
![Page 26: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/26.jpg)
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 ?
![Page 27: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/27.jpg)
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
![Page 28: DSP-First, 2/e · 2018. 10. 1. · DSP-First,2/e LECTURE #4 PhasorAddition Theorem Aug 2016 © 2003-2016, JH McClellan & RW Schafer 1](https://reader033.fdocuments.in/reader033/viewer/2022053121/60a67e8597eff55bd04c857a/html5/thumbnails/28.jpg)
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