Skip to main content

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

Short answer

Using Euler expansion: a0=1, a1=1.5−j0.5 (magnitude 1.581, phase −18.43°), a_{-1}=1.5+j0.5 (1.581, +18.43°), a2=j0.5 (0.5, +90°), a_{-2}=−j0.5 (0.5, −90°). Other coefficients zero within period; all repeat every N.

Find and plot the Fourier series coefficients (magnitude and associated phase) for the following signal with period N. x[n] = 1 + sin((2π/N)n) + 3cos((2π/N)n) + cos((4π/N)n + π/2)

Fundamental frequency ω0=2π/N\omega_0 = 2\pi/N. Expand each term with Euler's formula and read off the coefficients of ejkω0ne^{jk\omega_0 n}:

x[n]=1+12j[ejω0n−e−jω0n]+32[ejω0n+e−jω0n]+12[ej(2ω0n+π/2)+e−j(2ω0n+π/2)]=1+(32+12j)ejω0n+(32−12j)e−jω0n+12ejπ/2ej2ω0n+12e−jπ/2e−j2ω0n\begin{aligned} x[n] &= 1 + \frac{1}{2j}\left[e^{j\omega_0 n} - e^{-j\omega_0 n}\right] + \frac{3}{2}\left[e^{j\omega_0 n} + e^{-j\omega_0 n}\right] \\ &\quad + \frac{1}{2}\left[e^{j(2\omega_0 n + \pi/2)} + e^{-j(2\omega_0 n + \pi/2)}\right] \\ &= 1 + \left(\frac{3}{2} + \frac{1}{2j}\right)e^{j\omega_0 n} + \left(\frac{3}{2} - \frac{1}{2j}\right)e^{-j\omega_0 n} \\ &\quad + \frac{1}{2}e^{j\pi/2}e^{j2\omega_0 n} + \frac{1}{2}e^{-j\pi/2}e^{-j2\omega_0 n} \end{aligned}

Fourier series coefficients (one period, k=−2k = -2 to 22)

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
2j2\frac{j}{2}0.5+90∘+90^\circ
−2-2−j2-\frac{j}{2}0.5−90∘-90^\circ
others in the 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 (−0.322-0.322 rad).

The coefficients repeat with period NN: ak+N=aka_{k+N} = a_k (e.g. aN−1=a−1a_{N-1} = a_{-1}, aN−2=a−2a_{N-2} = a_{-2}). Here N≥5N \ge 5 is assumed so that the harmonics do not overlap.

Plots (one period, k=−2…2k = -2 \dots 2, repeating every NN)

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

 angle a_k (deg)
    90              |
 18.43     |        |
       -+--+--o--+--+--> k
-18.43  |        |
   -90  |
       -2 -1  0  1  2

Magnitude is even in kk and phase is odd in kk, as expected for a real signal (a−k=ak∗a_{-k} = a_k^*).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Signals and Systems chapter 2 questions →