7.6 Exponential & Logarithmic Functions

The entire, periodic, never-zero exponential — and a logarithm with infinitely many values

What will I learn in this section?

On completion of this section, you should be able to:

  • Understand the definition and properties of the exponential function in the complex plane.
  • Understand the definition and properties of the complex logarithm, and the difference between $\ln z$ and the principal value $\operatorname{Ln} z$.
  • Understand the definition and properties of complex powers.
  • Compute complex powers of complex numbers.

Section 7.2 gave you $e^{i\theta} = \cos\theta + i\sin\theta$ for a real angle $\theta$. Here we allow the whole exponent to be complex — and then attempt the inverse, where the familiar logarithm turns out to have infinitely many values.

The Complex Exponential

Definition: $e^z$
$$e^{z} = e^{x + iy} = e^{x}\left(\cos y + i \sin y\right)$$

The real part $x$ sets the size, the imaginary part $y$ sets the direction.

That split is worth stating on its own, because it answers most questions about $e^z$ immediately:

$$\left|e^{z}\right| = e^{x}, \qquad \arg\left(e^{z}\right) = y + 2k\pi$$
PropertyStatementStill true from real calculus?
Product rule$e^{z_1}e^{z_2} = e^{z_1 + z_2}$Yes
Derivative$\dfrac{d}{dz}e^{z} = e^{z}$Yes — and $e^z$ is entire
Never zero$e^{z} \ne 0$ for every $z$Yes, since $\left|e^z\right| = e^x \gt 0$
Periodic$e^{z + 2\pi i} = e^{z}$No — this is brand new
$e^z$ is periodic, and that changes everything

The real exponential is one-to-one: each output comes from exactly one input. The complex exponential repeats itself every $2\pi i$ up the imaginary direction, so infinitely many inputs share each output. That single fact is the reason the complex logarithm cannot be single-valued.

Example 1

Evaluate $e^{1 + i\pi/3}$.

$$e^{1+i\pi/3} = e^{1}\left(\cos\tfrac{\pi}{3} + i \sin\tfrac{\pi}{3}\right) = e\left(\tfrac{1}{2} + \tfrac{\sqrt{3}}{2}i\right)$$

Numerically, $\approx 1.359 + 2.354i$. Its modulus is $e \approx 2.718$, as expected.

Example 2 — solving $e^z = -1$

Find all $z$ with $e^z = -1$.

Match modulus and argument separately. The right-hand side has modulus $1$ and argument $\pi$ (plus any multiple of $2\pi$).

$$e^{x} = 1 \;\Longrightarrow\; x = 0$$
$$y = \pi + 2k\pi, \quad k = 0, \pm1, \pm2, \dots$$
$$\boxed{z = (2k+1)\pi i}$$

Infinitely many solutions, evenly spaced up the imaginary axis. Over the reals, $e^x = -1$ has none at all.

Example 3 — solving $e^z = 1 + i$

Find all $z$ with $e^z = 1 + i$.

Put the right-hand side in polar form: $|1+i| = \sqrt{2}$ and $\arg(1+i) = \tfrac{\pi}{4}$.

$$e^{x} = \sqrt{2} \;\Longrightarrow\; x = \ln\sqrt{2} = \tfrac{1}{2}\ln 2$$
$$y = \tfrac{\pi}{4} + 2k\pi$$
$$\boxed{z = \tfrac{1}{2}\ln 2 + i\left(\tfrac{\pi}{4} + 2k\pi\right)}$$

The Complex Logarithm

To solve $e^w = z$ we repeat Example 3 in general. Write $z = re^{i\theta}$ with $r = |z| \gt 0$. Then $w = \ln r + i(\theta + 2k\pi)$ — and every integer $k$ gives a genuine solution.

Definition: $\ln z$ and the principal value $\operatorname{Ln} z$
$$\ln z = \ln|z| + i\left(\arg z\right) = \ln|z| + i\left(\operatorname{Arg} z + 2k\pi\right), \quad k \in \mathbb{Z}$$

This is multivalued: it returns infinitely many numbers, differing by multiples of $2\pi i$.

Taking $k = 0$, i.e. the principal argument $\operatorname{Arg} z \in (-\pi, \pi]$, gives the single principal value $\operatorname{Ln} z = \ln|z| + i\operatorname{Arg} z$.

Example 4

Find $\ln(-1)$ and $\operatorname{Ln}(-1)$.

$|-1| = 1$ so $\ln|-1| = 0$, and $\operatorname{Arg}(-1) = \pi$.

$$\ln(-1) = 0 + i(\pi + 2k\pi) = (2k+1)\pi i, \qquad \operatorname{Ln}(-1) = i\pi$$

The logarithm of a negative number exists perfectly well — it is simply not real.

Example 5

Find $\operatorname{Ln}(1 + i)$ and $\operatorname{Ln}(i)$.

$|1+i| = \sqrt 2$ and $\operatorname{Arg}(1+i) = \tfrac{\pi}{4}$:

