Instantaneous phase and frequency


Instantaneous phase and frequency are important concepts in signal processing that occur in the context of the representation and analysis of time-varying functions. The instantaneous phase of a complex-valued function s, is the real-valued function:
where arg is the complex argument function.
The instantaneous frequency is the temporal rate of the instantaneous phase.
And for a real-valued function s, it is determined from the function's analytic representation, sa:
When φ is constrained to its principal value, either the interval, it is called wrapped phase. Otherwise it is called unwrapped phase, which is a continuous function of argument t, assuming sa is a continuous function of t. Unless otherwise indicated, the continuous form should be inferred.

Examples

Example 1

where ω > 0.
In this simple sinusoidal example, the constant θ is also commonly referred to as phase or phase offset. φ is a function of time; θ is not. In the next example, we also see that the phase offset of a real-valued sinusoid is ambiguous unless a reference is specified. φ is unambiguously defined.

Example 2

where ω > 0.
In both examples the local maxima of s correspond to φ = 2N for integer values of N. This has applications in the field of computer vision.

Instantaneous frequency

Instantaneous angular frequency is defined as:
and instantaneous frequency is defined as:
where φ must be the unwrapped instantaneous phase angle. If φ is wrapped, discontinuities in φ will result in Dirac delta impulses in f.
The inverse operation, which always unwraps phase, is:
This instantaneous frequency, ω, can be derived directly from the real and imaginary parts of sa, instead of the complex arg without concern of phase unwrapping.
2m1 and m2 are the integer multiples of necessary to add to unwrap the phase. At values of time, t, where there is no change to integer m2, the derivative of φ is
For discrete-time functions, this can be written as a recursion:
Discontinuities can then be removed by adding 2 whenever Δφ ≤ −, and subtracting 2 whenever Δφ > . That allows φ to accumulate without limit and produces an unwrapped instantaneous phase. An equivalent formulation that replaces the modulo 2 operation with a complex multiplication is:
where the asterisk denotes complex conjugate. The discrete-time instantaneous frequency is simply the advancement of phase for that sample

Complex representation

In some applications, such as averaging the values of phase at several moments of time, it may be useful to convert each value to a complex number, or vector representation:
This representation is similar to the wrapped phase representation in that it does not distinguish between multiples of 2 in the phase, but similar to the unwrapped phase representation since it is continuous. A vector-average phase can be obtained as the arg of the sum of the complex numbers without concern about wrap-around.