In mathematics (particularly in complex analysis), the argument of a complex number, denoted, is the angle between the positive real axis and the line joining the origin and, represented as a point in the complex plane, shown as
\varphi
When any real-valued angle is considered, the argument is a multivalued function operating on the nonzero complex numbers. The principal value of this function is single-valued, typically chosen to be the unique value of the argument that lies within the interval .[1] [2] In this article the multi-valued function will be denoted and its principal value will be denoted, but in some sources the capitalization of these symbols is exchanged.
An argument of the complex number, denoted, is defined in two equivalent ways:
\varphi
\varphi
The names magnitude, for the modulus, and phase,[3] for the argument, are sometimes used equivalently.
Under both definitions, it can be seen that the argument of any non-zero complex number has many possible values: firstly, as a geometrical angle, it is clear that whole circle rotations do not change the point, so angles differing by an integer multiple of radians (a complete circle) are the same, as reflected by figure 2 on the right. Similarly, from the periodicity of and , the second definition also has this property. The argument of zero is usually left undefined.
The complex argument can also be defined algebraically in terms of complex roots as:This definition removes reliance on other difficult-to-compute functions such as arctangent as well as eliminating the need for the piecewise definition. Because it's defined in terms of roots, it also inherits the principal branch of square root as its own principal branch. The normalization of
z
|z|
\arg(0)
Because a complete rotation around the origin leaves a complex number unchanged, there are many choices which could be made for
\varphi
f(x,y)=\arg(x+iy)
When a well-defined function is required, then the usual choice, known as the principal value, is the value in the open-closed interval, that is from to radians, excluding rad itself (equiv., from −180 to +180 degrees, excluding −180° itself). This represents an angle of up to half a complete circle from the positive real axis in either direction.
Some authors define the range of the principal value as being in the closed-open interval .
The principal value sometimes has the initial letter capitalized, as in, especially when a general version of the argument is also being considered. Note that notation varies, so and may be interchanged in different texts.
The set of all possible values of the argument can be written in terms of as:
\arg(z)=\{\operatorname{Arg}(z)+2\pin\midn\inZ\}.
See main article: atan2. If a complex number is known in terms of its real and imaginary parts, then the function that calculates the principal value is called the two-argument arctangent function, :
\operatorname{Arg}(x+iy)=\operatorname{atan2}(y,x)
In some sources the argument is defined as
\operatorname{Arg}(x+iy)=\arctan(y/x),
y/x
-\tfrac\pi2
\tfrac\pi2.
\operatorname{Arg}(x+iy)=\operatorname{atan2}(y,x)= \begin{cases} \arctan\left(
y | |
x\right) |
&ifx>0,\\[5mu] \arctan\left(
y | |
x\right) |
+\pi&ifx<0andy\ge0,\\[5mu] \arctan\left(
y | |
x\right) |
-\pi&ifx<0andy<0,\\[5mu] +
\pi | |
2 |
&ifx=0andy>0,\\[5mu] -
\pi | |
2 |
&ifx=0andy<0,\\[5mu] undefined&ifx=0andy=0. \end{cases}
See atan2 for further detail and alternative implementations.
In Wolfram language, there's Arg[z]
:[4]
Arg[x + y I]
= \begin{cases} undefined&if|x|=inftyand|y|=infty,\\[5mu] 0&ifx=0andy=0,\\[5mu] 0&ifx=infty,\\[5mu] \pi&ifx=-infty,\\[5mu] \pm
\pi | |
2 |
&ify=\pminfty,\\[5mu] \operatorname{Arg}(x+yi)&otherwise. \end{cases}
or using the language's ArcTan
:
Arg[x + y I]
= \begin{cases} 0&ifx=0andy=0,\\[5mu] ArcTan[x,y]&otherwise. \end{cases}
ArcTan[x, y]
is
\operatorname{atan2}(y,x)
ArcTan[0, 0]
is Indeterminate
(i.e. it's still defined), while ArcTan[Infinity, -Infinity]
doesn't return anything (i.e. it's undefined).Maple's argument(z)
behaves the same as Arg[z]
in Wolfram language, except that argument(z)
also returns
\pi
z
is the special floating-point value −0.
.[5] Also, Maple doesn't have \operatorname{atan2}
MATLAB's angle(z)
behaves[6] [7] the same as Arg[z]
in Wolfram language, except that it is
\begin{cases}
1\pi | |
4 |
&ifx=inftyandy=infty,\\[5mu] -
1\pi | |
4 |
&ifx=inftyandy=-infty,\\[5mu]
3\pi | |
4 |
&ifx=-inftyandy=infty,\\[5mu] -
3\pi | |
4 |
&ifx=-inftyandy=-infty. \end{cases}
Unlike in Maple and Wolfram language, MATLAB's atan2(y, x)
is equivalent to angle(x + y*1i)
. That is, atan2(0, 0)
is
0
One of the main motivations for defining the principal value is to be able to write complex numbers in modulus-argument form. Hence for any complex number,
z=\left|z\right|eiz}.
This is only really valid if is non-zero, but can be considered valid for if is considered as an indeterminate form—rather than as being undefined.
Some further identities follow. If and are two non-zero complex numbers, then
\begin{align} \operatorname{Arg}(z1z2)&\equiv\operatorname{Arg}(z1)+\operatorname{Arg}(z2)\pmod{R/2\piZ
If and is any integer, then
\operatorname{Arg}\left(zn\right)\equivn\operatorname{Arg}(z)\pmod{R/2\piZ
\operatorname{Arg}l( | -1-i |
i |
r)=\operatorname{Arg}(-1-i)-\operatorname{Arg}(i)=-
3\pi | |
4 |
-
\pi | |
2 |
=-
5\pi | |
4 |
From
z=|z|ei(z)}
i\operatorname{Arg}(z)=ln
z | |
|z| |
\operatorname{Arg}(z)=\operatorname{Im}(ln
z | |
|z| |
)=\operatorname{Im}(lnz)
The extended argument of a number z (denoted as
\overline{\arg}(z)
\arg(z)
\pi