Those green and red equalizer bars on console stereo systems? They show you some important information about audio signals. As a child, I used to wonder what they meant, and with some experimentation I realized they said something about the sound level for different pitches. Your equalizer bars are really showing you the intensity of sound within a specific bandwidth.
Although converting an electrical signal level into LED light on an equalizer bar is rather simple, there are more elegant ways to examine signal intensity in different frequency ranges. The principle mathematical tool in your toolbox is an FFT and power spectral density, which shows you how the signal level is distributed across the frequency domain. This is often used interchangeably with power spectrum, but there is no difference between power spectrum vs. power spectral density.
Understanding Power Spectrum vs. Power Spectral Density
These two terms are used interchangeably throughout the signal processing and mathematics communities; at a conceptual level, there is no difference between these two terms. The two terms both describe how the intensity of a time-varying signal is distributed in the frequency domain. The two terms are sometimes distinguished by the time-domain input that was used to generate the frequency-domain distribution. In other words, these two terms are related to some other important concepts in signal processing, and it helps to understand the fundamental measurements that go into creating a power spectrum.
Power spectrum and power spectral density are agnostic to the type of signal that is used to generate an intensity distribution in the frequency domain. Such a signal could be a broadband noise measurement, a harmonic analog signal, or a wideband signal of any type. Measurements are always gathered in the time domain, after which they can be converted to the frequency domain for further analysis.
Calculating the Bandlimited Power Spectrum
One important distinction between power spectrum vs. power spectral density arises when we consider the total signal content within a limited band. This quantity is sometimes called a bandlimited power spectrum, or simply power spectrum. This is likely the primary source of confusion around the terms “power spectrum” and “power spectral density.” For a given power spectral density S, the bandlimited power spectrum is:
Bandlimited power spectrum vs. power spectral density
If the units of your time-domain signal are V, then the units of power spectral density are V2/Hz, and the units for the bandlimited power spectrum are V2. Power spectral densities in electronics may be written in W/Hz or dBm/Hz. Note that the use of a square unit in electronics is quite important as electrical power is proportional to V2 or I2.
If you examine noise spectral bandwidth specifications for many components, you’ll see that the units are in V/√Hz, or in terms of the standard deviation in the signal level. Here, the units of V2/Hz for the power spectral density represent the variance in the time-domain voltage level, which just happens to be proportional to the electrical power content for a given signal in the frequency domain.
Power Spectral Density: Continuous and Discrete Signals
Continuous and discrete signals are treated differently in terms of the mathematics, although the mathematical manipulations in continuous or discrete time are analogous. The power spectral density S for a continuous or discrete signal in the time-domain x(t) is:
Power spectral density for continuous and discrete signals
Here, the power spectral density is just the Fourier transform of the signal. For the discrete case, the power spectral density can be calculated using the FFT algorithm. Also for the discrete case, the time-domain signal x(t) contains N samples, and n refers to the sample number (total sampling time of T = NΔt). Here, the lower integration limit starts at t = 0 in order to account for causal signal behavior. For any time series, the series’ autocorrelation function can be used to calculate the power spectral density:
Power spectral density in terms of autocorrelation
This formulation takes advantage of the Weiner-Khinchin theorem, which states that the autocorrelation function of x(t) and the power spectral density are Fourier transform pairs. In the discrete case, x(t) has been written as a function of the sample number n. In the continuous case for the power spectral density, a cosine transform has been used as autocorrelation functions are even functions.
The formulation presented above only applies to stationary processes (i.e., time invariant). In other words, the underlying signal behavior is purely deterministic (no noise), or the underlying signal follows a stationary process (e.g., thermal noise). Note that, in signal processing, we have not normalized the above autocorrelation quantities, so these terms are really just an autocovariance with zero mean! If you want to generalize the above formulation to any case, including non-stationary processes (e.g., various stochastic processes), the above equations need to be reformulated in terms of the autocovariance from probability theory:
Autocorrelation for non-stationary processes for calculating power spectral density
This can then be inserted into the standard equations above to calculate the power spectral density and bandlimited power spectrum.
Calculating a power spectrum vs. power spectral density for electronic systems with noise requires the right PCB design and analysis software. The design tools in Allegro PCB Designer from Cadence integrate with a full suite of analysis tools and allow you to layout powerful electronic systems. These tools are ideal for designing and simulating all aspects of your board’s functionality and signal behavior.
If you’re looking to learn more about how Cadence has the solution for you, talk to us and our team of experts. To watch videos about related topics or see what's new with our suite of design and analysis tools, subscribe to our YouTube channel.