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

The values of the logarithm

§231 45 min

Every value of Log ζ is log|ζ| + i(φ + 2kπ), with k the number of times the path winds round the origin; the principal value, and which equations are “completely true”.

Why this matters

The previous lesson left a question open: how does Log⁡ζ=∫Cdz/z\operatorname{Log}\zeta = \int_C dz/z depend on the path CC? §231 answers it completely. The real part never depends on the path; the imaginary part is an amplitude of ζ\zeta, and which amplitude you get is decided by how many times the path winds round the origin. This one fact explains every many-valued function in the rest of the chapter, and it is the first appearance of the winding number, one of the central ideas of complex analysis.

The idea

Follow a point zz along the path, and write it in polar coordinates z=r(cos⁡θ+isin⁡θ)z = r(\cos\theta + i\sin\theta). As zz moves, its distance rr from the origin changes, and its angle θ\theta turns. Because the path avoids 00, we can let θ\theta change continuously, never jumping by 2π2\pi: if the point goes once round the origin, θ\theta increases by 2π2\pi and does not reset. The key computation (below) shows that

dzz=drr+i dθ,\frac{dz}{z} = \frac{dr}{r} + i\,d\theta,

so the integral is simply “total change of log⁡r\log r” plus ii times “total change of θ\theta”. The first is log⁡∣ζ∣−log⁡1=log⁡∣ζ∣\log|\zeta| - \log 1 = \log|\zeta|, whatever the path. The second is the total angle turned, which ends at some amplitude of ζ\zeta, but which one depends on the turns made on the way.

Explore Log ζ along a path, and all its values

Try this. On the right, the blue curve is log⁡r+iθ\log r + i\theta for the moving point, with θ\theta followed continuously; it ends at the value of the integral. Use “trace along the path” to watch it being drawn. Then drag the way-points so the path passes round the other side of the origin, and use the stepper to add whole turns before the path sets off.

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 ζ
  • principal value (k = 0), strip −π < θ ≤ π
  • other values of Log ζ
ζ=−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 end of the blue curve always lands on one of the hollow dots log⁡ρ+i(ϕ+2kπ)\log\rho + i(\phi + 2k\pi), stacked 2π2\pi apart on a vertical line: the real part never changes. Each counter-clockwise turn round 00 moves it up one dot, each clockwise turn down one. The value inside the green strip −π<θ≤π-\pi < \theta \le \pi is the principal value.

Notice also what the readout says about the dashed straight line from 11 to ζ\zeta: kk is the number of times the path, followed by that straight line back to 11, winds round the origin. If the region between the path and the straight line does not contain the origin, k=0k = 0, as Hardy’s Fig. 53 shows; his Fig. 54 is a path with k=2k = 2.

Precise statements

Throughout, ζ=ρ(cos⁡ϕ+isin⁡ϕ)\zeta = \rho(\cos\phi + i\sin\phi) with ρ=∣ζ∣>0\rho = |\zeta| > 0 and −π<ϕ≤π-\pi < \phi \le \pi, so that ϕ\phi is the principal amplitude of ζ\zeta.

Theorem The general value of Log ζ Hardy: §231

Every value of Log⁡ζ\operatorname{Log}\zeta is of the form

Log⁡ζ=log⁡ρ+i(ϕ+2kπ),\operatorname{Log}\zeta = \log\rho + i(\phi + 2k\pi),

where kk is an integer, and every integer kk occurs. The value of kk is fixed by the path: when ζ\zeta is not real and negative, it is the number of times the closed curve formed by the path and the straight line from ζ\zeta back to 11 winds round the origin (counter-clockwise counted positive). Equivalently, Log⁡ζ=log⁡∣ζ∣+iam⁡ζ\operatorname{Log}\zeta = \log|\zeta| + i\operatorname{am}\zeta, any amplitude being taken.

Definition Principal value Hardy: §231

When ζ\zeta is not real and negative, the straight path from 11 to ζ\zeta gives k=0k = 0, and the value

log⁡ζ=log⁡ρ+iϕ,−π<ϕ<π,\log\zeta = \log\rho + i\phi, \qquad -\pi < \phi < \pi,