$$\operatorname{Ln}(1+i) = \tfrac{1}{2}\ln 2 + i\tfrac{\pi}{4}$$

$|i| = 1$ and $\operatorname{Arg}(i) = \tfrac{\pi}{2}$:

$$\operatorname{Ln}(i) = 0 + i\tfrac{\pi}{2} = \tfrac{\pi}{2}i$$
$\operatorname{Ln}(z_1z_2) \ne \operatorname{Ln}z_1 + \operatorname{Ln}z_2$ in general

Take $z_1 = z_2 = -1$. Then $z_1z_2 = 1$, so

$$\operatorname{Ln}(1) = 0 \qquad\text{but}\qquad \operatorname{Ln}(-1) + \operatorname{Ln}(-1) = i\pi + i\pi = 2\pi i$$

The two differ by $2\pi i$. The law survives for the multivalued $\ln$, as an equality of sets, but forcing the answer back into $(-\pi, \pi]$ can push it off by a full turn. Never apply the log laws to $\operatorname{Ln}$ without checking the argument.

Complex Powers

Definition: $z^{\alpha}$
$$z^{\alpha} = e^{\alpha \ln z}, \qquad z \ne 0$$

Using the multivalued $\ln z$ makes $z^\alpha$ multivalued too. Using $\operatorname{Ln} z$ gives the principal value.

Example 6 — the famous one

Compute $i^{\,i}$.

By the definition, $i^{\,i} = e^{i \ln i}$, and $\ln i = i\left(\tfrac{\pi}{2} + 2k\pi\right)$.

$$i^{\,i} = e^{\,i \cdot i\left(\pi/2 + 2k\pi\right)} = e^{-\left(\pi/2 + 2k\pi\right)}$$

Every one of these values is real and positive. The principal value ($k = 0$) is

$$\boxed{i^{\,i} = e^{-\pi/2} \approx 0.2079}$$

An imaginary number raised to an imaginary power, and the answer is an ordinary real number a little over a fifth. This is the example that convinces people the definition is doing real work.

Example 7

Find the principal value of $(1+i)^{\,i}$.

From Example 5, $\operatorname{Ln}(1+i) = \tfrac12\ln 2 + i\tfrac{\pi}{4}$. So

$$(1+i)^{\,i} = e^{\,i\left(\frac12\ln 2 + i\frac{\pi}{4}\right)} = e^{-\pi/4}\,e^{\,i\frac{\ln 2}{2}}$$

Note how the $i$ swapped the two parts: the real part of the exponent became the new angle, and the imaginary part became the new modulus.

$$= e^{-\pi/4}\left[\cos\!\left(\tfrac{\ln 2}{2}\right) + i\sin\!\left(\tfrac{\ln 2}{2}\right)\right] \approx 0.4559 + 0.1577i$$

Worked Examples

Click a problem to open the full solution.

Example A: Write $e^{2 - 3i}$ in the form $a + bi$ ▼

Solution

Step 1: Split the exponent. $x = 2$, $y = -3$.

$$e^{2-3i} = e^{2}\left(\cos(-3) + i\sin(-3)\right)$$

Step 2: Use evenness and oddness. $\cos(-3) = \cos 3$ and $\sin(-3) = -\sin 3$:

$$= e^{2}\left(\cos 3 - i \sin 3\right)$$

Step 3: Evaluate (radians, not degrees):

$$\approx 7.389\left(-0.9900 - 0.1411i\right) \approx -7.315 - 1.043i$$
Check the modulus: $\left|e^{2-3i}\right|$ should be $e^2 \approx 7.389$, and indeed $\sqrt{7.315^2 + 1.043^2} \approx 7.389$ ✓
Example B: Solve $e^{z} = 3$ for all $z$ ▼

Solution

Step 1: Modulus. $\left|e^z\right| = e^x = 3$, so $x = \ln 3$.

Step 2: Argument. $3$ is positive real, so its argument is $0$ plus any whole turn: $y = 2k\pi$.

$$\boxed{z = \ln 3 + 2k\pi i, \quad k \in \mathbb{Z}}$$

Step 3: Sanity check. $k = 0$ gives the real answer $\ln 3$ you would expect; every other $k$ adds a full turn, which $e^z$ cannot see.

Example C: Find all values of $\ln(-4)$ ▼

Solution

Step 1: Modulus and argument. $|-4| = 4$ and $\operatorname{Arg}(-4) = \pi$ (the negative real axis).

Step 2: Assemble.

$$\ln(-4) = \ln 4 + i(\pi + 2k\pi)$$ $$\boxed{\ln(-4) = \ln 4 + (2k+1)\pi i, \qquad \operatorname{Ln}(-4) = \ln 4 + i\pi \approx 1.386 + 3.142i}$$
"You cannot take the log of a negative number" is a statement about real logarithms only. In $\mathbb{C}$ every nonzero number has logarithms — infinitely many of them. The only genuine exception is $z = 0$, because $e^w$ is never zero.

📝 Exam-Style Practice Problems

These problems are similar in style and difficulty to past exam questions. Click each problem to reveal the step-by-step solution.

