Consider the complex logarithm function log z. It is defined as the complex number w such that
Now, for example, say we wish to find log i. This means we want to solve
for w {\displaystyle w} . The value i π / 2 {\displaystyle i\pi /2} is a solution.
However, there are other solutions, which is evidenced by considering the position of i in the complex plane and in particular its argument arg i {\displaystyle \arg i} . We can rotate counterclockwise π / 2 {\displaystyle \pi /2} radians from 1 to reach i initially, but if we rotate further another 2 π {\displaystyle 2\pi } we reach i again. So, we can conclude that i ( π / 2 + 2 π ) {\displaystyle i(\pi /2+2\pi )} is also a solution for log i. It becomes clear that we can add any multiple of 2 π {\displaystyle 2\pi } to our initial solution to obtain all values for log i.
But this has a consequence that may be surprising in comparison of real valued functions: log i does not have one definite value. For log z, we have
for an integer k, where Arg z is the (principal) argument of z defined to lie in the interval ( − π , π ] {\displaystyle (-\pi ,\ \pi ]} . Each value of k determines what is known as a branch (or sheet), a single-valued component of the multiple-valued log function. When the focus is on a single branch, sometimes a branch cut is used; in this case removing the non-positive real numbers from the domain of the function and eliminating π {\displaystyle \pi } as a possible value for Arg z. With this branch cut, the single-branch function is continuous and analytic everywhere in its domain.
The branch corresponding to k = 0 is known as the principal branch, and along this branch, the values the function takes are known as the principal values.
In general, if f(z) is multiple-valued, the principal branch of f is denoted
such that for z in the domain of f, pv f(z) is single-valued.
Complex valued elementary functions can be multiple-valued over some domains. The principal value of some of these functions can be obtained by decomposing the function into simpler ones whereby the principal value of the simple functions are straightforward to obtain.
We have examined the logarithm function above, i.e.,
Now, arg z is intrinsically multivalued. One often defines the argument of some complex number to be between − π {\displaystyle -\pi } (exclusive) and π {\displaystyle \pi } (inclusive), so we take this to be the principal value of the argument, and we write the argument function on this branch Arg z (with the leading capital A). Using Arg z instead of arg z, we obtain the principal value of the logarithm, and we write1
For a complex number z = r e i ϕ {\displaystyle z=re^{i\phi }\,} the principal value of the square root is:
with argument − π < ϕ ≤ π . {\displaystyle -\pi <\phi \leq \pi .} Sometimes a branch cut is introduced so that negative real numbers are not in the domain of the square root function and eliminating the possibility that ϕ = π . {\displaystyle \phi =\pi .}
Inverse trigonometric functions (arcsin, arccos, arctan, etc.) and inverse hyperbolic functions (arsinh, arcosh, artanh, etc.) can be defined in terms of logarithms and their principal values can be defined in terms of the principal values of the logarithm.
The principal value of complex number argument measured in radians can be defined as:
For example, many computing systems include an atan2(y, x) function. The value of atan2(imaginary_part(z), real_part(z)) will be in the interval ( − π , π ] . {\displaystyle (-\pi ,\pi ].} In comparison, atan y/x is typically in ( − π 2 , π 2 ] . {\displaystyle ({\tfrac {-\pi }{2}},{\tfrac {\pi }{2}}].}
Zill, Dennis; Shanahan, Patrick (2009). A First Course in Complex Analysis with Applications. Jones & Bartlett Learning. p. 166. ISBN 978-0-7637-5772-4. 978-0-7637-5772-4 ↩