CSR1GENR21import numpy as np2t = np.arange(10000) * 1e-63x = 5*np.exp(-t/1e-3)4E = np.sum(x**2) * 1e-61 µF · 5 V1 kΩ5 V · 1 kHz1 kΩE = 0.00 µJE = 0.00 µJ
-3-2-10123-505t (ms)x (V)x(t)x(t)copyx(t)copyx(t)x(−t)x(t)x(−t)xevenodd012340510152025t (ms)x² (V²)x(t)²average P = 12.5 V²x(t)²x(t)²
Coloured parts: what the current step is about; everything else rests in whiteBlocks: a capacitor with its switch, a generator, two 1 kΩ resistors, two energy tanks and a Python cardPlots: the signal x(t) with a shifted or flipped copy, and x(t)² whose shaded area is the energyThe copies slide and flip, and the tanks fill, in slow motion; the pills show energy so farPulse 5e^(−t/τ)·u(t) with τ = RC = 1 ms, and generator 5 cos(2π·1000·t) V. Energy ∫x² dt in V²·ms equals µJ into 1 kΩ. Some signals are neither kind. A ramp x(t) = t has infinite energy and infinite average power. The unit step u(t) has infinite energy but finite power, ½ when averaged over −L..L.

Signals that repeat

  1. The generator makes x(t) = 5 cos(2π·1000·t) volts. Slide a copy along by T = 1 ms and it lands exactly on top: x(t + T) = x(t) for every t. That makes it periodic. The smallest such T is the period.

Mirror in time

Energy and power

In code

The working

# step 1/10 · periodic

x(t) = A·cos(2π·f0·t)
     A = 5 V,  f0 = 1000 Hz

period  T = 1 / f0 = 1 ms

periodic:  x(t + T) = x(t)  for every t
  shift 0.5 ms -> no match (crest on trough)
  shift 1 ms   -> exact match
  shift 2 ms, 3 ms ... match too

fundamental period = the smallest T > 0 that works

The parts are chosen examples: a 5 V, 1 kHz generator and a 1 µF capacitor charged to 5 V, each driving 1 kΩ, so τ = RC = 1 ms. Energies are in V²·ms; into 1 kΩ, 1 V²·ms is 1 µJ. Every number and curve is computed from this model. The motion is slowed a great deal: 4 ms of signal plays over 9 seconds. The tanks show energy delivered since t = 0; a full tank is 50 V²·ms.