Additivity, homogeneity and superposition
A system is additive if, whenever input x1 gives output y1 and input x2 gives output y2, the input x1 + x2 gives the output y1 + y2. It is homogeneous if the input kx gives the output ky for every scalar k. A system is linear if it has both properties. They combine into the single condition of superposition:
The test bench below computes both sides. The orange curve passes the combined input through the system. The dashed pink curve passes each input through separately and combines the outputs. For a linear system the two curves coincide for every choice of inputs and constants.
Example 5.6 asks whether H(x) = x2 is linear. Since (k1x1 + k2x2)2 is not the same as k1x12 + k2x22, it is not. Press the Example 5.6 button to see the two sides disagree.
What to notice
Choose the saturation system with a sine input and press the homogeneity button. With k1 = 0.5 the output never reaches the limit and the test passes. With k1 = 2 the output is clipped and the test fails. This is the book's point that any system that limits its output to some maximum or minimum is not homogeneous, and so is not linear.
Since real systems always saturate somewhere, most real systems are not linear. They are often close to linear near an operating point, which is why we can still model them as linear. Section 8.2.2 does this with a first-order Taylor expansion, a technique called linearization.
The offset system y = x + 1 looks linear because its graph is a straight line, but it fails both tests. Try k1 = k2 = 0: a linear system must give zero output for zero input.
Try these
- Before using the lab, decide whether the time-varying gain y(t) = t·x(t) is linear. Then check.
Show answer
It is linear. H(k1x1 + k2x2) = t(k1x1 + k2x2) = k1·tx1 + k2·tx2. The gain changes with time, but at each instant it is still a multiplication. The difference curve stays at zero. You will see in the next tab that this system is not time-invariant, so linearity and time invariance are separate properties. - For the squaring system with x1 = x2 = the burst, k1 = 2 and k2 = 1, predict the largest difference before reading it off the lab.
Show answer
During the burst both inputs are 1, so the combined input is 3 and H gives 9. The other side gives 2·1 + 1·1 = 3. The difference is 6, and it is zero outside the burst. - Find a choice of inputs and constants for which the squaring system passes the test, even though it is not linear. What does this tell you about using tests to establish a property?
Show answer
One choice is k1 = 1 and k2 = 0, which reduces the test to H(x1) = H(x1). Another is k1 = 1 and k2 = −1 with x1 = x2, when both sides are 0. A single passing test cannot show that a system is linear, because linearity is a claim about all inputs and all constants. A single failing test is enough to show that it is not linear. To prove linearity you need an algebraic argument like the one in answer 1. - Is the moving average of the last second linear? Explain why without the lab, then confirm.
Show answer
Yes. The output is an integral of the input over a window, and integration is linear: the integral of k1x1 + k2x2 is k1 times the integral of x1 plus k2 times the integral of x2.
Time invariance
A time-invariant system is one whose parameters do not change with time. If it has output y(t) for input x(t), then it has output y(t − T) for input x(t − T):
In words, delaying the input by T only delays the output by T. It does not change its shape.
The test bench computes the two sides in two orders. The orange curve delays the input first and then applies the system. The dashed pink curve applies the system first and then delays the output. For a time-invariant system the order does not matter, so the curves coincide for every input and every delay.
Recall from Section 5.1.4 that x(t − T) is x(t) shifted T to the right.
What to notice
The time-varying gain y(t) = t·x(t) fails. A burst that arrives later meets a larger gain, so delaying the input changes the size of the output and not just its timing. Its parameter, the gain, changes with time.
The squaring and saturation systems pass, even though they are not linear. Time invariance and linearity are independent: a system can have either, both, or neither. The systems studied in Section 5.4 have both, which is what makes them easy to analyse.
Try these
- Set T = 0. Why does every system pass? What does this say about choosing test cases?
Show answer
With no delay both sides are just H(x(t)), so the test compares a curve with itself. A useful test case must be able to fail. Here that means a nonzero delay. - For the time-varying gain and the burst input with T = 2, compute the difference at t = 4 by hand.
Show answer
The delayed burst occupies [3, 5], so at t = 4 it equals 1. Delay first, then the system: 4 · 1 = 4. The system first: y(t) = t·x(t), so y(4 − 2) = y(2) = 2 · 1 = 2. The difference is 4 − 2 = 2, which equals the delay T. In general the difference is T·x(t − T). - Which of the systems in the menu fail this test? Predict first.
Show answer
Only the time-varying gain. Every other system in the menu treats the input the same way whatever the time. A different example of a time-varying system is one that is switched off at a fixed time, such as a router that drops all packets after a scheduled shutdown.
Causal and memoryless systems
Causal systems act only on inputs from the past. That is, they cannot know the future. Acausal systems are aware of the future. Although acausal systems sound improbable, they are easy to build if they work on logs or traces of inputs rather than on inputs presented in real time.
Memoryless systems act only on the input presented at that instant. The output of a dynamic system may also depend on past (or, if acausal, future) inputs.
To find out which input times the output depends on, this test adds a small bump to the input at time τ and records where the output changes. If the output changes before the bump starts, the system reacted to an input it had not yet received, so it is acausal. If the output changes anywhere outside the bump, the system remembered (or anticipated) the bump, so it is dynamic rather than memoryless.
The bump is a triangle of height 1 on [τ − 0.2, τ + 0.2], shaded in every row.
What to notice
The delay and the moving average of the last second respond only after the bump starts: they are causal but have memory. The advance and the centred moving average respond before the bump arrives. In real time this is impossible. On a log of past requests to a Web server, though, the value at t + 1 is already on disk, so computing it is easy.
For the squaring and saturation systems the change in output stays inside the bump, so they are memoryless. With the saturation system and an input that is already clipped, the change can even be zero. That does not make the system causal or memoryless by itself; it only means this test gave no information.
Try these
- For the delay system, predict the interval where the output changes when τ = 5. Then check.
Show answer
The bump occupies [4.8, 5.2] and the system delays by 1 second, so the output changes on [5.8, 6.2]. The lab reports [5.81, 6.19] because the triangle is exactly zero at its two ends. Nothing changes inside the bump itself, so the system is not memoryless, and nothing changes before 4.8, so it is causal (as far as this test can tell). - For the moving average of the last second, explain the shape of the change in output.
Show answer
The output at t is the average of the input over [t − 1, t]. It changes once the window starts to overlap the bump, at t = 4.8, and stops changing once the window has passed the bump, at t = 6.2. In between it rises while the bump enters the window, stays flat while the whole bump is inside, and falls as the bump leaves. - Is the moving average of the last second causal if the "last second" is measured from a log rather than live? Does it matter where the data come from?
Show answer
Causality is a property of how the output depends on the input, not of where the data come from. The moving average of the last second uses only past inputs, so it is causal either way. The centred average uses half a second of future input. It is acausal whether it runs on a log or not; the log is only what makes it possible to build. - The centred average uses future inputs. Does that stop it from being an LTI system? Decide first, then run the linearity and time-invariance tests on it.
Show answer
No. The centred average is acausal, but it is still linear and time-invariant. The average of k1x1 + k2x2 over any window is k1 times the average of x1 plus k2 times the average of x2, so it is linear. The window [t − ½, t + ½] moves with t, so delaying the input by T just delays the output by T, and it is time-invariant. Causality, linearity and time invariance are separate properties, and an LTI system can be causal or acausal. Both tests in the other tabs pass for the centred average.
Classify every system
For each system, decide whether it is causal, memoryless, time-invariant and linear. Use the other tabs to run tests where you are unsure, but remember that a passed test is only evidence. Then press Check. A short reason appears under each system once you have checked.
| System | Causal | Memoryless | Time-invariant | Linear |
|---|