Academy
Formulas/maths/M2 Modulus Argument/Logarithm of a Complex Number

Logarithm of a Complex Number

Follows from z = re^(iθ) by taking ln of both sides: ln z = ln r + iθ. Since arg(z) is multi-valued, ln z is also multi-valued — the general value is ln|z| + i(Arg(z) + 2nπ). The principal value uses Arg(z) ∈ (−π, π].
Derivation

The logarithm of a complex number is the natural extension of ln\ln to C\mathbb{C}. It is multi-valued — and understanding why is as important as knowing the formula.

Derivation

Write zz in Euler's form:

z=zeiθ,θ=arg(z)z = |z|\, e^{i\theta}, \qquad \theta = \arg(z)

Express the modulus as an exponential:

z=elnzeiθ=elnz+iθz = e^{\ln|z|} \cdot e^{i\theta} = e^{\ln|z| + i\theta}

So z=ewz = e^w where w=lnz+iθw = \ln|z| + i\theta. Taking the natural logarithm of both sides:

lnz=lnz+iarg(z)\ln z = \ln|z| + i\arg(z)

Why It Is Multi-Valued

The argument arg(z)\arg(z) is not unique — it is defined up to multiples of 2π2\pi. Any value θ+2kπ\theta + 2k\pi (kZk \in \mathbb{Z}) is a valid argument, and each gives a different value of lnz\ln z:

lnz=lnz+i(Arg(z)+2kπ),kZ\ln z = \ln|z| + i(\operatorname{Arg}(z) + 2k\pi), \qquad k \in \mathbb{Z}

This is the general value of lnz\ln z. There are infinitely many values, one for each integer kk.

The principal value uses k=0k = 0, i.e., Arg(z)(π,π]\operatorname{Arg}(z) \in (-\pi, \pi]:

Logz=lnz+iArg(z)\operatorname{Log}\, z = \ln|z| + i\operatorname{Arg}(z)

Consequences

ln\ln of a negative real number: For z=az = -a (a>0a > 0), z=a|z| = a and Arg(z)=π\operatorname{Arg}(z) = \pi:

Log(a)=lna+iπ\operatorname{Log}(-a) = \ln a + i\pi

This is why ln(1)=iπ\ln(-1) = i\pi — Euler's identity eiπ=1e^{i\pi} = -1 read backwards.

ln\ln of ii: i=1|i| = 1, Arg(i)=π/2\operatorname{Arg}(i) = \pi/2:

Log(i)=ln1+iπ2=iπ2\operatorname{Log}(i) = \ln 1 + i\frac{\pi}{2} = \frac{i\pi}{2}

Check: eiπ/2=cos(π/2)+isin(π/2)=ie^{i\pi/2} = \cos(\pi/2) + i\sin(\pi/2) = i

Where This Appears in JEE

Problems involving iii^i, (1)2(-1)^{\sqrt{2}}, or general complex exponents zw=ewlnzz^w = e^{w \ln z} all use this formula. The multi-valuedness means such expressions have infinitely many values — JEE problems typically ask for the principal value.