Complex Logarithm Calculator
Math Algebra • Complex Numbers
Frequently Asked Questions
What is the principal complex logarithm Log(z)?
The principal complex logarithm is defined as Log(z) = ln|z| + i Arg(z), where Arg(z) is restricted to a chosen interval such as (−π, π]. This makes the logarithm single-valued on the complex plane excluding the branch cut and z = 0.
Why does the complex logarithm have multiple branches?
Angles that represent the same complex number differ by 2πk, so the logarithm values differ by i 2πk. This produces infinitely many values log_k(z) = ln|z| + i(Arg(z) + 2πk) for integers k.
What is a branch cut in the complex logarithm?
A branch cut is a ray removed from the domain so Arg(z) can be defined continuously on the remaining region. Changing the Arg interval, such as to (α, α+2π], moves the branch cut to the ray at angle α.
How do I choose between Arg(z) in (−π, π] and Arg(z) in (0, 2π]?
Both define a principal value but place the branch cut on different axes: (−π, π] typically cuts along the negative real axis, while (0, 2π] cuts along the positive real axis. The choice changes the reported Arg(z) and the imaginary part of Log(z) near the cut.
Why does e^{Log(z)} return z even though log(z) is multi-valued?
If Log(z) = ln|z| + i Arg(z), then e^{Log(z)} = e^{ln|z|} e^{i Arg(z)} = |z|(cos Arg(z) + i sin Arg(z)) = z. Adding i 2πk to a branch does not change the exponential because e^{i(Arg(z) + 2πk)} = e^{i Arg(z)}.