Docsity

Lecture Notes on Complex Number and Phasors | EECS 216, Papers of Signals and Systems

Toggle sidebar
bg1
1
COMPLEX NUMBERS AND PHASORS
Professor Andrew E. Yagle, EECS 216 Instructor
Dept. of EECS, The University of Michigan, Ann Arbor, MI 48109-2122
I. Abstract
The purpose of this document is review for EECS 216 students the concept of phasors–complex numbers
used to represent sinusoids, to simplify the math of manipulating sinusoids. Phasors should have been learned
in EECS 215. It also includes a brief primer on complex numbers and their manipulations.
A. Table of contents by sections:
1. Abstract (you’re reading this now)
2. Complex numbers: Magnitude, phase, real and imaginary parts
3. Complex numbers: Polar-to-Rectangular conversion and vice-versa
4. Complex numbers: Addition, subtraction, multiplication, division
5. Complex numbers: More complex manipulations
6. Phasors: Phasor-to-sinusoid conversions and vice-versa
7. Phasors: Real-world applications (borrowing from EECS 215)
B. Motivation for using Phasors (other than against the EECS 216 instructor)
What do complex numbers have to do with electrical engineering? What good are they? Before you say,
“Beam me up, Scotty,” consider the following circuits problem:
•Circuits problem: A voltage source 5 cos(6t) is connected in series with a 4Ω resistor and a 1
2Hinductor.
The goal is to compute the current i(t) which flows through all three devices.
•Hard Way: In EECS 215 or 314 you learned that Kirchoff’s voltage law leads to 5 cos(6t)−4i−1
2
di
dt = 0.
–In Math 216 you will learn to solve this using the trial solution i(t) = Acos(6t) + Bsin(6t).
–Substituting this gives 5 cos(6t)−4Acos(6t)−4Bsin(6t) + 1
26Asin(6t)−1
26Bcos(6t) = 0.
–Collecting terms gives [5 −4A−3B] cos(6t)+[−4B+ 3A] sin(6t) = 0. Set t= 0 and t=π
12 →
–5 = 4A+ 3Band 0 = 3A−4B. Solving→A= 0.8 and B= 0.6, so that i(t) = 0.8 cos(6t) + 0.6 sin(6t).
–Using the cosine addition formula three times, this simplifies to the answer i(t) = cos(6t−37o).
•Are we having fun yet? But if we use complex numbers and phasors, we can solve the problem this way:
•Easy Way: Phasor I= 5/[4 + j(6)(1/2)] = 5/(4 + j3) = 1e−j37o→i(t) = cos(6t−37o).
Hard way or easy way? You make the call! Want to learn more about the easy way? Read on...
pf3
pf4
pf5

Partial preview of the text

Download Lecture Notes on Complex Number and Phasors | EECS 216 and more Papers Signals and Systems in PDF only on Docsity!

COMPLEX NUMBERS AND PHASORS

Professor Andrew E. Yagle, EECS 216 Instructor

Dept. of EECS, The University of Michigan, Ann Arbor, MI 48109-

I. Abstract The purpose of this document is review for EECS 216 students the concept of phasors–complex numbers used to represent sinusoids, to simplify the math of manipulating sinusoids. Phasors should have been learned in EECS 215. It also includes a brief primer on complex numbers and their manipulations.

A. Table of contents by sections:

  1. Abstract (you’re reading this now)
  2. Complex numbers: Magnitude, phase, real and imaginary parts
  3. Complex numbers: Polar-to-Rectangular conversion and vice-versa
  4. Complex numbers: Addition, subtraction, multiplication, division
  5. Complex numbers: More complex manipulations
  6. Phasors: Phasor-to-sinusoid conversions and vice-versa
  7. Phasors: Real-world applications (borrowing from EECS 215)

B. Motivation for using Phasors (other than against the EECS 216 instructor)

