Chapter X · The general theory of the logarithmic, exponential and circular functions

Defining the logarithm of a complex number

§230 25 min

Log ζ defined as the integral of dz/z along a path from 1 to ζ, and the question whether its value depends on the path.

Why this matters

Hardy built the real logarithm as an area, log⁡x=∫1xdt/t\log x = \int_1^x dt/t (§205), and derived everything else (the exponential, powers, ee) from it. §230 makes the same move in the complex plane: the logarithm of ζ\zeta is the integral of 1/z1/z from 11 to ζ\zeta. The definition is easy to state, but it hides a question. There are many paths from 11 to ζ\zeta, so the “logarithm” might have many values. This short lesson sets up that question; the next one answers it.

The idea

To integrate 1/z1/z from 11 to ζ\zeta we must choose a path. Any path will do, with one restriction: it may not pass through 00, where 1/z1/z is not defined. For each admissible path CC the integral ∫Cdz/z\int_C dz/z is a perfectly definite complex number. The question is how that number changes when we change CC.

Explore Does the integral depend on the path?

Try this. The blue path runs from 11 to the purple point ζ\zeta. Drag the two blue way-points and ζ\zeta itself, and read the value of the integral below the figure. First deform the path a lot while keeping it on the same side of the origin. Then drag a way-point so that the path goes round the other side of 00. Finally use the stepper to add whole turns round the origin.

Log⁡ζ=∫Cdzz=[log⁡r]+i[θ]\operatorname{Log}\zeta = \int_C \frac{dz}{z} = [\log r] + i[\theta]
z-plane: a path C from 1 to ζ
xy
w-plane: w = log r + iθ along the path
log rθ
  • path C (drag the blue way-points) and its log-image
  • end-point ζ (drag it)
  • straight line from 1 to ζ
ζ=−1.2+1.1i\zeta = -1.2 + 1.1i, so ρ=1.63\rho = 1.63 and the principal amplitude is ϕ=2.4\phi = 2.4. The integral along this path is 0.4873+2.4i0.4873 + 2.4i =log⁡ρ+i(ϕ+2kπ)= \log\rho + i(\phi + 2k\pi) with k = 0 (the principal value). The path followed by the dashed line back to 1 winds 0 times round 0.
What to notice

The value does not change at all while the path moves without crossing the origin. It jumps when the path is dragged across 00, and every jump is by exactly 2πi2\pi i (the imaginary part changes by 2π2\pi, the real part not at all). So there are many values, but not one per path: whole families of paths give the same value.

The experiment already suggests the answer. But Hardy is careful to say that, from the definition alone, three things are conceivable, and that nothing yet tells us which is true:

  1. every path from 11 to ζ\zeta gives the same value;
  2. every different path gives a different value;
  3. there are several values, each shared by a whole class of paths.

The explorer points to (3). The next lesson proves it, and identifies the classes: two paths give the same value exactly when they wind round the origin the same number of times.

Precise statements

Definition The general logarithm Hardy: §230

Let ζ\zeta be a complex number other than 00. If CC is a path from 11 to ζ\zeta that does not pass through the origin, we write

Log⁡ζ=∫Cdzz.\operatorname{Log}\zeta = \int_C \frac{dz}{z}.

Log⁡ζ\operatorname{Log}\zeta is called the general logarithm of ζ\zeta. Its value is defined only once the path CC has been chosen.

The capital L is deliberate. Hardy keeps log⁡\log for one particular value, which will be the principal value of the next lesson; the first piece of evidence is that the straight path reproduces the old logarithm.

Theorem On the positive real axis, one value is the real logarithm Hardy: §230

If ζ=ξ\zeta = \xi is real and positive and CC is the straight segment from 11 to ξ\xi, then ∫Cdz/z=log⁡ξ\int_C dz/z = \log\xi, the logarithm of Chapter IX.

Theorem Not every path gives the same value

The integral ∫Cdz/z\int_C dz/z depends on CC: for ζ=1\zeta = 1, the trivial path (staying at 11) gives 00, while the unit circle traversed once counter-clockwise gives 2πi2\pi i. So alternative (1) is false, and Log⁡\operatorname{Log} is a many-valued function.

A useful way to compare two paths is to join them into one closed path.

Lemma Two paths differ by a closed path

If C1C_1 and C2C_2 both run from 11 to ζ\zeta, avoiding 00, then

∫C1dzz−∫C2dzz=∮Γdzz,\int_{C_1}\frac{dz}{z} - \int_{C_2}\frac{dz}{z} = \oint_{\Gamma} \frac{dz}{z},

