TExcelTAD
Home › Signals, Systems & Digital Filters for Engineers › System Properties: Linearity, Time Invariance, Causality, Stability and Memory

System Properties: Linearity, Time Invariance, Causality, Stability and Memory

You inherit a signal chain: a sensor amplifier, an anti-alias filter, an ADC and a block of firmware that "cleans up" the samples. Before you can predict what it does to a new signal you need to know which of its blocks you may describe by an impulse response and a frequency response, and which you may not. The answer comes from five yes/no properties. A system that is linear and time invariant (LTI) is completely described by its impulse response, and everything in the rest of this course (convolution, transfer functions, filters) relies on that. A system that is not LTI needs to be tested, linearised around an operating point, or handled with other tools. This lesson defines the properties, tests them numerically on black boxes, and shows the most common way real hardware breaks them. The theory is in LTI Systems.

The five properties

A system SS maps an input signal xx to an output y=S{x}y = S\{x\}.

Property Definition (discrete time; continuous is the same with tt) Typical violation
linear S{ax1+bx2}=aS{x1}+bS{x2}S\{a x_1 + b x_2\} = a S\{x_1\} + b S\{x_2\} for all inputs and constants squaring, clipping, an offset, a rectifier, a quantiser
time invariant if x[n]→y[n]x[n] \to y[n] then x[n−k]→y[n−k]x[n - k] \to y[n - k] for every shift kk gain that changes with time (y[n]=n x[n]y[n] = n\,x[n]), automatic gain control, a switched or sampled stage seen in continuous time
causal y[n0]y[n_0] depends only on x[n]x[n] for n≤n0n \le n_0 a centred moving average, any "look-ahead" processing
BIBO stable every bounded input gives a bounded output an integrator or accumulator, a filter with a pole outside the unit circle
memoryless y[n]y[n] depends only on x[n]x[n] anything with a capacitor, inductor or delay

Linearity splits into additivity and homogeneity. Testing with x=0x = 0 is a quick check: a linear system must give y=0y = 0 for zero input, which is why an amplifier with an output offset is not linear, only incrementally linear (linear plus a constant). In practice, engineers subtract the offset or work with small signals around an operating point and call the result linear.

For an LTI system, stability and causality are properties of the impulse response h[n]h[n]:

BIBO stable  ⟺  ∑n=−∞∞∣h[n]∣<∞,causal  ⟺  h[n]=0 for n<0\text{BIBO stable} \iff \sum_{n=-\infty}^{\infty} \lvert h[n] \rvert < \infty, \qquad \text{causal} \iff h[n] = 0 \text{ for } n < 0

In continuous time the sum becomes ∫∣h(t)∣ dt<∞\int \lvert h(t) \rvert\,dt < \infty. An ideal integrator has h(t)=u(t)h(t) = u(t), whose integral diverges: a constant input makes its output ramp without limit, which is exactly what happens to an op-amp integrator without a reset or a feedback resistor (Integrator and Differentiator).

x[n] x[n] delay k z^-k x[n-k] system S y1[n] system S y[n] delay k z^-k y2[n] y1 = y2 ? order of S and the delay can be swapped only for a time-invariant system

Causality matters only in real time. A filter that processes a recorded file may look ahead (y[n]y[n] using x[n+1]x[n+1]); scipy.signal.filtfilt does exactly that to get zero phase. A filter running on a microcontroller sample by sample cannot.

Worked example: an amplifier with an offset and rails

Given: a sensor amplifier y(t)=11 x(t)+0.02 Vy(t) = 11\,x(t) + 0.02\ \text{V}, with the output limited to ±11 V\pm 11\ \text{V} by its rails.

Find: which of the five properties it has, and the input range over which it is incrementally linear.

Solve:

  • Linear: no. x=0x = 0 gives y=0.02 V≠0y = 0.02\ \text{V} \ne 0, and outside the rails doubling xx does not double yy. Removing the offset leaves a linear system for unclipped inputs.
  • Time invariant: yes (nothing in the formula depends on tt itself).
  • Causal and memoryless: yes, the output depends only on the present input (an idealisation: the real amplifier has a bandwidth, so it has memory at high frequencies).
  • Stable: yes, ∣y∣≤11 V\lvert y \rvert \le 11\ \text{V} for every input.
  • Unclipped range: −11 V≤11x+0.02 V≤11 V-11\ \text{V} \le 11x + 0.02\ \text{V} \le 11\ \text{V}, so −1.0018 V≤x≤0.9982 V-1.0018\ \text{V} \le x \le 0.9982\ \text{V}.

