Complex exponentials: growing, decaying and spinning
About this lesson
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.
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
Read the lesson step by step
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 lotDecaying: 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 msGrowing: 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)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"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)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 msFading 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 curvesGrowing 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 itThe 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 fasterReal 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)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)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
5 quick questions
Choose one answer per question. You can change your choices before checking them.
01x(t) = e^(σt) with σ = −0.5 per ms. What is x after 2 ms?
x(2) = e^(−0.5 × 2) = e^(−1) = 0.37. A real exponential never crosses zero; it only shrinks toward it.
02What does e^(jωt) look like in the complex plane?
By Euler's formula e^(jωt) = cos ωt + j·sin ωt. Its length is sqrt(cos² + sin²) = 1, and its angle is ωt, so it turns at ω.
03Which s gives a cosine that swells over time?
The real part σ decides size: σ > 0 grows. ω ≠ 0 makes it spin, so the real part is a growing cosine. −0.5 + j2π fades, j2π keeps its size, and −0.5 alone fades without spinning.
04Why do real signals such as cos ωt need two complex exponentials?
cos ωt = (e^(jωt) + e^(−jωt))/2. The two arrows turn opposite ways, so their imaginary parts cancel and the sum stays on the real axis.
05In the ringing loop, R = 10 Ω and L = 10 mH. What is σ = −R/(2L)?
σ = −10 / (2 × 0.01) = −500 per second, which is −0.5 per millisecond: each millisecond the swing shrinks by e^(−0.5) = 0.61.
Glossary
- Exponential signal
- x(t) = e^(σt): multiplies by the same factor e^σ every unit of time, so it grows (σ > 0) or fades (σ < 0).
- Complex number
- A number a + jb with a real part a and an imaginary part b; drawn as an arrow in the complex plane. Engineers write j for the square root of −1.
- Euler's formula
- e^(jθ) = cos θ + j·sin θ: a complex number of length 1 at angle θ.
- Complex exponential
- x(t) = e^(st) with complex s: an arrow whose length is e^(σt) and whose angle is ωt.
- Complex frequency s
- s = σ + jω. σ (per second) sets growth or decay; ω (radians per second) sets the spin.
- s-plane
- A map with σ across and ω up. Points left of the vertical axis fade, points right of it grow.
- Envelope
- The curves ±e^(σt) that a fading or growing cosine stays between.
- Real part
- The horizontal coordinate of a complex number, its shadow on the real axis; for e^(st) it is e^(σt)·cos ωt.
Notes and sources
- Time is in milliseconds, so σ is "per millisecond" and ω is "radians per millisecond". σ = −0.5 and +0.15 per ms and ω = 2π rad per ms (1 kHz) are chosen example values; every curve and number in the figure is computed from them.
- The circuit uses R = 10 Ω and L = 10 mH, so σ = −R/(2L) = −500 per second. C = 2.517 µF is not a stock value: it is picked so the loop rings at exactly 1000 Hz. A real 2.2 µF or 2.7 µF part would ring a little faster or slower.
- The motion is slowed down a great deal: the real loop swings 1000 times a second.
- A. V. Oppenheim, A. S. Willsky, S. H. Nawab, Signals and Systems, 2nd ed., Pearson (§1.3: real and complex exponential signals, growing and damped sinusoids)
- B. P. Lathi, R. A. Green, Linear Systems and Signals, 3rd ed., Oxford University Press, 2018, §1.4 (the exponential e^(st) and the complex frequency plane) (Internet Archive record)
- MIT OpenCourseWare 6.003 Signals and Systems (D. Freeman, Fall 2011)
- MIT OpenCourseWare RES.6-007 Signals and Systems (A. V. Oppenheim)
- Euler's formula (Wikipedia): e^(ix) = cos x + i sin x and cos x = (e^(ix) + e^(−ix))/2
- RLC circuit (Wikipedia): α = R/(2L), ω0 = 1/sqrt(LC), ωd = sqrt(ω0² − α²), complex frequency s = σ + jω
- NumPy documentation: numpy.exp (complex input: e^(a+ib) = e^a·(cos b + i sin b))
- NumPy documentation: numpy.linspace (endpoint included by default)
- The Python Language Reference: imaginary literals (2j)
Quiz Unlocks after the last step.