System properties: linear, time-invariant, causal and stable
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
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.
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
اقرأ الدرس خطوة بخطوة
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 outputsLinear, 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 aLinear, 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 LINEARNot 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 itTime-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-INVARIANTTime-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)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 => CAUSALNot 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 signalStable: 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 => STABLEUnstable: 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 STABLETest 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)
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01A linear system gives a peak of 0.86 V for a 1 V pulse. What peak does it give for a 3 V pulse of the same shape?
Scaling: S{3·x} = 3·S{x}, so every value of the output, the peak too, is 3 × 0.86 V ≈ 2.59 V.
02Which system is NOT linear?
Doubling the input of the squarer multiplies the output by 4, not 2. The others pass both tests; y = t·x(t) is linear but time-varying.
03You delay the input of a system by 3 ms and the output keeps its shape but comes 3 ms later. Which property did it pass?
Time invariance means S{x(t − D)} = y(t − D): a shift in time in, the same shift out, nothing else changes.
04Which system is not causal?
y(t) = x(t + 1 ms) needs the input 1 ms in the future. The others use only the present or the past.
05A 1 V step goes into an integrator. Why is the integrator not BIBO stable?
The step never exceeds 1 V, yet the output ramps up 1 V every millisecond (9.00 V at 10 ms) and never stops. One bounded input with an unbounded output is enough to fail.
المسرد
- System
- A rule or device that turns an input signal x(t) into an output signal y(t), written y = S{x}.
- Linear
- Passes both scaling (S{a·x} = a·S{x}) and adding (S{x₁ + x₂} = S{x₁} + S{x₂}); together these are superposition.
- Superposition
- The output for a weighted sum of inputs is the same weighted sum of their outputs.
- Time-invariant
- Delaying the input by D only delays the output by D: S{x(t − D)} = y(t − D).
- Causal
- The output at time t₀ depends only on the input at t₀ and before, never on the future.
- BIBO stable
- Bounded input, bounded output: every input that stays within some limit gives an output that stays within some limit.
- LTI system
- A system that is both linear and time-invariant, such as an RC filter.
- Time constant τ
- For an RC circuit τ = R·C; one τ after a step the output has covered 63 % of the way.
الملاحظات والمصادر
- 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.
- A system that is both linear and time-invariant (LTI), like the RC filter, is fully described by its response to one short pulse. That is the idea behind convolution, the next lesson.
- A. V. Oppenheim, A. S. Willsky, S. H. Nawab, Signals and Systems, 2nd ed., Pearson (ch. 1, Basic System Properties)
- B. P. Lathi, R. A. Green, Linear Systems and Signals, 3rd ed., Oxford University Press, 2018 (Internet Archive record)
- MIT OpenCourseWare 6.003 Signals and Systems (D. Freeman, Fall 2011)
- MIT OpenCourseWare RES.6-007 Signals and Systems (A. V. Oppenheim)
- Linear time-invariant system (Wikipedia): scaling, additivity and time invariance
- Time-invariant system (Wikipedia): y(t) = t·x(t) is time-variant
- Causal system (Wikipedia): output depends only on present and past inputs
- BIBO stability (Wikipedia): bounded input, bounded output
- RC circuit (Wikipedia): τ = RC and the step response 1 − e^(−t/RC)
- NumPy documentation: numpy.allclose
اختبار يتاح بعد الخطوة الأخيرة.