Skip to main content

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

Short answer

With x[n]=delta[n]+2 delta[n-1], the output is y[n]=h[n]+2h[n-1]. For h={1,1,2,-1} and x={1,2}, convolution gives y={1,3,4,3,-2} for n=0 to 4, with y[0]=1.

The impulse response of a discrete time LTI system is h[n] = {1, 1, 2, −1} (↑ at the first 1, i.e. h[0] = 1). If input is x[n] = {1, 2} (↑ at 1, i.e. x[0] = 1), find the convolution sum and sketch the output y[n].

Given h[n]={1,1,2,−1}h[n]=\{1,1,2,-1\} with h[0]=1h[0]=1 (first), so n=0..3n=0..3, and x[n]={1,2}x[n]=\{1,2\} with x[0]=1x[0]=1, so n=0,1n=0,1.

Since x[n]=δ[n]+2δ[n−1]x[n]=\delta[n]+2\delta[n-1],

y[n]=x[n]∗h[n]=h[n]+2h[n−1]y[n]=x[n]*h[n]=h[n]+2h[n-1]

Output length =2+4−1=5=2+4-1=5, for n=0n=0 to 44.

Tabular method

n=0n=01234
h[n]h[n]112−1
2h[n−1]2h[n-1]224−2
y[n]y[n]1343−2
y[0]=1,y[1]=1+2(1)=3,y[2]=2+2(1)=4y[3]=−1+2(2)=3,y[4]=2(−1)=−2\begin{aligned} y[0]&=1,\quad y[1]=1+2(1)=3,\quad y[2]=2+2(1)=4\\ y[3]&=-1+2(2)=3,\quad y[4]=2(-1)=-2 \end{aligned}

Sum check: ∑y=9=(∑x)(∑h)=3×3\sum y=9=(\sum x)(\sum h)=3\times3.

Answer: y[n]={1, 3, 4, 3, −2}y[n]=\{1,\ 3,\ 4,\ 3,\ -2\} for n=0,…,4n=0,\dots,4, with y[0]=1y[0]=1.

Sketch of y[n]

    y[n]
      4         o
      3     o   |   o
      1 o   |   |   |
      0 +---+---+---+---+--> n
     -2                 o
        0   1   2   3   4

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 6 questions →