Energy and power spectral density functions describe how a signal's energy or power is distributed across frequencies. They bridge the time-domain and frequency-domain views of a signal, making them essential for tasks like filter design, bandwidth estimation, and noise analysis.
This topic builds directly on the Fourier Transform. Once you can represent a signal in the frequency domain, spectral density tells you where the energy or power actually lives along the frequency axis.
Energy and Power Spectral Density Functions
Definitions and Applications
Energy Spectral Density (ESD) is the magnitude squared of a signal's Fourier transform. It tells you how the signal's energy is spread across different frequencies.
- Used for energy signals: signals with finite total energy, like transient pulses or decaying exponentials.
- Units: energy per unit frequency (joules/Hz).
Power Spectral Density (PSD) describes how the power of a signal is distributed over frequency. It's defined as the Fourier transform of the signal's autocorrelation function.
- Used for power signals: signals with finite average power but infinite total energy, like periodic signals or random processes. These signals go on forever, so total energy is infinite, but average power per unit time is finite.
- Units: power per unit frequency (watts/Hz).
The key distinction: if a signal eventually dies out, you use ESD. If it persists indefinitely, you use PSD.
Computation and Properties
The total energy of a signal equals the integral of its ESD over all frequencies:
Similarly, the average power equals the integral of the PSD:
Both ESD and PSD are always non-negative:
This follows directly from the fact that they involve squared magnitudes.
Connection to the autocorrelation function: Both spectral densities relate to the autocorrelation function through the Fourier transform. This relationship is known as the Wiener-Khinchin theorem. For energy signals, the ESD is the Fourier transform of the energy autocorrelation. For power signals, the PSD is the Fourier transform of the time-averaged autocorrelation:
Fourier Transform and Spectral Density
Relationship between Fourier Transform and Spectral Density
For an energy signal with Fourier transform , the ESD is simply:
You just take the Fourier transform and square its magnitude. That's it.
For a power signal, you can't directly take the Fourier transform (it may not converge). Instead, you truncate the signal to a window of duration , compute the transform , and take a limit:
where is the Fourier transform of restricted to . Dividing by normalizes the result to give power rather than energy.
For any real-valued signal, both ESD and PSD are even functions of frequency:
This is because , and for real signals .
Parseval's Theorem
Parseval's theorem connects time-domain energy to frequency-domain energy:
The left side computes energy in the time domain; the right side computes it in the frequency domain. Both give the same answer. This is useful because sometimes one integral is much easier to evaluate than the other. It also confirms that the Fourier transform preserves energy (up to the scaling factor that depends on which convention you use).
Note the factor here. If you use the convention where the Fourier transform has in the inverse transform, this factor appears in Parseval's theorem. Some textbooks fold it into the forward transform instead, in which case the theorem has no extra factor. Be consistent with whatever convention your course uses.
Signal Energy and Power Calculation
Continuous-Time Signals
To find total energy or average power from spectral density:
- Compute the Fourier transform of the signal.
- Find the spectral density: for ESD, or use the PSD limit formula for power signals.
- Integrate over all frequencies:
In practice, you'll often integrate over a specific frequency band rather than all frequencies to find the energy or power within that band.
Discrete-Time Signals
For a discrete-time signal with discrete-time Fourier transform (DTFT) , the formulas are analogous but the integration is over instead of :
- ESD:
- Total energy:
For power signals, truncate to samples and take the limit:
- PSD:
- Average power:
The finite integration limits reflect the fact that discrete-time signals have periodic spectra with period .
Properties of Spectral Density Functions
Non-Negativity and Bandwidth
Non-negativity (, ) is guaranteed because spectral densities are defined through squared magnitudes. You can never have "negative energy" at a frequency.
Bandwidth is determined from the spectral density by identifying the range of frequencies where the density is significant. There are several common definitions:
- 3 dB bandwidth: the range of frequencies where the spectral density is at least half its peak value.
- Null-to-null bandwidth: the width of the main lobe (between the first zeros on either side of the peak).
- Fractional energy bandwidth: the narrowest band containing some percentage (e.g., 99%) of the total energy.
Signals with wider bandwidth contain more significant frequency components and generally require higher sampling rates and more storage or transmission capacity.
Applications in Signal Analysis and Processing
Spectral density functions show up throughout signal processing:
- Frequency analysis: Identify dominant frequency components, harmonics, and noise floors by examining peaks and shapes in the PSD.
- Sampling rate selection: The bandwidth visible in the spectral density tells you the minimum sampling rate needed (via the Nyquist criterion) for discrete-time processing.
- Filter design: If you know which frequency bands carry useful signal versus noise, you can design lowpass, highpass, or bandpass filters to keep what you want and reject the rest.
- Signal compression: Frequency components with very low spectral density contribute little to the signal. Discarding or coarsely quantizing them reduces data size with minimal perceptual loss.
- System identification: For a linear time-invariant (LTI) system, the output PSD relates to the input PSD through the system's transfer function: . This lets you estimate by comparing input and output spectral densities.