where Γ\Gamma is the closed path “along C1C_1 from 11 to ζ\zeta, then back along C2C_2 from ζ\zeta to 11”.

Proofs

Proof On the positive real axis, one value is the real logarithm
Strategy

Parametrise the segment by the real variable itself and use the definition of §229.

Parametrise

Take z=t+i⋅0z = t + i\cdot 0 for tt from 11 to ξ\xi; so ϕ(t)=t\phi(t) = t, ψ(t)=0\psi(t) = 0, and z′(t)=1z'(t) = 1. (If ξ<1\xi < 1 the parameter runs downwards; the formula below then reads −∫ξ1dt/t-\int_\xi^1 dt/t, which is the same thing.)

Compute

∫Cdz/z=∫1ξ1t⋅1 dt=log⁡ξ\int_C dz/z = \int_1^\xi \frac{1}{t}\cdot 1\,dt = \log\xi by the definition of §205. The segment does not meet 00 because ξ>0\xi > 0.

Proof Not every path gives the same value
Strategy

Exhibit two paths from 11 to 11 with different integrals. One is the constant path; the other goes once round the origin, and its integral was computed in the previous lesson.

The trivial path

A path of zero length contributes nothing: its integral is 00. Equivalently, the segment from 11 to ξ=1\xi = 1 gives log⁡1=0\log 1 = 0.

Once round the circle

On z=cos⁡t+isin⁡tz = \cos t + i\sin t, 0≤t≤2π0 \le t \le 2\pi, we have z′(t)=iz(t)z'(t) = i z(t), so ∫dz/z=∫02πi dt=2πi\int dz/z = \int_0^{2\pi} i\,dt = 2\pi i.

Conclude

Both paths are admissible paths from 11 to 11, and 0≠2πi0 \ne 2\pi i. The value of Log⁡1\operatorname{Log} 1 depends on the path.

Proof Two paths differ by a closed path
Strategy

Integrals along paths add when paths are joined, and change sign when a path is reversed.

Join and reverse

The integral along Γ\Gamma is the integral along C1C_1 plus the integral along C2C_2 traversed backwards. Reversing a path changes the sign of the integral (substitute s=t0+t1−ts = t_0 + t_1 - t; see the last quiz of the previous lesson).

Rearrange

Hence ∮Γdz/z=∫C1dz/z−∫C2dz/z\oint_\Gamma dz/z = \int_{C_1} dz/z - \int_{C_2} dz/z, which is the claim. So the whole question “how does the value depend on the path” reduces to: what can ∮dz/z\oint dz/z be round a closed path avoiding 00?

Worked examples and exercises

Exercise Two routes to ii ●○○ Hardy: §230

Compute ∫dz/z\int dz/z from 11 to ii (a) along the quarter circle z=cos⁡t+isin⁡tz = \cos t + i\sin t, 0≤t≤12π0 \le t \le \frac12\pi; (b) along the three-quarter circle z=cos⁡t−isin⁡tz = \cos t - i\sin t, 0≤t≤32π0 \le t \le \frac32\pi, which goes clockwise through −i-i and −1-1.

Hint
On a circle centred at 00, z′/zz'/z is ±i\pm i.

Solution

(a) z′=izz' = iz, so the integral is ∫0π/2i dt=12πi\int_0^{\pi/2} i\,dt = \tfrac12\pi i.

(b) Now z=cos⁡t−isin⁡tz = \cos t - i\sin t and z′=−sin⁡t−icos⁡t=−izz' = -\sin t - i\cos t = -i z, so the integral is ∫03π/2(−i) dt=−32πi\int_0^{3\pi/2} (-i)\,dt = -\tfrac32\pi i.

The two values differ by 2πi2\pi i. Together the two arcs make one complete counter-clockwise circle (route (a) out, route (b) back reversed), as the lemma predicts.

Exercise A value of Log⁡ξ\operatorname{Log}\xi other than log⁡ξ\log\xi ●○○ Hardy: §230

Let ξ>0\xi > 0. Find ∫dz/z\int dz/z along the path that goes straight from 11 to ξ\xi and then once counter-clockwise round the circle ∣z∣=ξ|z| = \xi.

Hint
Add the two pieces; on the circle of radius ξ\xi, z=ξ(cos⁡t+isin⁡t)z = \xi(\cos t + i\sin t).

Solution

