Skip to main content

DTFS of 1 + sin + 3cos + cos(4πn/N)

Short answer

Using Euler: a0 = 1, a1 = 1.5 - j0.5, a_{-1} = 1.5 + j0.5, a2 = a_{-2} = 0.5, others zero. |a0|=1, |a±1|≈1.581, |a±2|=0.5; phases: 0°, ∓18.43°, 0°.

Find the Fourier series coefficients of the signal x[n] = 1 + sin[(2π/N)n] + 3cos[(2π/N)n] + cos[(4π/N)n]

Fundamental frequency ω0=2π/N\omega_0 = 2\pi/N. Rewrite each term with Euler's formula:

x[n]=1+12j[ej2πNn−e−j2πNn]+32[ej2πNn+e−j2πNn]+12[ej4πNn+e−j4πNn]=1+(32+12j)ej(2π/N)n+(32−12j)e−j(2π/N)n+12ej2(2π/N)n+12e−j2(2π/N)n\begin{aligned} x[n] &= 1 + \frac{1}{2j}\left[e^{j\frac{2\pi}{N}n} - e^{-j\frac{2\pi}{N}n}\right] + \frac{3}{2}\left[e^{j\frac{2\pi}{N}n} + e^{-j\frac{2\pi}{N}n}\right] + \frac{1}{2}\left[e^{j\frac{4\pi}{N}n} + e^{-j\frac{4\pi}{N}n}\right] \\ &= 1 + \left(\frac{3}{2} + \frac{1}{2j}\right)e^{j(2\pi/N)n} + \left(\frac{3}{2} - \frac{1}{2j}\right)e^{-j(2\pi/N)n} + \frac{1}{2}e^{j2(2\pi/N)n} + \frac{1}{2}e^{-j2(2\pi/N)n} \end{aligned}

Comparing with x[n]=∑k=⟨N⟩akejk(2π/N)nx[n] = \sum_{k=\langle N\rangle}a_k e^{jk(2\pi/N)n} (and using 12j=−j2\frac{1}{2j} = -\frac{j}{2}):

kkaka_k∣ak∣\lvert a_k\rvert∠ak\angle a_k
011100
132−j2\frac{3}{2} - \frac{j}{2}102=1.581\frac{\sqrt{10}}{2} = 1.581−18.43∘-18.43^\circ
−1-132+j2\frac{3}{2} + \frac{j}{2}1.581+18.43∘+18.43^\circ
212\frac{1}{2}0.500
−2-212\frac{1}{2}0.500
other kk in one period00-

Working: ∣a1∣=1.52+0.52=2.5=1.581|a_1| = \sqrt{1.5^2 + 0.5^2} = \sqrt{2.5} = 1.581; ∠a1=−tan⁡−1(0.5/1.5)=−18.43∘\angle a_1 = -\tan^{-1}(0.5/1.5) = -18.43^\circ.

The coefficients are periodic with period NN: ak+N=aka_{k+N} = a_k, so for example aN−1=a−1a_{N-1} = a_{-1} and aN−2=a−2a_{N-2} = a_{-2} (assuming N≥5N \ge 5 so that the harmonics do not overlap).

 |a_k|  (repeats every N)
 1.581     |     |
     1     |  |  |
   0.5  |  |  |  |  |
       -+--+--+--+--+--> k
       -2 -1  0  1  2

Since x[n]x[n] is real, a−k=ak∗a_{-k} = a_k^*: the magnitude is even and the phase is odd.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 2 questions →