Skip to main content

Convolve {2, 1, 5, 7} and {1, 3, 5, 9, 6}

Short answer

By convolution sum (tabular method), the output sequence is y[n] = {2, 7, 18, 45, 67, 86, 93, 42} for n = 0 to 7.

Find the convolution between the following sequences. h[n] = {2, 1, 5, 7}, x[n] = {1, 3, 5, 9, 6}. Choose origin as per your choice.

Chosen origin: first sample at n=0n = 0 for both: h[n]={2↑,1,5,7}h[n] = \{\underset{\uparrow}{2}, 1, 5, 7\} (0≤n≤30 \le n \le 3) and x[n]={1↑,3,5,9,6}x[n] = \{\underset{\uparrow}{1}, 3, 5, 9, 6\} (0≤n≤40 \le n \le 4).

y[n]=x[n]∗h[n]=∑kx[k] h[n−k]y[n] = x[n]*h[n] = \sum_k x[k]\,h[n-k]

Output starts at n=0n = 0; length 5+4−1=85 + 4 - 1 = 8, so 0≤n≤70 \le n \le 7.

Tabular method

Rown=0n=0n=1n=1n=2n=2n=3n=3n=4n=4n=5n=5n=6n=6n=7n=7
x[0] h[n]x[0]\,h[n]2157
x[1] h[n−1]x[1]\,h[n-1]631521
x[2] h[n−2]x[2]\,h[n-2]1052535
x[3] h[n−3]x[3]\,h[n-3]1894563
x[4] h[n−4]x[4]\,h[n-4]1263042
y[n]y[n]27184567869342

Direct working

  • y[0]=1(2)=2y[0] = 1(2) = 2
  • y[1]=1(1)+3(2)=7y[1] = 1(1) + 3(2) = 7
  • y[2]=1(5)+3(1)+5(2)=18y[2] = 1(5) + 3(1) + 5(2) = 18
  • y[3]=1(7)+3(5)+5(1)+9(2)=45y[3] = 1(7) + 3(5) + 5(1) + 9(2) = 45
  • y[4]=3(7)+5(5)+9(1)+6(2)=67y[4] = 3(7) + 5(5) + 9(1) + 6(2) = 67
  • y[5]=5(7)+9(5)+6(1)=86y[5] = 5(7) + 9(5) + 6(1) = 86
  • y[6]=9(7)+6(5)=93y[6] = 9(7) + 6(5) = 93
  • y[7]=6(7)=42y[7] = 6(7) = 42

Sum check: (∑x)(∑h)=24×15=360(\sum x)(\sum h) = 24 \times 15 = 360, and 2+7+18+45+67+86+93+42=3602 + 7 + 18 + 45 + 67 + 86 + 93 + 42 = 360.

Answer:

y[n]={2↑, 7, 18, 45, 67, 86, 93, 42}y[n] = \{\underset{\uparrow}{2},\ 7,\ 18,\ 45,\ 67,\ 86,\ 93,\ 42\}

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 6 questions →