Misplaced Pages

Phase (waves): Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 04:53, 16 November 2020 editMicsthepick (talk | contribs)39 edits See also: Add link to Hilbert transformTag: 2017 wikitext editor← Previous edit Latest revision as of 03:55, 17 December 2024 edit undo99.21.195.226 (talk) Mathematical definition: fix formatting 
(47 intermediate revisions by 26 users not shown)
Line 1: Line 1:
{{Short description|The elapsed fraction of a cycle of a periodic function}}
] ]
In ] and ], the '''phase''' of a ] <math>F</math> of some ] variable <math>t</math> (such as time) is an ] representing the number of ] spanned by that variable. It is denoted <math>\phi(t)</math> and expressed in such a ] that it varies by one full ] as the variable <math>t</math> goes through each period (and <math>F(t)</math> goes through each complete cycle). It may be ] in any ] such as ] or ], thus increasing by 360° or <math>2\pi</math> as the variable <math>t</math> completes a full period.<ref name=Ballou2005>{{cite book |last=Ballou |first=Glen |title=Handbook for sound engineers |url=https://books.google.com/books?id=y0d9VA0lkogC&pg=PA1499 |edition=3 |year=2005 |publisher=Focal Press, Gulf Professional Publishing |isbn=978-0-240-80758-4 |page=1499}}</ref>


In ] and ], the '''phase''' (symbol φ or ϕ) of a ] or other ] <math>F</math> of some ] variable <math>t</math> (such as time) is an ]-like quantity representing the fraction of the cycle covered up to <math>t</math>. It is expressed in such a ] that it varies by one full ] as the variable <math>t</math> goes through each ] (and <math>F(t)</math> goes through each complete cycle). It may be ] in any ] such as ] or ], thus increasing by 360° or <math>2\pi</math> as the variable <math>t</math> completes a full period.<ref name=Ballou2005>{{cite book |last=Ballou |first=Glen |title=Handbook for sound engineers |url=https://books.google.com/books?id=y0d9VA0lkogC&pg=PA1499 |edition=3 |year=2005 |publisher=Focal Press, Gulf Professional Publishing |isbn=978-0-240-80758-4 |page=1499}}</ref>
This convention is especially appropriate for a ]al function, since its value at any argument <math>t</math> then can be expressed as the ] of the phase <math>\phi(t)</math>, multiplied by some factor (the ] of the sinusoid). (The ] may be used instead of sine, depending on where one considers each period to start.)


This convention is especially appropriate for a ]al function, since its value at any argument <math>t</math> then can be expressed as <math>\varphi(t)</math>, the ] of the phase, multiplied by some factor (the ] of the sinusoid). (The ] may be used instead of sine, depending on where one considers each period to start.)
Usually, whole turns are ignored when expressing the phase; so that <math>\phi(t)</math> is also a periodic function, with the same period as <math>F</math>, that repeatedly scans the same range of angles as <math>t</math> goes through each period. Then, <math>F</math> is said to be "at the same phase" at two argument values <math>t_1</math> and <math>t_2</math> (that is, <math>\phi(t_1) = \phi(t_2)</math>) if the difference between them is a whole number of periods.


Usually, whole turns are ignored when expressing the phase; so that <math>\varphi(t)</math> is also a periodic function, with the same period as <math>F</math>, that repeatedly scans the same range of angles as <math>t</math> goes through each period. Then, <math>F</math> is said to be "at the same phase" at two argument values <math>t_1</math> and <math>t_2</math> (that is, <math>\varphi(t_1) = \varphi(t_2)</math>) if the difference between them is a whole number of periods.
The numeric value of the phase <math>\phi(t)</math> depends on the arbitrary choice of the start of each period, and on the interval of angles that each period is to be mapped to.


The term "phase" is also used when comparing a periodic function <math>F</math> with a shifted version <math>G</math> of it. If the shift in <math>t</math> is expressed as a fraction of the period, and then scaled to an angle <math>\varphi</math> spanning a whole turn, one gets the '''phase shift''', '''phase offset''', or '''phase difference''' of <math>G</math> relative to <math>F</math>. If <math>F</math> is a "canonical" function for a class of signals, like <math>\sin(t)</math> is for all sinusoidal signals, then <math>\varphi</math> is called the '''initial phase''' of <math>G</math>. The numeric value of the phase <math>\varphi(t)</math> depends on the arbitrary choice of the start of each period, and on the interval of angles that each period is to be mapped to.
The term "phase" is also used when comparing a periodic function <math>F</math> with a shifted version <math>G</math> of it. If the shift in <math>t</math> is expressed as a fraction of the period, and then scaled to an angle <math>\varphi</math> spanning a whole turn, one gets the ''phase shift'', ''phase offset'', or ''phase difference'' of <math>G</math> relative to <math>F</math>. If <math>F</math> is a "canonical" function for a class of signals, like <math>\sin(t)</math> is for all sinusoidal signals, then <math>\varphi</math> is called the ''initial phase'' of <math>G</math>.


== Mathematical definition == == Mathematical definition ==
Let <math>F</math> be a periodic signal (that is, a function of one real variable), and <math>T</math> be its period (that is, the smallest positive ] such that <math>F(t + T) = F(t)</math> for all <math>t</math>). Then the '''phase of '''<math>F</math> '''at''' any argument <math>t</math> is Let the signal <math>F</math> be a periodic function of one real variable, and <math>T</math> be its period (that is, the smallest positive ] such that <math>F(t + T) = F(t)</math> for all <math>t</math>). Then the ''phase of <math>F</math> at'' any argument <math>t</math> is
:<math>\phi(t) = 2\pi\left\!\!\right]</math> <math display="block">\varphi(t) = 2\pi\left\!\!\right]</math>