What do complex numbers have to do with electrical engineering? What good are they? Before you say, “Beam me up, Scotty,” consider the following circuits problem:

  • Circuits problem: A voltage source 5 cos(6t) is connected in series with a 4Ω resistor and a 12 H inductor. The goal is to compute the current i(t) which flows through all three devices.
  • Hard Way: In EECS 215 or 314 you learned that Kirchoff’s voltage law leads to 5 cos(6t) − 4 i − 12 didt = 0.
    • In Math 216 you will learn to solve this using the trial solution i(t) = A cos(6t) + B sin(6t).
    • Substituting this gives 5 cos(6t) − 4 A cos(6t) − 4 B sin(6t) + 12 6 A sin(6t) − 12 6 B cos(6t) = 0.
    • Collecting terms gives [5 − 4 A − 3 B] cos(6t) + [− 4 B + 3A] sin(6t) = 0. Set t = 0 and t = 12 π →
    • 5 = 4A + 3B and 0 = 3A − 4 B. Solving→ A = 0.8 and B = 0.6, so that i(t) = 0.8 cos(6t) + 0.6 sin(6t).
    • Using the cosine addition formula three times, this simplifies to the answer i(t) = cos(6t − 37 o).
  • Are we having fun yet? But if we use complex numbers and phasors, we can solve the problem this way:
  • Easy Way: Phasor I = 5/[4 + j(6)(1/2)] = 5/(4 + j3) = 1e−j^37 o → i(t) = cos(6t − 37 o). Hard way or easy way? You make the call! Want to learn more about the easy way? Read on...

II. Complex numbers: Magnitude, phase, real and imaginary parts

A. You’re in EECS Now!

You’ve seen complex numbers before. For example, solving the quadratic equation z^2 − 6 z + 13 = 0 using the quadratic formula results in the complex number 3 + 2j and its complex conjugate 3 − 2 j where... Wait a minute! j? It should be i! Wrong. You’re in EECS now, and in EECS i denotes current and j = √−1 (note the problem in the section above). Get used to it! Fortunately, Matlab accepts either i or j as √−1. We now return you to your regularly scheduled program of complex numbers review.

B. Euler’s formula

(Leonhard) Euler’s formula relates complex exponentials and trig functions. It states that

ejθ^ = cos θ + j sin θ (1)

The easiest way to derive it is to set x = jθ in the power series for ex:

ejθ^ = 1+(jθ)+ (jθ)

2 2! +

(jθ)^3 3! +

(jθ)^4 4! +...^ = 1−^

θ^2 2! +^

θ^4 4! −^

θ^6 6! +.. .+j

