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

The logarithmic series

§§244–245 45 min

log(1 + z) = z − z²/2 + z³/3 − … for |z| ≤ 1 except z = −1, with the principal value; on the unit circle it gives the cosine and sine series of a logarithm and a saw-tooth.

Why this matters

For real xx with −1<x≤1-1 < x \le 1, Chapter IX proved log⁡(1+x)=x−12x2+13x3−⋯\log(1 + x) = x - \tfrac12 x^2 + \tfrac13 x^3 - \cdots (§220). The series converges for complex zz with ∣z∣<1|z| < 1 too, but its sum must be some logarithm of 1+z1 + z, and there are infinitely many. §244 proves that it is always the principal value, and that the formula even survives on the circle ∣z∣=1|z| = 1, except at z=−1z = -1. §245 then splits it into real and imaginary parts and finds, on the circle, two famous trigonometric series: one sums to a logarithm, the other to a saw-tooth that jumps.

The idea

Two things have to be explained. First, why the principal value? Because for ∣z∣<1|z| < 1 the point 1+z1 + z lies in the disc of radius 11 about 11, which sits in the right half-plane, so the straight segment from 11 to 1+z1 + z never comes near 00 or crosses the negative real axis. Integrating du/udu/u along that segment gives the principal logarithm (§231), and integrating the geometric series for 1/u1/u term by term gives the power series.

Second, what happens on the circle ∣z∣=1|z| = 1? The terms zn/nz^n/n no longer shrink geometrically, only like 1/n1/n, so convergence is slow and depends on cancellation between terms that point in different directions.

Explore Partial sums of the logarithmic series

Try this. Add terms with zz inside the unit circle and watch the polygon close in on the hollow dot, the principal value log⁡(1+z)\log(1 + z). Then switch on “keep zz on the circle” and drag zz round it, towards −1-1, with many terms (try n=100n = 100 and more).

z−z22+z33−⋯  →  log⁡(1+z)z - \frac{z^2}{2} + \frac{z^3}{3} - \cdots \;\to\; \log(1+z)
ReIm
  • z (drag it)
  • partial sums sₖ, one side per term
  • principal value log(1 + z)
z=0.3+0.75iz = 0.3 + 0.75i, ∣z∣=0.808|z| = 0.808. Partial sum: 0.37131+0.55819i0.37131 + 0.55819i. Sum: 0.40602+0.52328i0.40602 + 0.52328i; distance 0.04920.0492. Next term has modulus 0.06880.0688.
What to notice

Inside the circle the polygon converges quickly. On the circle the sides shrink only like 1/n1/n, so the polygon creeps round a slowly tightening spiral; it still converges, except at z=−1z = -1, where the sum is −(1+12+13+⋯ )-(1 + \tfrac12 + \tfrac13 + \cdots) and diverges. Near −1-1 the target log⁡(1+z)\log(1 + z) itself runs off to infinity.

Precise statements

Theorem The logarithmic series Hardy: §244 (5), (6)

For all complex zz with ∣z∣≤1|z| \le 1, except z=−1z = -1,

log⁡(1+z)=z−z22+z33−⋯ ,\log(1 + z) = z - \frac{z^2}{2} + \frac{z^3}{3} - \cdots,

where log⁡\log is the principal value. The series converges absolutely for ∣z∣<1|z| < 1 and conditionally for ∣z∣=1|z| = 1, z≠−1z \ne -1. Replacing zz by −z-z: log⁡11−z=z+z22+z33+⋯\log\dfrac{1}{1 - z} = z + \dfrac{z^2}{2} + \dfrac{z^3}{3} + \cdots for ∣z∣≤1|z| \le 1, z≠1z \ne 1.

Write z=r(cos⁡θ+isin⁡θ)z = r(\cos\theta + i\sin\theta). Then 1+z=(1+rcos⁡θ)+irsin⁡θ1 + z = (1 + r\cos\theta) + ir\sin\theta, and when r<1r < 1 its real part is positive, so its principal amplitude is arctan⁡rsin⁡θ1+rcos⁡θ\arctan\dfrac{r\sin\theta}{1 + r\cos\theta} with the inverse tangent between −12π-\tfrac12\pi and 12π\tfrac12\pi. Equating real and imaginary parts:

Corollary Real and imaginary parts Hardy: §245

For 0≤r<10 \le r < 1 and all θ\theta (and for r=1r = 1, θ\theta not an odd multiple of π\pi),

