Skip to main content

Derive the convolution sum

Short answer

Express x[n] as sum x[k] delta[n-k]. By linearity and time invariance, each shifted impulse gives h[n-k], so y[n]=sum x[k]h[n-k]=x[n]*h[n]. The convolution sum output has N1+N2-1 samples when x has N1 and h N2 samples.

Derive the convolution sum for a discrete-time LTI system.

The convolution sum expresses the output of a discrete-time LTI system in terms of the input x[n]x[n] and the impulse response h[n]h[n] (the output when the input is δ[n]\delta[n]).

Step 1: Any sequence as a sum of shifted impulses

Since δ[n−k]=1\delta[n-k] = 1 only at n=kn = k, each sample can be picked out:

x[n]=∑k=−∞∞x[k] δ[n−k]x[n] = \sum_{k=-\infty}^{\infty} x[k]\,\delta[n-k]

For example, x[n]={2,1↑,3}x[n] = \{2, \underset{\uparrow}{1}, 3\} gives x[n]=2δ[n+1]+δ[n]+3δ[n−1]x[n] = 2\delta[n+1] + \delta[n] + 3\delta[n-1].

Step 2: Apply the system properties

Let T{⋅}T\{\cdot\} be the system and h[n]=T{δ[n]}h[n] = T\{\delta[n]\}.

y[n]=T{x[n]}=T{∑kx[k] δ[n−k]}y[n] = T\{x[n]\} = T\left\{\sum_{k} x[k]\,\delta[n-k]\right\}
  • Linearity (additivity and homogeneity): the x[k]x[k] are just constants (weights), so
y[n]=∑k=−∞∞x[k] T{δ[n−k]}y[n] = \sum_{k=-\infty}^{\infty} x[k]\,T\{\delta[n-k]\}
  • Time invariance: the response to δ[n−k]\delta[n-k] is h[n−k]h[n-k].

Step 3: Result

y[n]=∑k=−∞∞x[k] h[n−k]=x[n]∗h[n]y[n] = \sum_{k=-\infty}^{\infty} x[k]\,h[n-k] = x[n] * h[n]

This is the convolution sum. Putting m=n−km = n-k gives the equivalent form

y[n]=∑k=−∞∞h[k] x[n−k]y[n] = \sum_{k=-\infty}^{\infty} h[k]\,x[n-k]

showing convolution is commutative.

Special cases:

  • Causal system (h[n]=0h[n] = 0, n<0n < 0) and causal input: y[n]=∑k=0nx[k] h[n−k]y[n] = \sum_{k=0}^{n} x[k]\,h[n-k].
  • Lengths: if xx has N1N_1 samples and hh has N2N_2, yy has N1+N2−1N_1 + N_2 - 1 samples.

Procedure: (1) fold h[k]h[k] to h[−k]h[-k]; (2) shift by nn to get h[n−k]h[n-k]; (3) multiply by x[k]x[k] sample by sample; (4) sum the products to get y[n]y[n]; (5) repeat for every nn.

Example: x[n]={1↑,2}x[n] = \{\underset{\uparrow}{1}, 2\}, h[n]={1↑,1,1}h[n] = \{\underset{\uparrow}{1}, 1, 1\}:

nnCalculationy[n]y[n]
01⋅11\cdot11
11⋅1+2⋅11\cdot1 + 2\cdot13
21⋅1+2⋅11\cdot1 + 2\cdot13
32⋅12\cdot12

So y[n]={1↑,3,3,2}y[n] = \{\underset{\uparrow}{1}, 3, 3, 2\}, with 2+3−1=42 + 3 - 1 = 4 samples.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 6 questions →