An argument of the nonzero complex number z = x + iy, denoted arg(z), is defined in two equivalent ways:
The argument of zero is usually left undefined. The names magnitude, for the modulus, and phase,45 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 2π radians (a complete turn) are the same, as reflected by figure 2 on the right. Similarly, from the periodicity of sin and cos, the second definition also has this property.
Because a complete rotation around the origin leaves a complex number unchanged, there are many choices which could be made for φ {\displaystyle \varphi } by circling the origin any number of times. This is shown in figure 2, a representation of the multi-valued (set-valued) function f ( x , y ) = arg ( x + i y ) {\displaystyle f(x,y)=\arg(x+iy)} , where a vertical line (not shown in the figure) cuts the surface at heights representing all the possible choices of angle for that point.
When a well-defined function is required, then the usual choice, known as the principal value, is the value in the open-closed interval (−π, π] radians, that is from −π to π radians excluding −π radians 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 [0, 2π).
The principal value sometimes has the initial letter capitalized, as in Arg z, especially when a general version of the argument is also being considered. Note that notation varies, so arg and Arg may be interchanged in different texts.
The set of all possible values of the argument can be written in terms of Arg as:
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 Arg is called the two-argument arctangent function, atan2:
The atan2 function is available in the math libraries of many programming languages, sometimes under a different name, and usually returns a value in the range (−π, π].6
In some sources the argument is defined as Arg ( x + i y ) = arctan ( y / x ) , {\displaystyle \operatorname {Arg} (x+iy)=\arctan(y/x),} however this is correct only when x > 0, where y / x {\displaystyle y/x} is well-defined and the angle lies between − π 2 {\displaystyle -{\tfrac {\pi }{2}}} and π 2 . {\displaystyle {\tfrac {\pi }{2}}.} Extending this definition to cases where x is not positive is relatively involved. Specifically, one may define the principal value of the argument separately on the half-plane x > 0 and the two quadrants with x < 0, and then patch the definitions together:
See atan2 for further detail and alternative implementations.
In Wolfram language, there's Arg[z]:7
Arg[x + y I] = { undefined if | x | = ∞ and | y | = ∞ , 0 if x = 0 and y = 0 , 0 if x = ∞ , π if x = − ∞ , ± π 2 if y = ± ∞ , Arg ( x + y i ) otherwise . {\displaystyle ={\begin{cases}{\text{undefined}}&{\text{if }}|x|=\infty {\text{ and }}|y|=\infty ,\\[5mu]0&{\text{if }}x=0{\text{ and }}y=0,\\[5mu]0&{\text{if }}x=\infty ,\\[5mu]\pi &{\text{if }}x=-\infty ,\\[5mu]\pm {\frac {\pi }{2}}&{\text{if }}y=\pm \infty ,\\[5mu]\operatorname {Arg} (x+yi)&{\text{otherwise}}.\end{cases}}}
or using the language's ArcTan:
Arg[x + y I] = { 0 if x = 0 and y = 0 , ArcTan[x, y] otherwise . {\displaystyle ={\begin{cases}0&{\text{if }}x=0{\text{ and }}y=0,\\[5mu]{\text{ArcTan[x, y]}}&{\text{otherwise}}.\end{cases}}}
ArcTan[x, y] is atan2 ( y , x ) {\displaystyle \operatorname {atan2} (y,x)} extended to work with infinities. 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 π {\displaystyle \pi } if z is the special floating-point value −0..8 Also, Maple doesn't have atan2 {\displaystyle \operatorname {atan2} } .
MATLAB's angle(z) behaves910 the same as Arg[z] in Wolfram language, except that it is
{ 1 π 4 if x = ∞ and y = ∞ , − 1 π 4 if x = ∞ and y = − ∞ , 3 π 4 if x = − ∞ and y = ∞ , − 3 π 4 if x = − ∞ and y = − ∞ . {\displaystyle {\begin{cases}{\frac {1\pi }{4}}&{\text{if }}x=\infty {\text{ and }}y=\infty ,\\[5mu]-{\frac {1\pi }{4}}&{\text{if }}x=\infty {\text{ and }}y=-\infty ,\\[5mu]{\frac {3\pi }{4}}&{\text{if }}x=-\infty {\text{ and }}y=\infty ,\\[5mu]-{\frac {3\pi }{4}}&{\text{if }}x=-\infty {\text{ and }}y=-\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 {\displaystyle 0} .
One of the main motivations for defining the principal value Arg is to be able to write complex numbers in modulus-argument form. Hence for any complex number z,
This is only really valid if z is non-zero, but can be considered valid for z = 0 if Arg(0) is considered as an indeterminate form—rather than as being undefined.
Some further identities follow. If z1 and z2 are two non-zero complex numbers, then
If z ≠ 0 and n is any integer, then11
From z = | z | e i Arg ( z ) {\displaystyle z=|z|e^{i\operatorname {Arg} (z)}} , we get i Arg ( z ) = ln z | z | {\displaystyle i\operatorname {Arg} (z)=\ln {\frac {z}{|z|}}} , alternatively Arg ( z ) = Im ( ln z | z | ) = Im ( ln z ) {\displaystyle \operatorname {Arg} (z)=\operatorname {Im} (\ln {\frac {z}{|z|}})=\operatorname {Im} (\ln z)} . As we are taking the imaginary part, any normalisation by a real scalar will not affect the result. This is useful when one has the complex logarithm available.
The extended argument of a number z (denoted as arg ¯ ( z ) {\displaystyle {\overline {\arg }}(z)} ) is the set of all real numbers congruent to arg ( z ) {\displaystyle \arg(z)} modulo 2 π {\displaystyle \pi } .12 arg ¯ ( z ) = arg ( z ) + 2 k π , ∀ k ∈ Z {\displaystyle {\overline {\arg }}(z)=\arg(z)+2k\pi ,\forall k\in \mathbb {Z} }
Weisstein, Eric W. "Complex Argument". mathworld.wolfram.com. Retrieved 2020-08-31. https://mathworld.wolfram.com/ComplexArgument.html ↩
"Modulus and Argument". mas-coursebuild.ncl.ac.uk. Newcastle University. Retrieved 2025-01-05. https://mas-coursebuild.ncl.ac.uk/lti/content/ASK/default/core_mathematics/pure_maths/algebra/complex_numbers/modulus_and_argument/index.html ↩
"Modulus and Argument of a Complex Number". Byju's. Retrieved 18 January 2025. https://byjus.com/jee/complex-numbers/#modulus-and-argument-of-a-complex-number ↩
Dictionary of Mathematics (2002). phase. ↩
"Arg". Wolfram Language Documentation. Retrieved 2024-08-30. https://reference.wolfram.com/language/ref/Arg.html ↩
"Argument - Maple Help". https://www.maplesoft.com/support/help/Maple/view.aspx?path=argument ↩
"Phase angle - MATLAB angle". https://www.mathworks.com/help/matlab/ref/angle.html ↩
"Four-quadrant inverse tangent - MATLAB atan2". https://www.mathworks.com/help/matlab/ref/atan2.html ↩
"Algebraic Structure of Complex Numbers". www.cut-the-knot.org. Retrieved 2021-08-29. https://www.cut-the-knot.org/arithmetic/algebra/ComplexNumbers.shtml ↩