Discrete-Time Convolution
The impulse response, the convolution sum, flip and slide, FIR and IIR systems, and causality and stability read from h[n]
Cambridge, Massachusetts — 1895
Harvard's new Fogg Art Museum has a lecture hall in which nobody can follow a lecture: every word hangs in the air and smears into the next. The senior physicists consider fixing it impossible, and the job goes to Wallace Sabine, who has just become an assistant professor.
Sabine measures how long a sound takes to die away in the hall, then changes the room and measures again — with Oriental rugs on the floor, with seat cushions carried in from a nearby theatre, with people in the seats. He finds that the body of an average person shortens the decay about as much as six seat cushions. Out of those nights of measurements comes the reverberation time, the seconds a sound takes to fade by 60 dB, still the first number anyone asks about a concert hall. Sabine went on to design the acoustics of Boston's Symphony Hall (Wallace Clement Sabine).
What Sabine was measuring is a room's response to a single sharp sound. Today it has a name — the impulse response — and this lesson shows that it tells you how the room will sound for any sound at all.
Take a linear, time-invariant system in discrete time and feed it the unit sample . Call the output the impulse response:
For a room, is the decaying train of echoes after a clap. For a moving average, it is the row of averaging weights. For a bank account with interest, it is the balance that one deposit grows into. Lesson 1-2 wrote every input as a row of shifted, scaled unit samples, and Lesson 1-3 promised that linearity and time invariance would turn that row into an output. Here is how.
The convolution sum. The output of an LTI system is the input convolved with the impulse response.
Derivation
The convolution sum from linearity and time invariance
Start from the decomposition of the input into unit samples (Lesson 1-2):
By definition, . Because the system is time-invariant, a unit sample delayed by gives the impulse response delayed by :
Because it is linear, scaling by the number scales the response, and a sum of inputs gives the sum of the responses:
The left side is , so the right side is the output:
Every step used one of the two properties and nothing else. That is the deep reason LTI systems are the ones we can analyse completely: one experiment, , fixes the response to everything.
💡Two ways to read the sum
- Input view (superposition): each input sample launches its own copy of the impulse response, scaled by and starting at time . The output is the pile-up of all the copies. This is how to think.
- Output view (flip and slide): to get one output value , write as a function of — the impulse response flipped (because of the ) and slid to start at — multiply it point by point with , and add up the products. This is how to compute by hand.
📐A three-point average
Let at , and let at — a three-point moving average. Slide the flipped along :
Impulse responses come in two kinds. A finite impulse response (FIR) ends: moving averages, the echo , any filter that only weights past inputs. An infinite impulse response (IIR) never quite ends: the leaky accumulator has , a geometric decay, because each output feeds the next. A room is effectively IIR — sound bounces until absorption wins — and Sabine's reverberation time is the time its impulse response takes to fall by 60 dB.
💡The algebra of convolution
- Commutative: — the signal and the system can trade places.
- Associative: — two systems in series act like one with impulse response .
- Distributive: — two systems in parallel act like one with .
- Identity: — the unit sample is the "do nothing" system.
💡Causality and stability, read from h[n]
- Causal for . The output uses with — a future input — only if for some negative .
- BIBO stable . The impulse response must be absolutely summable.
Derivation
Why stability means an absolutely summable impulse response
Sufficient. If for all , then
so a finite bounds every output.
Necessary. Suppose . Choose the bounded input , which is . At ,
A bounded input gave an unbounded output, so the system is unstable. For the sum is when and infinite otherwise: the accumulator () fails.
Young man, in mathematics you don't understand things. You just get used to them.
💡Convolution reverb
Record a room's impulse response once — a balloon pop or a swept tone deconvolved — and you can make any dry recording sound as if it had been played in that room: convolve it with . Music software ships libraries of measured impulse responses of cathedrals, studios and concert halls. It is Sabine's measurement, put to work by a computer.
⚠Two classic slips
- Forgetting the flip computes the correlation instead of the convolution. For a symmetric the two agree, which is why the mistake survives so long.
- Forgetting that the output is longer than the input: samples. Truncating it to silently throws away the tail — the reverberation itself.
💡Where you will use this
The continuous-time version is Lesson 2-2; impulse responses from difference equations are Lesson 2-3. In Unit 4 convolution becomes multiplication of spectra, and in Lesson 6-2 the FFT computes long convolutions fast. Every FIR filter of Unit 9 is a convolution sum with designed weights.
📚Further reading
- Oppenheim and Willsky, Signals and Systems, section 2.1 — discrete-time LTI systems and the convolution sum, with the graphical method.
- Steven W. Smith, The Scientist and Engineer's Guide to Digital Signal Processing (California Technical Publishing, 1997), chapters 6–7 — convolution from the input and output sides.
- Wallace Clement Sabine on Wikipedia — the Fogg Lecture Hall and the reverberation time.
↓But there is a problem
The convolution sum needs samples. But a telescope's optics, an RC circuit and a seismometer respond continuously, to inputs that never come in samples.
Let the samples crowd together and the sum turns into an integral. In 1990 a space telescope worth billions of dollars sent home blurred pictures, and for three years astronomers rescued its science by understanding exactly that integral.