rcos⁡θ−12r2cos⁡2θ+13r3cos⁡3θ−⋯=12log⁡(1+2rcos⁡θ+r2),r\cos\theta - \tfrac12 r^2\cos 2\theta + \tfrac13 r^3\cos 3\theta - \cdots = \tfrac12\log(1 + 2r\cos\theta + r^2),rsin⁡θ−12r2sin⁡2θ+13r3sin⁡3θ−⋯=arctan⁡rsin⁡θ1+rcos⁡θ.r\sin\theta - \tfrac12 r^2\sin 2\theta + \tfrac13 r^3\sin 3\theta - \cdots = \arctan\frac{r\sin\theta}{1 + r\cos\theta}.
Corollary On the unit circle Hardy: §245, Fig. 55

For −π<θ<π-\pi < \theta < \pi,

cos⁡θ−12cos⁡2θ+13cos⁡3θ−⋯=12log⁡(4cos⁡212θ),sin⁡θ−12sin⁡2θ+13sin⁡3θ−⋯=12θ.\cos\theta - \tfrac12\cos 2\theta + \tfrac13\cos 3\theta - \cdots = \tfrac12\log(4\cos^2\tfrac12\theta), \qquad \sin\theta - \tfrac12\sin 2\theta + \tfrac13\sin 3\theta - \cdots = \tfrac12\theta.

Both sums are periodic with period 2π2\pi. So the cosine series equals 12log⁡(4cos⁡212θ)\tfrac12\log(4\cos^2\tfrac12\theta) for all θ\theta except odd multiples of π\pi (where it diverges), and the sine series equals 12(θ−2kπ)\tfrac12(\theta - 2k\pi) for (2k−1)π<θ<(2k+1)π(2k - 1)\pi < \theta < (2k + 1)\pi and 00 at odd multiples of π\pi: a discontinuous saw-tooth.

Explore A continuous series with a discontinuous sum

Try this. Increase the number of terms NN from 11 to 300300 and watch the blue partial sum approach the dashed saw-tooth. Put θ\theta close to π\pi and compare partial sum and limit. Then switch to the real part (cosines).

sin⁡θ−12sin⁡2θ+13sin⁡3θ−⋯=12θ(−π<θ<π)\sin\theta - \tfrac12\sin 2\theta + \tfrac13\sin 3\theta - \cdots = \tfrac12\theta \quad (-\pi < \theta < \pi)
θ
  • partial sum with N = 5 terms
  • the sum of the series
  • your θ
Part
At θ=2.6\theta = 2.6 the partial sum is 1.58111.5811 and the sum is 1.31.3. Near θ = ±π (z near −1) the partial sums converge slowly and overshoot the jump.
What to notice

Every partial sum is a continuous function of θ\theta, yet the limit jumps by π\pi at each odd multiple of π\pi, where z=−1z = -1. Near the jump the partial sums converge slowly and overshoot (the Gibbs phenomenon); exactly at θ=π\theta = \pi every term is 00, so the sum is 00, the midpoint of the jump. The cosine series dives to −∞-\infty at θ=π\theta = \pi, matching 12log⁡(4cos⁡212θ)\tfrac12\log(4\cos^2\tfrac12\theta).

Proofs

Proof The logarithmic series
Strategy

Since the real case is known (§220), take zz not real. Integrate du/udu/u along the straight segment from 11 to 1+z1 + z, which gives the principal value. On the segment, expand 1/u1/u as a finite geometric sum plus an exact remainder, integrate, and show the remainder tends to 00. Working with a finite sum and an exact remainder avoids any question about integrating an infinite series term by term.

Parametrise the segment

Write z=rζz = r\zeta with r=∣z∣≤1r = |z| \le 1 and ∣ζ∣=1|\zeta| = 1. The segment is u=1+ζtu = 1 + \zeta t, 0≤t≤r0 \le t \le r, with du/dt=ζdu/dt = \zeta. It does not pass through 00 (that would need ζt=−1\zeta t = -1, i.e. zz real and negative), and by §231 it gives the principal value: log⁡(1+z)=∫0rζ dt1+ζt\log(1 + z) = \displaystyle\int_0^r \frac{\zeta\,dt}{1 + \zeta t}.

Finite geometric sum

For any mm, ζ1+ζt=ζ−ζ2t+ζ3t2−⋯+(−1)m−1ζmtm−1+(−1)mζm+1tm1+ζt\dfrac{\zeta}{1 + \zeta t} = \zeta - \zeta^2 t + \zeta^3 t^2 - \cdots + (-1)^{m-1}\zeta^m t^{m-1} + \dfrac{(-1)^m\zeta^{m+1}t^m}{1 + \zeta t}, an algebraic identity (sum of a geometric progression).

Integrate

Integrating from 00 to rr and using ζkrk=zk\zeta^k r^k = z^k: log⁡(1+z)=z−z22+⋯+(−1)m−1zmm+Rm\log(1 + z) = z - \dfrac{z^2}{2} + \cdots + (-1)^{m-1}\dfrac{z^m}{m} + R_m, with Rm=(−1)mζm+1∫0rtm dt1+ζtR_m = (-1)^m\zeta^{m+1}\displaystyle\int_0^r\frac{t^m\,dt}{1 + \zeta t}.

Bound the remainder

∣1+ζt∣|1 + \zeta t| is the distance from 00 to the point uu of the segment, which is at least the distance ϖ>0\varpi > 0 from 00 to the whole line through 11 in the direction ζ\zeta (positive because zz is not real, so the line misses 00). By the lemma of §229 (or §170), ∣Rm∣≤1ϖ∫0rtm dt=rm+1(m+1)ϖ≤1(m+1)ϖ|R_m| \le \dfrac{1}{\varpi}\displaystyle\int_0^r t^m\,dt = \dfrac{r^{m+1}}{(m+1)\varpi} \le \dfrac{1}{(m+1)\varpi}.

Let m→∞m \to \infty

Rm→0R_m \to 0, so the partial sums converge to log⁡(1+z)\log(1 + z). This works for r=1r = 1 too; only z=−1z = -1 is excluded (it is real, and there the segment ends at 00). Absolute convergence for ∣z∣<1|z| < 1 follows by comparison with ∑∣z∣n\sum |z|^n; for ∣z∣=1|z| = 1, ∑∣z∣n/n\sum |z|^n/n is the harmonic series, so the convergence is only conditional.

Proof The series on the unit circle
Strategy

Put r=1r = 1 and simplify 1+cos⁡θ+isin⁡θ1 + \cos\theta + i\sin\theta with half-angle formulae; then read off real and imaginary parts.

Half angles

1+cos⁡θ+isin⁡θ=2cos⁡212θ+2isin⁡12θcos⁡12θ=2cos⁡12θ (cos⁡12θ+isin⁡12θ)1 + \cos\theta + i\sin\theta = 2\cos^2\tfrac12\theta + 2i\sin\tfrac12\theta\cos\tfrac12\theta = 2\cos\tfrac12\theta\,(\cos\tfrac12\theta + i\sin\tfrac12\theta).

Principal logarithm

For −π<θ<π-\pi < \theta < \pi, 2cos⁡12θ>02\cos\tfrac12\theta > 0 and 12θ∈(−12π,12π)\tfrac12\theta \in (-\tfrac12\pi, \tfrac12\pi), so log⁡(1+z)=log⁡(2cos⁡12θ)+12iθ=12log⁡(4cos⁡212θ)+12iθ\log(1 + z) = \log(2\cos\tfrac12\theta) + \tfrac12 i\theta = \tfrac12\log(4\cos^2\tfrac12\theta) + \tfrac12 i\theta.

Equate parts

The real and imaginary parts of ∑(−1)n−1zn/n\sum (-1)^{n-1}z^n/n with zn=cos⁡nθ+isin⁡nθz^n = \cos n\theta + i\sin n\theta are the cosine and sine series. Each term has period 2π2\pi in θ\theta, so the sums do too; at θ=±π\theta = \pm\pi every sin⁡nθ\sin n\theta vanishes, so the sine series sums to 00 there.

Finally, writing iziz and −iz-iz for zz and subtracting gives 12ilog⁡1+iz1−iz=z−13z3+15z5−⋯\frac{1}{2i}\log\frac{1 + iz}{1 - iz} = z - \tfrac13 z^3 + \tfrac15 z^5 - \cdots for ∣z∣<1|z| < 1; for real zz this is Gregory’s series for arctan⁡z\arctan z (§221), now explained by §241.

Worked examples and exercises

Exercise Leibniz and log 2 at once ●○○ Hardy: §245

Put z=iz = i in the logarithmic series and equate real and imaginary parts.

Hint
log⁡(1+i)=12log⁡2+14πi\log(1 + i) = \tfrac12\log 2 + \tfrac14\pi i (principal value). The powers of ii cycle with period 44.

Solution

i−12i2+13i3−14i4+⋯=i+12−13i−14+15i+16−⋯i - \tfrac12 i^2 + \tfrac13 i^3 - \tfrac14 i^4 + \cdots = i + \tfrac12 - \tfrac13 i - \tfrac14 + \tfrac15 i + \tfrac16 - \cdots. The theorem applies (∣i∣=1|i| = 1, i≠−1i \ne -1) and gives 12log⁡2+14πi\tfrac12\log 2 + \tfrac14\pi i. Real parts: 12−14+16−18+⋯=12log⁡2\tfrac12 - \tfrac14 + \tfrac16 - \tfrac18 + \cdots = \tfrac12\log 2, which is half the real series at x=1x = 1. Imaginary parts: 1−13+15−⋯=14π1 - \tfrac13 + \tfrac15 - \cdots = \tfrac14\pi, Leibniz’s series. (Splitting a convergent complex series into real and imaginary parts is always allowed.)

Exercise A formula for a triangle ●●○ Hardy: Examples XCVIII, 1

In a triangle with sides a>ba > b and cc opposite the angle CC, prove log⁡c=log⁡a−bacos⁡C−b22a2cos⁡2C−b33a3cos⁡3C−⋯\log c = \log a - \dfrac{b}{a}\cos C - \dfrac{b^2}{2a^2}\cos 2C - \dfrac{b^3}{3a^3}\cos 3C - \cdots.

Hint
c2=a2+b2−2abcos⁡C=a2 (1−w)(1−wˉ)c^2 = a^2 + b^2 - 2ab\cos C = a^2\,(1 - w)(1 - \bar w) with w=(b/a)(cos⁡C+isin⁡C)w = (b/a)(\cos C + i\sin C).

Solution

Since (1−w)(1−wˉ)=1−2Re⁡w+∣w∣2=1−2bacos⁡C+b2a2(1 - w)(1 - \bar w) = 1 - 2\operatorname{Re}w + |w|^2 = 1 - \tfrac{2b}{a}\cos C + \tfrac{b^2}{a^2}, we have c2=a2∣1−w∣2c^2 = a^2|1 - w|^2, so log⁡c=log⁡a+log⁡∣1−w∣=log⁡a+Re⁡log⁡(1−w)\log c = \log a + \log|1 - w| = \log a + \operatorname{Re}\log(1 - w). As ∣w∣=b/a<1|w| = b/a < 1, the theorem (with −w-w) gives log⁡(1−w)=−∑wn/n\log(1 - w) = -\sum w^n/n, and Re⁡wn=(b/a)ncos⁡nC\operatorname{Re}w^n = (b/a)^n\cos nC. Hence log⁡c=log⁡a−∑n≥1bnnancos⁡nC\log c = \log a - \sum_{n \ge 1}\dfrac{b^n}{na^n}\cos nC.

Exercise A rotated series ●●○ Hardy: Examples XCVIII, 3 (part)

Let −1<r<1-1 < r < 1 and θ\theta be real. Prove that

rsin⁡θ+12r2cos⁡2θ−13r3sin⁡3θ−14r4cos⁡4θ+⋯=12log⁡(1+2rsin⁡θ+r2).r\sin\theta + \tfrac12 r^2\cos 2\theta - \tfrac13 r^3\sin 3\theta - \tfrac14 r^4\cos 4\theta + \cdots = \tfrac12\log(1 + 2r\sin\theta + r^2).
Hint
Apply the first corollary to w=−izw = -iz where z=r(cos⁡θ+isin⁡θ)z = r(\cos\theta + i\sin\theta); then w=r{cos⁡(θ−12π)+isin⁡(θ−12π)}w = r\{\cos(\theta - \tfrac12\pi) + i\sin(\theta - \tfrac12\pi)\}.
Solution

The corollary with angle ϕ=θ−12π\phi = \theta - \tfrac12\pi gives ∑n≥1(−1)n−1nrncos⁡nϕ=12log⁡(1+2rcos⁡ϕ+r2)\sum_{n \ge 1}\dfrac{(-1)^{n-1}}{n}r^n\cos n\phi = \tfrac12\log(1 + 2r\cos\phi + r^2), and cos⁡ϕ=sin⁡θ\cos\phi = \sin\theta, so the right side is 12log⁡(1+2rsin⁡θ+r2)\tfrac12\log(1 + 2r\sin\theta + r^2). (For negative rr the corollary still holds: replace rr by ∣r∣|r| and ϕ\phi by ϕ+π\phi + \pi.)

On the left, cos⁡n(θ−12π)\cos n(\theta - \tfrac12\pi) cycles with period 44 in nn: it equals sin⁡θ\sin\theta, −cos⁡2θ-\cos 2\theta, −sin⁡3θ-\sin 3\theta, cos⁡4θ\cos 4\theta for n=1,2,3,4n = 1, 2, 3, 4, and so on. With the signs (−1)n−1/n(-1)^{n-1}/n the terms are rsin⁡θr\sin\theta, +12r2cos⁡2θ+\tfrac12 r^2\cos 2\theta, −13r3sin⁡3θ-\tfrac13 r^3\sin 3\theta, −14r4cos⁡4θ-\tfrac14 r^4\cos 4\theta, …, as stated. In other words, the series is the real part of log⁡(1−iz)\log(1 - iz).

