1import numpy as np2t = np.arange(0, 10, 0.01)3x = 1.0*((t>=1) & (t<3))4sq = lambda x: x**25np.allclose(sq(2*x), 2*sq(x))x = 0.00 Vy = 0.00 VRC low-passsquarer y = x²gain knob y = (t/4 ms)·xlook-ahead y = x(t+1 ms)integrator y = ∫x dt / τxxx
0246810012t (ms)x (V)INPUT x(t)x, 2xx, x₂, x₁+x₂x, 2xx, x(t−3)x, x(t−3)x, 2x024681001234t (ms)y (V)OUTPUT y(t)solid S{2x}, dashed 2·ysolid S{x₁+x₂}, dashed y₁+y₂solid S{2x}, dashed 2·ysolid S{x(t−3)}, dashed y(t−3)solid S{x(t−3)}, dashed y(t−3)y = 0 until x arrives at 1 msy starts 1 ms before xy stays below 1 V9.00 V at 10 ms, still risingsolid S{2x}, dashed 2·y
Coloured parts: what the current step is about; everything else rests in whiteBlocks: input generators, adder, ×2 scaler, 3 ms delay, the system under test, the output scope and a Python cardPlots: the input and the output; a dashed line is the output a property predictsTokens carry the input to the system and the output to the scope, in slow motionEach property is a test: run the system twice and compare. The RC filter (τ = 1 ms) passes all four; the squarer, gain knob, look-ahead and integrator each fail one. A system that is both linear and time-invariant (LTI), like the RC filter, is fully described by its response to one short pulse. That is the idea behind convolution, the next lesson.

Input, system, output

  1. A system takes an input signal x(t) and gives an output signal y(t). Here the system is an RC filter with τ = RC = 1 ms. A 1 V pulse goes in; a smooth bump, peaking at 0.86 V, comes out.

Linear

Time-invariant

Causal and stable

Testing in code

The working

# step 1/11 · system

x(t) -> [ S ] -> y(t)

S = RC low-pass
  R = 1000 Ω, C = 1 µF
  τ = RC = 1 ms
  τ·dy/dt = x(t) − y(t)

test input: 1 V from 1 ms to 3 ms
  y rises:  y = 1 − e^(−(t−1)/τ)
  at 2 ms: 0.63 V (63 %)
  at 3 ms:  0.86 V (the peak)
  then it decays back to 0

we test S by feeding it inputs
and comparing the outputs

R = 1 kΩ and C = 1 µF are chosen example parts, giving τ = RC = 1 ms. Every curve and number in the figure is computed from this model on a 0.01 ms grid with the exact solution for each step. The motion is slowed down: 10 ms of signal plays over several seconds. The tokens show which way the signal flows; the plots carry the exact timing.