is called the principal value of Log⁡ζ\operatorname{Log}\zeta. It is the value whose imaginary part lies between −π-\pi and π\pi, and for ζ>0\zeta > 0 it is the real logarithm. When ζ\zeta is real and negative (Examples XCIV, 1), the straight path passes through 00; the values are log⁡(−ζ)+(2k+1)πi\log(-\zeta) + (2k+1)\pi i, and Hardy takes log⁡(−ζ)+πi\log(-\zeta) + \pi i, given by a path above the real axis, as the principal value. So in all cases the principal value has −π<Im⁡log⁡ζ≤π-\pi < \operatorname{Im}\log\zeta \le \pi.

The principal value is a single-valued function, but it pays for that by being discontinuous across the negative real axis: just above the axis its imaginary part is near π\pi, just below near −π-\pi. The shared complex-map widget shows this jump.

Explore The principal value jumps across the negative real axis

Try this. Drag the purple circle so that it surrounds the origin, and look at its image under the principal logarithm on the right.

w=log⁡z (principal value)w=\log z\ \text{(principal value)}
z-plane
xy
w-plane, w = f(z)
uv
  • circles |z| = r and their images
  • rays arg z = θ and their images
  • circle (drag centre and rim) and its image
  • w = 0
Grid
Circle: centre 0.9+0.3i0.9 + 0.3i, radius 0.60.6 (z = 0 is outside it). Its image winds 1 time round w=0w = 0 (counter-clockwise counts +).
The principal value jumps by 2π i across the negative real axis.
What to notice

While the circle does not meet the negative real axis its image is a closed curve. Once it surrounds 00, its image breaks into a curve running from height −π-\pi to height π\pi and stops: following the principal value all the way round would require a jump of 2πi2\pi i where the circle crosses the negative real axis. (A circle that crosses the negative axis without surrounding 00 has an image in two pieces, near heights π\pi and −π-\pi.) The general Log⁡\operatorname{Log} has no such jump; it simply moves on to the next value. The winding number in the read-out means something only while the image is a closed curve.

Because Log⁡\operatorname{Log} is many-valued, an equation between logarithms needs a careful meaning.

Definition Completely true equations Hardy: Examples XCIV, 3

An equation between many-valued expressions is completely true (a complete equation) if every value of either side is one of the values of the other side.

Theorem The functional equation of the logarithm Hardy: Examples XCIV, 3

For all non-zero z1z_1, z2z_2,

Log⁡z1z2=Log⁡z1+Log⁡z2\operatorname{Log} z_1 z_2 = \operatorname{Log} z_1 + \operatorname{Log} z_2

is completely true. But log⁡z1z2=log⁡z1+log⁡z2\log z_1 z_2 = \log z_1 + \log z_2 (principal values) is not always true; it holds exactly when −π<am⁡z1+am⁡z2≤π-\pi < \operatorname{am} z_1 + \operatorname{am} z_2 \le \pi, the amplitudes being principal.

Proofs

Proof The general value of Log ζ
Strategy

Along the path write z=r(cos⁡θ+isin⁡θ)z = r(\cos\theta + i\sin\theta) with rr and θ\theta depending continuously (indeed differentiably) on tt. Compute z′/zz'/z in polar form, integrate, and then identify the change in θ\theta.

Choose a continuous angle

Since the path never meets 00, r(t)=∣z(t)∣>0r(t) = |z(t)| > 0, and the angle can be followed continuously from its initial value. Near any point of the path, an amplitude of zz is a smooth function of (x,y)(x, y) (for instance arctan⁡(y/x)\arctan(y/x) plus a constant where x≠0x \neq 0, or arc cot⁡(x/y)\operatorname{arc\,cot}(x/y) plus a constant where y≠0y \ne 0), so θ(t)\theta(t) is differentiable. Start with θ(t0)=0\theta(t_0) = 0, an amplitude of 11 (Hardy allows any 2kπ2k\pi; it changes nothing).

Compute z′/zz'/z in polar form