Here <math>\!]\!\,</math><!-- The double square brackets benefit from the "hinted" latex renderer. --> denotes the fractional part of a real number, discarding its integer part; that is, <math>\!] = x - \left\lfloor x \right\rfloor\!\,</math>; and <math>t_0</math> is an arbitrary "origin" value of the argument, that one considers to be the beginning of a cycle. Here <math>\!]\!\,</math><!-- The double square brackets benefit from the "hinted" latex renderer. --> denotes the fractional part of a real number, discarding its integer part; that is, <math>\!] = x - \left\lfloor x \right\rfloor\!\,</math>; and <math>t_0</math> is an arbitrary "origin" value of the argument, that one considers to be the beginning of a cycle.


This concept can be visualized by imagining a ] with a hand that turns at constant speed, making a full turn every <math>T</math> seconds, and is pointing straight up at time <math>t_0</math>. The phase <math>\phi(t)</math> is then the angle from the 12:00 position to the current position of the hand, at time <math>t</math>, measured ]. This concept can be visualized by imagining a ] with a hand that turns at constant speed, making a full turn every <math>T</math> seconds, and is pointing straight up at time <math>t_0</math>. The phase <math>\varphi(t)</math> is then the angle from the 12:00 position to the current position of the hand, at time <math>t</math>, measured ].


The phase concept is most useful when the origin <math>t_0</math> is chosen based on features of <math>F</math>. For example, for a sinusoid, a convenient choice is any <math>t</math> where the function's value changes from zero to positive. The phase concept is most useful when the origin <math>t_0</math> is chosen based on features of <math>F</math>. For example, for a sinusoid, a convenient choice is any <math>t</math> where the function's value changes from zero to positive.


The formula above gives the phase as an angle in radians between 0 and <math>2\pi</math>. To get the phase as an angle between <math>-\pi</math> and <math>+\pi</math>, one uses instead The formula above gives the phase as an angle in radians between 0 and <math>2\pi</math>. To get the phase as an angle between <math>-\pi</math> and <math>+\pi</math>, one uses instead
:<math>\phi(t) = 2\pi\left(\left\!\!\right] - \frac{1}{2}\right)</math> <math display="block">\varphi(t) = 2\pi\left(\left\!\!\right] - \frac{1}{2}\right)</math>


The phase expressed in degrees (from 0° to 360°, or from −180° to +180°) is defined the same way, except with "360°" in place of "2π". The phase expressed in degrees (from 0° to 360°, or from −180° to +180°) is defined the same way, except with "360°" in place of "2π".


===Consequences=== ===Consequences===
With any of the above definitions, the phase <math>\phi(t)</math> of a periodic signal is periodic too, with the same period <math>T</math>: With any of the above definitions, the phase <math>\varphi(t)</math> of a periodic signal is periodic too, with the same period <math>T</math>:
:<math>\phi(t + T) = \phi(t)\quad\quad{}</math> for all <math>t</math>. <math display="block">\varphi(t + T) = \varphi(t)\quad\quad \text{ for all } t.</math>


The phase is zero at the start of each period; that is The phase is zero at the start of each period; that is
:<math>\phi(t_0 + kT) = 0\quad\quad{}</math> for any integer <math>k</math>. <math display="block">\varphi(t_0 + kT) = 0\quad\quad \text{ for any integer } k.</math>


Moreover, for any given choice of the origin <math>t_0</math>, the value of the signal <math>F</math> for any argument <math>t</math> depends only on its phase at <math>t</math>. Namely, one can write <math>F(t) = f(\phi(t))</math>, where <math>f</math> is a function of an angle, defined only for a single full turn, that describes the variation of <math>F</math> as <math>t</math> ranges over a single period. Moreover, for any given choice of the origin <math>t_0</math>, the value of the signal <math>F</math> for any argument <math>t</math> depends only on its phase at <math>t</math>. Namely, one can write <math>F(t) = f(\varphi(t))</math>, where <math>f</math> is a function of an angle, defined only for a single full turn, that describes the variation of <math>F</math> as <math>t</math> ranges over a single period.


In fact, every periodic signal <math>F</math> with a specific ] can be expressed as In fact, every periodic signal <math>F</math> with a specific ] can be expressed as
:<math>F(t) = A\,w(\phi(t))</math> <math display="block">F(t) = A\,w(\varphi(t))</math>
where <math>w</math> is a "canonical" function of a phase angle in where <math>w</math> is a "canonical" function of a phase angle in 0 to 2π, that describes just one cycle of that waveform; and <math>A</math> is a scaling factor for the amplitude. (This claim assumes that the starting time <math>t_0</math> chosen to compute the phase of <math>F</math> corresponds to argument 0 of <math>w</math>.)
0 to 2π, that describes just one cycle of that waveform; and <math>A</math> is a scaling factor for the amplitude. (This claim assumes that the starting time <math>t_0</math> chosen to compute the phase of <math>F</math> corresponds to argument 0 of <math>w</math>.)


