Step 1: Calculate the power spectrum of the given signal using the formula:
\[ P(f) = \frac{1}{N} \left| \sum_{n=0}^{N-1} x(n)e^{-j2\pi fn} \right|^2 \]
where \( x(n) \) is the signal, \( N \) is the number of samples, and \( f \) is the frequency.
Show more…