Differentiating x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta gives z′=x′+iy′=(cos⁡θ+isin⁡θ)(r′+irθ′)z' = x' + iy' = (\cos\theta + i\sin\theta)(r' + i r\theta'). Dividing by z=r(cos⁡θ+isin⁡θ)z = r(\cos\theta + i\sin\theta): z′z=r′r+iθ′\dfrac{z'}{z} = \dfrac{r'}{r} + i\theta'.

Integrate

∫Cdzz=∫t0t1r′r dt+i∫t0t1θ′ dt=[log⁡r]+i[θ],\displaystyle\int_C \frac{dz}{z} = \int_{t_0}^{t_1} \frac{r'}{r}\,dt + i\int_{t_0}^{t_1}\theta'\,dt = [\log r] + i[\theta], where [ ⋅ ][\,\cdot\,] means value at t1t_1 minus value at t0t_0.

The real part

[log⁡r]=log⁡ρ−log⁡1=log⁡ρ[\log r] = \log\rho - \log 1 = \log\rho, for every path.

The imaginary part

θ(t1)\theta(t_1) is an amplitude of ζ\zeta, so θ(t1)=ϕ+2kπ\theta(t_1) = \phi + 2k\pi for some integer kk, and [θ]=ϕ+2kπ[\theta] = \phi + 2k\pi. For the straight path to ζ\zeta (not real negative) the angle turns steadily from 00 to ϕ\phi, so k=0k = 0. A different path changes [θ][\theta] by the angle turned round the closed curve “path, then straight line back”, that is, by 2π2\pi times its winding number.

Every kk occurs

Going kk times round the unit circle first (counter-clockwise if k>0k > 0, clockwise if k<0k < 0) and then straight to ζ\zeta adds 2kπ2k\pi to [θ][\theta]. So every log⁡ρ+i(ϕ+2kπ)\log\rho + i(\phi + 2k\pi) is a value, and by the previous step there are no others.

Proof The functional equation of the logarithm
Strategy

Write both sides with the formula just proved and compare sets of values. For the principal values, watch whether the sum of the amplitudes stays in (−π,π](-\pi, \pi].

Values of the left side

Let zj=rj(cos⁡θj+isin⁡θj)z_j = r_j(\cos\theta_j + i\sin\theta_j) with principal amplitudes θj\theta_j. Then z1z2z_1 z_2 has modulus r1r2r_1 r_2 and amplitudes θ1+θ2+2nπ\theta_1 + \theta_2 + 2n\pi, so the values of Log⁡z1z2\operatorname{Log} z_1 z_2 are log⁡r1r2+i(θ1+θ2+2nπ)\log r_1 r_2 + i(\theta_1 + \theta_2 + 2n\pi), nn any integer.

Values of the right side

A value of Log⁡z1+Log⁡z2\operatorname{Log} z_1 + \operatorname{Log} z_2 is log⁡r1+i(θ1+2kπ)+log⁡r2+i(θ2+2lπ)=log⁡r1r2+i(θ1+θ2+2(k+l)π)\log r_1 + i(\theta_1 + 2k\pi) + \log r_2 + i(\theta_2 + 2l\pi) = \log r_1 r_2 + i(\theta_1 + \theta_2 + 2(k + l)\pi).

Compare

Every right-side value is a left-side value (take n=k+ln = k + l), and every left-side value is a right-side value (take k=nk = n, l=0l = 0). So the equation is completely true.

Principal values

log⁡z1+log⁡z2\log z_1 + \log z_2 has imaginary part θ1+θ2\theta_1 + \theta_2, which lies in (−2π,2π](-2\pi, 2\pi]. It is the principal value of Log⁡z1z2\operatorname{Log} z_1 z_2 exactly when it lies in (−π,π](-\pi, \pi]; otherwise it is off by ±2πi\pm 2\pi i.

Hardy’s own example: z1=z2=cos⁡23π+isin⁡23πz_1 = z_2 = \cos\frac23\pi + i\sin\frac23\pi. Then log⁡z1=log⁡z2=23πi\log z_1 = \log z_2 = \frac23\pi i, so log⁡z1+log⁡z2=43πi\log z_1 + \log z_2 = \frac43\pi i; but z1z2=cos⁡43π+isin⁡43πz_1 z_2 = \cos\frac43\pi + i\sin\frac43\pi has principal amplitude −23π-\frac23\pi, so log⁡z1z2=−23πi\log z_1 z_2 = -\frac23\pi i.

Worked examples and exercises

Exercise Some logarithms ●○○ Hardy: Examples XCIV, 1 and 11

Find all values of Log⁡(−1)\operatorname{Log}(-1), Log⁡i\operatorname{Log} i and Log⁡(1+i)\operatorname{Log}(1 + i), and say which is the principal value in each case. For which zz is (i) log⁡z\log z, (ii) some value of Log⁡z\operatorname{Log} z, real?

Hint
Use Log⁡z=log⁡∣z∣+i(ϕ+2kπ)\operatorname{Log} z = \log|z| + i(\phi + 2k\pi) with ϕ\phi the principal amplitude.

Solution

Log⁡(−1)=(2k+1)πi\operatorname{Log}(-1) = (2k + 1)\pi i; principal value πi\pi i (Hardy’s choice for negative reals). Log⁡i=(2k+12)πi\operatorname{Log} i = (2k + \tfrac12)\pi i; principal value 12πi\tfrac12\pi i. Log⁡(1+i)=12log⁡2+(2k+14)πi\operatorname{Log}(1 + i) = \tfrac12\log 2 + (2k + \tfrac14)\pi i; principal value 12log⁡2+14πi\tfrac12\log 2 + \tfrac14\pi i.

(i) log⁡z\log z is real exactly when its imaginary part ϕ\phi is 00, that is, when zz is real and positive. (ii) Some value log⁡∣z∣+i(ϕ+2kπ)\log|z| + i(\phi + 2k\pi) is real exactly when ϕ+2kπ=0\phi + 2k\pi = 0 for some kk, i.e. again when z>0z > 0; then only the value with k=0k = 0 is real. (Similarly, some value is purely imaginary exactly when ∣z∣=1|z| = 1.)

Exercise Log⁡zm\operatorname{Log} z^m and mLog⁡zm\operatorname{Log} z ●●○ Hardy: Examples XCIV, 4

Let mm be an integer with ∣m∣≥2|m| \ge 2. Show that every value of mLog⁡zm\operatorname{Log} z is a value of Log⁡zm\operatorname{Log} z^m, but not conversely.

Hint
Compare m(ϕ+2kπ)m(\phi + 2k\pi) with mϕ+2nπm\phi + 2n\pi.

Solution

With z=ρ(cos⁡ϕ+isin⁡ϕ)z = \rho(\cos\phi + i\sin\phi): zmz^m has modulus ρm\rho^m and amplitude mϕm\phi, so the values of Log⁡zm\operatorname{Log} z^m are mlog⁡ρ+i(mϕ+2nπ)m\log\rho + i(m\phi + 2n\pi), nn any integer. The values of mLog⁡zm\operatorname{Log} z are mlog⁡ρ+i(mϕ+2mkπ)m\log\rho + i(m\phi + 2mk\pi): these are the cases n=mkn = mk, i.e. only those nn that are multiples of mm. So, for example, Log⁡12\operatorname{Log} 1^2 includes 2πi2\pi i but 2Log⁡1=4kπi2\operatorname{Log} 1 = 4k\pi i does not.

Exercise Log⁡(1/z)\operatorname{Log}(1/z) ●○○ Hardy: Examples XCIV, 5

Show that Log⁡(1/z)=−Log⁡z\operatorname{Log}(1/z) = -\operatorname{Log} z is completely true, and that log⁡(1/z)=−log⁡z\log(1/z) = -\log z except when zz is real and negative.

Hint
1/z1/z has modulus 1/ρ1/\rho and amplitude −ϕ-\phi.

Solution

Values of the left: −log⁡ρ+i(−ϕ+2nπ)-\log\rho + i(-\phi + 2n\pi). Values of the right: −log⁡ρ−i(ϕ+2kπ)=−log⁡ρ+i(−ϕ−2kπ)-\log\rho - i(\phi + 2k\pi) = -\log\rho + i(-\phi - 2k\pi). Taking n=−kn = -k matches them in both directions, so the equation is completely true. For principal values: if −π<ϕ<π-\pi < \phi < \pi then −ϕ-\phi is also in (−π,π)(-\pi, \pi), so log⁡(1/z)=−log⁡ρ−iϕ=−log⁡z\log(1/z) = -\log\rho - i\phi = -\log z. If z<0z < 0 then ϕ=π\phi = \pi and 1/z<01/z < 0 too, so log⁡(1/z)=−log⁡ρ+πi\log(1/z) = -\log\rho + \pi i while −log⁡z=−log⁡ρ−πi-\log z = -\log\rho - \pi i: they differ by 2πi2\pi i.

Exercise The graph of I⁡(Log⁡x)\operatorname{I}(\operatorname{Log} x) ●○○ Hardy: Examples XCIV, 8

For real x≠0x \neq 0, draw the set of all points (x,y)(x, y) with yy a value of the imaginary part of Log⁡x\operatorname{Log} x.

Hint
Treat x>0x > 0 and x<0x < 0 separately.

Solution

For x>0x > 0 the amplitudes are 2kπ2k\pi, and for x<0x < 0 they are (2k+1)π(2k + 1)\pi. So the graph consists of the right halves of the horizontal lines y=2kπy = 2k\pi and the left halves of the lines y=(2k+1)πy = (2k + 1)\pi: an infinite staircase of half-lines, with every jump at x=0x = 0 equal to π\pi.

Exercise A switch made of logarithms ●●○ Hardy: Examples XCIV, 9

Let pp and qq be real and f(x)=p+q−pπI⁡(log⁡x)f(x) = p + \dfrac{q - p}{\pi}\operatorname{I}(\log x) for real x≠0x \neq 0, where I⁡\operatorname{I} denotes the imaginary part and log⁡\log the principal value. Show that f(x)=pf(x) = p for x>0x > 0 and f(x)=qf(x) = q for x<0x < 0.

Hint
What is the principal amplitude of a negative number, in Hardy’s convention?

Solution

For x>0x > 0, log⁡x\log x is real, so I⁡(log⁡x)=0\operatorname{I}(\log x) = 0 and f(x)=pf(x) = p. For x<0x < 0, log⁡x=log⁡(−x)+πi\log x = \log(-x) + \pi i, so I⁡(log⁡x)=π\operatorname{I}(\log x) = \pi and f(x)=p+(q−p)=qf(x) = p + (q - p) = q. (Hardy writes this as πf(x)=pπ+(q−p)I⁡(log⁡x)\pi f(x) = p\pi + (q-p)\operatorname{I}(\log x).) The point is that the principal logarithm, though built from smooth pieces, can encode a jump.

Check yourself

Check yourself Choose one

What is the principal value log⁡(−i)\log(-i)?

Why

∣−i∣=1|-i| = 1 and the principal amplitude of −i-i is −12π-\tfrac12\pi, which lies in (−π,π](-\pi, \pi]. 32πi\tfrac32\pi i is also a value of Log⁡(−i)\operatorname{Log}(-i) (take k=1k = 1), but not the principal one. The last option describes the general value, not the principal value.

Check yourself Enter a number

A path from 11 to ζ=2\zeta = 2 gives the value log⁡2−4πi\log 2 - 4\pi i of Log⁡2\operatorname{Log} 2. What is kk in log⁡ρ+i(ϕ+2kπ)\log\rho + i(\phi + 2k\pi)?

Why

Here ρ=2\rho = 2 and ϕ=0\phi = 0, so 2kπ=−4π2k\pi = -4\pi and k=−2k = -2: the path, closed up by the segment from 22 back to 11, winds twice clockwise round the origin.

Check yourself True or false?

For all non-zero z1,z2z_1, z_2, log⁡z1z2=log⁡z1+log⁡z2\log z_1 z_2 = \log z_1 + \log z_2, all logarithms principal.

Why

False. Hardy’s example z1=z2=cos⁡23π+isin⁡23πz_1 = z_2 = \cos\tfrac23\pi + i\sin\tfrac23\pi gives 43πi\tfrac43\pi i on the right and −23πi-\tfrac23\pi i on the left. The equation with Log⁡\operatorname{Log} is completely true; with principal values it holds only when the principal amplitudes add up to something in (−π,π](-\pi, \pi].

Check yourself Choose one

How does the real part of ∫Cdz/z\int_C dz/z depend on the path CC from 11 to ζ\zeta?

Why

The real part is [log⁡r][\log r], the change in log⁡∣z∣\log|z| between the ends, which is log⁡∣ζ∣−log⁡1\log|\zeta| - \log 1. Turns round the origin change the angle, and hence only the imaginary part, by 2π2\pi each.

Hardy’s language

Summary

Summary
  • Along any path, dz/z=dr/r+i dθdz/z = dr/r + i\,d\theta, so ∫Cdz/z=[log⁡r]+i[θ]\int_C dz/z = [\log r] + i[\theta].
  • The values of Log⁡ζ\operatorname{Log}\zeta are exactly log⁡∣ζ∣+i(ϕ+2kπ)\log|\zeta| + i(\phi + 2k\pi), k∈Zk \in \mathbb Z; kk counts the turns round the origin.
  • The principal value log⁡ζ\log\zeta has imaginary part in (−π,π](-\pi, \pi]; it is the real log on the positive axis and jumps by 2πi2\pi i across the negative axis.
  • Log⁡z1z2=Log⁡z1+Log⁡z2\operatorname{Log} z_1 z_2 = \operatorname{Log} z_1 + \operatorname{Log} z_2 is completely true; with principal values it can fail by ±2πi\pm 2\pi i.