==Adding and comparing phases== ==Adding and comparing phases==
Since phases are angles, any whole full turns should usually be ignored when performing arithmetic operations on them. That is, the sum and difference of two phases (in degrees) should be computed by the formulas Since phases are angles, any whole full turns should usually be ignored when performing arithmetic operations on them. That is, the sum and difference of two phases (in degrees) should be computed by the formulas
:<math>360\,\left\!\!\right]\quad\quad</math> and <math>\quad\quad 360\,\left\!\!\right]</math> <math display="block">360\,\left\!\!\right]\quad\quad \text{ and } \quad\quad 360\,\left\!\!\right]</math>
respectively. Thus, for example, the sum of phase angles {{nowrap|190° + 200°}} is 30° ({{nowrap|1=190 + 200 = 390}}, minus one full turn), and subtracting 50° from 30° gives a phase of 340° ({{nowrap|1=30 50 = −20}}, plus one full turn).

respectively. Thus, for example, the sum of phase angles {{nowrap|190° + 200°}} is 30° ({{nowrap|190 + 200 {{=}} 390}}, minus one full turn), and subtracting 50° from 30° gives a phase of 340° ({{nowrap|30 - 50 {{=}} −20}}, plus one full turn).


Similar formulas hold for radians, with <math>2\pi</math> instead of 360. Similar formulas hold for radians, with <math>2\pi</math> instead of 360.


== Phase shift {{anchor|Phase shift}} {{anchor|Phase difference}} == == Phase shift {{anchor|Phase shift|Shift|Phase difference|Difference}} ==
] ]
]]] ]]]


The difference <math>\varphi(t) = \varphi_G(t) - \varphi_F(t)</math> between the phases of two periodic signals <math>F</math> and <math>G</math> is called the ''phase difference'' or ''phase shift'' of <math>G</math> relative to <math>F</math>.<ref name=Ballou2005/> At values of <math>t</math> when the difference is zero, the two signals are said to be ''in phase;'' otherwise, they are ''out of phase'' with each other.
===General definition===
The difference <math>\varphi(t) = \phi_G(t) - \phi_F(t)</math> between the phases of two periodic signals <math>F</math> and <math>G</math> is called the '''phase difference''' of <math>G</math> relative to <math>F</math>.<ref name=Ballou2005/> At values of <math>t</math> when the difference is zero, the two signals are said to be '''in phase''', otherwise they are '''out of phase''' with each other.


In the clock analogy, each signal is represented by a hand (or pointer) of the same clock, both turning at constant but possibly different speeds. The phase difference is then the angle between the two hands, measured clockwise. In the clock analogy, each signal is represented by a hand (or pointer) of the same clock, both turning at constant but possibly different speeds. The phase difference is then the angle between the two hands, measured clockwise.
Line 61: Line 60:


===For sinusoids=== ===For sinusoids===
For sinusoidal signals, when the phase difference <math>\varphi(t)</math> is 180° (<math>\pi</math> radians), one says that the phases are '''opposite''', and that the signals are '''in antiphase'''. Then the signals have opposite signs, and ] occurs. For sinusoidal signals, when the phase difference <math>\varphi(t)</math> is 180° (<math>\pi</math> radians), one says that the phases are ''opposite'', and that the signals are ''in antiphase''. Then the signals have opposite signs, and ] occurs.
{{anchor|Reversal}}Conversely, a ''phase reversal'' or ''phase inversion'' implies a 180-degree phase shift.<ref>{{Cite web|url=https://www.its.bldrdoc.gov/fs-1037/fs-1037c.htm|title = Federal Standard 1037C: Glossary of Telecommunications Terms}}</ref>


When the phase difference <math>\varphi(t)</math> is a quarter of turn (a right angle, {{nowrap|+90° {{=}} π/2}} or {{nowrap|−90° {{=}} 270° {{=}} −π/2 {{=}} 3π/2}}), sinusoidal signals are sometimes said to be '''in quadrature'''. {{anchor|Quadrature}}When the phase difference <math>\varphi(t)</math> is a quarter of turn (a right angle, {{nowrap|1=+90° = π/2}} or {{nowrap|1=−90° = 270° = −π/2 = 3π/2}}), sinusoidal signals are sometimes said to be in ''quadrature'', e.g., ] of a composite signal or even different signals (e.g., voltage and current).


If the frequencies are different, the phase difference <math>\varphi(t)</math> increases linearly with the argument <math>t</math>. The periodic changes from reinforcement and opposition cause a phenomenon called ]. If the frequencies are different, the phase difference <math>\varphi(t)</math> increases linearly with the argument <math>t</math>. The periodic changes from reinforcement and opposition cause a phenomenon called ].


===For shifted signals=== ===For shifted signals===
The phase difference is especially important when comparing a periodic signal <math>F</math> with a shifted and possibly scaled version <math>G</math> of it. That is, suppose that <math>G(t) = \alpha\,F(t + \tau)</math> for some constants <math>\alpha,\tau</math> and all <math>t</math>. Suppose also that the origin for computing the phase of <math>G</math> has been shifted too. In that case, the phase difference <math>\varphi</math> is a constant (independent of <math>t</math>), called the '''phase shift''' or '''phase offset''' of <math>G</math> relative to <math>F</math>. In the clock analogy, this situation corresponds to the two hands turning at the same speed, so that the angle between them is constant. The phase difference is especially important when comparing a periodic signal <math>F</math> with a shifted and possibly scaled version <math>G</math> of it. That is, suppose that <math>G(t) = \alpha\,F(t + \tau)</math> for some constants <math>\alpha,\tau</math> and all <math>t</math>. Suppose also that the origin for computing the phase of <math>G</math> has been shifted too. In that case, the phase difference <math>\varphi</math> is a constant (independent of <math>t</math>), called the 'phase shift' or 'phase offset' of <math>G</math> relative to <math>F</math>. In the clock analogy, this situation corresponds to the two hands turning at the same speed, so that the angle between them is constant.


