ENع
→Complex exponentials
الدرس 04 · Signals and systems in continuous time

Complex exponentials: growing, decaying and spinning

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

15 دقيقة12 خطوة5 أسئلةBeginner
عن هذا الدرس

Close a switch on a charged capacitor and a coil, and the voltage rings: it swings back and forth and fades. One family of signals describes this and much more: the complex exponential e^(st), with a complex frequency s = σ + jω. Watch e^(st) as an arrow in the complex plane: σ makes it shrink or grow, ω makes it spin, and its shadow on the real axis draws a fading, steady or swelling cosine. You will place each s on the s-plane, see why real signals use a mirror pair of arrows, and compute e^(st) in Python with numpy. Take the Maths lessons "Complex numbers as turning arrows" and "Euler's formula and phasors" first; the Circuits lessons "Sinusoids" and "Step response of RLC circuits" show where ringing comes from.

ستتعلّم

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

شكل 4 · تفاعلي
01 / 12

A circuit that rings

A capacitor charged to 1 V meets a coil when the switch closes. The voltage swings up and down about 1000 times a second, a little smaller each swing. Complex exponentials describe signals like this.

series loop: C, switch, R, coil L
C starts at V0 = 1 V, the switch closes at t = 0

R = 10 Ω   L = 10 mH   C = 2.517 µF

v(t) swings: one swing per ms (1 kHz)
and each swing is smaller