( (^) θ 1! −^

θ^3 3! +^

θ^5 5! +^...

= cos θ+j sin θ (2)

This isn’t a rigorous derivation, but it will do for EECS 216. Note the following immediate implications (these are worth writing on your exam cheat sheet):

  • ejπ/^2 = j and ej^3 π/^2 = e−jπ/^2 = −j (to visualize this, see below on Argand diagrams);
  • ejπ^ = −1 and ejπ^ + 1 = 0 cogently relates the five most important numbers in mathematics;
  • A few people wax rhapsodic about this formula (I think they need to get lives).

C. Definitions of Sine and Cosine in Terms of ejθ

By adding and subtracting Euler’s formula and its complex conjugate, we get

cos θ =^12 (ejθ^ + e−jθ^ ); sin θ = (^21) j (ejθ^ − e−jθ^ ) (3)

These are sometimes called the “inverse Euler formulae.” lecture notes. A mathematician would call them definitions of cos θ and sin θ (never mind all that opposite-over-hypotenuse stuff...) These are important formulae of which you will make extensive use in EECS 216. To remember them:

  • cos θ is an even (symmetric) function of θ, so changing the sign of θ should not change the definition;
  • sin θ is an odd (anti-symmetric) function, so changing the sign of θ should change the sign in the definition;
  • The j in the denominator of sin θ is tricky; you simply have to remember it.

You can visualize these using an Argand diagram, which is just a plot of imaginary part vs. real part of a complex number. For example, z = 3 + j4 = 5ej^0.^927 is plotted at rectangular coordinates (3, 4) and polar coordinates (5, 0 .927), where 0.927 is the angle in radians measured counterclockwise from the positive real axis (try it). This is an excellent way of picking up errors, especially in the phase being off by π radians=180.o

IV. Complex numbers: Addition, subtraction, multiplication, division So why bother with rectangular-to-polar or polar-to-rectangular conversions? Here’s why:

  • To multiply or divide complex numbers, convert them to polar form and use M ejθ^ N ejφ^ = (M N )ej(θ+φ);
  • In particular, note that the magnitude of a product is the product of the magnitudes;
  • To add or subtract, convert to rectangular form and use (a + jb) + (c + jd) = (a + c) + j(b + d). The following two examples (side-by-side) show how to do this:

5 ej^0.^927 + √ 2 ej^0.^785 = 6. 4 ej^0.^896 3 + j 4 × 1 + j = −1 + j 7 ⇓ P → R ⇓ P → R ⇑ R → P ⇓ R → P ⇓ R → P ⇑ P → R 3 + j 4 + 1 + j = 4 + j 5 5 ej^0.^927 × √ 2 ej^0.^785 = 5 √ 2 ej^1.^71 add in rectangular form multiply in polar form

Note that we have already seen all of the P → R and R → P conversions used here. Yes, for this simple example you could compute

(3 + j4)(1 + j) = ((3 · 1) − (4 · 1)) + j((4 · 1) + (3 · 1)) = −1 + j 7 (5)

but for more complicated examples you won’t want to do this. Another example:

Compute 2 √ 3 ejπ/^6 + 2e−jπ/^3 by converting polar to rectangular : = 2√3 cos(π/6) + j 2 √3 sin(π/6) + 2 cos(π/3) + j2 sin(−π/3) = 2√3(√ 3 /2) + j 2 √3(1/2) + 2(1/2) − j2(√ 3 /2) = 4(!) (6)

Another example, entirely in the polar domain:

(

3 ejπ/^6 )/(2e−jπ/^3 ) =^2

2 e

j(π/ 6 −(−π/3)) (^) = √ 3 ejπ/ (^2) = j√ 3 (7)

V. Complex numbers: Complex Manipulations

A. Complex Conjugates

The complex conjugate z∗^ of z is z∗^ = x − jy = M e−jθ^ = M 6 − θ. This turns out to be useful:

  • Re[z] = 12 (z + z∗): We can get the real part by adding the complex conjugate and halving;
  • |z|^2 = zz∗: We can get magnitude by multiplying by the complex conjugate and taking a square root;
  • ej2ARG[z]^ = (^) zz∗ : We can get the phase by dividing by the complex conjugate and taking half the log;
  • Also, |z∗| = |z|; arg[z∗] = −arg[z]; z = M ejθ^ → z∗^ = M e−jθ^ ; (^1) z = (^) M^1 e−jθ^ ; −z = M ej(θ±π).

B. Complex Expressions

Try this: compute | 5(8+26(7+j)(8+j4)(7+j6)(5+j24)(2+j12)(5+j11)j10) | (!) Are you kidding me? And yet it’s quite easy:

5(8 + j)(8 + j6)(5 + j12)(5 + j10) 26(7 + j4)(7 + j24)(2 + j11) =

5 |8 + j| · |8 + j 6 | · |5 + j 12 | · |5 + j 10 | 26 |7 + j 4 | · |7 + j 24 | · |2 + j 11 | =

(26)^2 (65)(625)(125) = 1

Two very important rules:

  • Magnitude of the product of complex numbers is product of magnitudes.
  • Argument of the product of complex numbers is the sum of arguments. The following identity is true to an overall sign. Why? (Try doing this solely in rectangular form!)

(a + jb)(c + jd) (e + jf )(g + jh) =

(a^2 + b^2 )(c^2 + d^2 ) (e^2 + f 2 )(g^2 + h^2 ) exp^ j[tan

− (^1) (b/a) + tan− (^1) (d/c) − tan− (^1) (f /e) − tan− (^1) (h/g)] (9)

VI. Phasors: Phasor-to-sinusoid conversions and vice-versa

A. Procedures: Phasor-to-sinusoid conversions and vice-versa

The bottom line: A phasor is a complex number used to represent a sinusoid. In particular:

sinusoid x(t) = M cos(ωt + θ), −∞ < t < ∞ function of time phasor X = M ejθ^ = M cos θ + jM sin θ complex number

What do these two things have to do with each other? Consider the following:

  • x(t) = Re[Xejωt] = Re[M ejθ^ ejωt] = Re[M ej(ωt+θ)] = M cos(ωt + θ).
  • This relates the phasor X with the sinusoidal signal x(t).
  • Now apply this trick to the sum of two sinusoids at the same frequency:
  • A cos(ωt + θ) + B cos(ωt + φ) = Re[Aej(ωt+θ)^ + Bej(ωt+φ)] = Re[ejωt(Aejθ^ + Bejφ)]
  • Note the crucial step: The complex exponential ejωt^ factors out of the sum!
  • Now let Aejθ^ + Bejφ^ = Cejψ^ for some C and ψ (as we were doing before).
  • Then: Re[ejωt(Aejθ^ + Bejφ)] = Re[ejωt(Cejψ^ )] = C cos(ωt + ψ).
  • The trigonometry equation A cos(ωt + θ) + B cos(ωt + φ) = C cos(ωt + ψ) (ugh)
  • Is equivalent to the complex number equation Aejθ^ + Bejφ^ = Cejψ^ (OK!)

How does this work in practice? Try some examples:

  • More current→greater losses and heating (power dissipation) due to line resistance;
  • Hotter transmission lines expand and sag, touching something; this causes blackouts.
  • So what do we do? Hook a capacitor C in parallel with the motor. RMS current phasor:
  • Irms = 120[1/(30 + j40) + j 2 π(60)C)].
  • What value of C makes the phase of Irms zero? You should obtain C = 42. 4 × 10 −^6 = 42. 4 μF.
  • Then Irms = 1. 446 0 and average power dissipated=Re[VrmsI rms∗ ] = (120)(1.44) = 172.8 watts.
  • But note: The current amplitude has dropped from 2. 4 √2 amps to 1. 44 √2 amps!
  • We have almost halved the peak current, while maintaining average power=172.8 watts.