In this case, the phase shift is simply the argument shift <math>\tau</math>, expressed as a fraction of the common period <math>T</math> (in terms of the ]) of the two signals and then scaled to a full turn: In this case, the phase shift is simply the argument shift <math>\tau</math>, expressed as a fraction of the common period <math>T</math> (in terms of the ]) of the two signals and then scaled to a full turn:
:<math>\varphi = 2\pi\left\!\!\right]</math>. <math display="block">\varphi = 2\pi \left\!\!\right].</math>


If <math>F</math> is a "canonical" representative for a class of signals, like <math>\sin(t)</math> is for all sinusoidal signals, then the phase shift <math>\varphi</math> called simply the '''initial phase''' of <math>G</math>. If <math>F</math> is a "canonical" representative for a class of signals, like <math>\sin(t)</math> is for all sinusoidal signals, then the phase shift <math>\varphi</math> called simply the ''initial phase'' of <math>G</math>.


Therefore, when two periodic signals have the same frequency, they are always in phase, or always out of phase. Physically, this situation commonly occurs, for many reasons. For example, the two signals may be a periodic soundwave recorded by two microphones at separate locations. Or, conversely, they may be periodic soundwaves created by two separate speakers from the same electrical signal, and recorded by a single microphone. They may be a ] signal that reaches the receiving antenna in a straight line, and a copy of it that was reflected off a large building nearby. Therefore, when two periodic signals have the same frequency, they are always in phase, or always out of phase. Physically, this situation commonly occurs, for many reasons. For example, the two signals may be a periodic soundwave recorded by two microphones at separate locations. Or, conversely, they may be periodic soundwaves created by two separate speakers from the same electrical signal, and recorded by a single microphone. They may be a ] signal that reaches the receiving antenna in a straight line, and a copy of it that was reflected off a large building nearby.
Line 83: Line 83:


The phase shift of the co-sine function relative to the sine function is +90°. It follows that, for two sinusoidal signals <math>F</math> and <math>G</math> with same frequency and amplitudes <math>A</math> and <math>B</math>, and <math>G</math> has phase shift +90° relative to <math>F</math>, the sum <math>F+G</math> is a sinusoidal signal with the same frequency, with amplitude <math>C</math> and phase shift <math>-90^\circ < \varphi < +90^\circ</math> from <math>F</math>, such that The phase shift of the co-sine function relative to the sine function is +90°. It follows that, for two sinusoidal signals <math>F</math> and <math>G</math> with same frequency and amplitudes <math>A</math> and <math>B</math>, and <math>G</math> has phase shift +90° relative to <math>F</math>, the sum <math>F+G</math> is a sinusoidal signal with the same frequency, with amplitude <math>C</math> and phase shift <math>-90^\circ < \varphi < +90^\circ</math> from <math>F</math>, such that
:<math>C = \sqrt{A^2 + B^2}\quad\quad{}</math> and <math>{}\quad\quad\sin(\varphi) = B/C</math>. <math display="block">C = \sqrt{A^2 + B^2} \quad\quad \text{ and } \quad\quad \sin(\varphi) = B/C.</math>


] ]
Line 91: Line 91:


] ]
A real-world example of a sonic phase difference occurs in the ]. The amplitude of different ] of same long-held note on the flute come into dominance at different points in the phase cycle. The phase difference between the different harmonics can be observed on a ] of the sound of a warbling flute.<ref>{{cite web |url=http://Flutopedia.com/warble.htm |title=The Warble |work=Flutopedia |author1=Clint Goss |author2=Barry Higgins |year=2013 |accessdate=2013-03-06}}</ref> A real-world example of a sonic phase difference occurs in the ]. The amplitude of different ] of same long-held note on the flute come into dominance at different points in the phase cycle. The phase difference between the different harmonics can be observed on a ] of the sound of a warbling flute.<ref>{{cite web |url=http://Flutopedia.com/warble.htm |title=The Warble |work=Flutopedia |author1=Clint Goss |author2=Barry Higgins |year=2013 |access-date=2013-03-06}}</ref>


===Phase comparison=== ==Phase comparison==
'''Phase comparison''' is a comparison of the phase of two waveforms, usually of the same nominal frequency. In time and frequency, the purpose of a phase comparison is generally to determine the frequency offset (difference between signal cycles) with respect to a reference.<ref name=phnist> ''Phase comparison'' is a comparison of the phase of two waveforms, usually of the same nominal frequency. In time and frequency, the purpose of a phase comparison is generally to determine the frequency offset (difference between signal cycles) with respect to a reference.<ref name=phnist>
{{cite web {{cite journal
| url =https://www.nist.gov/pml/div688/grp40/enc-p.cfm | url =https://www.nist.gov/pml/div688/grp40/enc-p.cfm
| title =Phase | title =Phase
| last =Time and Frequency from A to Z | last =Time and Frequency from A to Z
| journal =NIST
| date =2010-05-12 | date =2010-05-12
| website =
| publisher =] (NIST) | publisher =] (NIST)
| access-date =12 June 2016 | access-date =12 June 2016
| quote =
}} This content has been copied and pasted from an NIST web page ''and is in the public domain''.</ref> }} This content has been copied and pasted from an NIST web page ''and is in the public domain''.</ref>


