Skip to main content

Convolve {−0.5, 1, −1, 0.5} and {1, 2, −1, 0, 2, −1}

Short answer

Using convolution sum (tabular method), the result is z[n] = {−0.5, 0, 1.5, −2.5, 1, 2, −3, 2, −0.5} for n from 0 to 8.

Find and plot the convolution sum of the signals x[n] = {−0.5, 1, −1, 0.5} and y[n] = {1, 2, −1, 0, 2, −1}.

No origin is marked, so take the first sample of each at n=0n = 0: x[n]={−0.5↑,1,−1,0.5}x[n] = \{\underset{\uparrow}{-0.5}, 1, -1, 0.5\} (0≤n≤30 \le n \le 3) and y[n]={1↑,2,−1,0,2,−1}y[n] = \{\underset{\uparrow}{1}, 2, -1, 0, 2, -1\} (0≤n≤50 \le n \le 5).

Let the result be z[n]=x[n]∗y[n]=∑kx[k] y[n−k]z[n] = x[n]*y[n] = \sum_k x[k]\,y[n-k].

Output starts at n=0n = 0; length 4+6−1=94 + 6 - 1 = 9, so 0≤n≤80 \le n \le 8.

Tabular method

Each row is one sample of xx times yy shifted to that position (last row is the column sum z[n]z[n]):

Rown=0n=0n=1n=1n=2n=2n=3n=3n=4n=4n=5n=5n=6n=6n=7n=7n=8n=8
x[0] y[n]x[0]\,y[n]-0.5-10.50-10.5
x[1] y[n−1]x[1]\,y[n-1]12-102-1
x[2] y[n−2]x[2]\,y[n-2]-1-210-21
x[3] y[n−3]x[3]\,y[n-3]0.51-0.501-0.5
z[n]z[n]-0.501.5-2.512-32-0.5

Direct working

  • z[0]=−0.5(1)=−0.5z[0] = -0.5(1) = -0.5
  • z[1]=−0.5(2)+1(1)=0z[1] = -0.5(2) + 1(1) = 0
  • z[2]=−0.5(−1)+1(2)+(−1)(1)=1.5z[2] = -0.5(-1) + 1(2) + (-1)(1) = 1.5
  • z[3]=−0.5(0)+1(−1)+(−1)(2)+0.5(1)=−2.5z[3] = -0.5(0) + 1(-1) + (-1)(2) + 0.5(1) = -2.5
  • z[4]=−0.5(2)+1(0)+(−1)(−1)+0.5(2)=1z[4] = -0.5(2) + 1(0) + (-1)(-1) + 0.5(2) = 1
  • z[5]=−0.5(−1)+1(2)+(−1)(0)+0.5(−1)=2z[5] = -0.5(-1) + 1(2) + (-1)(0) + 0.5(-1) = 2
  • z[6]=1(−1)+(−1)(2)+0.5(0)=−3z[6] = 1(-1) + (-1)(2) + 0.5(0) = -3
  • z[7]=(−1)(−1)+0.5(2)=2z[7] = (-1)(-1) + 0.5(2) = 2
  • z[8]=0.5(−1)=−0.5z[8] = 0.5(-1) = -0.5

Sum check: (∑x)(∑y)=0×3=0(\sum x)(\sum y) = 0 \times 3 = 0, and −0.5+0+1.5−2.5+1+2−3+2−0.5=0-0.5 + 0 + 1.5 - 2.5 + 1 + 2 - 3 + 2 - 0.5 = 0.

Answer:

z[n]={−0.5↑, 0, 1.5, −2.5, 1, 2, −3, 2, −0.5}z[n] = \{\underset{\uparrow}{-0.5},\ 0,\ 1.5,\ -2.5,\ 1,\ 2,\ -3,\ 2,\ -0.5\}

Plot

Stem plot drawn sideways (each # = 0.5; left of | is negative):

 n   z[n]
 0  -0.5       #|
 1   0.0        |
 2   1.5        |###
 3  -2.5   #####|
 4   1.0        |##
 5   2.0        |####
 6  -3.0  ######|
 7   2.0        |####
 8  -0.5       #|

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 6 questions →