C94 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C9 · Lesson 4 · Systems and their properties

Memory, causality, stability, linearity and time invariance

A system is anything that turns one signal into another: an amplifier, a filter, a room's echo, a line of code that averages the last ten samples. Before computing anything about a system, it pays to ask a few yes-or-no questions about it. Does it remember the past? Can it react to the future? Does a small input always give a small output? Does doubling the input double the output? Does it behave the same today as tomorrow? The last two, linearity and time invariance, are the ones that matter most, because a system that has both is completely described by a single signal, as the next lessons show.

  • The dashed pulse is the input x(t), centered at t = d. Two systems act on it: y1(t)=x2(t) and y2(t)=tx(t).
  • Slide the pulse with d. The output of x2 keeps the same shape and just moves along with the input: that system is time invariant.
  • The output of tx(t) changes as the pulse moves: small near t = 0, bigger further out, upside down for negative t. The same input at a different time gives a different output: that system is time varying.

Predict

Is the system y(t)=x(t)+1 linear?

Name it

The properties

PropertyMeaningFails for
memorylessy at time t depends only on x at time ty(t)=x(t−1)
causaly at time t depends only on x at times ≤ ty[n]=x[n+1]
stable (BIBO)every bounded input gives a bounded outputthe accumulator y[n]=∑k≤nx[k]
invertibledifferent inputs give different outputsy(t)=x2(t)
linearax1+bx2→ay1+by2y(t)=x(t)+1, y=x2
time invariantx(t−t0)→y(t−t0)y(t)=tx(t), y(t)=x(2t)

Testing them

  • Linearity: find the outputs y1 and y2 for two inputs, then the output for ax1+bx2, and see whether it equals ay1+by2. A quick screen: zero in must give zero out.
  • Time invariance: compare two things: the output for the shifted input x(t−t0), and the original output shifted, y(t−t0). A system whose formula has t (or n) in it outside the input, or that scales time, usually fails.
  • Stability: look for one bounded input with an unbounded output. The accumulator fed a step grows without limit: y[n]=n+1.

A system that is both linear and time invariant is LTI. Most of this course is about LTI systems: circuits of R, L, C and op amps, and digital filters, are all LTI.

Worked example

Classify y(t)=x(2t).

Show the solution
  1. Linear. Scaling or adding inputs scales or adds the output.
  2. Time varying. Shifting the input by t0 gives x(2t−t0), but shifting the output gives y(t−t0)=x(2(t−t0))=x(2t−2t0) and the two differ.
  3. Not causal. y(1) = x(2) needs the future.
  4. Memory and stability. It has memory, and it's stable (it only rearranges values).
  5. Invertible. Undo the compression: x(t)=y(t/2)

Answer linear, time varying, not causal, with memory, stable and invertible.

Worked example

Classify y[n]=x[n]−x[n−1].

Show the solution
  1. Linear and time invariant. It uses only shifts of x, with fixed coefficients.
  2. Causal, with memory. It uses the present and one past sample.
  3. Stable. |y|≤2max⁡|x|
  4. Invertible. The accumulator undoes it, if x started at zero: x[n]=∑k≤ny[k]

Answer linear, time invariant, causal, with memory, stable and invertible.

Worked example

Classify y(t)=x(t)cos⁡(ω0t), the mixer at the heart of every radio.

Show the solution
  1. Linear. Scaling or adding inputs does the same to the output.
  2. Time varying. A delayed input meets a different part of the cosine.
  3. Causal and memoryless. y(t) uses only x(t).
  4. Stable. |y|≤|x|
  5. Not invertible. Wherever the cosine is 0 the input is lost.
  6. Why it matters. A linear but time-varying system is exactly what's needed to move a signal to a new frequency, which no LTI system can do.

Answer linear, time varying, causal, memoryless and stable, but not invertible.

Check

A system is y=3x+1.

(a)

What is the output when x = 5 + 7?

(b)

By how much does the sum of the outputs for x = 5 and x = 7 differ from that?

Check

The accumulator y[n]=∑k=−∞nx[k] is fed the unit step u[n]. What is y[20]?

Check

The system y[n]=nx[n] is fed δ[n−5]. What is the output's only nonzero sample?

Check

An LTI system has impulse response h[n]=(0.5)nu[n]. If |x[n]|≤2 always, what is the largest |y[n]| can be?

Check

Which system is causal?

Check

Which system is linear and time invariant?

Check

Which system is not invertible?

Check

A system computes y=2x+3. Test it with the inputs x = 2 and x = 2 × 2.

(a)

What is y for x = 2?

(b)

What is y for x = 2 × 2? (Doubling the input doesn't double the output, so the system isn't linear.)

Check

y[n]=∑k=02bkx[n−k] with b = 0.8 and K = 2, and the input stays within ±1.

(a)

What is the largest the output can be?

(b)

What would the bound be if the sum ran forever?

Explain why

Why is y(t)=x(2t) time varying, even though its formula has no t outside the input?

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.