C9 · Lesson 7 · The convolution integral
Flip, slide, multiply and integrate
Continuous-time LTI systems work the same way as discrete ones, with an integral in place of the sum. A circuit's impulse response h(t) is what it does after a very short, very tall kick; any input is a dense row of such kicks, and the output adds up the circuit's response to each. Doing the integral by hand comes down to one skill: sketching the flipped, shifted impulse response against the input and seeing, region by region, where they overlap. Once that's automatic, outputs like a pulse through an RC filter can be written down in a few lines.
- The input x(τ) is a pulse lasting one second. The impulse response is , an RC low-pass with RC = 1 s; the curve labeled h(t − τ) is it flipped and slid to t.
- The shaded area is the product x(τ)h(t − τ), and its area is the output y(t). Slide t: no overlap before 0, a growing overlap until t = 1, then a shrinking, decaying one.
- The dashed curve is the whole output, and the dot is y(t) now: a charge toward 1 for the pulse's second, then a decay.
Predict
A rectangular pulse of height 1 and width 1 is convolved with itself. What is the result?
A triangle. As one pulse slides past the other, the overlap grows linearly from 0 to 1 (full overlap at t = 1) and shrinks back to 0 at t = 2. The width is the sum of the widths, and the peak is the area of full overlap, 1.
Name it
The integral
To evaluate it: sketch x(τ) and (h flipped, with its origin moved to τ = t), then split t into regions by where the edges of the two signals meet. In each region, the integral's limits are where both are nonzero.
Properties
The same as the discrete sum: commutative, associative, distributive; and ; durations add; areas multiply, . Also, differentiating either signal differentiates the result.
Circuits
An RC low-pass has with τ = RC. Its step response is , and a pulse of width T gives
the charge-then-discharge that every square wave through a filter shows.
Worked example
Find .
Show the solution
- Before t = 0. For t < 0 there's no overlap, so the output is 0.
- After t = 0. For t ≥ 0:
- Where it heads. It rises to 1/2, the area of . At t = 2 it's 0.491.
Answer the output is for t ≥ 0 and 0 before, rising to 1/2 (0.491 at t = 2).
Worked example
Find the self-convolution of the pulse that is 1 from 0 to 1, at t = 0.5, 1 and 1.5.
Show the solution
- Overlap length. The overlap of [0, 1] with [t − 1, t] has length t for 0 ≤ t ≤ 1 and 2 − t for 1 ≤ t ≤ 2.
- Evaluate.
Answer y(0.5) = 0.5, y(1) = 1 and y(1.5) = 0.5: the self-convolution is the triangle.
Worked example
Find and where it peaks.
Show the solution
- Convolve. For t ≥ 0: At t = 1 it's 0.2325.
- Find the peak. Its derivative is zero where : which is t = ln 2 = 0.693.
- Peak value.
- The shape. Two first-order lags in a row give a rise and fall, never a jump.
Answer for t ≥ 0, which peaks at 0.25 at t = ln 2 = 0.693.
Check
A signal lasting 3 s is convolved with an impulse response lasting 2 s. How long does the output last?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A pulse of height 1 and width 0.5 s is convolved with a pulse of height 0.5 and width 5 s.
(a)
What is the output's largest value?
(b)
What is the output's total area?
Check
An RC low-pass with τ = 2 s has . What is its response to u(t) at t = 1 s?
Check
A pulse of height 1 and width 1 s goes into an RC low-pass with τ = 1 s.
(a)
What is the output when the pulse ends, at t = 1 s?
(b)
What is it 2 s later?
Check
A signal of area 0.5 goes into a system whose impulse response has area 1. What is the output's area?
Check
What is at t = 0.5?
Check
x(τ) is nonzero from 0 to 2 and h(t − τ) is nonzero from t − 3 to t. For which t is the overlap from τ = 0 to τ = t?
Check
A pulse of height 1 and width 2 is convolved with itself.
(a)
What is the peak of the result?
(b)
What is it at t = 2 + 0.25·2?
Check
Find with a = 2.
(a)
What is it at t = 0.2?
(b)
Where does it settle?
Explain why
Why does convolution need h flipped, h(t − τ), instead of just shifted?
The output at time t adds up the responses to inputs that arrived at every earlier time τ. An input at time τ has been in the system for t − τ seconds by time t, so its contribution is weighted by h at age t − τ. Recent inputs (τ close to t) are weighted by the start of the impulse response and old inputs by its tail. Plotted against τ, that weighting is h run backward from τ = t: the flip is just bookkeeping for "how long ago did this input arrive".
Practice
Keep practicing
11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.