Check: at x=0.9982 Vx = 0.9982\ \text{V}, 11×0.9982+0.02=11.00 V11 \times 0.9982 + 0.02 = 11.00\ \text{V}, just at the rail; the range is shifted by −0.02/11=−1.8 mV-0.02/11 = -1.8\ \text{mV}, the input-referred offset.

Testing black boxes in code

The definitions translate directly into numerical tests. Each test can only disprove a property: passing with a few random inputs is strong evidence, not proof.

python · try it yourself
import numpy as np

rng = np.random.default_rng(1)
N = 64

def delay(x, k):                               # x[n - k] with zeros shifted in
    return np.concatenate([np.zeros(k), x[:-k]])

systems = {
    "moving average  (x[n]+x[n-1])/2": lambda x: (x + delay(x, 1)) / 2,
    "square          x[n]^2":          lambda x: x**2,
    "offset          2x[n] + 0.1":     lambda x: 2 * x + 0.1,
    "time-varying    n x[n]":          lambda x: np.arange(N) * x,
    "look-ahead      x[n+1]":          lambda x: np.concatenate([x[1:], [0.0]]),
    "accumulator     sum x[0..n]":     lambda x: np.cumsum(x),
    "clipper         clip(10x, +-1)":  lambda x: np.clip(10 * x, -1, 1),
}

def inp():                                     # random input, zero over the last 10 samples
    x = rng.standard_normal(N)
    x[-10:] = 0
    return x

def is_linear(S):
    x1, x2, a, b = inp(), inp(), 1.7, -0.6
    return np.allclose(S(a * x1 + b * x2), a * S(x1) + b * S(x2))

def is_time_invariant(S):
    x = inp()
    return np.allclose(S(delay(x, 5))[5:], delay(S(x), 5)[5:])

def is_causal(S):
    x1 = inp(); x2 = x1.copy(); x2[30:] += 1.0  # inputs equal before n = 30
    return np.allclose(S(x1)[:30], S(x2)[:30])

def looks_stable(S):                            # bounded input: a unit step of 64 samples
    return bool(np.max(np.abs(S(np.ones(N)))) < 10)

print(f"{'system':34s} linear  TI     causal stable")
for name, S in systems.items():
    flags = [is_linear(S), is_time_invariant(S), is_causal(S), looks_stable(S)]
    print(f"{name:34s} " + " ".join(f"{'yes' if f else 'no':6s}" for f in flags))
system                             linear  TI     causal stable
moving average  (x[n]+x[n-1])/2    yes    yes    yes    yes   
square          x[n]^2             no     yes    yes    yes   
offset          2x[n] + 0.1        no     yes    yes    yes   
time-varying    n x[n]             yes    no     yes    no    
look-ahead      x[n+1]             yes    yes    no     yes   
accumulator     sum x[0..n]        yes    yes    yes    no    
clipper         clip(10x, +-1)     no     yes    yes    yes   

Two results deserve a comment. The time-varying gain n x[n]n\,x[n] "fails" stability only because the record is finite but nn grows: over a longer record its output for a step grows without limit, so the verdict is right. The accumulator's step response is a ramp, reaching 64 here: its impulse response u[n]u[n] is not absolutely summable. Stability tests with one bounded input can show instability but never prove stability; for an LTI system, check ∑∣h[n]∣\sum \lvert h[n] \rvert or the poles instead (Poles and Zeros in z).

Guided lab: when an amplifier stops being linear

Hand calculation. A non-inverting op-amp stage with Rf=100 kΩR_f = 100\ \text{k}\Omega and Rin=10 kΩR_\text{in} = 10\ \text{k}\Omega has gain 1+100/10=111 + 100/10 = 11. On ±12 V\pm 12\ \text{V} supplies with 1 V1\ \text{V} headroom the output can swing ±11 V\pm 11\ \text{V}. A 0.5 V0.5\ \text{V} peak input gives 5.5 V5.5\ \text{V} peak; tripling it to 1.5 V1.5\ \text{V} should give 16.5 V16.5\ \text{V}, but the rails stop it at 11 V11\ \text{V}.

