# Instantaneous phase

Instantaneous phase and instantaneous frequency are important concepts in signal processing that occur in the context of the representation and analysis of time-varying functions.  The instantaneous phase (or "local phase" or simply "phase") of a complex-valued function, x(t), is the real-valued function:

${\displaystyle \phi (t)=\arg[x(t)].\,}$   (See arg function.)

And for a real-valued function, s(t), it is determined from the function's analytic representation, sa(t):

${\displaystyle \phi (t)=\mathrm {arg} [s_{\mathrm {a} }(t)].\,}$[1]

When ${\displaystyle \phi (t)\,}$ is constrained to its principal value, either the interval (-π, π]  or  [0, 2π),  it is called the wrapped phase.  Otherwise it is called unwrapped, which is a continuous function of argument ${\displaystyle t,\,}$ assuming ${\displaystyle s_{\mathrm {a} }\,}$ is a continuous function of  ${\displaystyle t.\,}$  Unless otherwise indicated, the continuous form should be inferred.

Instantaneous phase vs. time

## Examples

Example 1:  ${\displaystyle s(t)=A\cdot \cos(\omega t+\theta ),\,}$  where ${\displaystyle A\,}$ and ${\displaystyle \omega \,}$ are positive values.
${\displaystyle s_{\mathrm {a} }(t)=A\cdot e^{i(\omega t+\theta )}\,}$
${\displaystyle \phi (t)=\omega t+\theta \,}$
In this simple sinusoidal, mono-frequency example, the constant ${\displaystyle \theta \,}$ is also commonly referred to as phase or phase offset.  ${\displaystyle \phi (t)\,}$ is a function of time.  ${\displaystyle \theta \,}$ is not.
In the next example, we also see that the phase offset of a real-valued sinusoid is ambiguous unless a reference (sin or cos) is specified.  ${\displaystyle \phi (t)\,}$ is unambiguously defined.
Example 2:  ${\displaystyle s(t)=A\cdot \sin(\omega t)=A\cdot \cos \left(\omega t-{\begin{matrix}{\frac {\pi }{2}}\end{matrix}}\right)\,}$
${\displaystyle s_{\mathrm {a} }(t)=A\cdot e^{i\left(\omega t-{\begin{matrix}{\frac {\pi }{2}}\end{matrix}}\right)}\,}$
${\displaystyle \phi (t)=\omega t-{\begin{matrix}{\frac {\pi }{2}}\end{matrix}}\,}$

In both examples the local maxima of  ${\displaystyle s(t)\,}$  correspond to  ${\displaystyle \phi (t)=N\cdot 2\pi ,\,}$  for integer values of N. This has applications in the field of computer vision.

## Instantaneous frequency

In general, the instantaneous angular frequency is defined as

${\displaystyle \omega (t)=\phi ^{\prime }(t)={d \over dt}\phi (t),\,}$
and the instantaneous frequency (Hz) is:
${\displaystyle f(t)={\frac {1}{2\pi }}\phi ^{\prime }(t).}$.

The inverse operation is:

For discrete-time functions, this can be written as a recursion:

${\displaystyle \phi (nT)\ =\ \phi ((n-1)T)+2\pi Tf(nT)\ =\ \phi ((n-1)T)+\underbrace {\arg(s_{a}(nT))-\arg(s_{a}((n-1)T))} _{\Delta \phi (nT)}.\,}$

Discontinuities can then be removed by adding 2π whenever  ${\displaystyle \scriptstyle \Delta \phi (nT)\ \leq \ -\pi }$  and subtracing 2π whenever  ${\displaystyle \scriptstyle \Delta \phi (nT)\ >\ \pi .}$ That allows ${\displaystyle \scriptstyle \phi (nT)}$ to accumulate without limit and produces an unwrapped instantaneous phase.[1]  An equivalent formulation that replaces the modulo 2π operation with a complex multiplication is:

${\displaystyle \phi (nT)\ =\ \phi ((n-1)T)+\arg(s_{a}(nT)\cdot s_{a}^{*}((n-1)T)),\,}$   where the asterisk denotes complex conjugate.

## 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.

## Citations

