Skip to main content

DTFT of a rectangular pulse

Short answer

The DTFT of the rectangular pulse x[n]=1 for |n|≤N₁ is X(e^{jω}) = sin(ω(N₁+½)) / sin(ω/2). It is real, even, periodic 2π, with peak 2N₁+1 at ω=0. Derived by summing geometric series from −N₁ to N₁.

Find the Fourier transform of the given signal. x[n] = 1 for −N₁ ≤ n ≤ N₁; = 0 elsewhere

The signal is a rectangular pulse of 2N1+12N_1 + 1 samples, all equal to 1, centred at n=0n = 0.

DTFT

X(ejω)=∑n=−N1N1e−jωnX(e^{j\omega}) = \sum_{n=-N_1}^{N_1}e^{-j\omega n}

Put m=n+N1m = n + N_1 (m=0m = 0 to 2N12N_1) and sum the geometric series:

X(ejω)=ejωN1∑m=02N1e−jωm=ejωN11−e−jω(2N1+1)1−e−jω=ejω(N1+12)−e−jω(N1+12)ejω/2−e−jω/2\begin{aligned} X(e^{j\omega}) &= e^{j\omega N_1}\sum_{m=0}^{2N_1}e^{-j\omega m} = e^{j\omega N_1}\frac{1 - e^{-j\omega(2N_1+1)}}{1 - e^{-j\omega}} \\ &= \frac{e^{j\omega(N_1+\frac{1}{2})} - e^{-j\omega(N_1+\frac{1}{2})}}{e^{j\omega/2} - e^{-j\omega/2}} \end{aligned}

The second line comes from multiplying the numerator and denominator by ejω/2e^{j\omega/2}. Using ejθ−e−jθ=2jsin⁡θe^{j\theta} - e^{-j\theta} = 2j\sin\theta:

X(ejω)=sin⁡(ω(N1+12))sin⁡(ω/2)\boxed{X(e^{j\omega}) = \frac{\sin\left(\omega\left(N_1 + \frac{1}{2}\right)\right)}{\sin(\omega/2)}}

At ω=0\omega = 0 the value is 2N1+12N_1 + 1 (by L'Hôpital, or as the number of samples).

Remarks

  • X(ejω)X(e^{j\omega}) is real and even, because x[n]x[n] is real and even.
  • It is the DT counterpart of the sinc function and is periodic with period 2π2\pi.
  • The first zeros are at ω=±2π2N1+1\omega = \pm\frac{2\pi}{2N_1+1}. A wider pulse gives a narrower main lobe.
  • Example: for N1=2N_1 = 2, X(ejω)=sin⁡(2.5ω)sin⁡(0.5ω)X(e^{j\omega}) = \frac{\sin(2.5\omega)}{\sin(0.5\omega)}, with peak 5 and first zeros at ±2π/5\pm 2\pi/5.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 3 questions →