Input, system, output
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
Test one: double the input. The pulse goes through a ×2 scaler, so 2 V goes in. The output peaks at 1.73 V, exactly 2 × 0.86 V. The dashed line, 2·y(t), sits right on it.
Test two: add a second pulse, 0.5 V from 4 to 6 ms. The output of the sum equals y₁ + y₂, the two outputs added. Scaling plus adding is superposition. A system that passes both is linear.
Swap in a squarer, y = x². One volt in gives 1 V out. Double it: 2 V in gives 4.00 V out, not the 2.00 V that linear would predict. One failed test is enough: the squarer is not linear.
Time-invariant
Test three: delay the input by 3 ms. The RC output is the same bump, just 3 ms later; the dashed y(t − 3 ms) sits on it. The system works the same today as tomorrow: time-invariant.
Swap in an amplifier whose gain knob turns up with time: y = (t / 4 ms)·x. The delayed pulse meets a bigger gain, so its output is 1.00 to 1.50 V, not 0.25 to 0.75 V. Time-varying.
Causal and stable
Watch the time markers. The RC output stays at 0 V until the pulse arrives at 1 ms. Its output now depends only on the input now and before. That is causal. Every real-time physical system is.
Swap in a look-ahead, y(t) = x(t + 1 ms). Its output jumps at 0 ms, a full millisecond before the pulse arrives. It needs the future, so it is not causal. It only works on recorded data.
Now switch the input on at 1 ms and leave it on. It never goes above 1 V: a bounded input. The RC output climbs toward 1 V and stays below it. Bounded in, bounded out: BIBO stable.
Swap in an integrator, which adds up its input over time. The same bounded 1 V step makes a ramp: 1 V more every millisecond, 9.00 V at 10 ms, and no limit. It is not stable.
Testing in code
Python with numpy runs the same test on arrays. Make the pulse, square twice its value, compare with twice the square. np.allclose answers False: the squarer fails. The same check on the RC filter answers True.
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.