Line 113: Line 112:


==Formula for phase of an oscillation or a periodic signal== ==Formula for phase of an oscillation or a periodic signal==
The phase of an ] or ] refers to a sinusoidal function such as the following: The phase of a ] or ] is the value of <math display=inline>\varphi</math> in the following functions:
<math display="block">\begin{align}

x(t) &= A\cos( 2 \pi f t + \varphi ) \\
:<math>\begin{align}
x(t) &= A\cdot \cos( 2 \pi f t + \varphi ) \\ y(t) &= A\sin( 2 \pi f t + \varphi ) = A\cos\left( 2 \pi f t + \varphi - \tfrac{\pi}{2}\right)
y(t) &= A\cdot \sin( 2 \pi f t + \varphi ) = A\cdot \cos\left( 2 \pi f t + \varphi - \tfrac{\pi}{2}\right)
\end{align}</math> \end{align}</math>
where <math display="inline"> A</math>, <math display="inline"> f</math>, and <math display="inline"> \varphi</math> are constant parameters called the ''amplitude'', ''frequency'', and ''phase'' of the sinusoid. These signals are periodic with period <math display="inline"> T = \frac{1}{f}</math>, and they are identical except for a displacement of <math display="inline"> \frac{T}{4}</math> along the <math display="inline"> t</math> axis. The term ''phase'' can refer to several different things:
* It can refer to a specified reference, such as <math display="inline"> \cos(2 \pi f t)</math>, in which case we would say the ''phase'' of <math display="inline"> x(t)</math> is <math display="inline"> \varphi</math>, and the ''phase'' of <math display="inline"> y(t)</math> is <math display="inline"> \varphi - \frac{\pi}{2}</math>.
* It can refer to <math display="inline"> \varphi</math>, in which case we would say <math display="inline"> x(t)</math> and <math display="inline"> y(t)</math> have the same ''phase'' but are relative to their own specific references.
* In the context of communication waveforms, the time-variant angle <math display="inline"> 2 \pi f t + \varphi</math>, or its ], is referred to as '']'', often just ''phase''.


==Absolute phase==
where <math>\textstyle A</math>, <math>\textstyle f</math>, and <math>\textstyle \varphi</math> are constant parameters called the ''amplitude'', ''frequency'', and ''phase'' of the sinusoid. These signals are periodic with period <math>\textstyle T = \frac{1}{f}</math>, and they are identical except for a displacement of <math>\textstyle \frac{T}{4}</math> along the <math>\textstyle t</math> axis. The term '''phase''' can refer to several different things''':'''
{{excerpt|Absolute phase}}
* It can refer to a specified reference, such as <math>\textstyle \cos(2 \pi f t)</math>, in which case we would say the '''phase''' of <math>\textstyle x(t)</math> is <math>\textstyle \varphi</math>, and the '''phase''' of <math>\textstyle y(t)</math> is <math>\textstyle \varphi - \frac{\pi}{2}</math>.
* It can refer to <math>\textstyle \varphi</math>, in which case we would say <math>\textstyle x(t)</math> and <math>\textstyle y(t)</math> have the same '''phase''' but are relative to their own specific references.
* In the context of communication waveforms, the time-variant angle <math>\textstyle 2 \pi f t + \varphi</math>, or its ], is referred to as ''']''', often just '''phase'''.


== See also == == See also ==
{{cols|colwidth=20em}}
* ]
* ]
* ] * ]
* ] * ]
Line 131: Line 134:
* ] * ]
* ] * ]
* ]
* ] * ]
* ] * ]
* ] * ]
* ], the quality of a wave to display a well defined phase relationship in different regions of its domain of definition * ], the quality of a wave to display a well defined phase relationship in different regions of its domain of definition
* ], a method of changing phase by 90°
* ]
* ], a phase change that happens when a wave is reflected off of a boundary from fast medium to slow medium
* ], A method of changing phase by 90°
{{colend}}



==References== ==References==
Line 144: Line 148:
==External links== ==External links==
{{Commons category|Phase (waves)}} {{Commons category|Phase (waves)}}
* "". Prof. Jeffrey Hass. "''An Acoustics Primer''", Section 8. ]. &copy; 2003. See also: (. &copy; 2013) * "". Prof. Jeffrey Hass. "''An Acoustics Primer''", Section 8. ], 2003. See also: (, 2013)
* *
* — Discusses the time-domain sources of phase shift in simple linear time-invariant circuits. * — Discusses the time-domain sources of phase shift in simple linear time-invariant circuits.
* *
* Java Applet * Java Applet



Latest revision as of 03:55, 17 December 2024

The elapsed fraction of a cycle of a periodic function
Plot of one cycle of a sinusoidal function. The phase for each argument value, relative to the start of the cycle, is shown at the bottom, in degrees from 0° to 360° and in radians from 0 to 2π.

