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 maps an input signal to an output .
| Property | Definition (discrete time; continuous is the same with ) | Typical violation |
|---|---|---|
| linear | for all inputs and constants | squaring, clipping, an offset, a rectifier, a quantiser |
| time invariant | if then for every shift | gain that changes with time (), automatic gain control, a switched or sampled stage seen in continuous time |
| causal | depends only on for | 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 | depends only on | anything with a capacitor, inductor or delay |
Linearity splits into additivity and homogeneity. Testing with is a quick check: a linear system must give 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 :
In continuous time the sum becomes . An ideal integrator has , 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).
Causality matters only in real time. A filter that processes a recorded file may look ahead ( using ); 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 , with the output limited to by its rails.
Find: which of the five properties it has, and the input range over which it is incrementally linear.
Solve:
- Linear: no. gives , and outside the rails doubling does not double . Removing the offset leaves a linear system for unclipped inputs.
- Time invariant: yes (nothing in the formula depends on 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, for every input.
- Unclipped range: , so .
Check: at , , just at the rail; the range is shifted by , 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.
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 "fails" stability only because the record is finite but 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 is not absolutely summable. Stability tests with one bounded input can show instability but never prove stability; for an LTI system, check 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 and has gain . On supplies with headroom the output can swing . A peak input gives peak; tripling it to should give , but the rails stop it at .
Simulation. Set the configuration to non-inverting and compare with : the lab shows a simulated output peak of and then ("clipping at the rails") against an ideal . Tripling the input only doubled the output, so homogeneity fails.
What you would measure. Build the stage with a general-purpose op-amp on a current-limited bench supply (limit about per rail), drive it with a sine from a function generator and watch input and output on a two-channel scope. Expect a gain of (two resistors) up to about peak input, then flat tops. Real rails depend on the op-amp and the load: a rail-to-rail part clips within about of the supply, an older bipolar part 1 to 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 ( 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
- Is linear, time invariant, causal, stable and memoryless?
- Is (a mixer) time invariant?
- An LTI system has . Is it stable?
- Is causal?
Answer
- Linear, TI, causal, stable (), not memoryless (it uses ).
- No: delaying the input by gives , not . Mixers are linear but time varying, which is why they move spectra (Modulation).
- No: diverges.
- No: depends on a future input.
Test yourself
Which system is linear but not time invariant?
An amplifier gives V. Strictly, it is
- linear
- incrementally linear (linear plus an offset)
- time varying
- unstable
An LTI system is BIBO stable exactly when
- for
- its step response is bounded at
Tripling the input of an amplifier doubles its output. Which property fails?
- causality
- time invariance
- homogeneity (linearity)
- memorylessness