circuit in depth: Circuits, "Step response of RLC circuits"
motion in the figure: slowed down a lot
جارٍ تحميل الرسم…
أو ← →
اقرأ الدرس خطوة بخطوة
  1. A circuit that rings

    A capacitor charged to 1 V meets a coil when the switch closes. The voltage swings up and down about 1000 times a second, a little smaller each swing. Complex exponentials describe signals like this.

    series loop: C, switch, R, coil L
    C starts at V0 = 1 V, the switch closes at t = 0
    
    R = 10 Ω   L = 10 mH   C = 2.517 µF
    
    v(t) swings: one swing per ms (1 kHz)
    and each swing is smaller
    
    circuit in depth: Circuits, "Step response of RLC circuits"
    motion in the figure: slowed down a lot
  2. Decaying: e^(σt) with σ < 0

    Start simple: x(t) = e^(σt) with σ = −0.5 per ms. Each millisecond multiplies it by e^(−0.5) = 0.61. After 2 ms it is 0.37. A negative σ makes a signal fade toward zero.

    x(t) = e^(σt),  σ = −0.5 per ms  (t in ms)
    
    t = 0 ms   x = 1
    t = 1 ms   x = e^(−0.5) = 0.61
    t = 2 ms   x = e^(−1)   = 0.37
    t = 4 ms   x = e^(−2)   = 0.14
    
    every ms: × 0.61
    time constant 1/|σ| = 2 ms
  3. Growing: e^(σt) with σ > 0

    Now σ = +0.15 per ms. Each millisecond multiplies x(t) by e^(0.15) = 1.16, so after 4 ms it is 1.82, and it keeps growing without limit. A positive σ makes a signal grow.

    x(t) = e^(σt),  σ = +0.15 per ms
    
    t = 0 ms   x = 1
    t = 1 ms   x = e^(0.15) = 1.16
    t = 4 ms   x = e^(0.6)  = 1.82
    
    σ > 0  grows   σ < 0  fades   σ = 0  stays 1
    (e^(σt) is never negative)
  4. Spinning: e^(jωt)

    Put j in the power: e^(jωt). Euler's formula says it equals cos ωt + j·sin ωt: an arrow of length 1 in the complex plane at angle ωt. With ω = 2π per ms it turns once every millisecond.

    e^(jωt) = cos ωt + j·sin ωt   (Euler)
    
    length |e^(jωt)| = 1, always
    angle  ωt  (radians)
    
    ω = 2π rad per ms
     -> one full turn (2π) per ms
     -> f = ω / 2π = 1 per ms = 1 kHz
    
    Euler in depth: Maths, "Euler's formula and phasors"
  5. Its shadow is a cosine

    Drop a line from the arrow's tip to the real axis. That shadow is the real part, Re e^(jωt) = cos ωt. As the arrow turns, its shadow slides left and right and draws the cosine over time.

    Re e^(jωt) = cos ωt   (the shadow on the real axis)
    Im e^(jωt) = sin ωt   (the height)
    
    t = 0      angle 0      shadow  1
    t = 0.25   angle π/2    shadow  0
    t = 0.5    angle π      shadow −1
    t = 1      angle 2π     shadow  1  (one turn)
  6. Both at once: s = σ + jω

    Combine them: s = σ + jω, a complex frequency. Then e^(st) = e^(σt)·e^(jωt). The first part sets the arrow's length, the second its angle. So σ decides grow or fade; ω decides how fast it spins.

    s = σ + jω        (complex frequency)
    
    e^(st) = e^((σ + jω)t)
           = e^(σt) · e^(jωt)
             length   angle
    
    here: σ = −0.5 per ms, ω = 2π rad per ms
          s = −0.5 + j·6.28 per ms
  7. Fading spin: a spiral inward

    With σ = −0.5 and ω = 2π the arrow turns once per ms and shrinks to 0.61 of its length each turn. Its tip spirals in. Its shadow is a fading cosine, held inside the curves ±e^(σt).

    x(t) = e^((−0.5 + j2π)t)
    Re x(t) = e^(−0.5t)·cos(2πt)
    
    t = 0.5 ms   Re x = e^(−0.25)·cos π = −0.7788
    t = 1 ms     Re x = e^(−0.5)·cos 2π = 0.61
    t = 2 ms     Re x = e^(−1)          = 0.37
    
    envelope ±e^(σt): the dashed curves
  8. Growing spin: a spiral outward

    Flip σ to +0.15. The arrow still turns once per ms but grows by 1.16 each turn, so its tip spirals out. The shadow is a cosine that swells: 1.82 after four turns, and more after that.

    x(t) = e^((0.15 + j2π)t)
    Re x(t) = e^(0.15t)·cos(2πt)
    
    t = 1 ms   Re x = e^(0.15) = 1.16
    t = 4 ms   Re x = e^(0.6)  = 1.82
    
    a system whose signals do this is unstable:
    it runs away (feedback howl, an oscillator
    starting up) until something limits it
  9. The s-plane: a map of behaviours

    Plot each s as a point: σ across, ω up. Left of the vertical axis, signals fade. Right of it, they grow. On it, they keep their size. Farther from the horizontal axis means faster spinning.

    s-plane: σ across, ω up
    
    σ < 0  (left)    fades
    σ = 0  (axis)    steady size
    σ > 0  (right)   grows
    
    ω = 0  (on the σ axis)  no spin: plain e^(σt)
    |ω| bigger              spins faster
  10. Real signals use a pair

    A voltage is a real number, never complex. Two half-length arrows spinning opposite ways fix that: their up-and-down parts cancel, so their sum stays on the real axis. cos ωt = (e^(jωt) + e^(−jωt))/2.

    cos ωt = (e^(jωt) + e^(−jωt)) / 2   (Euler)
    
    e^(jωt)/2    turns one way  (s = +j2π)
    e^(−jωt)/2   turns back     (s = −j2π)
    
    imaginary parts: +sin/2 − sin/2 = 0
    real parts:      cos/2 + cos/2 = cos ωt
    
    the two s values are mirror images (conjugates)
  11. Complex exponentials in Python

    Python writes j as a suffix: 2j. With numpy, np.exp(s*t) computes e^(st) for 401 times from 0 to 4 ms in one line. x[100] is t = 1 ms: its length abs(x[100]) is 0.6065.

    import numpy as np
    t = np.linspace(0, 4, 401)
    s = -0.5 + 2j*np.pi
    x = np.exp(s*t)
    
    >>> t[100]
    1.0
    >>> round(abs(x[100]), 4)
    0.6065
    >>> round(x.real[50], 4)
    -0.7788
    
    (Python 3 with numpy; np.exp takes complex numbers)
  12. Back to the circuit

    The ringing loop follows the same s. The resistor sets σ = −R/(2L) = −0.5 per ms; the coil and capacitor set ω = 2π per ms. Its voltage swings once per millisecond inside an envelope that shrinks like e^(σt).

    σ = −R / (2L) = −10 / 0.02 = −500 per s
      = −0.5 per ms   (the resistor turns energy to heat)
    ω = sqrt(1/(LC) − σ²) = 2π·1000 rad/s
      (C = 2.517 µF picked for exactly 1 kHz)
    
    v(t) = e^(σt)·(cos ωt + 0.080·sin ωt) volts
         = the real part of A·e^(st), A = 1 − j0.080
         envelope ±|A|·e^(σt), |A| = 1.003
    
    next: what systems do to signals

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