The segment gives log⁡ξ\log\xi. On the circle z′=izz' = iz, so the circle gives 2πi2\pi i, independently of its radius. Total: log⁡ξ+2πi\log\xi + 2\pi i. So log⁡ξ\log\xi is one value of Log⁡ξ\operatorname{Log}\xi, not the only one; this is why Hardy refuses to write log⁡\log for the general logarithm.

Exercise Paths that do not count ●○○ Hardy: §230, Fig. 51

Which of these are admissible paths for Log⁡(−1)\operatorname{Log}(-1): (a) the segment from 11 to −1-1; (b) the upper half of the unit circle from 11 to −1-1; (c) the path from 11 straight up to 1+i1 + i, then straight to −1+i-1 + i, then straight down to −1-1? Compute the integral for each admissible path.

Hint
The segment from 11 to −1-1 passes through 00.

Solution

(a) is not admissible: it passes through 00, where 1/z1/z is undefined. (b) is admissible: z=cos⁡t+isin⁡tz = \cos t + i\sin t, 0≤t≤π0 \le t \le \pi, gives ∫0πi dt=πi\int_0^\pi i\,dt = \pi i. (c) is admissible, and the closed path formed by (c) and the reversed semicircle (b) does not enclose 00; by the next lesson its integral is 00, so (c) also gives πi\pi i. (One can check this directly by integrating along the three segments, though it is longer.)

Exercise Scaling a path ●●○ Hardy: §230

Let CC be a path from 11 to ζ\zeta avoiding 00, and let c≠0c \neq 0 be a complex number. Show that ∫cCdz/z=∫Cdz/z\int_{cC} dz/z = \int_C dz/z, where cCcC is the path t↦c z(t)t \mapsto c\,z(t) from cc to cζc\zeta.

Hint
Substitute w(t)=c z(t)w(t) = c\,z(t); then w′/w=z′/zw'/w = z'/z.

Solution

∫cCdw/w=∫t0t1c z′(t)c z(t) dt=∫t0t1z′(t)z(t) dt=∫Cdz/z\int_{cC} dw/w = \int_{t_0}^{t_1} \dfrac{c\,z'(t)}{c\,z(t)}\,dt = \int_{t_0}^{t_1} \dfrac{z'(t)}{z(t)}\,dt = \int_C dz/z. The path cCcC avoids 00 because CC does and c≠0c \ne 0. Combined with a path from 11 to cc, this is the germ of the functional equation Log⁡z1z2=Log⁡z1+Log⁡z2\operatorname{Log} z_1 z_2 = \operatorname{Log} z_1 + \operatorname{Log} z_2 proved in the next lesson.

Check yourself

Check yourself Choose one

Why must the path in the definition of Log⁡ζ\operatorname{Log}\zeta avoid the origin?

Why

The definition of §229 needs the integrand to be defined and continuous on the path. 1/z1/z has a pole at 00. The reason is not about Log⁡0\operatorname{Log} 0 (the end-point ζ=0\zeta = 0 is excluded separately), nor about principal values, which have not been defined yet.

Check yourself Enter a number

Two paths from 11 to ζ\zeta form a closed path that goes once counter-clockwise round the origin. By how much do the imaginary parts of the two values of Log⁡ζ\operatorname{Log}\zeta differ? (Give a decimal.)

Why

By the lemma the difference of the values is ∮dz/z\oint dz/z round the closed path. For one counter-clockwise turn this is 2πi2\pi i, so the imaginary parts differ by 2π≈6.28322\pi \approx 6.2832, and the real parts not at all.

Check yourself True or false?

For real positive ξ\xi, every value of Log⁡ξ\operatorname{Log}\xi equals log⁡ξ\log\xi.

Why

False. The straight path gives log⁡ξ\log\xi, but a path that also goes once round the origin gives log⁡ξ+2πi\log\xi + 2\pi i (second exercise). Only the principal value is log⁡ξ\log\xi.

Hardy’s language

Log ξ is (possibly at any rate) a many-valued function, and log ξ is only one of its values.

— G. H. Hardy, §230

Summary

Summary
  • Log⁡ζ=∫Cdz/z\operatorname{Log}\zeta = \int_C dz/z along a path CC from 11 to ζ\zeta that avoids 00.
  • For ζ=ξ>0\zeta = \xi > 0 the straight path gives the real log⁡ξ\log\xi; other paths can give other values, so Log⁡\operatorname{Log} is many-valued.
  • Two paths give values differing by ∮dz/z\oint dz/z round the closed path they form.
  • Experiment suggests the values change only when the path crosses the origin, by multiples of 2πi2\pi i; the next lesson proves it.