Chapter 3 · Series and Residues

3.2 The Residue Theorem and Its Applications

One coefficient of the Laurent series — the residue $c_{-1}$ — is all that a contour integral sees. The residue theorem turns this into a machine for real integrals, for sums of series, and, through the argument principle and Rouché's theorem, for counting zeros.

Integrate a Laurent series $\sum c_n(z-a)^n$ term by term round a circle about $a$: every power $(z-a)^n$ with $n\ne-1$ has a primitive and integrates to $0$, while $\frac{1}{z-a}$ gives $2\pi i$. So the integral of $f$ round a small circle is $2\pi i\,c_{-1}$ — one number, the residue, carries all the information the integral can detect. Cauchy, who built a "calculus of residues" in the 1820s, saw that this reduces contour integration to algebra: find the singular points inside the contour, compute one coefficient at each, add.

The applications go far beyond contour integrals. Integrals over $[0,2\pi]$ and over $\mathbb{R}$ that resist every real method — $\int_0^{2\pi}\frac{d\theta}{5+4\cos\theta}$, $\int_{-\infty}^{\infty}\frac{\cos x}{x^2+1}dx$, $\int_0^\infty\frac{\sin x}{x}dx$ — fall in a few lines; sums such as $\sum\frac{1}{n^2+1}$ and $\sum\frac1{n^4}$ come out in closed form; and applying the residue theorem to $\frac{f'}{f}$ counts zeros, which leads to Rouché's theorem — the standard tool for "how many roots of this polynomial lie in $|z|\lt1$?". These are among the most frequent questions of the whole CSIR complex-analysis syllabus: a value of $\oint$, a real integral, or a count of zeros in a disc or annulus.

Notation. As in §3.1, $C(a,\rho)$ is the positively oriented circle $|z-a|=\rho$ and $D'(a,r)$ the punctured disc. A simple closed contour is positively oriented (inside on the left) unless stated otherwise.

Residues and How to Compute Them

📘 Definition 3.5 — Residue
Let $a$ be an isolated singularity of $f$, with Laurent series $f(z)=\sum_{n\in\mathbb{Z}}c_n(z-a)^n$ on $D'(a,r)$. The residue of $f$ at $a$ is $$\operatorname*{Res}_{z=a}f(z)=c_{-1}=\frac{1}{2\pi i}\oint_{C(a,\rho)}f(z)\,dz\qquad(0\lt\rho\lt r).$$ (The two expressions agree by Laurent's theorem, Theorem 3.3, with $n=-1$.)
📐 Theorem 3.11 — Computing residues
Let $a$ be an isolated singularity of $f$.
  1. If $a$ is removable, $\operatorname{Res}_af=0$.
  2. If $a$ is a simple pole, $\operatorname{Res}_af=\lim_{z\to a}(z-a)f(z)$.
  3. If $f=\dfrac gh$ with $g,h$ analytic at $a$, $g(a)\ne0$, $h(a)=0$ and $h'(a)\ne0$, then $a$ is a simple pole and $$\operatorname*{Res}_{z=a}\frac{g(z)}{h(z)}=\frac{g(a)}{h'(a)}.$$
  4. If $a$ is a pole of order at most $m$, then $$\operatorname*{Res}_{z=a}f=\frac{1}{(m-1)!}\lim_{z\to a}\frac{d^{m-1}}{dz^{m-1}}\Big[(z-a)^mf(z)\Big].$$
  5. If $a=0$ and $f$ is even near $0$ ($f(-z)=f(z)$ on a punctured disc), then $\operatorname{Res}_0f=0$.
At an essential singularity there is no shortcut: find $c_{-1}$ from the Laurent series.

