ENع
→Euler and phasors
الدرس 26 · Maths for circuits and signals

Euler's formula and phasors

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

16 دقيقة10 خطوات5 أسئلةIntermediate
عن هذا الدرس

Euler's formula, e^jθ = cos θ + j sin θ, says an imaginary power of e is a turn, not a growth. Let the angle grow with time and the arrow spins; its shadow is a cosine. Freeze the arrow and you have a phasor. Follow one series R-L circuit: a current of 2 cos ωt through 3 Ω and ωL = 4 Ω, where the derivative becomes multiply by jω and the two voltages add as arrows to 10 cos(ωt + 53.13°).

ستتعلّم

حدّد ما تشعر بأنك أتقنته. هذا التقييم الذاتي لا يؤثر في درجة الدرس.

شكل 26 · تفاعلي
01 / 10

The unit circle

Draw a radius-1 circle around 0 in the complex plane. The point at angle θ sits cos θ across and sin θ up, so it is the complex number cos θ + j sin θ. Engineers write j for √−1, because i means current.

>>> import math
>>> math.cos(math.pi/3), math.sin(math.pi/3)   # θ = 60°
(0.5000000000000001, 0.8660254037844386)
>>> complex(math.cos(math.pi/3), math.sin(math.pi/3))
(0.5000000000000001+0.8660254037844386j)
جارٍ تحميل الرسم…
أو ← →
اقرأ الدرس خطوة بخطوة
  1. The unit circle

    Draw a radius-1 circle around 0 in the complex plane. The point at angle θ sits cos θ across and sin θ up, so it is the complex number cos θ + j sin θ. Engineers write j for √−1, because i means current.

    >>> import math
    >>> math.cos(math.pi/3), math.sin(math.pi/3)   # θ = 60°
    (0.5000000000000001, 0.8660254037844386)
    >>> complex(math.cos(math.pi/3), math.sin(math.pi/3))
    (0.5000000000000001+0.8660254037844386j)
  2. Euler's formula

    Euler's formula: e^jθ = cos θ + j sin θ. So e to an imaginary power does not grow; it turns. e^jθ is the length-1 arrow at angle θ: half a turn gives e^jπ = −1, a quarter turn j. Line 2 checks the length.

    >>> import cmath, math
    >>> cmath.exp(1j*math.pi/3)      # e^jθ at θ = 60°
    (0.5000000000000001+0.8660254037844386j)
    >>> cmath.exp(1j*math.pi)        # -1, plus rounding error
    (-1+1.2246467991473532e-16j)
    >>> abs(cmath.exp(2j))
    1.0
  3. Spin it: a cosine

    Let the angle grow steadily with time: θ = ωt, where ω is the angular frequency in radians per second. The arrow spins, and its shadow on the real axis swings back and forth: the real part of e^jωt is cos ωt.

    >>> import cmath, math
    >>> w = 2*math.pi*50              # ω for 50 Hz, rad/s
    >>> t = 0.001
    >>> cmath.exp(1j*w*t).real, math.cos(w*t)
    (0.9510565162951535, 0.9510565162951535)
  4. Freeze it: the phasor

    A sinusoid (a shifted cosine wave) Vm cos(ωt + φ) is the real part of Vm e^jφ · e^jωt. At one frequency everything spins at the same ω, so drop e^jωt and keep the phasor Vm∠φ. Our current becomes I = 2∠0°.

    >>> import cmath
    >>> I = cmath.rect(2, 0)        # length 2, angle 0 rad
    >>> I
    (2+0j)
  5. Resistor: in step

    Ohm's law (voltage = resistance × current) works on phasors: VR = R·I = 3 × 2∠0° = 6∠0°. Line 3 computes it. A real number only stretches the arrow, so vR(t) = 6 cos ωt rises and falls in step with the current.

    >>> I = 2
    >>> VR = 3 * I
    >>> VR
    6
  6. Derivative: times jω

    An inductor's voltage is L di/dt. The derivative of e^jωt is jω e^jωt, so for phasors d/dt becomes multiply by jω: calculus turns into algebra. Multiplying by j turns an arrow a quarter turn, +90°, and keeps its length.

    >>> 1j * 2          # j × I: a quarter turn
    2j
    >>> 1j * 1j         # two quarter turns: -1
    (-1+0j)
  7. Inductor: 90° ahead

    Here ωL = 4 Ω, so VL = jωL·I = j4 × 2 = j8, which is 8∠90°; line 4 computes it. Back in time, vL(t) = 8 cos(ωt + 90°): the inductor's voltage peaks a quarter cycle before the current does.

    >>> import cmath, math
    >>> VL = 4j * 2
    >>> VL
    8j
    >>> math.degrees(cmath.phase(VL))
    90.0
  8. Add the arrows

    R and L are in series, so the source voltage is vR + vL (Kirchhoff's voltage law). Adding sinusoids with trig identities is slow; adding phasors is plain complex addition. Put VL's tail on VR's tip: V = 6 + j8, line 5.

    >>> V = 6 + 8j
    >>> V.real, V.imag
    (6.0, 8.0)
  9. Length and angle

    The sum's length is |V| = √(6² + 8²) = 10. Its angle is atan2(8, 6) = 53.13° (atan2 finds the angle of the point 6 across, 8 up). So V = 10∠53.13°. cmath.polar(V) returns (10.0, 0.927…): radians.

    >>> import cmath, math
    >>> V = 6 + 8j
    >>> abs(V)
    10.0
    >>> math.degrees(cmath.phase(V))
    53.13010235415598
    >>> cmath.polar(V)
    (10.0, 0.9272952180016122)
  10. Spin back to time

    Multiply by e^jωt, take the real part: v(t) = 10 cos(ωt + 53.13°). Spin the arrows together: at every instant the shadows add, vR + vL = v. The source peaks at 10 V, not 14 V: vR and vL peak at different times.

    >>> import math
    >>> wt = math.radians(30)              # one instant
    >>> 6*math.cos(wt) + 8*math.cos(wt + math.pi/2)
    1.1961524227066334
    >>> 10*math.cos(wt + math.atan2(8, 6))
    1.196152422706633

اختبار يتاح بعد الخطوة الأخيرة.