In physics and mathematics, the phase (symbol φ or ϕ) of a wave or other periodic function F {\displaystyle F} of some real variable t {\displaystyle t} (such as time) is an angle-like quantity representing the fraction of the cycle covered up to t {\displaystyle t} . It is expressed in such a scale that it varies by one full turn as the variable t {\displaystyle t} goes through each period (and F ( t ) {\displaystyle F(t)} goes through each complete cycle). It may be measured in any angular unit such as degrees or radians, thus increasing by 360° or 2 π {\displaystyle 2\pi } as the variable t {\displaystyle t} completes a full period.

This convention is especially appropriate for a sinusoidal function, since its value at any argument t {\displaystyle t} then can be expressed as φ ( t ) {\displaystyle \varphi (t)} , the sine of the phase, multiplied by some factor (the amplitude of the sinusoid). (The cosine may be used instead of sine, depending on where one considers each period to start.)

Usually, whole turns are ignored when expressing the phase; so that φ ( t ) {\displaystyle \varphi (t)} is also a periodic function, with the same period as F {\displaystyle F} , that repeatedly scans the same range of angles as t {\displaystyle t} goes through each period. Then, F {\displaystyle F} is said to be "at the same phase" at two argument values t 1 {\displaystyle t_{1}} and t 2 {\displaystyle t_{2}} (that is, φ ( t 1 ) = φ ( t 2 ) {\displaystyle \varphi (t_{1})=\varphi (t_{2})} ) if the difference between them is a whole number of periods.

The numeric value of the phase φ ( t ) {\displaystyle \varphi (t)} depends on the arbitrary choice of the start of each period, and on the interval of angles that each period is to be mapped to.

The term "phase" is also used when comparing a periodic function F {\displaystyle F} with a shifted version G {\displaystyle G} of it. If the shift in t {\displaystyle t} is expressed as a fraction of the period, and then scaled to an angle φ {\displaystyle \varphi } spanning a whole turn, one gets the phase shift, phase offset, or phase difference of G {\displaystyle G} relative to F {\displaystyle F} . If F {\displaystyle F} is a "canonical" function for a class of signals, like sin ( t ) {\displaystyle \sin(t)} is for all sinusoidal signals, then φ {\displaystyle \varphi } is called the initial phase of G {\displaystyle G} .

Mathematical definition

Let the signal F {\displaystyle F} be a periodic function of one real variable, and T {\displaystyle T} be its period (that is, the smallest positive real number such that F ( t + T ) = F ( t ) {\displaystyle F(t+T)=F(t)} for all t {\displaystyle t} ). Then the phase of F {\displaystyle F} at any argument t {\displaystyle t} is φ ( t ) = 2 π [ [ t t 0 T ] ] {\displaystyle \varphi (t)=2\pi \left\!\!\right]}

Here [ [ ] ] {\displaystyle \!]\!\,} denotes the fractional part of a real number, discarding its integer part; that is, [ [ x ] ] = x x {\displaystyle \!]=x-\left\lfloor x\right\rfloor \!\,} ; and t 0 {\displaystyle t_{0}} is an arbitrary "origin" value of the argument, that one considers to be the beginning of a cycle.

This concept can be visualized by imagining a clock with a hand that turns at constant speed, making a full turn every T {\displaystyle T} seconds, and is pointing straight up at time t 0 {\displaystyle t_{0}} . The phase φ ( t ) {\displaystyle \varphi (t)} is then the angle from the 12:00 position to the current position of the hand, at time t {\displaystyle t} , measured clockwise.

The phase concept is most useful when the origin t 0 {\displaystyle t_{0}} is chosen based on features of F {\displaystyle F} . For example, for a sinusoid, a convenient choice is any t {\displaystyle t} where the function's value changes from zero to positive.

The formula above gives the phase as an angle in radians between 0 and 2 π {\displaystyle 2\pi } . To get the phase as an angle between π {\displaystyle -\pi } and + π {\displaystyle +\pi } , one uses instead φ ( t ) = 2 π ( [ [ t t 0 T + 1 2 ] ] 1 2 ) {\displaystyle \varphi (t)=2\pi \left(\left\!\!\right]-{\frac {1}{2}}\right)}

The phase expressed in degrees (from 0° to 360°, or from −180° to +180°) is defined the same way, except with "360°" in place of "2π".

Consequences

With any of the above definitions, the phase φ ( t ) {\displaystyle \varphi (t)} of a periodic signal is periodic too, with the same period T {\displaystyle T} : φ ( t + T ) = φ ( t )  for all  t . {\displaystyle \varphi (t+T)=\varphi (t)\quad \quad {\text{ for all }}t.}

The phase is zero at the start of each period; that is φ ( t 0 + k T ) = 0  for any integer  k . {\displaystyle \varphi (t_{0}+kT)=0\quad \quad {\text{ for any integer }}k.}

Moreover, for any given choice of the origin t 0 {\displaystyle t_{0}} , the value of the signal F {\displaystyle F} for any argument t {\displaystyle t} depends only on its phase at t {\displaystyle t} . Namely, one can write F ( t ) = f ( φ ( t ) ) {\displaystyle F(t)=f(\varphi (t))} , where f {\displaystyle f} is a function of an angle, defined only for a single full turn, that describes the variation of F {\displaystyle F} as t {\displaystyle t} ranges over a single period.

