Skip to main content

DTFS spectrum of {1, −0.5, 0, 0, 0.5}

Short answer

Compute ak = (1/5) sum x[n] e^{-j 2pi kn/5}, giving ak = 0.2 + j0.2 sin(2pi k/5). Magnitudes: |a0|=0.2, |a1|=|a4|≈0.276, |a2|=|a3|≈0.232. Phases: 0°, 43.6°, 30.5°, -30.5°, -43.6°.

Find the frequency domain representation (both magnitude and phase plot) of a periodic signal defined as x[n] = {1, −0.5, 0, 0, 0.5} (x[0] = 1), with period N = 5.

The signal has period N=5N = 5, so ω0=2π/5\omega_0 = 2\pi/5 and

ak=15∑n=04x[n] e−jk(2π/5)na_k = \frac{1}{5}\sum_{n=0}^{4}x[n]\,e^{-jk(2\pi/5)n}

One period: x[0]=1x[0] = 1, x[1]=−0.5x[1] = -0.5, x[2]=0x[2] = 0, x[3]=0x[3] = 0, x[4]=0.5x[4] = 0.5. Because of periodicity x[4]=x[−1]x[4] = x[-1], so it is easier to sum over n=−1,0,1n = -1, 0, 1 (note x[−1]=0.5x[-1] = 0.5):

ak=15[x[−1]ejk2π/5+x[0]+x[1]e−jk2π/5]=15[1+0.5ejk2π/5−0.5e−jk2π/5]=15[1+0.5 (2j)sin⁡2πk5]=15[1+jsin⁡2πk5]\begin{aligned} a_k &= \frac{1}{5}\left[x[-1]e^{jk2\pi/5} + x[0] + x[1]e^{-jk2\pi/5}\right] \\ &= \frac{1}{5}\left[1 + 0.5e^{jk2\pi/5} - 0.5e^{-jk2\pi/5}\right] \\ &= \frac{1}{5}\left[1 + 0.5\,(2j)\sin\frac{2\pi k}{5}\right] \\ &= \frac{1}{5}\left[1 + j\sin\frac{2\pi k}{5}\right] \end{aligned}

Magnitude and phase:

∣ak∣=151+sin⁡22πk5,∠ak=tan⁡−1(sin⁡2πk5)|a_k| = \frac{1}{5}\sqrt{1 + \sin^2\frac{2\pi k}{5}}, \qquad \angle a_k = \tan^{-1}\left(\sin\frac{2\pi k}{5}\right)

Values over one period

kksin⁡(2πk/5)\sin(2\pi k/5)aka_k∣ak∣\lvert a_k\rvert∠ak\angle a_k
000.20.20.2000∘0^\circ
10.9510.2+j0.1900.2 + j0.1900.27643.56∘43.56^\circ
20.5880.2+j0.1180.2 + j0.1180.23230.45∘30.45^\circ
3−0.588-0.5880.2−j0.1180.2 - j0.1180.232−30.45∘-30.45^\circ
4−0.951-0.9510.2−j0.1900.2 - j0.1900.276−43.56∘-43.56^\circ

(Since ak+5=aka_{k+5} = a_k: a−1=a4a_{-1} = a_4, a−2=a3a_{-2} = a_3.)

Magnitude and phase plots (repeat every 5)

 |a_k|  (repeats every 5)
 0.276     |     |
 0.232  |  |     |  |
   0.2  |  |  |  |  |
       -+--+--+--+--+--> k
       -2 -1  0  1  2

 angle a_k (deg)
 43.56           |
 30.45           |  |
       -+--+--o--+--+--> k
-30.45  |  |
-43.56     |
       -2 -1  0  1  2

The magnitude spectrum is even and the phase spectrum is odd in kk, as expected for a real x[n]x[n].

Check (synthesis at n=0n = 0): ∑k=04ak=5×0.2+j(0)=1=x[0]\sum_{k=0}^{4}a_k = 5\times 0.2 + j(0) = 1 = x[0]. Correct.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 2 questions →