A. Miscellaneous Problems

The above problem shows why you care about problems like these:

  • Problem #1: 2 cos(ωt + π 3 ) + A cos(ωt + 54 π ) = B cos(ωt) for what value of A?
  • That is, what should the amplitude A be to make the left side be in phase with a pure cosine?
  • Phasors: 2 ejπ/^3 + Aej^5 π/^4 = B → 0 = Im[2ejπ/^3 + Aej^5 π/^4 ] = 2 sin( π 3 ) + A sin( 54 π ) → A = √6.
  • Note this is the same problem as this: For what A is 2ejπ/^3 + Aej^5 π/^4 purely real?
  • Problem #2: The amplitude of 5 cos(7t + 0.927) + A sin(7t) is 3 for what value of A?
  • Phasors: 5 ej^0.^927 + Ae−jπ/^2 = 3ejθ^ → (3 + j4) − jA = 3 + j(4 − A) has magnitude=3 only if A = 4.
  • Note that in general this type of problem will have two solutions or none.
  • Problem #3: Derive the trig identity cos(3θ) = cos^3 θ − 3 cos θ sin^2 θ without using any trig.
  • Cube Euler’s formula: ej^3 θ^ = (cos θ + j sin θ)^3 = cos^3 θ + 3j cos^2 θ sin θ − 3 cos θ sin^2 θ − j sin^3 θ.
  • Equating real parts gives the desired trig identity. Also: try equating imaginary parts.
  • Problem #4: Compute and put in rectangular form

2 (1 +^ j)

. This is a stunt,

2 (1 +^ j)

= (1ejπ/^4 )^1003 = ej^1000 π/^4 ej^3 π/^4 = ej^3 π/^4 =

√ 2 2 (−1 +^ j).^ but illustrative.

  • Problem #5: Compute the five 5th^ roots of 32, i.e., the five solutions of z^5 − 32 = 0.
  • { 2 ej^2 π^1 /^5 , 2 ej^2 π^2 /^5 , 2 ej^2 π^3 /^5 , 2 ej^2 π^4 /^5 , 2 ej^2 π^5 /^5 = 2}. HINT: Draw an Argand diagram.