Skip to main content

Convolve {1, 3, 4, 3, 1} and {2, 2, −2}

Short answer

The convolution sum gives y[n] = {2, 8, 12, 8, 0, -4, -2} for n = 0 to 6 (origin at first sample).

Find the convolution sum of x[n] = {1, 3, 4, 3, 1} and h[n] = {2, 2, −2}

Take the origin at the first sample of each sequence (none is marked): x[n]={1,3,4,3,1}x[n]=\{1,3,4,3,1\}, n=0..4n=0..4 and h[n]={2,2,−2}h[n]=\{2,2,-2\}, n=0..2n=0..2.

Output length =5+3−1=7=5+3-1=7, for n=0n=0 to 66; y[n]=∑kx[k]h[n−k]y[n]=\sum_k x[k]h[n-k].

Tabular method

n=0n=0123456
1⋅h1\cdot h22−2
3⋅h3\cdot h66−6
4⋅h4\cdot h88−8
3⋅h3\cdot h66−6
1⋅h1\cdot h22−2
y[n]y[n]281280−4−2

Check by formula

y[2]=x[0]h[2]+x[1]h[1]+x[2]h[0]=−2+6+8=12y[4]=x[2]h[2]+x[3]h[1]+x[4]h[0]=−8+6+2=0\begin{aligned} y[2]&=x[0]h[2]+x[1]h[1]+x[2]h[0]=-2+6+8=12\\ y[4]&=x[2]h[2]+x[3]h[1]+x[4]h[0]=-8+6+2=0 \end{aligned}

Sum check: ∑y=24=(∑x)(∑h)=12×2\sum y=24=(\sum x)(\sum h)=12\times2.

Answer: y[n]={2, 8, 12, 8, 0, −4, −2}y[n]=\{2,\ 8,\ 12,\ 8,\ 0,\ -4,\ -2\} for n=0,…,6n=0,\dots,6 (↑ at 2).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 6 questions →