Simulation. Set the configuration to non-inverting and compare Vin=0.5 VV_\text{in} = 0.5\ \text{V} with 1.5 V1.5\ \text{V}: the lab shows a simulated output peak of 5.500 V5.500\ \text{V} and then 11.00 V11.00\ \text{V} ("clipping at the rails") against an ideal 16.50 V16.50\ \text{V}. Tripling the input only doubled the output, so homogeneity fails.

-+voutRfRinvinlinear (ideal gain)ideal gain11.00 V/VfCL (-3 dB)90.9 kHz|A(f)| linear10.999 V/Vout pk wanted5.50 Vrail limit+/-11.00 V2 pi f Vpk needs0.035 V/usSR available0.50 V/ussupply+/-12.0 V-100100T/2T3T/22TVf = 1.00 kHz+VS-VSvinvoutideal gain x vin

What you would measure. Build the stage with a general-purpose op-amp on a current-limited ±12 V\pm 12\ \text{V} bench supply (limit about 50 mA50\ \text{mA} per rail), drive it with a 1 kHz1\ \text{kHz} sine from a function generator and watch input and output on a two-channel scope. Expect a gain of 11.0±0.211.0 \pm 0.2 (two 1 %1\,\% resistors) up to about 0.9 V0.9\ \text{V} peak input, then flat tops. Real rails depend on the op-amp and the load: a rail-to-rail part clips within about 0.1 V0.1\ \text{V} of the supply, an older bipolar part 1 to 2 V2\ \text{V} away; read your part's output swing in its datasheet. An FFT on the scope shows harmonics appear as soon as clipping starts, the frequency-domain signature of non-linearity.

Hazards and safe setup. Low voltage only (±12 V\pm 12\ \text{V} from a current-limited supply). Check the op-amp's pinout before powering, connect the supplies before the signal, and never drive the input beyond the supply rails.

Pitfalls

  • Calling an amplifier with an offset "linear" and then using superposition with the offset counted twice.
  • Assuming a digital filter running in real time can be non-causal.
  • Declaring a system stable because one test input stayed bounded.
  • Forgetting that every real amplifier, ADC and actuator is linear only over a range: state the range.

Practice

  1. Is y[n]=x[n]−x[n−1]y[n] = x[n] - x[n-1] linear, time invariant, causal, stable and memoryless?
  2. Is y(t)=x(t)cos⁡(2πfct)y(t) = x(t)\cos(2\pi f_c t) (a mixer) time invariant?
  3. An LTI system has h[n]=1.05nu[n]h[n] = 1.05^n u[n]. Is it stable?
  4. Is y[n]=x[−n]y[n] = x[-n] causal?
Answer
  1. Linear, TI, causal, stable (∑∣h∣=2\sum \lvert h \rvert = 2), not memoryless (it uses x[n−1]x[n-1]).
  2. No: delaying the input by t0t_0 gives x(t−t0)cos⁡(2πfct)x(t - t_0)\cos(2\pi f_c t), not x(t−t0)cos⁡(2πfc(t−t0))x(t - t_0)\cos(2\pi f_c (t - t_0)). Mixers are linear but time varying, which is why they move spectra (Modulation).
  3. No: ∑1.05n\sum 1.05^n diverges.
  4. No: y[−3]=x[3]y[-3] = x[3] depends on a future input.

Test yourself

Which system is linear but not time invariant?

  1. y[n]=x[n]2y[n] = x[n]^2
  2. y[n]=n x[n]y[n] = n\,x[n]
  3. y[n]=x[n]+1y[n] = x[n] + 1
  4. y[n]=x[n−2]y[n] = x[n-2]

An amplifier gives y=5x+0.1y = 5x + 0.1 V. Strictly, it is

  1. linear
  2. incrementally linear (linear plus an offset)
  3. time varying
  4. unstable

An LTI system is BIBO stable exactly when

  1. h[0]=1h[0] = 1
  2. ∑∣h[n]∣<∞\sum \lvert h[n] \rvert < \infty
  3. h[n]=0h[n] = 0 for n<0n < 0
  4. its step response is bounded at n=10n = 10

Tripling the input of an amplifier doubles its output. Which property fails?

  1. causality
  2. time invariance
  3. homogeneity (linearity)
  4. memorylessness