In fact, every periodic signal F {\displaystyle F} with a specific waveform can be expressed as F ( t ) = A w ( φ ( t ) ) {\displaystyle F(t)=A\,w(\varphi (t))} where w {\displaystyle w} is a "canonical" function of a phase angle in 0 to 2π, that describes just one cycle of that waveform; and A {\displaystyle A} is a scaling factor for the amplitude. (This claim assumes that the starting time t 0 {\displaystyle t_{0}} chosen to compute the phase of F {\displaystyle F} corresponds to argument 0 of w {\displaystyle w} .)

Adding and comparing phases

Since phases are angles, any whole full turns should usually be ignored when performing arithmetic operations on them. That is, the sum and difference of two phases (in degrees) should be computed by the formulas 360 [ [ α + β 360 ] ]  and  360 [ [ α β 360 ] ] {\displaystyle 360\,\left\!\!\right]\quad \quad {\text{ and }}\quad \quad 360\,\left\!\!\right]} respectively. Thus, for example, the sum of phase angles 190° + 200° is 30° (190 + 200 = 390, minus one full turn), and subtracting 50° from 30° gives a phase of 340° (30 − 50 = −20, plus one full turn).

Similar formulas hold for radians, with 2 π {\displaystyle 2\pi } instead of 360.

Phase shift

Illustration of phase shift. The horizontal axis represents an angle (phase) that is increasing with time.
Phase shifter using IQ modulator

The difference φ ( t ) = φ G ( t ) φ F ( t ) {\displaystyle \varphi (t)=\varphi _{G}(t)-\varphi _{F}(t)} between the phases of two periodic signals F {\displaystyle F} and G {\displaystyle G} is called the phase difference or phase shift of G {\displaystyle G} relative to F {\displaystyle F} . At values of t {\displaystyle t} when the difference is zero, the two signals are said to be in phase; otherwise, they are out of phase with each other.

In the clock analogy, each signal is represented by a hand (or pointer) of the same clock, both turning at constant but possibly different speeds. The phase difference is then the angle between the two hands, measured clockwise.

The phase difference is particularly important when two signals are added together by a physical process, such as two periodic sound waves emitted by two sources and recorded together by a microphone. This is usually the case in linear systems, when the superposition principle holds.

For arguments t {\displaystyle t} when the phase difference is zero, the two signals will have the same sign and will be reinforcing each other. One says that constructive interference is occurring. At arguments t {\displaystyle t} when the phases are different, the value of the sum depends on the waveform.

For sinusoids

For sinusoidal signals, when the phase difference φ ( t ) {\displaystyle \varphi (t)} is 180° ( π {\displaystyle \pi } radians), one says that the phases are opposite, and that the signals are in antiphase. Then the signals have opposite signs, and destructive interference occurs. Conversely, a phase reversal or phase inversion implies a 180-degree phase shift.

When the phase difference φ ( t ) {\displaystyle \varphi (t)} is a quarter of turn (a right angle, +90° = π/2 or −90° = 270° = −π/2 = 3π/2), sinusoidal signals are sometimes said to be in quadrature, e.g., in-phase and quadrature components of a composite signal or even different signals (e.g., voltage and current).

If the frequencies are different, the phase difference φ ( t ) {\displaystyle \varphi (t)} increases linearly with the argument t {\displaystyle t} . The periodic changes from reinforcement and opposition cause a phenomenon called beating.

For shifted signals

The phase difference is especially important when comparing a periodic signal F {\displaystyle F} with a shifted and possibly scaled version G {\displaystyle G} of it. That is, suppose that G ( t ) = α F ( t + τ ) {\displaystyle G(t)=\alpha \,F(t+\tau )} for some constants α , τ {\displaystyle \alpha ,\tau } and all t {\displaystyle t} . Suppose also that the origin for computing the phase of G {\displaystyle G} has been shifted too. In that case, the phase difference φ {\displaystyle \varphi } is a constant (independent of t {\displaystyle t} ), called the 'phase shift' or 'phase offset' of G {\displaystyle G} relative to F {\displaystyle F} . In the clock analogy, this situation corresponds to the two hands turning at the same speed, so that the angle between them is constant.

In this case, the phase shift is simply the argument shift τ {\displaystyle \tau } , expressed as a fraction of the common period T {\displaystyle T} (in terms of the modulo operation) of the two signals and then scaled to a full turn: φ = 2 π [ [ τ T ] ] . {\displaystyle \varphi =2\pi \left\!\!\right].}

If F {\displaystyle F} is a "canonical" representative for a class of signals, like sin ( t ) {\displaystyle \sin(t)} is for all sinusoidal signals, then the phase shift φ {\displaystyle \varphi } called simply the initial phase of G {\displaystyle G} .

Therefore, when two periodic signals have the same frequency, they are always in phase, or always out of phase. Physically, this situation commonly occurs, for many reasons. For example, the two signals may be a periodic soundwave recorded by two microphones at separate locations. Or, conversely, they may be periodic soundwaves created by two separate speakers from the same electrical signal, and recorded by a single microphone. They may be a radio signal that reaches the receiving antenna in a straight line, and a copy of it that was reflected off a large building nearby.

A well-known example of phase difference is the length of shadows seen at different points of Earth. To a first approximation, if F ( t ) {\displaystyle F(t)} is the length seen at time t {\displaystyle t} at one spot, and G {\displaystyle G} is the length seen at the same time at a longitude 30° west of that point, then the phase difference between the two signals will be 30° (assuming that, in each signal, each period starts when the shadow is shortest).