Proof. (1) There are no negative powers. (4) If the principal part stops at $(z-a)^{-m}$ (or earlier), then $$(z-a)^mf(z)=c_{-m}+c_{-m+1}(z-a)+\cdots+c_{-1}(z-a)^{m-1}+c_0(z-a)^m+\cdots$$ has a removable singularity at $a$; call its extension $g$. The coefficient of $(z-a)^{m-1}$ in the Taylor series of $g$ is $\frac{g^{(m-1)}(a)}{(m-1)!}$ (Theorem 3.1), and it equals $c_{-1}$. (2) is the case $m=1$. (3) $(z-a)\frac{g(z)}{h(z)}=\dfrac{g(z)}{\frac{h(z)-h(a)}{z-a}}\to\frac{g(a)}{h'(a)}\ne0$, so $a$ is a simple pole (Theorem 3.5(3)) and (2) gives the residue. (5) $\sum c_n(-z)^n=\sum c_nz^n$ and uniqueness of the Laurent series give $c_n=0$ for every odd $n$, in particular $c_{-1}=0$. ∎

The point at infinity has a residue too, defined so that the residue theorem stays true on the extended plane.

📘 Definition 3.6 — Residue at $\infty$
Let $f$ be analytic on $\{|z|\gt R\}$, with Laurent series $\sum c_nz^n$ there. The residue at infinity is $$\operatorname*{Res}_{z=\infty}f=-\frac1{2\pi i}\oint_{C(0,\rho)}f(z)\,dz=-c_{-1}\qquad(\rho\gt R).$$ The minus sign appears because the positively oriented circle goes round $\infty$ clockwise. Equivalently, $\operatorname{Res}_{\infty}f=-\operatorname{Res}_{w=0}\frac{1}{w^2}f\!\left(\frac1w\right)$ (the coefficient of $w^{-1}$ in $\frac1{w^2}\sum c_nw^{-n}$ is $c_{-1}$). In particular, if $\lim_{z\to\infty}zf(z)=L$ exists, then $\operatorname{Res}_\infty f=-L$.

The last statement holds because $zf(z)\to L$ forces $f=\frac{L}{z}+\frac{c_{-2}}{z^2}+\cdots$ on $|z|\gt R$ (the function $zf$ is bounded near $\infty$, so it has no positive powers). Note the surprises: $\frac1z$ is analytic at $\infty$, yet $\operatorname{Res}_\infty\frac1z=-1$; $z$ has a pole at $\infty$, yet $\operatorname{Res}_\infty z=0$. The residue at $\infty$ is not the coefficient that classifies the singularity there.

✏️ Example 1 — Residues by every method
Compute: (a) the residues of $\frac{e^z}{z^2+1}$ at $\pm i$, and their sum; (b) $\operatorname{Res}_{k\pi}\cot z$; (c) $\operatorname{Res}_{a}\frac{1}{z^4+1}$ at $a=e^{i\pi/4}$; (d) $\operatorname{Res}_1\frac{e^z}{(z-1)^3}$; (e) $\operatorname{Res}_0\frac{1}{z^2\sin z}$; (f) $\operatorname{Res}_0 z^3e^{1/z}$.
(a) $g/h'$ $\operatorname{Res}_{\pm i}=\frac{e^{\pm i}}{2(\pm i)}$. Sum: $\frac{e^{i}-e^{-i}}{2i}=\sin1$.
(b) $g/h'$ $\cot z=\frac{\cos z}{\sin z}$ and $(\sin z)'=\cos z$, so $\operatorname{Res}_{k\pi}=\frac{\cos k\pi}{\cos k\pi}=1$ for every integer $k$.
(c) $g/h'$, simplified $\frac{1}{4a^3}=\frac{a}{4a^4}=-\frac a4=-\frac{1+i}{4\sqrt2}$, using $a^4=-1$. This trick — multiply top and bottom by $a$ — saves a lot of algebra.
(d) Order 3 $\frac{1}{2!}\frac{d^2}{dz^2}\Big[e^z\Big]_{z=1}=\frac e2$. (Or: $e^z=e\cdot e^{z-1}=e\sum\frac{(z-1)^k}{k!}$, and the coefficient of $(z-1)^{-1}$ in $\frac{e^z}{(z-1)^3}$ is $\frac{e}{2!}$.)
(e) Order 3 $\frac{1}{2!}\frac{d^2}{dz^2}\Big[\frac{z}{\sin z}\Big]_{z=0}$, and $\frac{z}{\sin z}=1+\frac{z^2}{6}+\cdots$, so the residue is $\frac12\cdot2\cdot\frac16=\frac16$. (It is the coefficient of $\frac1z$ in Exercise II.4 of §3.1.)
(f) Essential $z^3e^{1/z}=\sum_k\frac{z^{3-k}}{k!}$; the power $z^{-1}$ comes from $k=4$: residue $\frac{1}{24}$.

The Residue Theorem

📐 Theorem 3.12 — Cauchy's residue theorem
Let $\gamma$ be a positively oriented simple closed contour, and let $f$ be analytic on an open set containing $\gamma$ and its inside, except at finitely many points $a_1,\dots,a_n$ inside $\gamma$ (none on $\gamma$). Then $$\oint_\gamma f(z)\,dz=2\pi i\sum_{k=1}^{n}\operatorname*{Res}_{z=a_k}f(z).$$

Proof. Choose radii $\rho_k$ so small that the closed discs $\overline D(a_k,\rho_k)$ are disjoint and lie inside $\gamma$. The function $f$ is analytic on an open set containing the region inside $\gamma$ and outside all the circles $C_k=C(a_k,\rho_k)$, together with the curves. By the deformation theorem (Theorem 2.16(2)), $\oint_\gamma f=\sum_k\oint_{C_k}f$, and $\oint_{C_k}f=2\pi i\operatorname{Res}_{a_k}f$ by Definition 3.5. ∎

The hypothesis "finitely many" matters: if infinitely many singular points lay inside $\gamma$, they would accumulate at some point inside or on $\gamma$, which would then not be an isolated singularity.

📐 Theorem 3.13 — The residues of $f$ on $\mathbb{C}_\infty$ add up to $0$
If $f$ is analytic on $\mathbb{C}$ except at finitely many points $a_1,\dots,a_n$, then $$\sum_{k=1}^{n}\operatorname*{Res}_{z=a_k}f+\operatorname*{Res}_{z=\infty}f=0.$$ Consequently, if $\gamma$ is a simple closed contour with all the $a_k$ inside, $\oint_\gamma f\,dz=-2\pi i\operatorname{Res}_\infty f$.

Proof. Take $\rho\gt\max|a_k|$. By the residue theorem $\frac1{2\pi i}\oint_{C(0,\rho)}f=\sum_k\operatorname{Res}_{a_k}f$, and by Definition 3.6 the left side is $-\operatorname{Res}_\infty f$. The last statement follows by deforming $\gamma$ to $C(0,\rho)$ (Theorem 2.16(1)). ∎

🧭 Evaluating $\oint_\gamma f(z)\,dz$
  1. List the singular points of $f$ and decide which lie inside $\gamma$ (draw it; check borderline points such as $\pm\frac{3\pi}{2}$ against $|z|=4$). None may lie on $\gamma$.
  2. Classify each inside point and choose the cheapest formula: $g/h'$ for simple poles, the derivative formula for low-order poles, the Laurent series for essential singularities or messy high-order poles. Removable points contribute $0$.
  3. If many singular points lie inside and none outside, use $\oint_\gamma f=-2\pi i\operatorname{Res}_\infty f$ instead (often $-L$ with $L=\lim zf(z)$).
  4. Multiply the sum by $2\pi i$ — and by $-1$ if $\gamma$ is clockwise.
✏️ Example 2 — Contour integrals by residues
Evaluate (a) $\displaystyle\oint_{|z|=2}\frac{e^z}{z(z-1)^2}\,dz$; (b) $\displaystyle\oint_{|z|=4}\tan z\,dz$; (c) $\displaystyle\oint_{|z|=1}z^2e^{1/z}\,dz$; (d) $\displaystyle\oint_{|z|=2}\frac{z^{15}}{(z^2+1)^4(z^4+2)^2}\,dz$.
(a) Simple pole at $0$: $\operatorname{Res}=\frac{e^0}{(0-1)^2}=1$. Double pole at $1$: $\frac{d}{dz}\frac{e^z}{z}\Big|_{1}=\frac{e^z(z-1)}{z^2}\Big|_1=0$. A pole with residue $0$! The integral is $2\pi i(1+0)=2\pi i$.
(b) Poles of $\tan z$ at $\frac\pi2+k\pi$; inside $|z|=4$ only $\pm\frac\pi2$ ($\frac{3\pi}2\approx4.71\gt4$). At each, $\operatorname{Res}\frac{\sin z}{\cos z}=\frac{\sin z}{-\sin z}=-1$. Integral: $2\pi i(-2)=-4\pi i$.
(c) Essential singularity at $0$: $z^2e^{1/z}=\sum_k\frac{z^{2-k}}{k!}$, and $z^{-1}$ needs $k=3$: residue $\frac16$, integral $\frac{2\pi i}{6}=\frac{\pi i}{3}$.
(d) Use $\infty$ The poles $\pm i$ (order $4$) and the four roots of $z^4=-2$ (modulus $2^{1/4}\approx1.19$, order $2$) all lie inside $|z|=2$ — twelve pole orders' worth of derivatives. Instead: the degrees are $15$ and $16$, so $zf(z)\to1$ and $\operatorname{Res}_\infty f=-1$. By Theorem 3.13, the integral is $-2\pi i\cdot(-1)=2\pi i$.

Evaluating Real Integrals

Integrals over a full period

📐 Theorem 3.14 — Integrals of $R(\cos\theta,\sin\theta)$
Let $R(x,y)$ be a rational function of two variables whose denominator does not vanish on the circle $x^2+y^2=1$. Put $$F(z)=\frac{1}{iz}\,R\!\left(\frac{z+z^{-1}}{2},\frac{z-z^{-1}}{2i}\right).$$ Then $$\int_0^{2\pi}R(\cos\theta,\sin\theta)\,d\theta=2\pi i\sum_{|a|\lt1}\operatorname*{Res}_{z=a}F(z).$$

Proof. Parametrise $|z|=1$ by $z=e^{i\theta}$, $0\le\theta\le2\pi$. Then $dz=iz\,d\theta$, $\cos\theta=\frac{z+z^{-1}}2$ and $\sin\theta=\frac{z-z^{-1}}{2i}$, so the real integral equals $\oint_{|z|=1}F(z)\,dz$. $F$ is rational, with no poles on $|z|=1$ (there the denominator of $R$ is nonzero, and $z\ne0$), so the residue theorem applies. ∎

✏️ Example 3 — Two trigonometric integrals
(a) Show that $\displaystyle\int_0^{2\pi}\frac{d\theta}{a+b\cos\theta}=\frac{2\pi}{\sqrt{a^2-b^2}}$ for real $a\gt|b|$; in particular $\int_0^{2\pi}\frac{d\theta}{5+4\cos\theta}=\frac{2\pi}{3}$.
(b) Evaluate $\displaystyle\int_0^{2\pi}\frac{\cos2\theta}{5-4\cos\theta}\,d\theta$.
(a) Substitute For $b=0$ the integral is $\frac{2\pi}a$. For $b\ne0$: $F(z)=\frac{1}{iz}\cdot\frac{1}{a+\frac b2(z+z^{-1})}=\frac{2}{i\,(bz^2+2az+b)}$. The roots $z_\pm=\frac{-a\pm\sqrt{a^2-b^2}}{b}$ are real, distinct, with $z_+z_-=1$; since $|z_+|\lt|z_-|$, exactly $z_+$ lies in $\mathbb{D}$.
(a) Residue $\operatorname{Res}_{z_+}F=\frac{2}{ib(z_+-z_-)}=\frac{2}{ib\cdot2\sqrt{a^2-b^2}/b}=\frac{1}{i\sqrt{a^2-b^2}}$, so the integral is $2\pi i\cdot\frac1{i\sqrt{a^2-b^2}}=\frac{2\pi}{\sqrt{a^2-b^2}}$. With $a=5$, $b=4$: $\frac{2\pi}{3}$.
(b) Use $e^{2i\theta}$ The integral is the real part of $\int_0^{2\pi}\frac{e^{2i\theta}}{5-4\cos\theta}d\theta$ (the imaginary part $\int\frac{\sin2\theta}{5-4\cos\theta}$ is $0$ by oddness about $\pi$). Here $F(z)=\frac{z^2}{iz\,(5-2z-2z^{-1})}=\frac{-z^2}{i(2z-1)(z-2)}$, with the single pole $\frac12$ in $\mathbb{D}$.
(b) Value $\operatorname{Res}_{1/2}F=\frac{-1/4}{i\cdot2\cdot(\frac12-2)}=\frac{1}{12i}$, so the integral is $2\pi i\cdot\frac1{12i}=\frac\pi6$. (Writing $\cos2\theta=\frac{z^2+z^{-2}}{2}$ instead works too, but creates a pole of order $2$ at $0$.)

Integrals over the real line

📐 Theorem 3.15 — Rational functions over $\mathbb{R}$
Let $P,Q$ be polynomials with $\deg Q\ge\deg P+2$ and with no real zeros of $Q$. Then $$\int_{-\infty}^{\infty}\frac{P(x)}{Q(x)}\,dx=2\pi i\sum_{\operatorname{Im}a\gt0}\operatorname*{Res}_{z=a}\frac{P(z)}{Q(z)}.$$

Proof. Let $f=P/Q$. Since $\deg Q\ge\deg P+2$, $|z^2f(z)|$ is bounded for large $|z|$: there are $K,R_0$ with $|f(z)|\le\frac{K}{|z|^2}$ for $|z|\ge R_0$. Hence the integral converges absolutely. For $R\gt R_0$ larger than the moduli of all zeros of $Q$, let $\Gamma_R$ be the segment $[-R,R]$ followed by the upper semicircle $C_R:z=Re^{i\theta}$, $0\le\theta\le\pi$. The residue theorem gives $\int_{-R}^{R}f\,dx+\int_{C_R}f\,dz=2\pi i\sum_{\operatorname{Im}a\gt0}\operatorname{Res}_af$, and the ML-inequality gives $\left|\int_{C_R}f\right|\le\pi R\cdot\frac{K}{R^2}\to0$. Let $R\to\infty$. ∎

When $\deg Q=\deg P+1$ the ML-bound $\pi R\cdot\frac KR$ no longer tends to $0$ — and indeed $\int\frac{x}{x^2+1}dx$ diverges. Oscillation rescues the situation for Fourier-type integrals.

📐 Theorem 3.16 — Jordan's lemma
Let $\alpha\gt0$, let $g$ be continuous on $\{\operatorname{Im}z\ge0,\ |z|\ge R_0\}$, and let $M(R)=\max_{C_R}|g|$, where $C_R$ is the upper semicircle $z=Re^{i\theta}$, $0\le\theta\le\pi$. Then $$\left|\int_{C_R}g(z)e^{i\alpha z}\,dz\right|\le\frac{\pi}{\alpha}M(R).$$ In particular, if $M(R)\to0$ as $R\to\infty$, then $\int_{C_R}g(z)e^{i\alpha z}dz\to0$.

Proof. On $C_R$, $|e^{i\alpha z}|=e^{-\alpha R\sin\theta}$ and $|dz|=R\,d\theta$. By symmetry about $\theta=\frac\pi2$ and Jordan's inequality $\sin\theta\ge\frac{2\theta}{\pi}$ on $[0,\frac\pi2]$ (the chord of the concave function $\sin$ lies below it), $$\left|\int_{C_R}ge^{i\alpha z}dz\right|\le M(R)\,R\int_0^\pi e^{-\alpha R\sin\theta}d\theta\le2M(R)R\int_0^{\pi/2}e^{-2\alpha R\theta/\pi}d\theta,$$ and the last expression equals $2M(R)R\cdot\frac{\pi}{2\alpha R}\left(1-e^{-\alpha R}\right)\lt\frac\pi\alpha M(R)$. ∎

The gain over ML is a full factor of $R$: the exponential $e^{-\alpha R\sin\theta}$ is tiny except near the two ends of the arc.

📐 Theorem 3.17 — Fourier integrals of rational functions
Let $P,Q$ be polynomials with $\deg Q\ge\deg P+1$, $Q$ without real zeros, and let $\alpha\gt0$. Then $$\lim_{R\to\infty}\int_{-R}^{R}\frac{P(x)}{Q(x)}e^{i\alpha x}\,dx=2\pi i\sum_{\operatorname{Im}a\gt0}\operatorname*{Res}_{z=a}\left[\frac{P(z)}{Q(z)}e^{i\alpha z}\right].$$ For real $P/Q$, the real and imaginary parts give $\int\frac{P}{Q}\cos\alpha x\,dx$ and $\int\frac PQ\sin\alpha x\,dx$. (For $\alpha\lt0$, close the contour in the lower half-plane, which is traversed clockwise: $-2\pi i\sum_{\operatorname{Im}a\lt0}$.)

Proof. Same contour $\Gamma_R$ as in Theorem 3.15. Now $M(R)=\max_{C_R}|P/Q|\le\frac{K}{R}\to0$, so the arc integral tends to $0$ by Jordan's lemma, and the residue theorem gives the result. ∎

✏️ Example 4 — Three integrals over $\mathbb{R}$
Evaluate (a) $\displaystyle\int_{-\infty}^{\infty}\frac{dx}{x^4+1}$; (b) $\displaystyle\int_{-\infty}^{\infty}\frac{\cos x}{x^2+1}\,dx$; (c) $\displaystyle\int_{-\infty}^{\infty}\frac{x\sin x}{x^2+4}\,dx$.
(a) Degree gap $4$: Theorem 3.15. Upper half-plane poles $a_1=e^{i\pi/4}$, $a_2=e^{3i\pi/4}$, residues $-\frac{a_k}{4}$ (Example 1(c)). Since $a_1+a_2=i\sqrt2$: $$\int_{-\infty}^\infty\frac{dx}{x^4+1}=2\pi i\cdot\left(-\frac{i\sqrt2}{4}\right)=\frac{\pi}{\sqrt2}.$$
(b) Use $e^{iz}$ $\operatorname{Res}_i\frac{e^{iz}}{z^2+1}=\frac{e^{-1}}{2i}$, so $\int\frac{e^{ix}}{x^2+1}dx=2\pi i\cdot\frac{e^{-1}}{2i}=\frac{\pi}{e}$. Real part: $\int_{-\infty}^\infty\frac{\cos x}{x^2+1}dx=\frac\pi e$ (and the sine integral is $0$, the integrand being odd).
(b) The trap Working with $\frac{\cos z}{z^2+1}$ would give $2\pi i\cdot\frac{\cos i}{2i}=\pi\cosh1$ — wrong, because $\cos z=\frac{e^{iz}+e^{-iz}}{2}$ is of size $e^{R\sin\theta}$ on the upper arc and the arc integral does not vanish (see Interactive 1).
(c) Jordan needed The degree gap is only $1$. $\operatorname{Res}_{2i}\frac{ze^{iz}}{z^2+4}=\frac{2ie^{-2}}{4i}=\frac{e^{-2}}{2}$, so $\lim\int_{-R}^R\frac{xe^{ix}}{x^2+4}dx=\pi ie^{-2}$. Imaginary part: $\int_{-\infty}^\infty\frac{x\sin x}{x^2+4}dx=\pi e^{-2}\approx0.4252$ (this integral converges, but not absolutely).
Interactive 1 — Closing the Contour: Segment, Arc and Residues

The closed contour is the segment $[-R,R]$ plus the upper semicircle of radius $R$. Both pieces are integrated numerically. Their sum equals $2\pi i$ times the residues enclosed — and jumps when the arc sweeps past a pole. Press Play to grow $R$. Right: the relevant part of the segment integral (blue) settles on the true value (green, dashed) exactly when the arc integral (amber) dies away. Try the trap "cos z instead of e^(iz)".

R—
∫ over [−R, R]—
∫ over the arc—
segment + arc—
2πi Σ Res (enclosed)—

Poles on the real axis: principal values and indentation

📘 Definition 3.7 — Cauchy principal value
If $f$ is continuous on $\mathbb{R}$ except at $c$, the Cauchy principal value is $$\operatorname{PV}\!\int_{-\infty}^{\infty}f(x)\,dx=\lim_{\varepsilon\to0^+,\ R\to\infty}\left(\int_{-R}^{c-\varepsilon}+\int_{c+\varepsilon}^{R}\right)f(x)\,dx,$$ when the limit exists (similarly for several points $c$). Example: $\int_{-1}^1\frac{dx}{x}$ diverges, but its principal value is $0$.
📐 Theorem 3.18 — The small-arc lemma
Let $f$ have a simple pole at $c$, and let $C_\varepsilon$ be the arc $z=c+\varepsilon e^{i\theta}$, $\theta_0\le\theta\le\theta_0+\beta$, traversed counterclockwise. Then $$\lim_{\varepsilon\to0^+}\int_{C_\varepsilon}f(z)\,dz=i\beta\operatorname*{Res}_{z=c}f.$$ In particular, a small upper semicircle traversed clockwise (from $c-\varepsilon$ over the top to $c+\varepsilon$) contributes $-\pi i\operatorname{Res}_cf$ in the limit.

Proof. Write $f(z)=\frac{r}{z-c}+g(z)$ with $r=\operatorname{Res}_cf$ and $g$ analytic near $c$, so $|g|\le K$ on a small disc. Then $\left|\int_{C_\varepsilon}g\right|\le K\beta\varepsilon\to0$, while $\int_{C_\varepsilon}\frac{r\,dz}{z-c}=\int_{\theta_0}^{\theta_0+\beta}\frac{r}{\varepsilon e^{i\theta}}\,i\varepsilon e^{i\theta}\,d\theta=i\beta r$. ∎

For a pole of order $2$ or more the lemma fails: $\int_{C_\varepsilon}\frac{dz}{(z-c)^2}=\frac{e^{-i\theta_0}-e^{-i(\theta_0+\beta)}}{\varepsilon}$ blows up unless $\beta$ is a multiple of $2\pi$. Combining the lemma with Theorems 3.15 and 3.17: if $f=\frac PQ e^{i\alpha x}$ satisfies their hypotheses except that $Q$ has simple real zeros, then $$\operatorname{PV}\!\int_{-\infty}^\infty f\,dx=2\pi i\sum_{\operatorname{Im}a\gt0}\operatorname*{Res}_af+\pi i\sum_{c\in\mathbb{R}}\operatorname*{Res}_cf.$$ (Indent the contour by small clockwise semicircles above each real pole; each contributes $-\pi i\operatorname{Res}$, which is moved to the other side.)

✏️ Example 5 — Indented contours
(a) Prove that $\displaystyle\int_0^\infty\frac{\sin x}{x}\,dx=\frac{\pi}{2}$ (Dirichlet's integral).
(b) Evaluate $\displaystyle\operatorname{PV}\!\int_{-\infty}^{\infty}\frac{dx}{(x-1)(x^2+1)}$.
(a) Contour Take $f(z)=\frac{e^{iz}}{z}$ (not $\frac{\sin z}{z}$, which grows on the arc). Contour: $[-R,-\varepsilon]$, the small clockwise semicircle $C_\varepsilon$, $[\varepsilon,R]$, the big semicircle $C_R$. No singular point inside, so by Cauchy's theorem the four integrals add to $0$.
(a) The pieces $\int_{C_R}\to0$ by Jordan's lemma ($M(R)=\frac1R$). $\int_{C_\varepsilon}\to-\pi i\operatorname{Res}_0f=-\pi i$ (Theorem 3.18). On the segments, $\int_{-R}^{-\varepsilon}\frac{e^{ix}}{x}dx=-\int_\varepsilon^R\frac{e^{-ix}}{x}dx$, so the two segments give $\int_\varepsilon^R\frac{e^{ix}-e^{-ix}}{x}dx=2i\int_\varepsilon^R\frac{\sin x}{x}dx$.
(a) Conclusion Letting $\varepsilon\to0$, $R\to\infty$: $2i\int_0^\infty\frac{\sin x}{x}dx-\pi i=0$, so the integral is $\frac\pi2$. (It converges as an improper Riemann integral, but $\int_0^\infty\frac{|\sin x|}{x}dx=\infty$.)
(b) $f=\frac{1}{(z-1)(z^2+1)}$ has degree gap $3$, a simple real pole at $1$ with $\operatorname{Res}_1=\frac{1}{2}$, and the pole $i$ in the upper half-plane with $\operatorname{Res}_i=\frac{1}{(i-1)\cdot2i}=\frac{1}{-2-2i}=-\frac{1-i}{4}$. Hence $$\operatorname{PV}\!\int=2\pi i\left(-\frac{1-i}{4}\right)+\pi i\cdot\frac12=\frac{-\pi i-\pi}{2}+\frac{\pi i}{2}=-\frac\pi2.$$ The answer is real, as it must be; that is a useful check.
🧭 Choosing a contour for a real integral
  1. $\int_0^{2\pi}R(\cos\theta,\sin\theta)\,d\theta$: $z=e^{i\theta}$, poles inside $|z|=1$ only. For $\cos n\theta$ use $\operatorname{Re}e^{in\theta}=\operatorname{Re}z^n$. Over $[0,\pi]$: use symmetry to extend to $[0,2\pi]$ first.
  2. $\int_{-\infty}^\infty\frac PQ$, gap $\ge2$: upper semicircle, ML on the arc. Over $[0,\infty)$: halve, if the integrand is even; otherwise use a sector or a keyhole.
  3. $\int\frac PQ\cos\alpha x$, $\int\frac PQ\sin\alpha x$, gap $\ge1$: integrate $\frac PQe^{i\alpha z}$ ($\alpha\gt0$) over the upper semicircle, Jordan on the arc, then take real or imaginary parts. Never replace $e^{i\alpha z}$ by $\cos\alpha z$.
  4. Simple poles on $\mathbb{R}$: indent; each contributes $\pi i\operatorname{Res}$ to the principal value. Double poles on $\mathbb{R}$: the principal value does not exist — recombine first (e.g. $\frac{1-\cos x}{x^2}$ via $\frac{1-e^{iz}}{z^2}$, which has a simple pole).
  5. Check: a real integral must come out real; an integral of a positive function must come out positive.

Summing Series by Residues

The function $\pi\cot\pi z$ has a simple pole at every integer $n$ with residue $\frac{\pi\cos\pi n}{\pi\cos\pi n}=1$, and $\pi\csc\pi z=\frac{\pi}{\sin\pi z}$ has residue $(-1)^n$ there (Theorem 3.11(3)). Multiplying by $f$ plants the values $f(n)$ as residues.

📐 Theorem 3.19 — Summation by residues
Let $f=P/Q$ be rational with $\deg Q\ge\deg P+2$, and let $b_1,\dots,b_k$ be its poles, none of them an integer. Then $$\sum_{n=-\infty}^{\infty}f(n)=-\sum_{j=1}^{k}\operatorname*{Res}_{z=b_j}\big[\pi\cot(\pi z)f(z)\big],$$ $$\sum_{n=-\infty}^{\infty}(-1)^nf(n)=-\sum_{j=1}^{k}\operatorname*{Res}_{z=b_j}\big[\pi\csc(\pi z)f(z)\big].$$ If some poles of $f$ are integers, the same formulas hold with the sum over the integers that are not poles of $f$, and with the residues of the products taken at all poles of $f$.

Proof sketch. Let $C_N$ be the square with vertices $(N+\frac12)(\pm1\pm i)$. On its vertical sides $\pi z=\pm\pi(N+\frac12)+i\pi y$ and $\cot\pi z=-\tan(i\pi y)=-i\tanh\pi y$, of modulus at most $1$; on its horizontal sides $|\cot(x+iy)|^2=\frac{\cos^2x+\sinh^2y}{\sin^2x+\sinh^2y}\le\coth^2y\le\coth^2\frac{\pi}{2}$ with $y=\pm\pi(N+\frac12)$. So $|\pi\cot\pi z|\le2\pi$ on every $C_N$, and similarly $|\pi\csc\pi z|\le\pi$. Also $|f|\le\frac{K}{N^2}$ on $C_N$ for large $N$, and $C_N$ has length $8N+4$. Hence $\oint_{C_N}\pi\cot(\pi z)f(z)\,dz\to0$. For large $N$ all $b_j$ lie inside $C_N$, and the residue theorem gives $\sum_{|n|\le N}f(n)+\sum_j\operatorname{Res}_{b_j}[\pi\cot(\pi z)f]\to0$. The alternating case is identical. ∎

✏️ Example 6 — Two classical sums
(a) Show that $\displaystyle\sum_{n=-\infty}^{\infty}\frac{1}{n^2+a^2}=\frac{\pi}{a}\coth\pi a$ for $a\gt0$, and deduce $\sum_{n\ge1}\frac1{n^2+1}$.
(b) Show that $\displaystyle\sum_{n=1}^\infty\frac1{n^2}=\frac{\pi^2}{6}$.
(a) Residues At $ia$: $\frac{\pi\cot(i\pi a)}{2ia}=\frac{\pi(-i\coth\pi a)}{2ia}=-\frac{\pi\coth\pi a}{2a}$, using $\cot(iy)=-i\coth y$. At $-ia$: $\frac{\pi\cot(-i\pi a)}{-2ia}=-\frac{\pi\coth\pi a}{2a}$ as well.
(a) Sum $\sum_{n\in\mathbb{Z}}\frac1{n^2+a^2}=\frac{\pi}{a}\coth\pi a$. The $n=0$ term is $\frac1{a^2}$, and the terms for $\pm n$ are equal, so $\sum_{n\ge1}\frac1{n^2+1}=\frac12(\pi\coth\pi-1)\approx1.0767$.
(b) Pole at an integer $f=\frac{1}{z^2}$ has its pole at the integer $0$. From $\pi\cot\pi z=\frac1z-\frac{\pi^2z}{3}-\frac{\pi^4z^3}{45}-\cdots$ we get $\frac{\pi\cot\pi z}{z^2}=\frac{1}{z^3}-\frac{\pi^2}{3z}-\cdots$, with residue $-\frac{\pi^2}3$ at $0$. By the last sentence of Theorem 3.19, $\sum_{n\ne0}\frac{1}{n^2}=\frac{\pi^2}3$, i.e. $\sum_{n\ge1}\frac1{n^2}=\frac{\pi^2}{6}$.

The Argument Principle and Rouché's Theorem

If $f$ has a zero of order $m$ at $a$, then $f=(z-a)^mg$ with $g(a)\ne0$ and $$\frac{f'}{f}=\frac{m}{z-a}+\frac{g'}{g};$$ at a pole of order $m$ the same computation gives $-\frac{m}{z-a}$ (Exercise III.8 of §3.1). So the logarithmic derivative $\frac{f'}{f}$ has simple poles exactly at the zeros and poles of $f$, with residues equal to their multiplicities, counted negatively for poles.

📐 Theorem 3.20 — The argument principle
Let $\gamma$ be a positively oriented simple closed contour, and let $f$ be meromorphic on an open set containing $\gamma$ and its inside, with no zeros and no poles on $\gamma$. Let $Z$ and $P$ be the numbers of zeros and of poles of $f$ inside $\gamma$, each counted with multiplicity. Then $$\frac{1}{2\pi i}\oint_\gamma\frac{f'(z)}{f(z)}\,dz=Z-P,$$ and this number is the winding number of the closed curve $f\circ\gamma$ about $0$: the total change of a continuous argument of $f(\gamma(t))$, divided by $2\pi$. More generally, for $g$ analytic on the same open set, $\frac{1}{2\pi i}\oint_\gamma g\frac{f'}{f}\,dz=\sum_jg(z_j)-\sum_kg(p_k)$ over the zeros $z_j$ and poles $p_k$ inside $\gamma$, repeated according to multiplicity.

Proof. The poles of $f$ are isolated by definition, and so are its zeros (identity theorem: $f\not\equiv0$ near $\gamma$). No zero can accumulate at a pole, since $|f|\to\infty$ there. So the closure of the inside of $\gamma$, a compact set, contains only finitely many zeros and poles. By the computation above, $\frac{f'}{f}$ is analytic except at these points, with residue $m$ at a zero of order $m$ and $-m$ at a pole of order $m$. More generally, writing $f=(z-a)^{\pm m}h$ with $h(a)\ne0$, we have $g\frac{f'}{f}=\pm\frac{mg(z)}{z-a}+g\frac{h'}{h}$, where $g\frac{h'}{h}$ is analytic near $a$; so the residue is $\pm m\,g(a)$. The residue theorem gives both formulas.

For the winding number, let $\gamma:[\alpha,\beta]\to\mathbb{C}$ and choose a continuous argument $\theta(t)$ of the nonzero continuous function $f(\gamma(t))$. Then $\Lambda(t)=\ln|f(\gamma(t))|+i\theta(t)$ satisfies $e^{\Lambda}=f\circ\gamma$, so $\Lambda'(t)=\frac{f'(\gamma(t))\gamma'(t)}{f(\gamma(t))}$ wherever $\gamma$ is smooth, and $$\oint_\gamma\frac{f'}{f}dz=\int_\alpha^\beta\Lambda'(t)\,dt=\Lambda(\beta)-\Lambda(\alpha)=i\big(\theta(\beta)-\theta(\alpha)\big),$$ because $|f(\gamma(\beta))|=|f(\gamma(\alpha))|$. ∎

The name comes from this last form: the number of zeros minus the number of poles inside $\gamma$ equals the number of times $f(z)$ turns round $0$ as $z$ runs once round $\gamma$. With $f=p$ a polynomial of degree $n$ and $\gamma$ a large circle, $p(z)\approx z^n$ turns $n$ times — the geometric proof of the fundamental theorem of algebra sketched in §1.1. Rouché's theorem turns the principle into a comparison test.

📐 Theorem 3.21 — Rouché's theorem
Let $\gamma$ be a simple closed contour, and let $f$ and $g$ be analytic on an open set containing $\gamma$ and its inside. If $$|f(z)-g(z)|\lt|f(z)|\quad\text{for every }z\text{ on }\gamma,$$ then $f$ and $g$ have the same number of zeros inside $\gamma$, counted with multiplicity. In the usual form: if $|h|\lt|f|$ on $\gamma$, then $f$ and $f+h$ have the same number of zeros inside $\gamma$.

Proof. On $\gamma$, $f\ne0$ (otherwise $|f-g|\lt0$) and $g\ne0$ (otherwise $|f|\lt|f|$). Put $F=\frac gf$, which is analytic and nonzero on an open set $V\supseteq\gamma$, with $|F-1|\lt1$ on $\gamma$; shrinking $V$, $|F-1|\lt1$ on $V$. The disc $D(1,1)$ lies in the right half-plane, where the principal logarithm is analytic, so $\operatorname{Log}F$ is analytic on $V$ and is a primitive of $\frac{F'}{F}=\frac{g'}{g}-\frac{f'}{f}$ there. The integral of a function with a primitive over a closed contour is $0$ (Theorem 2.11), so $$0=\frac1{2\pi i}\oint_\gamma\left(\frac{g'}{g}-\frac{f'}{f}\right)dz=Z(g)-Z(f)$$ by the argument principle applied to $g$ and to $f$ (no poles). ∎

The picture behind the proof is "walking the dog": a man walks once round a lamp-post at $0$ along the curve $f\circ\gamma$, holding a dog at $g\circ\gamma$ on a leash of length $|f-g|$. If the leash is always shorter than the man's distance $|f|$ to the post, the dog cannot get round the far side of the post, so man and dog wind round it the same number of times.

🧭 Counting zeros with Rouché's theorem
  1. On the circle $|z|=r$, pick a dominant term $f=a_kz^k$ (or $f$ = a simple function such as $e^z$ or $5z^3$) and let $h$ be the rest.
  2. Bound $|h|$ by the triangle inequality: $|h(z)|\le\sum_{j\ne k}|a_j|r^j$, and check that this is strictly less than $|a_k|r^k$.
  3. Then $f+h$ has exactly as many zeros in $|z|\lt r$ as $a_kz^k$, namely $k$. The strict inequality also shows there are no zeros on $|z|=r$.
  4. Annulus $r_1\lt|z|\lt r_2$: count in each disc and subtract (no zeros on the inner circle, by step 3).
  5. If no single term dominates, try another radius, group terms, or use the argument principle directly.
✏️ Example 7 — Prove or disprove: counting zeros
(a) $p(z)=z^7-5z^3+1$ has exactly $3$ zeros in $\mathbb{D}$ and exactly $4$ in the annulus $1\lt|z|\lt2$.
(b) $q(z)=z^4+6z+3$ has exactly one zero in $\mathbb{D}$ and three in $1\lt|z|\lt2$.
(c) The equation $e^z=3z$ has exactly one solution in $\mathbb{D}$.
(d) If $f,g$ are analytic on a neighbourhood of $\overline{\mathbb{D}}$ and $|f-g|\le|f|$ on $|z|=1$, then $f$ and $g$ have the same number of zeros in $\mathbb{D}$.
(e) If $f$ is analytic on a neighbourhood of $\overline{\mathbb{D}}$, has no zeros on $|z|=1$, and $\oint_{|z|=1}\frac{f'}{f}dz=0$, then $f$ has no zeros in $\mathbb{D}$.
(a) True On $|z|=1$: $|-5z^3|=5\gt2\ge|z^7+1|$, so $p$ has as many zeros in $\mathbb{D}$ as $-5z^3$: three. On $|z|=2$: $|z^7|=128\gt41\ge|-5z^3+1|$, so seven zeros in $|z|\lt2$. None lies on $|z|=1$ (there $|p|\ge5-2$), so $7-3=4$ lie in the annulus.
(b) True $|z|=1$: $|6z|=6\gt4\ge|z^4+3|$: one zero. $|z|=2$: $|z^4|=16\gt15\ge|6z+3|$: four zeros. So $4-1=3$ in the annulus.
(c) True On $|z|=1$: $|e^z|=e^{\operatorname{Re}z}\le e\lt3=|3z|$. By Rouché, $3z-e^z$ has as many zeros in $\mathbb{D}$ as $3z$: one.
(d) False Equality must be excluded. $f(z)=z$ and $g(z)=z-1$ satisfy $|f-g|=1=|f|$ on the circle; $f$ has one zero in $\mathbb{D}$ and $g$ none (its zero is on the circle).
(e) True $f$ has no poles, so $Z=\frac{1}{2\pi i}\oint\frac{f'}{f}=0$. (For meromorphic $f$ the conclusion would fail: $\frac{z}{z-\frac12}$ has $Z-P=0$ with one zero.)
Interactive 2 — The Argument Principle: Count the Turns

Left: zeros (○) and poles (×) of $f$, and the circle $|z|=r$. Right: the image $f(z)$ as $z$ runs once round the circle, in a compressed $w$-plane. Press Play to trace it and watch the turn counter: when the circle closes, the number of turns round $0$ equals $Z-P$. For the polynomials the Rouché readout names a term that dominates on the circle — and predicts the count before you trace.

1.00
zeros inside Z—
poles inside P—
turns of f(z) round 0 so far—
Rouché on |z| = r—
⚠️ Counterexamples and pitfalls
  1. $\lim(z-a)f(z)$ is for simple poles only. For $\frac{e^z}{(z-1)^3}$ it gives $\infty$; the residue is $\frac e2$. Determine the order first.
  2. $g/h'$ needs a simple zero of $h$. $\operatorname{Res}_0\frac{1}{1-\cos z}\ne\frac{1}{\sin0}$; here $h$ has a double zero, and the residue is $0$ (even function).
  3. A pole can have residue $0$. $\frac{1}{z^2}$, $\frac{e^z}{z(z-1)^2}$ at $1$, $\frac{z}{(z^2+1)^2}$ at $\pm i$, $\frac{1}{1-\cos z}$ at $0$: "residue $0$" does not mean "removable".
  4. Evenness kills residues at $0$ only. $\frac{\cos z}{z^3}$ is odd and has residue $-\frac12$; $\frac{\cos z}{z^2}$ is even and has residue $0$.
  5. Residue at $\infty$ is not about the type at $\infty$. $\operatorname{Res}_\infty\frac1z=-1$ although $\frac1z$ is analytic at $\infty$; $\operatorname{Res}_\infty z=0$ although $z$ has a pole there. And mind the sign.
  6. Never replace $e^{iz}$ by $\cos z$. $2\pi i\operatorname{Res}_i\frac{\cos z}{z^2+1}=\pi\cosh1$, but $\int\frac{\cos x}{x^2+1}dx=\frac\pi e$: $\cos z$ is huge on the upper arc.
  7. Degree gap $1$ needs oscillation. $\int_{-\infty}^\infty\frac{x}{x^2+1}dx$ diverges, although $\lim_{R\to\infty}\int_{-R}^{R}=0$ (a principal value at $\infty$); $\int\frac{x\sin x}{x^2+1}$ converges, by Jordan's lemma.
  8. Jordan's lemma needs the right half-plane. $e^{i\alpha z}$ decays in the upper half-plane only for $\alpha\gt0$; for $e^{-ix}$ close below (clockwise, with a minus sign).
  9. Indentation gives half residues only for simple poles. $\operatorname{PV}\int\frac{dx}{x^2}$ does not exist; $\operatorname{PV}\int\frac{dx}{x}=0$.
  10. The residue theorem needs analyticity. $\oint_{|z|=1}\bar z\,dz=2\pi i$, although $\bar z$ has no singular point: $\bar z$ is not analytic anywhere, and on the circle it equals $\frac1z$.
  11. Rouché needs strict inequality on the whole curve (Example 7(d)), and it counts zeros strictly inside. The argument principle needs no zeros or poles on $\gamma$, counts with multiplicity, and gives $Z-P$, not $Z$.
  12. The dominant term depends on the circle. For $z^7-5z^3+1$: $-5z^3$ dominates on $|z|=1$, $z^7$ on $|z|=2$, and on $|z|=1.5$ no single term dominates ($1.5^7\approx17.1$ against $5\cdot1.5^3+1\approx17.9$).

Exercises

I
Residues and contour integrals.
  • 1 Find the residues at all poles of (a) $\frac{z+1}{z^2-2z}$; (b) $\frac{z}{(z^2+1)^2}$; (c) $\frac{1}{1-\cos z}$ (at $0$).
  • 2 Find the residue at $0$ of (a) $\frac{\cot z}{z}$; (b) $\frac{e^z-1}{z^4}$; (c) $e^{1/z}\sin\frac1z$; (d) $z\cos\frac1z$.
  • 3 Evaluate $\oint_{|z|=3/2}\frac{dz}{z^3(z-2)}$ in two ways: by the residue at $0$, and by the residues at $2$ and $\infty$.
  • 4 Evaluate $\oint_{|z|=2}\frac{dz}{z^5-1}$ and $\oint_{|z|=2}\frac{z^4\,dz}{z^5-1}$.
  • 5 Evaluate $\oint_{|z|=1}\frac{e^z}{\sin^2z}\,dz$.
  • 6 Evaluate $\oint_{|z-i|=1}\frac{dz}{z^4-1}$.
  • 7 Find $\operatorname{Res}_\infty$ of (a) $\frac{z^2}{z^3+1}$; (b) $e^{1/z}$; (c) $z^3\cos\frac1z$.
  • 8 Prove: if $f$ has a simple pole at $a$ and $g$ is analytic at $a$, then $\operatorname{Res}_a(fg)=g(a)\operatorname{Res}_af$. Show by an example that this fails for a double pole.
  • 9 Find all functions $f$ analytic on $\mathbb{C}$ except for simple poles at $1$ and $-1$ with residues $2$ and $3$, such that $f(z)\to0$ as $z\to\infty$.
1 (a) $z^2-2z=z(z-2)$: $\operatorname{Res}_0=\frac{1}{-2}=-\frac12$, $\operatorname{Res}_2=\frac{3}{2}$. (b) Double poles at $\pm i$: $\frac{d}{dz}\frac{z}{(z+i)^2}=\frac{i-z}{(z+i)^3}$, which is $0$ at $z=i$; similarly at $-i$. Both residues are $0$ (indeed $\frac{z}{(z^2+1)^2}=-\frac12\frac{d}{dz}\frac1{z^2+1}$, a derivative). (c) Double pole, even function: residue $0$.
2 (a) $\frac{\cot z}{z}=\frac{1}{z^2}-\frac13-\cdots$ is even: $0$. (b) $\frac{z+z^2/2+z^3/6+\cdots}{z^4}$: $\frac16$. (c) With $w=\frac1z$: $e^w\sin w=w+w^2+\frac{w^3}{3}+\cdots$, so the coefficient of $z^{-1}$ is $1$. (d) $z-\frac{1}{2z}+\cdots$: $-\frac12$.
3 Inside $|z|=\frac32$ only $0$ (order $3$). $\frac{1}{z-2}=-\frac12\sum\frac{z^n}{2^n}$, and the coefficient of $z^2$ gives $\operatorname{Res}_0=-\frac18$; integral $-\frac{\pi i}4$. Check: $\operatorname{Res}_2=\frac18$, $\operatorname{Res}_\infty=0$ ($zf\to0$), and $-\frac18+\frac18+0=0$ (Theorem 3.13).
4 All five poles lie inside $|z|=2$. $\frac{1}{z^5-1}$: $zf\to0$, $\operatorname{Res}_\infty=0$, integral $0$. $\frac{z^4}{z^5-1}$: $zf\to1$, integral $-2\pi i(-1)=2\pi i$ (also: it is $\frac{p'}{p}$ for $p=z^5-1$, with $5$ zeros, divided by $5$).
5 Only $0$ is inside ($\pm\pi$ are outside). $\frac{1}{\sin^2z}=\frac1{z^2}+\frac13+\cdots$ and $e^z=1+z+\cdots$: the coefficient of $\frac1z$ is $1$. Integral $2\pi i$.
6 Poles $\pm1,\pm i$; only $i$ satisfies $|z-i|\lt1$ ($|1-i|=|-1-i|=\sqrt2$). $\operatorname{Res}_i=\frac1{4i^3}=\frac{i}{4}$; integral $2\pi i\cdot\frac i4=-\frac\pi2$.
7 (a) $zf\to1$: $-1$. (b) $e^{1/z}=1+\frac1z+\cdots$: $-1$. (c) $z^3\left(1-\frac{1}{2z^2}+\frac{1}{24z^4}-\cdots\right)=z^3-\frac z2+\frac{1}{24z}-\cdots$: $-\frac1{24}$.
8 $(z-a)f(z)g(z)\to\operatorname{Res}_af\cdot g(a)$, and $fg$ has at most a simple pole, so Theorem 3.11(2) applies. Counterexample: $f=\frac1{z^2}$ (residue $0$), $g=z$: $fg=\frac1z$ has residue $1\ne g(0)\cdot0$.
9 $h=f-\frac{2}{z-1}-\frac{3}{z+1}$ has only removable singularities, so it is entire, and $h\to0$ at $\infty$; by Liouville $h\equiv0$. The only such function is $f=\frac{2}{z-1}+\frac{3}{z+1}=\frac{5z+1}{z^2-1}$.
II
Integrals over $[0,2\pi]$ and over $\mathbb{R}$.
  • 1 $\displaystyle\int_0^{2\pi}\frac{d\theta}{2+\cos\theta}$.
  • 2 $\displaystyle\int_0^{2\pi}\frac{d\theta}{5+3\sin\theta}$.
  • 3 $\displaystyle\int_0^{2\pi}\frac{\sin^2\theta}{5+4\cos\theta}\,d\theta$.
  • 4 $\displaystyle\int_0^{2\pi}\frac{d\theta}{1+\sin^2\theta}$.
  • 5 $\displaystyle\int_{-\infty}^{\infty}\frac{x^2\,dx}{(x^2+1)(x^2+4)}$.
  • 6 $\displaystyle\int_0^{\infty}\frac{dx}{(x^2+1)^2}$.
  • 7 $\displaystyle\int_0^{\infty}\frac{dx}{x^6+1}$.
  • 8 Prove that $\displaystyle\int_0^\infty\frac{dx}{x^n+1}=\frac{\pi/n}{\sin(\pi/n)}$ for every integer $n\ge2$, using the sector $0\le\arg z\le\frac{2\pi}{n}$, $|z|\le R$.
Check: the integrals of card II, numerically
numerical value—
residue answer—
difference—
1 Example 3(a) with $a=2$, $b=1$: $\frac{2\pi}{\sqrt3}\approx3.6276$.
2 $F=\frac{1}{iz}\cdot\frac{1}{5+\frac{3}{2i}(z-z^{-1})}=\frac{2}{3z^2+10iz-3}$, with roots $-\frac i3$ (inside) and $-3i$. $\operatorname{Res}_{-i/3}=\frac{2}{6z+10i}\Big|_{-i/3}=\frac{2}{8i}$; integral $2\pi i\cdot\frac{1}{4i}=\frac\pi2$ — the same as $\frac{2\pi}{\sqrt{25-9}}$, as the substitution $\theta\mapsto\theta+\frac\pi2$ predicts.
3 $\sin^2\theta=\frac{1-\cos2\theta}{2}$. By Example 3(a), $\int\frac{d\theta}{5+4\cos\theta}=\frac{2\pi}3$; as in Example 3(b) (now the pole inside is $-\frac12$), $\int\frac{\cos2\theta}{5+4\cos\theta}d\theta=\frac{\pi}{6}$. So the integral is $\frac12\left(\frac{2\pi}{3}-\frac\pi6\right)=\frac{\pi}{4}$.
4 $1+\sin^2\theta=\frac{3-\cos2\theta}{2}$, so the integral is $\int_0^{2\pi}\frac{2\,d\theta}{3-\cos2\theta}$; with $\varphi=2\theta$ (running over two periods) it equals $\int_0^{2\pi}\frac{2\,d\varphi}{3-\cos\varphi}=\frac{4\pi}{\sqrt8}=\pi\sqrt2\approx4.4429$.
5 $\operatorname{Res}_i=\frac{i^2}{2i(i^2+4)}=-\frac1{6i}$, $\operatorname{Res}_{2i}=\frac{-4}{(-4+1)\cdot4i}=\frac{1}{3i}$. Sum $\frac{1}{6i}$; integral $\frac{2\pi i}{6i}=\frac\pi3$.
6 Even integrand: half of $\int_{\mathbb{R}}$. $\operatorname{Res}_i\frac{1}{(z+i)^2(z-i)^2}=\frac{d}{dz}(z+i)^{-2}\Big|_i=\frac{-2}{(2i)^3}=\frac{1}{4i}$; $\int_{\mathbb{R}}=\frac\pi2$, answer $\frac\pi4$.
7 By part 8 with $n=6$: $\frac{\pi/6}{\sin(\pi/6)}=\frac{\pi}{3}$. (Directly: the upper half-plane poles $e^{i\pi/6},i,e^{5i\pi/6}$ have residues $-\frac{a}{6}$, summing to $-\frac{2i}{6}$; $\int_{\mathbb{R}}=\frac{2\pi}{3}$; halve.)
8 Let $I=\int_0^\infty\frac{dx}{x^n+1}$ and $\omega=e^{2\pi i/n}$. On the ray $z=t\omega$, $z^n=t^n$, so that side contributes $-\omega I$ (traversed inwards). The only pole in the sector is $a=e^{i\pi/n}$, with residue $\frac1{na^{n-1}}=-\frac an$. The arc contributes at most $\frac{2\pi R}{n}\cdot\frac{1}{R^n-1}\to0$. So $(1-\omega)I=-\frac{2\pi ia}{n}$, and since $\frac{1-\omega}{a}=a^{-1}-a=-2i\sin\frac\pi n$, $I=\frac{-2\pi i}{n(-2i\sin\frac\pi n)}=\frac{\pi/n}{\sin(\pi/n)}$.
III
Jordan's lemma, indentation and series.
  • 1 $\displaystyle\int_{-\infty}^{\infty}\frac{\cos2x}{x^2+9}\,dx$.
  • 2 $\displaystyle\int_{-\infty}^{\infty}\frac{x\sin x}{x^2+1}\,dx$.
  • 3 $\displaystyle\int_{-\infty}^{\infty}\frac{\cos x}{(x^2+1)(x^2+4)}\,dx$.
  • 4 $\displaystyle\int_{0}^{\infty}\frac{\sin x}{x(x^2+1)}\,dx$.
  • 5 $\displaystyle\operatorname{PV}\!\int_{-\infty}^{\infty}\frac{dx}{x^3-1}$.
  • 6 Find $\displaystyle\sum_{n=1}^\infty\frac{1}{n^2+4}$ in closed form.
  • 7 Show that $\displaystyle\sum_{n=1}^\infty\frac{(-1)^{n+1}}{n^2}=\frac{\pi^2}{12}$ using $\pi\csc\pi z=\frac1z+\frac{\pi^2z}{6}+\frac{7\pi^4z^3}{360}+\cdots$.
  • 8 Show that $\displaystyle\sum_{n=1}^\infty\frac{1}{n^4}=\frac{\pi^4}{90}$.
1 $\operatorname{Res}_{3i}\frac{e^{2iz}}{z^2+9}=\frac{e^{-6}}{6i}$; integral $\frac{2\pi i e^{-6}}{6i}=\frac{\pi}{3e^6}\approx0.002596$. In general $\int\frac{\cos\alpha x}{x^2+b^2}dx=\frac{\pi}{b}e^{-\alpha b}$ ($\alpha,b\gt0$).
2 $\operatorname{Res}_i\frac{ze^{iz}}{z^2+1}=\frac{ie^{-1}}{2i}=\frac{1}{2e}$, so $\int\frac{xe^{ix}}{x^2+1}=\frac{\pi i}{e}$ (Jordan), and the imaginary part is $\frac\pi e\approx1.1557$.
3 $\operatorname{Res}_i\frac{e^{iz}}{(z^2+1)(z^2+4)}=\frac{e^{-1}}{2i\cdot3}$, $\operatorname{Res}_{2i}=\frac{e^{-2}}{(-3)\cdot4i}$. Total $2\pi i\left(\frac{e^{-1}}{6i}-\frac{e^{-2}}{12i}\right)=\frac{\pi}{6}\left(\frac2e-\frac{1}{e^2}\right)\approx0.3144$.
4 $f=\frac{e^{iz}}{z(z^2+1)}$: simple real pole at $0$ ($\operatorname{Res}=1$), pole $i$ ($\operatorname{Res}=\frac{e^{-1}}{i\cdot2i}=-\frac{1}{2e}$). $\operatorname{PV}\int_{\mathbb{R}}f=2\pi i\left(-\frac1{2e}\right)+\pi i=\pi i\left(1-\frac1e\right)$. The imaginary part is $\int_{\mathbb{R}}\frac{\sin x}{x(x^2+1)}dx$ (an honest integral, the integrand being bounded), so the answer is $\frac\pi2\left(1-\frac1e\right)\approx0.9929$.
5 Poles: $1$ (real), $\omega=e^{2\pi i/3}$ (upper), $\bar\omega$. Residues $\frac{1}{3a^2}=\frac a3$: $\operatorname{Res}_1=\frac13$, $\operatorname{Res}_\omega=\frac\omega3$. PV $=2\pi i\frac{\omega}{3}+\pi i\frac13=\frac{\pi i}{3}(2\omega+1)=\frac{\pi i}{3}\cdot i\sqrt3=-\frac{\pi}{\sqrt3}\approx-1.8138$.
6 Example 6(a) with $a=2$: $\sum_{\mathbb{Z}}\frac1{n^2+4}=\frac\pi2\coth2\pi$, so $\sum_{n\ge1}=\frac12\left(\frac\pi2\coth2\pi-\frac14\right)=\frac{\pi}{4}\coth2\pi-\frac18\approx0.6604$.
7 $\frac{\pi\csc\pi z}{z^2}$ has residue $\frac{\pi^2}{6}$ at $0$, so $\sum_{n\ne0}\frac{(-1)^n}{n^2}=-\frac{\pi^2}6$, i.e. $2\sum_{n\ge1}\frac{(-1)^n}{n^2}=-\frac{\pi^2}{6}$ and $\sum\frac{(-1)^{n+1}}{n^2}=\frac{\pi^2}{12}$.
8 $\frac{\pi\cot\pi z}{z^4}=\frac1{z^5}-\frac{\pi^2}{3z^3}-\frac{\pi^4}{45z}-\cdots$: residue $-\frac{\pi^4}{45}$. So $\sum_{n\ne0}\frac1{n^4}=\frac{\pi^4}{45}$ and $\sum_{n\ge1}\frac1{n^4}=\frac{\pi^4}{90}$.
IV
The argument principle and Rouché's theorem.
  • 1 How many zeros does $z^5-6z+3$ have in $\mathbb{D}$, and how many in $1\lt|z|\lt2$?
  • 2 Show that $2z^5-6z^2+z+1$ has exactly two zeros in $\mathbb{D}$.
  • 3 Show that the equation $e^z=5z^3+1$ has exactly three solutions in $\mathbb{D}$.
  • 4 Let $p_n(z)=\sum_{k=0}^n\frac{z^k}{k!}$. Prove that $p_n$ has no zeros in $|z|\le1$ for $n\ge2$. What happens for $n=1$?
  • 5 Compute $\frac{1}{2\pi i}\oint_{|z|=3}\frac{f'(z)}{f(z)}dz$ for $f(z)=\dfrac{(z^2+1)^2}{z^3(z-4)}$.
  • 6 Compute $\frac{1}{2\pi i}\oint_{|z|=2}\frac{zf'(z)}{f(z)}dz$ for $f(z)=z^3-3z+1$, after checking that all zeros lie in $|z|\lt2$.
  • 7 (Hurwitz's theorem.) Let $f_n$ be analytic and zero-free on a domain $D$, and $f_n\to f$ uniformly on compact subsets of $D$. Prove that $f\equiv0$ or $f$ has no zeros in $D$. (Hint: Rouché on a small circle.)
  • 8 Let $p(z)=z^n+a_{n-1}z^{n-1}+\cdots+a_0$ and $A=\max|a_k|$. Prove with Rouché's theorem that all $n$ zeros of $p$ lie in $|z|\lt1+A$.
1 $|z|=1$: $|-6z|=6\gt4\ge|z^5+3|$: one zero in $\mathbb{D}$. $|z|=2$: $|z^5|=32\gt15\ge|-6z+3|$: five in $|z|\lt2$. So four in the annulus (none on $|z|=1$).
2 On $|z|=1$: $|-6z^2|=6\gt4\ge|2z^5+z+1|$. So the polynomial has as many zeros in $\mathbb{D}$ as $-6z^2$: two.
3 Compare $g=5z^3+1-e^z$ with $f=5z^3$: on $|z|=1$, $|f-g|=|e^z-1|=\left|\sum_{k\ge1}\frac{z^k}{k!}\right|\le e-1\lt5=|f|$. So $g$ has three zeros in $\mathbb{D}$.
4 On $|z|=1$: $|e^z-p_n(z)|\le\sum_{k\gt n}\frac{1}{k!}=e-p_n(1)$, which for $n\ge2$ is at most $e-2.5\approx0.218$, while $|e^z|=e^{\operatorname{Re}z}\ge e^{-1}\approx0.368$. By Rouché, $p_n$ has as many zeros in $\mathbb{D}$ as $e^z$, namely none, and $|p_n|\ge|e^z|-|e^z-p_n|\gt0$ on the circle. For $n=1$, $p_1=1+z$ vanishes at $-1$, on the circle (and $e-2\approx0.718\gt e^{-1}$, so the estimate fails).
5 Zeros $\pm i$, each of order $2$: $Z=4$. Poles: $0$ of order $3$ inside, $4$ outside: $P=3$. Answer $Z-P=1$.
6 On $|z|=2$: $|z^3|=8\gt7\ge|-3z+1|$, so all three zeros lie in $|z|\lt2$. By Theorem 3.20 with $g(z)=z$, the integral is the sum of the zeros, $0$ (no $z^2$ term). (Numerically the zeros are $\approx1.532,\ 0.347,\ -1.879$.)
7 Suppose $f\not\equiv0$ and $f(a)=0$. Zeros of $f$ are isolated, so there is $r$ with $\overline D(a,r)\subseteq D$ and $f\ne0$ on $|z-a|=r$; let $\mu=\min_{|z-a|=r}|f|\gt0$. For large $n$, $|f_n-f|\lt\mu\le|f|$ on the circle (uniform convergence), so by Rouché $f_n$ has as many zeros in $D(a,r)$ as $f$ — at least one. Contradiction. Example of the first alternative: $f_n=\frac{e^z}{n}\to0$.
8 Let $R=1+A$ (if $A=0$, $p=z^n$ and there is nothing to prove). On $|z|=R$: $|a_{n-1}z^{n-1}+\cdots+a_0|\le A(R^{n-1}+\cdots+1)=A\frac{R^n-1}{R-1}=R^n-1\lt R^n=|z^n|$. So $p$ has as many zeros in $|z|\lt R$ as $z^n$: all $n$ of them (counted with multiplicity — another proof of the fundamental theorem of algebra).
🎯 Exam corner CSIR Part BCSIR Part CGATE MA

E1. CSIR Part B GATE MA The value of $\displaystyle\oint_{|z|=1}(z^2+1)\,e^{1/z}\,dz$ is (A) $2\pi i$; (B) $\frac{7\pi i}{3}$; (C) $\frac{\pi i}{3}$; (D) $0$.

Laurent Essential singularity at $0$; read off $c_{-1}$. In $z^2e^{1/z}=\sum\frac{z^{2-k}}{k!}$ the term $z^{-1}$ has $k=3$: $\frac16$. In $e^{1/z}$: $1$. Residue $\frac76$.
Answer (B) $2\pi i\cdot\frac76=\frac{7\pi i}{3}$. ((A) and (C) are the two pieces separately.)

E2. CSIR Part B $\displaystyle\int_0^{2\pi}\frac{d\theta}{5-3\cos\theta}$ equals (A) $\frac\pi4$; (B) $\frac\pi2$; (C) $\frac{2\pi}5$; (D) $\pi$.

Formula Example 3(a) with $a=5$, $b=-3$: $\frac{2\pi}{\sqrt{25-9}}=\frac{2\pi}{4}$. (Directly: $F=\frac{-2}{i(3z^2-10z+3)}$, pole $\frac13$ inside, residue $\frac{-2}{i(6\cdot\frac13-10)}=\frac{1}{4i}$.)
Answer (B) $\frac\pi2$.

E3. CSIR Part B The number of zeros of $z^6-5z^4+z-1$ in the open unit disc is (A) $0$; (B) $1$; (C) $4$; (D) $6$.

Rouché On $|z|=1$: $|-5z^4|=5\gt3\ge|z^6+z-1|$. So the count equals that of $-5z^4$.
Answer (C) $4$.

E4. CSIR Part C Let $f(z)=\dfrac{z^3}{z^4-1}$. Which of the following are true? (One or more options may be correct.) (A) The residue of $f$ at each fourth root of unity is $\frac14$. (B) $\operatorname{Res}_{z=\infty}f=-1$. (C) $\oint_{|z|=2}f(z)\,dz=2\pi i$. (D) $\oint_{|z-1|=1}f(z)\,dz=\pi i$.

(A) True $\frac{g}{h'}=\frac{a^3}{4a^3}=\frac14$ at each simple pole $a$. (Equivalently $f=\frac14\frac{h'}{h}$ with $h=z^4-1$.)
(B) True $zf(z)=\frac{z^4}{z^4-1}\to1$, so $\operatorname{Res}_\infty f=-1$ — consistent with $4\cdot\frac14-1=0$.
(C) True All four poles lie inside: $2\pi i\cdot1$.
(D) False Inside $|z-1|\lt1$ only the pole $1$ ($|\pm i-1|=\sqrt2$, $|-1-1|=2$): the integral is $2\pi i\cdot\frac14=\frac{\pi i}{2}$.
Answer (A), (B), (C).

E5. CSIR Part C GATE MA Which of the following are correct? (A) $\int_{-\infty}^\infty\frac{\cos x}{x^2+1}dx=\pi\cosh1$. (B) $\int_0^\infty\frac{\sin x}{x}dx=\frac\pi2$. (C) $\int_{-\infty}^\infty\frac{dx}{x^2+x+1}=\frac{2\pi}{\sqrt3}$. (D) $\int_0^{2\pi}\frac{d\theta}{2+\cos\theta}=\frac{\pi}{\sqrt3}$.

(A) False The value is $\frac{\pi}{e}$; $\pi\cosh1$ is what one gets by wrongly using $\cos z$ on the upper arc (Example 4(b)).
(B) True Example 5(a).
(C) True The upper pole is $\omega=-\frac12+\frac{\sqrt3}2i$, with residue $\frac{1}{2\omega+1}=\frac{1}{i\sqrt3}$: $\frac{2\pi i}{i\sqrt3}=\frac{2\pi}{\sqrt3}$ (or complete the square: $(x+\frac12)^2+\frac34$).
(D) False $\frac{2\pi}{\sqrt{4-1}}=\frac{2\pi}{\sqrt3}$, twice the stated value.
Answer (B), (C).

E6. CSIR Part C Let $p(z)=z^5-8z+2$. Which of the following are true? (A) $p$ has exactly one zero in $|z|\lt1$. (B) $p$ has exactly four zeros in $1\lt|z|\lt2$. (C) $p$ has a zero on the circle $|z|=1$. (D) $p$ has exactly two real zeros.

(A) True On $|z|=1$: $|-8z|=8\gt3\ge|z^5+2|$: one zero, like $-8z$.
(B) True On $|z|=2$: $|z^5|=32\gt18\ge|-8z+2|$: five zeros in $|z|\lt2$; minus the one in $\mathbb{D}$.
(C) False On $|z|=1$, $|p|\ge8-3=5\gt0$.
(D) False $p(-2)=-14\lt0$, $p(-1)=9\gt0$, $p(\frac12)=\frac1{32}-2\lt0$, $p(2)=18\gt0$: at least three real zeros, in $(-2,-1)$, $(-1,\frac12)$ and $(\frac12,2)$; and at most three, since $p'=5x^4-8$ has only two real zeros (Rolle). Exactly three.
Answer (A), (B).
🧑‍🏫 For the teacher

Suggested plan — 3 lectures × 60 min.

  1. Residues and the residue theorem. Definition 3.5 from the Laurent series, Theorem 3.11 with proofs (insist on deciding the order first), Definition 3.6 and the two "surprises", Example 1 on the board. Theorems 3.12–3.13; the first strategy box; Example 2 — let students find the trap in (a) and the shortcut in (d) before you show them.
  2. Real integrals. Theorem 3.14 and Example 3; Theorem 3.15; Jordan's lemma with the picture of $e^{-\alpha R\sin\theta}$; Theorem 3.17 and Example 4. Project Interactive 1: grow $R$ for $\frac1{z^4+1}$, then switch to the "cos z" trap and let the class explain why the amber curve refuses to die. Definition 3.7, Theorem 3.18, Example 5, the second strategy box.
  3. Series and counting zeros. Theorem 3.19 and Example 6 (20 minutes); Theorem 3.20 with both proofs; Rouché (Theorem 3.21) with the dog-walking picture; Interactive 2 on $z^7-5z^3+1$ at $r=1$, $1.5$, $2$, then the rational function; Example 7 and Exam-corner E3, E6 live.

Discussion questions. (1) Why must a real integral computed by residues come out real, and how can that be used to catch errors? (2) In Interactive 1 the total "segment + arc" is constant between poles and jumps as the arc crosses a pole. By how much does it jump, and why? (3) Rouché says nothing on $|z|=1.5$ for $z^7-5z^3+1$. Does that mean the theorem fails there, or only the method? How else could one count the zeros in $|z|\lt1.5$?

Misconceptions to watch for. Using $\lim(z-a)f$ at higher-order poles; using $\cos z$ instead of $e^{iz}$; forgetting the sign of $\operatorname{Res}_\infty$; counting poles on or outside the contour; claiming "residue $0$ ⇒ removable"; Rouché with $\le$ instead of $\lt$; the argument principle giving $Z$ rather than $Z-P$.

Suggested homework. I(1, 3, 5, 7, 9), II(2, 3, 5, 8), III(1, 3, 4, 5, 8), IV(1, 3, 4, 7); Exam corner E1, E4, E5.

🔬 Research–Teaching NexusResearch-tutored · optional, about 60 minutes

Research question. How does a control engineer decide, without solving any equation, whether a feedback system — an aircraft autopilot, a robot arm, an insulin pump — is stable?

Why it matters. A linear system is stable exactly when its characteristic polynomial has no zeros with $\operatorname{Re}s\ge0$. In 1932 Harry Nyquist at Bell Labs turned the argument principle into a graphical test: count how many times the image of a large "D-shaped" contour (the imaginary axis closed by a big semicircle on the right) winds round $0$. The Nyquist criterion is still taught in every control-engineering programme and used to design amplifiers, flight controllers and power-grid regulators.

What to do.

  1. Take $p_K(s)=s^3+2s^2+3s+K$ with a gain $K\gt0$. For $K=4$ and $K=8$, sample $p_K(i\omega)$ for $\omega$ from $-200$ up to $200$ and then $p_K(200e^{i\theta})$ for $\theta$ from $\frac\pi2$ down to $-\frac\pi2$ — the D-contour traversed clockwise. Track a continuous argument (e.g. with numpy.unwrap) and compute the number of zeros in the right half-plane as $-\frac{\Delta\arg}{2\pi}$.
  2. Check your counts with numpy.roots.
  3. Find the critical gain $K^\ast$ at which a pair of zeros crosses the imaginary axis, by solving $p_K(i\omega)=0$ for real $\omega$ (split into real and imaginary parts). Compare with the Routh–Hurwitz condition for cubics $s^3+a_2s^2+a_1s+a_0$: stable iff $a_2,a_0\gt0$ and $a_2a_1\gt a_0$.
  4. Plot the image curves for $K=4$ and $K=8$ and explain in one paragraph, in the language of Theorem 3.20, what changes when $K$ passes $K^\ast$.

Tools: Python with numpy and matplotlib (or any numerical environment).

Hand in: The two plots, a table of zero counts (D-contour versus roots), the value of $K^\ast$ with the frequency at which the crossing happens, and the paragraph.

Going further. Read about the Nyquist criterion for the open-loop transfer function $G(s)=\frac{K}{s^3+2s^2+3s}$, where the count is "encirclements of $-1$ = closed-loop unstable poles − open-loop unstable poles" — exactly $Z-P$.

Instructor note: for $K=4$ the zeros are $\approx-1.651$ and $-0.175\pm1.547i$ (none in the right half-plane, winding $0$); for $K=8$ they are $\approx-2.248$ and $0.124\pm1.882i$ (two, winding $2$). The crossing happens at $p_K(i\omega)=-i\omega^3-2\omega^2+3i\omega+K=0$, i.e. $\omega^2=3$ and $K^\ast=2\omega^2=6$, matching Routh–Hurwitz $2\cdot3\gt K$. Students should notice that the semicircle contributes about $-\frac32$ turns for large radius, and the imaginary axis the rest.

🧪 Self-check quiz

0/5 correct

Q1. $\operatorname{Res}_{z=0}\dfrac{e^z}{z^3}$ equals

Q2. $\displaystyle\oint_{|z|=3}\frac{dz}{z^2+1}$ equals

Q3. To evaluate $\int_{-\infty}^\infty\frac{x\sin x}{x^2+4}dx$ by a semicircular contour one needs Jordan's lemma because

Q4. The number of zeros of $z^4+6z+3$ in $|z|\lt1$ is

Q5. $\operatorname{Res}_{z=\infty}\dfrac1z$ equals