1. {{#invoke:citation/CS1|citation |CitationClass=book }}

## References

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}
The text passage is a detailed explanation of the concepts of instantaneous phase and instantaneous frequency in signal processing, including mathematical definitions and examples.
no_question
Given a text passage, determine:
    1. If it contains a mathematical question (including word problems or calculations)
    2. If an answer to that mathematical question is provided in the text

First, describe the content structure you found in 1-2 sentences.

Then provide your analysis in the following format:
TYPE: <one of the following values>
- NO_QUESTION
- SINGLE_QUESTION
- SINGLE_QUESTION_WITH_ANSWER
- MULTIPLE_QUESTIONS
- MULTIPLE_QUESTIONS_WITH_ANSWERS
system
# Instantaneous phase

Instantaneous phase and instantaneous frequency are important concepts in signal processing that occur in the context of the representation and analysis of time-varying functions.  The instantaneous phase (or "local phase" or simply "phase") of a complex-valued function, x(t), is the real-valued function:

${\displaystyle \phi (t)=\arg[x(t)].\,}$   (See arg function.)

And for a real-valued function, s(t), it is determined from the function's analytic representation, sa(t):

${\displaystyle \phi (t)=\mathrm {arg} [s_{\mathrm {a} }(t)].\,}$[1]

When ${\displaystyle \phi (t)\,}$ is constrained to its principal value, either the interval (-π, π]  or  [0, 2π),  it is called the wrapped phase.  Otherwise it is called unwrapped, which is a continuous function of argument ${\displaystyle t,\,}$ assuming ${\displaystyle s_{\mathrm {a} }\,}$ is a continuous function of  ${\displaystyle t.\,}$  Unless otherwise indicated, the continuous form should be inferred.

Instantaneous phase vs. time

## Examples

Example 1:  ${\displaystyle s(t)=A\cdot \cos(\omega t+\theta ),\,}$  where ${\displaystyle A\,}$ and ${\displaystyle \omega \,}$ are positive values.
${\displaystyle s_{\mathrm {a} }(t)=A\cdot e^{i(\omega t+\theta )}\,}$
${\displaystyle \phi (t)=\omega t+\theta \,}$
In this simple sinusoidal, mono-frequency example, the constant ${\displaystyle \theta \,}$ is also commonly referred to as phase or phase offset.  ${\displaystyle \phi (t)\,}$ is a function of time.  ${\displaystyle \theta \,}$ is not.
In the next example, we also see that the phase offset of a real-valued sinusoid is ambiguous unless a reference (sin or cos) is specified.  ${\displaystyle \phi (t)\,}$ is unambiguously defined.
Example 2:  ${\displaystyle s(t)=A\cdot \sin(\omega t)=A\cdot \cos \left(\omega t-{\begin{matrix}{\frac {\pi }{2}}\end{matrix}}\right)\,}$
${\displaystyle s_{\mathrm {a} }(t)=A\cdot e^{i\left(\omega t-{\begin{matrix}{\frac {\pi }{2}}\end{matrix}}\right)}\,}$
${\displaystyle \phi (t)=\omega t-{\begin{matrix}{\frac {\pi }{2}}\end{matrix}}\,}$

In both examples the local maxima of  ${\displaystyle s(t)\,}$  correspond to  ${\displaystyle \phi (t)=N\cdot 2\pi ,\,}$  for integer values of N. This has applications in the field of computer vision.

## Instantaneous frequency

In general, the instantaneous angular frequency is defined as

${\displaystyle \omega (t)=\phi ^{\prime }(t)={d \over dt}\phi (t),\,}$
and the instantaneous frequency (Hz) is:
${\displaystyle f(t)={\frac {1}{2\pi }}\phi ^{\prime }(t).}$.

The inverse operation is:

For discrete-time functions, this can be written as a recursion:

${\displaystyle \phi (nT)\ =\ \phi ((n-1)T)+2\pi Tf(nT)\ =\ \phi ((n-1)T)+\underbrace {\arg(s_{a}(nT))-\arg(s_{a}((n-1)T))} _{\Delta \phi (nT)}.\,}$

Discontinuities can then be removed by adding 2π whenever  ${\displaystyle \scriptstyle \Delta \phi (nT)\ \leq \ -\pi }$  and subtracing 2π whenever  ${\displaystyle \scriptstyle \Delta \phi (nT)\ >\ \pi .}$ That allows ${\displaystyle \scriptstyle \phi (nT)}$ to accumulate without limit and produces an unwrapped instantaneous phase.[1]  An equivalent formulation that replaces the modulo 2π operation with a complex multiplication is:

${\displaystyle \phi (nT)\ =\ \phi ((n-1)T)+\arg(s_{a}(nT)\cdot s_{a}^{*}((n-1)T)),\,}$   where the asterisk denotes complex conjugate.

## 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.

## Citations

1. {{#invoke:citation/CS1|citation |CitationClass=book }}

## References

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}
user
The text passage is a detailed explanation of the concepts of instantaneous phase and instantaneous frequency in signal processing, including mathematical definitions and examples.

TYPE: NO_QUESTION