Skip to main content

Convolution of two rectangular pulses

Short answer

Convolve two unit rectangular pulses each of width 2 and amplitude 1. The output is a triangular pulse y(t) = 2 - |t| for |t| < 2, zero otherwise. Height 2, base from -2 to 2.

Find the convolution between the signals x(t) = 1 for −1 < t < 1, 0 otherwise and h(t) = 1 for −1 < t < 1, 0 otherwise.

y(t)=x(t)∗h(t)=∫−∞∞x(τ) h(t−τ) dτy(t) = x(t) * h(t) = \displaystyle\int_{-\infty}^{\infty} x(\tau)\,h(t-\tau)\,d\tau, with x(τ)=1x(\tau) = 1 for −1<τ<1-1 < \tau < 1, and h(t−τ)=1h(t - \tau) = 1 for −1<t−τ<1-1 < t - \tau < 1, i.e. t−1<τ<t+1t - 1 < \tau < t + 1.

The result is non-zero only where the two pulses overlap. Each has width 2, so the output extends from t=−2t = -2 to t=2t = 2.

       x(tau)            h(t-tau)
     _________        _________
    |         |      |         |
 ---+----+----+--  --+----+----+--> tau
   -1    0    1    t-1    t   t+1

Case 1: t<−2t < -2

t+1<−1t + 1 < -1: no overlap, y(t)=0y(t) = 0.

Case 2: −2≤t<0-2 \le t < 0 (partial overlap from left)

Overlap from τ=−1\tau = -1 to τ=t+1\tau = t + 1:

y(t)=∫−1t+11 dτ=t+2y(t) = \int_{-1}^{t+1} 1\,d\tau = t + 2

Case 3: 0≤t<20 \le t < 2 (partial overlap from right)

Overlap from τ=t−1\tau = t - 1 to τ=1\tau = 1:

y(t)=∫t−111 dτ=2−ty(t) = \int_{t-1}^{1} 1\,d\tau = 2 - t

Case 4: t≥2t \ge 2

t−1>1t - 1 > 1: no overlap, y(t)=0y(t) = 0.

Result

y(t)={t+2,−2≤t<02−t,0≤t<20,∣t∣≥2  =  (2−∣t∣) for ∣t∣<2y(t) = \begin{cases} t + 2, & -2 \le t < 0 \\ 2 - t, & 0 \le t < 2 \\ 0, & |t| \ge 2 \end{cases} \;=\; (2 - |t|)\ \text{for } |t| < 2
 y(t)
   2 |      /\
     |     /  \
   1 |    /    \
     |   /      \
  ---+--/---+----\---> t
      -2    0     2

Answer: a triangular pulse of height 2 at t=0t = 0, base from −2-2 to 22. Convolving two equal rectangles always gives a triangle whose width is the sum of the widths (2 + 2 = 4) and whose peak equals the area of overlap (2).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 5 questions →