Every real-valued signal contains both positive and negative frequency components that carry redundant information. The Hilbert transform discards the negative half and pairs the original signal with a version shifted by exactly −90° at every frequency, producing a complex analytic signal whose magnitude tracks instantaneous amplitude and whose angle tracks instantaneous phase.
This is the standard technique for AM/DSB demodulation, vibration envelope detection, bearing-fault analysis, single-sideband modulation, and instantaneous-frequency measurement — all tasks where the underlying amplitude or phase varies slowly relative to a carrier and must be tracked in real time.
For a real signal
which is equivalently a multiplication of each frequency component by
The analytic signal is
Its one-sided spectrum satisfies
| Quantity | Formula |
|---|---|
| Amplitude (envelope) | $A(t) = |
| Phase | |
| Frequency |
|
Given the
followed by the inverse DFT of
A Type III/IV antisymmetric FIR filter with impulse response
(with a Hamming window
| Method | Time per call | Space | Notes |
|---|---|---|---|
| FFT (block) |
|
Exact, latency |
|
| FIR (streaming) |
|
|
Approx., latency |
| Feature extraction | None | atan2, sqrt, subtract |
FFT method on
- Forward DFT yields
$X[1] = 4$ ,$X[7] = 4$ , all others zero. - Apply one-sided weighting:
$H[1] = 8$ ,$H[7] = 0$ . - Inverse DFT of
$H$ produces the imaginary part$\sin(2\pi n / 8)$ . - Analytic signal:
$z[n] = \cos(2\pi n/8) + j\sin(2\pi n/8)$ , amplitude$\equiv 1$ .
- DC and Nyquist bins — their imaginary parts must remain zero; the one-sided formula preserves this.
-
Phase unwrapping — before computing instantaneous frequency, the phase difference must be mapped to
$(-\pi, \pi]$ to suppress$2\pi$ jumps. - Block-edge artefacts — the FFT method treats the block as periodic; trim the first and last few samples when asserting accuracy.
-
FIR group delay — the FIR output is delayed by
$(P-1)/2$ samples relative to the input; align before comparing to the FFT method. - FIR bandwidth — the FIR Hilbert approximation degrades near DC and Nyquist; use only over the filter's flat passband.
- Block FFT method — exact, no ripple, requires a complete block; suitable for offline or buffered processing.
- FIR streaming method — causal, constant memory, approximate; length and window choice trade accuracy against latency.
- Quadrature-oscillator method — for narrowband signals, a simple IIR resonator can approximate the 90° shift with even lower cost.
- AM/DSB envelope demodulation and AGC.
- Vibration and bearing-fault analysis (envelope of resonance band).
- Single-sideband (SSB) radio modulation/demodulation.
- Instantaneous frequency tracking in FM receivers and Doppler radar.
- Phase and frequency estimation in PLLs.
- Uses
FastFourierTransform/FastFourierTransformRadix2Implas the block back-end. RealFastFourierTransformis an alternative back-end for purely real inputs.ConvolutionCorrelationprovides the FIR convolution primitive used by the streaming path.SignalDetectors(RMS envelope, peak hold) offers cheaper non-coherent envelope estimation.
- S. L. Marple, "Computing the Discrete-Time Analytic Signal via FFT," IEEE Transactions on Signal Processing, 47(9), 2600–2603, 1999.
- A. V. Oppenheim and R. W. Schafer, Discrete-Time Signal Processing, 3rd ed., Prentice Hall, Ch. 12.
- S. W. Smith, The Scientist and Engineer's Guide to Digital Signal Processing, Ch. 9 (available free online).