Logarithms and Complex Powers

The complex logarithm of z ≠ 0 is ln z = ln|z| + i(Arg z + 2kπ), so it has infinitely many values that differ by multiples of 2πi, and complex powers are defined by zw = ew ln z. In brief: ln(−1) = iπ + 2kπi, ln i = iπ/2 + 2kπi and ii = ei · iπ/2 = e−π/2 ≈ 0.2079. The principal value Ln z uses Arg z in (−π, π].

The real logarithm is defined only for positive numbers. In the complex domain, the logarithm exists for every nonzero number, but it is multi-valued, because ez is periodic with the imaginary period 2πi. This leads to surprising results, such as the fact that ii is a real number. This guide defines the complex logarithm and the principal value, explains the rules and their limits, shows how to compute complex powers, covers logarithms of negative numbers and gives a table of values.

How is the complex logarithm defined?

A logarithm of z is any number w with ew = z. Write z = reiθ and w = u + iv: eueiv = reiθ, so eu = r and v = θ + 2kπ. Therefore

ln z = ln|z| + i(Arg z + 2kπ), k an integer.

The principal value, Ln z, takes k = 0: Ln z = ln|z| + i Arg z, with the principal argument −π < Arg z ≤ π. The principal logarithm is discontinuous on the negative real axis, where the argument jumps from π to −π. The real logarithm is the special case for positive z, where Arg z = 0.

This extends the real logarithm to negative numbers: Ln(−5) = ln 5 + iπ ≈ 1.6094 + 3.1416i. The statement that “the logarithm of a negative number does not exist” is true only for the real logarithm.

Which rules hold for complex logarithms?

Example for the failure of the product rule with principal values: Ln((−1)(−1)) = Ln 1 = 0, but Ln(−1) + Ln(−1) = iπ + iπ = 2πi. These differ by 2πi, which is a valid value of the multi-valued logarithm.

How are complex powers defined?

For z ≠ 0 and any complex w: zw = ew ln z. Because ln z is multi-valued, zw has in general infinitely many values: ew(Ln z + 2kπi) = ew Ln z · e2kπiw. The principal value is ew Ln z.

Worked examples

Example 1: logarithms of special numbers

ln(−1) = ln 1 + i(π + 2kπ) = (2k + 1)πi. So the principal value is Ln(−1) = πi. ln i = ln 1 + i(π/2 + 2kπ) = i(π/2 + 2kπ). ln(−i) = i(−π/2 + 2kπ). ln(1 + i) = ln √2 + i(π/4 + 2kπ) = 0.3466 + 0.7854i + 2kπi.

Example 2: ii

ii = ei ln i = ei · i(π/2 + 2kπ) = e−π/2 − 2kπ. The principal value is e−π/2 ≈ 0.2079. All values are real: 0.2079, 0.000388 (k = 1), 111.3 (k = −1), …

Example 3: (−1)1/3

(−1)1/3 = e(1/3)(iπ + 2kπi) = eiπ(2k + 1)/3, with the values eiπ/3 = 1/2 + (√3/2)i, eiπ = −1 and ei5π/3 = 1/2 − (√3/2)i. These are the cube roots of −1, while the real cube root −1 is just one of them.

Example 4: 2i

2i = ei ln 2 = cos(ln 2) + i sin(ln 2) = cos 0.6931 + i sin 0.6931 = 0.7692 + 0.6390i. The modulus is 1, since the exponent is purely imaginary and the base is real positive.

Example 5: (1 + i)2 − i

Ln(1 + i) = 0.3466 + 0.7854i. Multiply by (2 − i): (0.3466)(2) + (0.7854)(1) + i[(0.7854)(2) − (0.3466)(1)] = (0.6931 + 0.7854) + i(1.5708 − 0.3466) = 1.4785 + 1.2242i. Then e1.4785 = 4.386 and the angle 1.2242 rad gives cos 1.2242 = 0.3395, sin 1.2242 = 0.9406. The principal value is 4.386(0.3395 + 0.9406i) = 1.489 + 4.125i.

Example 6: solving ez = 1 + i

z = ln(1 + i) = 0.3466 + i(π/4 + 2kπ). For k = 0: z = 0.3466 + 0.7854i. Check: e0.3466 = 1.4142 = √2, and the angle 0.7854 = 45° gives √2(cos 45° + i sin 45°) = 1 + i ✓.

Example 7: a real-looking identity that fails

(e2πi)i = 1i = ei ln 1 = ei(2kπi) = e−2kπ, which includes the values 1, e−2π ≈ 0.00187, e2π ≈ 535.5. But e2πi · i = e−2π is only one of those values. So the rule (ab)c = abc must be used with care.

Table of logarithms

Principal values of the complex logarithm
z |z| Arg z Ln z
1100
ee01
−11ππi ≈ 3.1416i
i1π/2(π/2)i ≈ 1.5708i
−i1−π/2−(π/2)i
−55π1.6094 + 3.1416i
1 + i√2π/40.3466 + 0.7854i
−1 + i√23π/40.3466 + 2.3562i
−1 − i√2−3π/40.3466 − 2.3562i

Where does the idea come from?

The logarithm of a negative number was the subject of a famous dispute between Leibniz and Johann Bernoulli in 1712–1713: Bernoulli held that ln(−x) = ln x, while Leibniz argued that logarithms of negative numbers are imaginary. Euler settled the question in 1749, showing that the logarithm has infinitely many values, all differing by multiples of 2πi, as a consequence of his formula eiθ = cos θ + i sin θ.

Where is it used today?

The complex logarithm is used in signal processing (the cepstrum and phase unwrapping), in the solution of linear differential equations and in complex analysis, where the Riemann surface of the logarithm is the standard example of a multi-valued function made single-valued on a surface. In engineering, the logarithm of a complex gain gives the decibel magnitude and the phase: ln(Aeiφ) = ln A + iφ.

Which mistakes are common?

Treating ln z as single-valued

Specify the principal value Ln z, or give the general expression with 2kπi.

Applying real rules blindly

ln(z2) is not always 2 ln z, and (ab)c is not always abc for complex numbers.

Using the wrong argument for negative numbers

For the principal value, Arg(−5) = π, not −π.

Thinking ii is imaginary

ii = e−π/2 is a real number.