ENع
←System properties
Lesson 05 · Signals and systems in continuous time

System properties: linear, time-invariant, causal and stable

15 min11 steps5 questionsBeginner
About this lesson

A system takes an input signal and gives an output signal. Put an RC filter on a test bench and check four properties the way engineers do: run it twice and compare. Double the input (is the output doubled?), add two inputs, delay the input, watch whether the output runs ahead, and feed it a bounded input. Then swap in a squarer, a turning gain knob, a look-ahead and an integrator to see each test fail, and run the same test in Python with numpy. It builds on the lesson on complex exponentials and the Circuits lessons on the RC transient and on step and impulse functions.

You'll learn to

Tick what you feel confident about. These self-checks do not affect your lesson score.

Fig 5 · Interactive
01 / 11

A system turns an input into an 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.

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
Loading figure…
or ← →
Read the lesson step by step
  1. A system turns an input into an 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.

    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
  2. Linear, part 1: double in, double out

    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.

    scaling (homogeneity) test
    
      run 1:  x(t)    -> y(t)
      run 2:  2·x(t)  -> measured
      prediction:        2·y(t)
    
    peak measured  1.73 V
    peak predicted 2 × 0.86 = 1.73 V
    largest gap anywhere: 0e+0 V
    
    S{a·x} = a·S{x}  for any number a
  3. Linear, part 2: add the inputs, add the outputs

    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.

    additivity test
    
      x₁ -> y₁      x₂ -> y₂
      x₁ + x₂ -> measured
      prediction:  y₁ + y₂
    
    at t = 5 ms:
      y₁ = 0.12 V (tail of the first bump)
      y₂ = 0.32 V
      measured  0.43 V = y₁ + y₂
    
    scaling + adding = superposition:
    S{a·x₁ + b·x₂} = a·S{x₁} + b·S{x₂}
    => the RC filter is LINEAR
  4. Not linear: the squarer

    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.

    S = squarer: y(t) = x(t)²
    
      x = 1 V  ->  y = 1 V
      x = 2 V  ->  y = 4.00 V
      linear would give 2 × 1 = 2.00 V
    
    (2x)² = 4x², not 2x²
    => NOT linear
    
    a property must hold for EVERY input:
    one counterexample breaks it
  5. Time-invariant: later in, later out

    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.

    time-invariance (shift) test
    
      run 1:  x(t)        -> y(t)
      run 2:  x(t − 3 ms) -> measured
      prediction:  y(t − 3 ms)
    
    pulse now 4 .. 6 ms
    peak 0.86 V at 6 ms (same height)
    largest gap: 0e+0 V
    
    R and C do not change over time
    => the RC filter is TIME-INVARIANT
  6. Time-varying: a knob that turns

    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.

    S = gain knob: y(t) = (t / 4 ms)·x(t)
    
      pulse at 1..3 ms -> 0.25 .. 0.75 V
      pulse at 4..6 ms -> 1.00 .. 1.50 V
      prediction (shifted copy): 0.25 .. 0.75 V
    
    the rule itself contains t
    => TIME-VARYING
    
    (it still passes the linear tests:
     (t/4)·(a·x) = a·(t/4)·x)
  7. Causal: the output never runs ahead

    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.

    causal:
      y(t₀) depends only on x(t) for t ≤ t₀
      (the present and the past)
    
    RC filter:
      0 .. 1 ms   x = 0     y = 0
      from 1 ms   x = 1 V   y starts rising
    
    the capacitor cannot react to
    a voltage that has not arrived
    => CAUSAL
  8. Not causal: the look-ahead

    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.

    S = look-ahead: y(t) = x(t + 1 ms)
    
      input pulse   1 .. 3 ms
      output pulse  0 .. 2 ms  (earlier!)
    
    y(0) needs x(1 ms): the future
    => NOT CAUSAL
    
    fine for a recording on disk
    (e.g. a centred moving average),
    impossible for a live signal
  9. Stable: bounded in, bounded out

    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.

    BIBO stable:
      |x(t)| ≤ B for all t
      => |y(t)| stays below some finite bound
    
    RC filter, step of 1 V at 1 ms:
      y = 1 − e^(−(t−1)/τ)
      at 10 ms: 0.9999 V
      never above 1 V
    
    => STABLE
  10. Unstable: the integrator

    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.

    S = integrator: y(t) = (1/τ)·∫ x dt
      (adds up the input; τ = 1 ms)
    
    step of 1 V from 1 ms:
      y = (t − 1 ms) × 1 V/ms
      at 10 ms: 9.00 V
      at 1 s: 999 V ... no bound
    
    bounded input, unbounded output
    => NOT BIBO STABLE
  11. Test a property in Python

    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.

    import numpy as np
    t = np.arange(0, 10, 0.01)
    x = 1.0*((t>=1) & (t<3))
    sq = lambda x: x**2
    np.allclose(sq(2*x), 2*sq(x))
    False
    
    # the RC filter, exact step by step:
    def rc(x, dt=0.01, tau=1.0):
        a = np.exp(-dt/tau)
        y = np.zeros_like(x)
        for n in range(1, len(x)):
            y[n] = x[n-1] + (y[n-1]-x[n-1])*a
        return y
    
    >>> np.allclose(rc(2*x), 2*rc(x))
    True
    >>> print(rc(x).max().round(2))
    0.86
    
    (Python 3 with numpy)

Quiz Unlocks after the last step.