The logarithm should undo the exponential: $\log w$ is a number $z$ with $e^z = w$. But the complex exponential repeats every $2\pi i$, so $e^z = w$ has infinitely many solutions. The logarithm therefore has infinitely many values, one for each choice of argument.
🔑 Key idea
For $z \ne 0$,
$$\log z = \ln|z| + i\arg z = \ln|z| + i(\operatorname{Arg} z + 2\pi k), \quad k = 0, \pm 1, \pm 2, \ldots$$
is the set of all logarithms; its values are $2\pi i$ apart. The principal logarithm is the single value $\operatorname{Log} z = \ln|z| + i\operatorname{Arg} z$, with imaginary part in $(-\pi, \pi]$. Always $e^{\log z} = z$, but $\operatorname{Log}(e^z) = z$ only when $-\pi < \operatorname{Im} z \le \pi$, and $\operatorname{Log}(zw)$ can differ from $\operatorname{Log} z + \operatorname{Log} w$ by $\pm 2\pi i$.
💡 Why it works
Write $z = |z|e^{i\theta}$ and look for $w = a + ib$ with $e^w = z$. Then $e^a e^{ib} = |z|e^{i\theta}$: the moduli give $e^a = |z|$, so $a = \ln|z|$, and the angles give $b = \theta + 2\pi k$. Every choice of $k$ works, which is why $\log z$ is a set. Choosing the principal argument picks one value; that choice is what makes $\operatorname{Log}$ a function, and its price is the $2\pi$ correction inherited from $\operatorname{Arg}$.
Left: drag $z$ or send it around $0$. Right: the values $\ln|z| + i(\operatorname{Arg} z + 2\pi k)$, a ladder of points $2\pi$ apart; the principal value ($k = 0$) is circled. Each lap around $0$ moves the gold point one rung.
Worked examples
✏️ Worked example: Principal values
Find $\operatorname{Log}(-1)$, $\operatorname{Log}(2i)$ and $\operatorname{Log}(1 - i)$.
Compare $\operatorname{Log}\big((-1)(-1)\big)$ with $\operatorname{Log}(-1) + \operatorname{Log}(-1)$.
$(-1)(-1) = 1$ and $\operatorname{Log} 1 = 0$.
$\operatorname{Log}(-1) + \operatorname{Log}(-1) = \pi i + \pi i = 2\pi i$.
They differ by $2\pi i$. As sets, $\log(zw) = \log z + \log w$ is true; for principal values it can fail.
Answer: $0$ versus $2\pi i$
For a positive real number $x$, $\operatorname{Log} x = \ln x$, so the principal logarithm extends the familiar one. The new values are the extra imaginary parts: $\log x = \ln x + 2\pi ki$. Off the cut, $\operatorname{Log}$ is analytic with derivative $\frac{1}{z}$ (next lesson), which is what makes it useful in calculus.
Logarithms with other bases follow: $\log_b z = \frac{\log z}{\log b}$ for a chosen value of $\log b$. They are rarely needed in complex analysis, where "log" always means the natural logarithm.
⚠️ Common mistake
Giving $\log z$ one value, or using $\operatorname{Log}(zw) = \operatorname{Log} z + \operatorname{Log} w$ blindly. Unless a problem says "principal", $\log z$ means the whole set $\ln|z| + i(\theta + 2\pi k)$. And the product rule for $\operatorname{Log}$ is off by $2\pi i$ whenever $\operatorname{Arg} z + \operatorname{Arg} w$ leaves $(-\pi, \pi]$, as with $\operatorname{Log}(-1) + \operatorname{Log}(-1) = 2\pi i \ne 0 = \operatorname{Log} 1$. Check: exponentiate your answer; every correct value of $\log z$ gives back $z$.
Practice
Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.