Loading…

Complex Logarithm Calculator

Math Algebra • Complex Numbers

View all topics
9. Complex Logarithm Calculator
Compute the principal complex logarithm \(\mathrm{Log}(z)=\ln|z|+i\,\mathrm{Arg}(z)\), and optionally list non-principal branches \(\log_k(z)=\ln|z|+i(\mathrm{Arg}(z)+2\pi k)\).
Inputs

In mathematics, \(\mathrm{Arg}(z)\) is in radians. If you choose Degrees, this tool shows both degrees and radians.
α is the start of the Arg interval \((\alpha,\alpha+2\pi]\).
Ready
Complex plane
Drag to pan • wheel/pinch to zoom • drag the point to change \(z\) • dashed ray is the branch cut • purple arc is \(\mathrm{Arg}(z)\)
x: 0, y: 0, zoom: 1
Results
Click Calculate.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

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)}.