For \(n < 0\), there’s no overlap between \(x[k]\) and \(h[n-k]\). So, \(y[n] = 0\).
For \(n \ge 0\), the overlap is for \(0 \le k \le n\). \[
y[n] = \sum_{k=0}^{n} \alpha^k = \frac{1 - \alpha^{n+1}}{1 - \alpha}
\]Result:\(y[n] = \left(\frac{1 - \alpha^{n+1}}{1 - \alpha}\right) u[n]\).
Example: Accumulator System
Example: Convolving Two Pulses
Let’s convolve two finite-length pulses. The output shape and length depend on the inputs.
\(x[n] = 1\) for \(0 \le n \le 4\).
\(h[n] = \alpha^n\) for \(0 \le n \le 6\) (with \(\alpha > 1\)).
The convolution \(y[n]\) is non-zero for \(0 \le n \le 10\), with a trapezoidal shape due to changing overlap.
Application: Digital Audio Reverb
Convolution is used in audio engineering to create effects like reverberation (reverb).
Input Signal \(x[n]\): A “dry” audio signal (e.g., a single clap).
Impulse Response \(h[n]\): The “room response.” This is what you would record if you made a perfect impulse (like a starter pistol shot) in a concert hall. It captures all the echoes.
Output Signal \(y[n]\): The “wet” audio signal, with reverb. \[y[n] = x[n] * h[n]\]
By convolving any dry sound with the impulse response of a space, we can make it sound like it was recorded there!
Application: Digital Audio Reverb
graph TD
A["Dry Audio<br>x[n]"] --> C{"Convolution<br>y[n] = x[n]*h[n]"};
B["Room Impulse Response<br>h[n]"] --> C;
C --> D["Audio with Reverb<br>y[n]"];
Summary
Signal Decomposition: Any discrete signal \(x[n]\) can be written as a sum of scaled, shifted impulses: \(x[n] = \sum_k x[k]\delta[n-k]\).
LTI System Response: The output \(y[n]\) of an LTI system is the input \(x[n]\) convolved with the system’s impulse response\(h[n]\).
The Convolution Sum: This fundamental operation is defined as: \[ y[n] = x[n] * h[n] = \sum_{k=-\infty}^{\infty} x[k]h[n-k] \]
Calculation: We can compute this using the graphical “flip-and-slide” method.
Key Insight: The impulse response \(h[n]\) is a complete characterization of an LTI system. If you know \(h[n]\), you know how the system will react to any input.