For sinusoids with same frequency

For sinusoidal signals (and a few other waveforms, like square or symmetric triangular), a phase shift of 180° is equivalent to a phase shift of 0° with negation of the amplitude. When two signals with these waveforms, same period, and opposite phases are added together, the sum F + G {\displaystyle F+G} is either identically zero, or is a sinusoidal signal with the same period and phase, whose amplitude is the difference of the original amplitudes.

The phase shift of the co-sine function relative to the sine function is +90°. It follows that, for two sinusoidal signals F {\displaystyle F} and G {\displaystyle G} with same frequency and amplitudes A {\displaystyle A} and B {\displaystyle B} , and G {\displaystyle G} has phase shift +90° relative to F {\displaystyle F} , the sum F + G {\displaystyle F+G} is a sinusoidal signal with the same frequency, with amplitude C {\displaystyle C} and phase shift 90 < φ < + 90 {\displaystyle -90^{\circ }<\varphi <+90^{\circ }} from F {\displaystyle F} , such that C = A 2 + B 2  and  sin ( φ ) = B / C . {\displaystyle C={\sqrt {A^{2}+B^{2}}}\quad \quad {\text{ and }}\quad \quad \sin(\varphi )=B/C.}

In-phase signals
Out-of-phase signals
Representation of phase comparison.
Left: the real part of a plane wave moving from top to bottom. Right: the same wave after a central section underwent a phase shift, for example, by passing through a glass of different thickness than the other parts.
Out of phase AE

A real-world example of a sonic phase difference occurs in the warble of a Native American flute. The amplitude of different harmonic components of same long-held note on the flute come into dominance at different points in the phase cycle. The phase difference between the different harmonics can be observed on a spectrogram of the sound of a warbling flute.

Phase comparison

Phase comparison is a comparison of the phase of two waveforms, usually of the same nominal frequency. In time and frequency, the purpose of a phase comparison is generally to determine the frequency offset (difference between signal cycles) with respect to a reference.

A phase comparison can be made by connecting two signals to a two-channel oscilloscope. The oscilloscope will display two sine signals, as shown in the graphic to the right. In the adjacent image, the top sine signal is the test frequency, and the bottom sine signal represents a signal from the reference.

If the two frequencies were exactly the same, their phase relationship would not change and both would appear to be stationary on the oscilloscope display. Since the two frequencies are not exactly the same, the reference appears to be stationary and the test signal moves. By measuring the rate of motion of the test signal the offset between frequencies can be determined.

Vertical lines have been drawn through the points where each sine signal passes through zero. The bottom of the figure shows bars whose width represents the phase difference between the signals. In this case the phase difference is increasing, indicating that the test signal is lower in frequency than the reference.

Formula for phase of an oscillation or a periodic signal

The phase of a simple harmonic oscillation or sinusoidal signal is the value of φ {\textstyle \varphi } in the following functions: x ( t ) = A cos ( 2 π f t + φ ) y ( t ) = A sin ( 2 π f t + φ ) = A cos ( 2 π f t + φ π 2 ) {\displaystyle {\begin{aligned}x(t)&=A\cos(2\pi ft+\varphi )\\y(t)&=A\sin(2\pi ft+\varphi )=A\cos \left(2\pi ft+\varphi -{\tfrac {\pi }{2}}\right)\end{aligned}}} where A {\textstyle A} , f {\textstyle f} , and φ {\textstyle \varphi } are constant parameters called the amplitude, frequency, and phase of the sinusoid. These signals are periodic with period T = 1 f {\textstyle T={\frac {1}{f}}} , and they are identical except for a displacement of T 4 {\textstyle {\frac {T}{4}}} along the t {\textstyle t} axis. The term phase can refer to several different things:

  • It can refer to a specified reference, such as cos ( 2 π f t ) {\textstyle \cos(2\pi ft)} , in which case we would say the phase of x ( t ) {\textstyle x(t)} is φ {\textstyle \varphi } , and the phase of y ( t ) {\textstyle y(t)} is φ π 2 {\textstyle \varphi -{\frac {\pi }{2}}} .
  • It can refer to φ {\textstyle \varphi } , in which case we would say x ( t ) {\textstyle x(t)} and y ( t ) {\textstyle y(t)} have the same phase but are relative to their own specific references.
  • In the context of communication waveforms, the time-variant angle 2 π f t + φ {\textstyle 2\pi ft+\varphi } , or its principal value, is referred to as instantaneous phase, often just phase.

Absolute phase

This section is an excerpt from Absolute phase. Absolute phase is the phase of a waveform relative to some standard (strictly speaking, phase is always relative). To the extent that this standard is accepted by all parties, one can speak of an absolute phase in a particular field of application.

See also

References

  1. ^ Ballou, Glen (2005). Handbook for sound engineers (3 ed.). Focal Press, Gulf Professional Publishing. p. 1499. ISBN 978-0-240-80758-4.
  2. "Federal Standard 1037C: Glossary of Telecommunications Terms".
  3. ^ Time and Frequency from A to Z (2010-05-12). "Phase". NIST. National Institute of Standards and Technology (NIST). Retrieved 12 June 2016. This content has been copied and pasted from an NIST web page and is in the public domain.
  4. Clint Goss; Barry Higgins (2013). "The Warble". Flutopedia. Retrieved 2013-03-06.

External links

Categories: