These are brief answers and hints, not full solutions: they give the result and the key step, so that you can check your own work. Try each exercise properly before looking.
5.1 Machin’s Formula
\((5 - \mathrm{i})^2(1 + \mathrm{i}) = (24 - 10\mathrm{i})(1 + \mathrm{i}) = 34 + 14\mathrm{i}\), whose argument is \(\tan^{-1}\frac{7}{17}\). Its argument is also \(-2\tan^{-1}\frac15 + \frac\pi4\).
\((2 + \mathrm{i})(3 + \mathrm{i}) = 5 + 5\mathrm{i}\), with argument \(\frac\pi4\).
\((3 + \mathrm{i})^2(7 + \mathrm{i}) = (8 + 6\mathrm{i})(7 + \mathrm{i}) = 50 + 50\mathrm{i}\).
The series alternate, so the error is less than the first omitted term. For \(16\tan^{-1}\frac15\) you need the omitted term \(\frac{16}{(2N + 1)5^{2N+1}}\) below \(5 \times 10^{-21}\), which needs \(N = 14\) terms; for \(4\tan^{-1}\frac{1}{239}\), \(4\) terms suffice. With a calculator, \(16\bigl(\frac15 - \frac{1}{3 \cdot 5^3} + \frac{1}{5 \cdot 5^5}\bigr) - \frac{4}{239} \approx 3.14162\).
5.2 The Roots-of-Unity Filter
\((1 + 1)^n + (1 - 1)^n = 2\bigl(\binom n0 + \binom n2 + \cdots\bigr)\), so the sum is \(2^{n-1}\) for \(n \geq 1\).
Multiply by \(\omega^{-1}\) and \(\omega^{-2}\) before averaging: \(\frac13\bigl(2^n + \omega^{-1}(1 + \omega)^n + \omega^{-2}(1 + \omega^2)^n\bigr)\). Since \(1 + \omega = \mathrm{e}^{\mathrm{i}\pi/3}\), this is \(\frac13\bigl(2^n + 2\cos\frac{(n - 2)\pi}{3}\bigr)\). The third residue gives \(\frac13\bigl(2^n + 2\cos\frac{(n + 2)\pi}{3}\bigr)\), and the three cosines \(\cos x + \cos(x - \frac{2\pi}{3}) + \cos(x + \frac{2\pi}{3})\) sum to \(0\).
Average \((1 + \mathrm{i}^j)^n\) over \(j = 0, 1, 2, 3\): the sum is \(\frac14\bigl(2^n + (1 + \mathrm{i})^n + 0 + (1 - \mathrm{i})^n\bigr)\), and \((1 \pm \mathrm{i})^n = 2^{n/2}\mathrm{e}^{\pm\mathrm{i}n\pi/4}\).
By size: \(\frac13(2^{12} + 2\cos4\pi) = 1366\). By sum: \(\prod(1 + \omega^j)\) has four factors each of \(2\), \(1 + \omega\) and \(1 + \omega^2\), and \((1 + \omega)(1 + \omega^2) = 1\), so it equals \(16\) (and so does the product at \(\omega^2\)). The count is \(\frac13(4096 + 16 + 16) = 1376\).
5.3 Factorising \(z^{2n} + 1\)
Part (ii) with \(n = 7\) gives \(\cos^2\frac{\pi}{14}\cos^2\frac{3\pi}{14}\cos^2\frac{5\pi}{14} = \frac{7}{64}\), and all three cosines are positive. For the second, let \(c = \cos\frac\pi7\cos\frac{2\pi}7\cos\frac{4\pi}7\). Then \(8c\sin\frac\pi7 = \sin\frac{8\pi}{7} = -\sin\frac\pi7\), so \(c = -\frac18\); and \(\cos\frac{4\pi}{7} = -\cos\frac{3\pi}{7}\).
At \(z = 1\), \(2 = \prod\bigl(2 - 2\cos\frac{(2k - 1)\pi}{2n}\bigr) = \prod 4\sin^2\frac{(2k - 1)\pi}{4n}\), so the product of the sines (all positive) is \(\sqrt{2/4^n} = 2^{\frac12 - n}\).
\(z^6 + 1 = (z^2 - \sqrt3z + 1)(z^2 + 1)(z^2 + \sqrt3z + 1)\); the outer two multiply to \(z^4 - z^2 + 1\).
The roots of \(z^{2n} = 1\) are \(\pm1\) and the conjugate pairs \(\mathrm{e}^{\pm\mathrm{i}k\pi/n}\) for \(1 \leq k \leq n - 1\), so \(\frac{z^{2n} - 1}{z^2 - 1} = \prod_{k=1}^{n-1}\bigl(z^2 - 2z\cos\frac{k\pi}{n} + 1\bigr)\). Let \(z \to 1\): the left side tends to \(n\), and the right side is \(\prod4\sin^2\frac{k\pi}{2n}\).
5.4 Distances in a Regular Polygon
Square: \(\sqrt2 \times 2 \times \sqrt2 = 4\). Triangle: \(\sqrt3 \times \sqrt3 = 3\).
Put \(X_k = \omega^k\) and \(P = r\) on the positive real axis. Then \(\prod|r - \omega^k| = |r^n - 1|\).
By AM–GM the average is at least the geometric mean, \(n^{1/(n-1)}\). For \(n = 6\) the chords are \(1\), \(\sqrt3\), \(2\), \(\sqrt3\), \(1\), with average \(\frac{4 + 2\sqrt3}{5} \approx 1.493\), against \(6^{1/5} \approx 1.431\).
By part (ii), the product of the \(n - 1\) chords from each vertex is \(n\). Multiplying over all \(n\) vertices gives \(n^n\), and counts every chord twice, so the product of the \(\binom n2\) chords is \(n^{n/2}\).
5.5 Rational Angles That Aren’t
Take vertices \((1, 1, 1)\), \((1, -1, -1)\), \((-1, 1, -1)\), \((-1, -1, 1)\) and centre \(O\). Two bond vectors have dot product \(-1\) and lengths \(\sqrt3\), so the bond angle is \(\cos^{-1}(-\frac13)\). The outward normal to a face is the negative of the vector to the opposite vertex, so the angle between outward normals is also \(\cos^{-1}(-\frac13)\), and the angle between the faces is its supplement, \(\cos^{-1}\frac13\).
Let \((4 + 3\mathrm{i})^k = a_k + \mathrm{i}b_k\). Since \(4 + 3\mathrm{i}\) and its conjugate are the roots of \(t^2 - 8t + 25\), \(b_{k+1} = 8b_k - 25b_{k-1} \equiv 3b_k \pmod5\), and \(b_1 = 3\), so \(b_k \equiv 3^k \not\equiv 0 \pmod 5\). No power is real. If the angle were a rational number of degrees, some multiple of it would be a multiple of \(180^\circ\), and that power would be real.
With \(a = 2\), \(a^2 - 1 = 3\) is odd, so the parity argument fails. Indeed \(\cos^{-1}\frac12 = 60^\circ\) is rational; with \(k = 3\) the sine bracket is \(3 - \binom33 \cdot 3 = 0\).
\(0^\circ\), \(60^\circ\) and \(90^\circ\), with cosines \(1\), \(\frac12\) and \(0\). Niven’s theorem says that the only rational values of \(\cos\) at rational multiples of \(180^\circ\) are \(0\), \(\pm\frac12\) and \(\pm1\).
5.6 The Fermat Point
Inwards, the apexes are \(A + (1 - \bar\alpha)(B - A)\) and so on. In the example with \(p = 2\), \(q = 1.4\), \(r = 1.1\), the line through \(C\) and the new \(L\) misses \(O\) (the test \(\operatorname{Im}(\bar CL') = 0\) fails), and so do the other two.
The centre of an equilateral triangle is its centroid. With \(L = \alpha(p + q)\), \(M = -(q + r)\) and \(N = -\alpha^2(p + r)\), the centres \(G_1\), \(G_2\), \(G_3\) of \(ABL\), \(BCM\), \(CAN\) satisfy \(G_3 - G_1 = \alpha(G_2 - G_1)\) (expand using \(\alpha^2 = \alpha - 1\)), which says that \(G_1G_2G_3\) is equilateral. In the example its side is \(\frac{p + q + r}{\sqrt3} \approx 2.598\).
\(PA + PB + PC\) is about \(5.68\) at \(A\), \(5.13\) at \(B\), \(4.89\) at \(C\) and \(4.54\) at the centroid; all exceed \(4.5\).
Equilateral (in one orientation or the other) means \(z_1 + \omega z_2 + \omega^2z_3 = 0\) or \(z_1 + \omega^2z_2 + \omega z_3 = 0\), where \(\omega = \mathrm{e}^{2\pi\mathrm{i}/3}\). Using \(\omega + \omega^2 = -1\), the product of the two left sides is \(z_1^2 + z_2^2 + z_3^2 - z_1z_2 - z_2z_3 - z_3z_1\).
5.7 The Complex Exponential as a Map
\(\mathrm{e}^w = -1\) when \(w = (2k + 1)\pi\mathrm{i}\); \(\mathrm{e}^w = 1 + \mathrm{i}\) when \(w = \frac12\ln2 + \mathrm{i}\bigl(\frac\pi4 + 2k\pi\bigr)\), for integers \(k\).
The region \(1 \leq |z| \leq \mathrm{e}\), \(0 \leq \arg z \leq 1\) (one radian): a piece of an annulus. The bottom edge goes to \([1, \mathrm{e}]\) on the real axis, the right edge to an arc of radius \(\mathrm{e}\), the top edge to a radial segment at angle \(1\), and the left edge to an arc of the unit circle.
The ray is along the radius; the circle’s tangent is perpendicular to the radius. This matches the lines \(u = c\) and \(v = d\) because \(\mathrm{e}^w\) preserves angles (its derivative is never \(0\)).
\((x + \mathrm{i}y)^2 = x^2 - y^2 + 2\mathrm{i}xy\). The line \(x = c\) goes to \(u = c^2 - \frac{v^2}{4c^2}\) and \(y = d\) to \(u = \frac{v^2}{4d^2} - d^2\): parabolas opening left and right, both with focus at \(0\). Equating them gives \(v^2 = 4c^2d^2\), so they meet twice, at \(u = c^2 - d^2\), \(v = \pm 2cd\). At \(v = 2cd\) (the image of \(c + \mathrm{i}d\), where the lines cross) the slopes \(\frac{\mathrm{d}u}{\mathrm{d}v}\) are \(-\frac{d}{c}\) and \(\frac{c}{d}\); at \(v = -2cd\) they are \(\frac{d}{c}\) and \(-\frac{c}{d}\). In both cases the product is \(-1\). (The second meeting point is the image of \(c - \mathrm{i}d\) on the first line and of \(-c + \mathrm{i}d\) on the second: squaring sends \(z\) and \(-z\) to the same place.) If \(c = 0\) the image of \(x = 0\) is the ray \(u \leq 0\), \(v = 0\), and if \(d = 0\) the image of \(y = 0\) is the ray \(u \geq 0\), \(v = 0\): these are not parabolas. A ray still meets the other image at right angles when the lines cross away from \(0\), but if \(c = d = 0\) both images lie along the real axis: at \(0\) the map doubles angles (its derivative \(2z\) is zero there), so the right angle between the axes becomes a straight angle.
5.8 A Hidden Distance in the Disc
Both sides equal \(\frac{1}{5/4} = \frac45\). Then \(d(z, 0) = d(0, w) = 2\tanh^{-1}\frac12 = \ln3\) and \(d(z, w) = 2\tanh^{-1}\frac45 = \ln9\), so equality holds: \(0\) lies on the hyperbolic line segment (a diameter) from \(z\) to \(w\).
From parts (i) and (ii), when \(E > 0\) the inequality is equivalent to \(|z| + |w| \leq 1 + |zw|\), that is, \((1 - |z|)(1 - |w|) \geq 0\). In the mixed case this fails, for instance with \(z = \frac12\), \(w = 3\): the left side is \(\frac{5/2}{1/2} = 5\) and the right side is \(\frac{7/2}{5/2} = \frac75\).
If \(|z| = 1\) then \(|1 - a^*z| = |\bar z - a^*| = |z - a|\). Directly, \(f(z) - f(w) = \frac{(1 - |a|^2)(z - w)}{(1 - a^*z)(1 - a^*w)}\) and \(1 - f(z)f(w)^* = \frac{(1 - |a|^2)(1 - zw^*)}{(1 - a^*z)(1 - aw^*)}\); dividing and taking moduli gives \(\rho(f(z), f(w)) = \rho(z, w)\).
\(d(0, r) = 2\tanh^{-1}r = \ln\frac{1 + r}{1 - r}\), which tends to \(\infty\) as \(r \to 1\). Distance \(10\) needs \(r = \tanh5 \approx 0.99991\): within about \(9 \times 10^{-5}\) of the edge.