Practice 1: Solve $e^{2z} = i$ ▼

Solution

Step 1: Polar form of the right-hand side. $|i| = 1$, $\arg i = \tfrac{\pi}{2} + 2k\pi$.

Step 2: Write $2z = a + bi$ and match.

$$e^{a} = 1 \;\Longrightarrow\; a = 0, \qquad b = \tfrac{\pi}{2} + 2k\pi$$

Step 3: Divide by 2 — carefully.

$$z = \frac{a + bi}{2} = \frac{i\left(\frac{\pi}{2} + 2k\pi\right)}{2}$$ $$\boxed{z = i\left(\frac{\pi}{4} + k\pi\right), \quad k \in \mathbb{Z}}$$
The step people lose marks on: dividing by $2$ halves the spacing as well as the angle. The solutions are $\pi$ apart, not $2\pi$ apart. Dropping the $2k\pi$ until after the division gives only half the answers.
Practice 2: Find all values of $(-8)^{1/3}$ using $z^{\alpha} = e^{\alpha\ln z}$ ▼

Solution

Step 1: The logarithm. $|-8| = 8$, $\operatorname{Arg}(-8) = \pi$, so $\ln(-8) = \ln 8 + i(\pi + 2k\pi)$.

Step 2: Multiply by $\tfrac13$.

$$\tfrac{1}{3}\ln(-8) = \tfrac{\ln 8}{3} + i\frac{\pi + 2k\pi}{3} = \ln 2 + i\frac{(2k+1)\pi}{3}$$

Step 3: Exponentiate. The modulus is $e^{\ln 2} = 2$ in every case, and $k = 0, 1, 2$ give three distinct angles before they start repeating:

$$k=0:\; 2e^{i\pi/3} = 1 + i\sqrt3 \qquad k=1:\; 2e^{i\pi} = -2 \qquad k=2:\; 2e^{i5\pi/3} = 1 - i\sqrt3$$ $$\boxed{(-8)^{1/3} = -2,\; 1 + i\sqrt{3},\; 1 - i\sqrt{3}}$$
Only one of them is the "obvious" answer. A calculator gives $-2$ and stops. The cube roots of a number always number three, spaced $120^\circ$ apart on a circle of radius $2$ — which is exactly De Moivre from Section 7.3, arrived at from a different direction.
Practice 3: Show that $\left|e^{z^{2}}\right| = e^{x^{2} - y^{2}}$ ▼

Solution

Step 1: Recall the rule. For any complex $w$, $\left|e^{w}\right| = e^{\operatorname{Re} w}$. Only the real part of the exponent affects the size.

Step 2: Find the real part of the exponent. Here $w = z^2$, and

$$z^{2} = (x+iy)^{2} = \left(x^{2} - y^{2}\right) + 2ixy \;\Longrightarrow\; \operatorname{Re}\left(z^2\right) = x^2 - y^2$$

Step 3: Conclude.

$$\boxed{\left|e^{z^{2}}\right| = e^{x^{2}-y^{2}}}$$

Step 4: Read the result. On the lines $y = \pm x$ the exponent is zero, so $\left|e^{z^2}\right| = 1$ there. Inside the regions where $|x| \gt |y|$ it grows explosively; where $|x| \lt |y|$ it decays to nothing.

Practice Problems

Problem 1

Evaluate $e^{i\pi/2}$ and $e^{-i\pi}$.

$e^{i\pi/2} = \cos\tfrac{\pi}{2} + i\sin\tfrac{\pi}{2} = i$.

$e^{-i\pi} = \cos\pi - i\sin\pi = -1$ — the same value as $e^{i\pi}$, because the two angles differ by $2\pi$.

Problem 2

Find $\left|e^{3 - 4i}\right|$.

Only the real part of the exponent matters:

$$\left|e^{3-4i}\right| = e^{3} \approx 20.09$$

The $-4i$ rotates but does not stretch.

Problem 3

Find all values of $\ln(2i)$.

$|2i| = 2$ and $\operatorname{Arg}(2i) = \tfrac{\pi}{2}$.

$$\ln(2i) = \ln 2 + i\left(\tfrac{\pi}{2} + 2k\pi\right)$$

The principal value is $\operatorname{Ln}(2i) = \ln 2 + i\tfrac{\pi}{2}$.

Multiple-Choice Check

Test your understanding with these multiple-choice questions. Click a choice to see if you're correct.

Q1: $\left|e^{3-4i}\right|$ equals

Q2: How many solutions does $e^{z} = 1$ have?

Q3: $\operatorname{Ln}(-1)$ equals

Q4: Which statement is true for all nonzero $z_1, z_2$?

Q5: The principal value of $i^{\,i}$ is

Q6: For which $z$ is $e^{z} = 0$?

Next: Trigonometric and Hyperbolic Functions

With $e^z$ in hand, the trigonometric functions come almost for free — and they behave in ways that will surprise you. The next section shows why $\sin z = 2$ has solutions.

Continue to 7.7: Trigonometric & Hyperbolic Functions →