Exercise The other values of θ ●●○ Hardy: §245

Using periodicity, find the sum of sin⁡θ−12sin⁡2θ+13sin⁡3θ−⋯\sin\theta - \tfrac12\sin 2\theta + \tfrac13\sin 3\theta - \cdots at θ=3\theta = 3, θ=4\theta = 4 and θ=7π\theta = 7\pi.

Hint
The sum is 12(θ−2kπ)\tfrac12(\theta - 2k\pi) on ((2k−1)π,(2k+1)π)((2k - 1)\pi, (2k + 1)\pi).

Solution

θ=3\theta = 3 lies in (−π,π)(-\pi, \pi): sum 32\tfrac32. θ=4\theta = 4 lies in (π,3π)(\pi, 3\pi), so k=1k = 1: sum 12(4−2π)≈−1.1416\tfrac12(4 - 2\pi) \approx -1.1416. θ=7π\theta = 7\pi is an odd multiple of π\pi: every term sin⁡7nπ\sin 7n\pi is 00, so the sum is 00. Note the jump between θ=3\theta = 3 and θ=4\theta = 4: the sum goes from about +1.57+1.57 down to −1.57-1.57 as θ\theta passes π\pi.

Check yourself

Check yourself Choose one

For ∣z∣<1|z| < 1, the sum of z−z2/2+z3/3−⋯z - z^2/2 + z^3/3 - \cdots is

Why

The series is a continuous function of zz on the disc and equals the principal value; the proof integrates along the straight segment from 11 to 1+z1 + z, which stays in the right half-plane, and that path gives k=0k = 0 in §231. Its imaginary part is the amplitude of 1+z1 + z, which lies between −12π-\tfrac12\pi and 12π\tfrac12\pi.

Check yourself True or false?

The logarithmic series converges at every point of the circle ∣z∣=1|z| = 1 except z=−1z = -1.

Why

True (Hardy proves slightly more than the real case: the remainder bound 1/{(m+1)ϖ}1/\{(m+1)\varpi\} needs only ϖ>0\varpi > 0). At z=−1z = -1 the series is −(1+12+13+⋯ )-(1 + \tfrac12 + \tfrac13 + \cdots), which diverges to −∞-\infty.

Check yourself Enter a number

What is the sum of sin⁡θ−12sin⁡2θ+13sin⁡3θ−⋯\sin\theta - \tfrac12\sin 2\theta + \tfrac13\sin 3\theta - \cdots at θ=π\theta = \pi?

Why

Every term is ±1nsin⁡nπ=0\pm\tfrac1n\sin n\pi = 0, so the sum is 00, although the limits from the two sides are 12π\tfrac12\pi and −12π-\tfrac12\pi. The sum function is discontinuous there.

Check yourself Choose one

In arctan⁡rsin⁡θ1+rcos⁡θ\arctan\dfrac{r\sin\theta}{1 + r\cos\theta} (for 0≤r<10 \le r < 1), which value of the inverse tangent is meant?

Why

It is the principal amplitude of 1+z1 + z, and since Re⁡(1+z)=1+rcos⁡θ>0\operatorname{Re}(1 + z) = 1 + r\cos\theta > 0, that amplitude lies strictly between −12π-\tfrac12\pi and 12π\tfrac12\pi. The series has a single sum, so “any value” is wrong.

Hardy’s language

The function is discontinuous for θ = (2k + 1)π.

— G. H. Hardy, §245

Summary

Summary
  • log⁡(1+z)=z−z2/2+z3/3−⋯\log(1 + z) = z - z^2/2 + z^3/3 - \cdots for ∣z∣≤1|z| \le 1, z≠−1z \ne -1, with the principal logarithm.
  • Proof: integrate du/udu/u along the segment from 11 to 1+z1 + z, using a finite geometric sum with an exact remainder bounded by 1/{(m+1)ϖ}1/\{(m + 1)\varpi\}.
  • Real and imaginary parts give ∑(−1)n−1rncos⁡nθ/n=12log⁡(1+2rcos⁡θ+r2)\sum (-1)^{n-1} r^n\cos n\theta/n = \tfrac12\log(1 + 2r\cos\theta + r^2) and the matching arctan formula.
  • On ∣z∣=1|z| = 1: the sine series sums to the saw-tooth 12θ\tfrac12\theta on (−π,π)(-\pi, \pi), discontinuous at odd multiples of π\pi, where z=−1z = -1.