Complex Analysis and Residues
CSIR NET Physical Sciences: analytic functions, Cauchy-Riemann equations, Cauchy integral formula, Taylor and Laurent series, residues and real integrals.
- 17 min
On this page · 14 sections
Prerequisites
- Fourier Series, Fourier and Laplace Transforms: many integrals evaluated here are Fourier transforms.
- Line integrals and Green’s theorem from Dimensional Analysis and Vector Calculus.
- Power series and radius of convergence. The rigorous version is in Complex Analysis (Mathematical Sciences).
The Hook: A Real Integral That Needs Imaginary Numbers
Analytic Functions
Write \( z = x + iy = re^{i\theta} \) and \( f(z) = u(x, y) + iv(x, y) \). \( f \) is differentiable at \( z_0 \) if \( \lim_{h\to0}[f(z_0 + h) - f(z_0)]/h \) exists and is the same for every direction of approach. It is analytic (holomorphic) at \( z_0 \) if it is differentiable throughout some neighbourhood of \( z_0 \). An entire function is analytic in the whole plane (polynomials, \( e^z \), \( \sin z \), \( \cos z \)).
The Cauchy–Riemann equations
Approaching along the real and imaginary axes and equating the two limits gives
$$\boxed{u_x = v_y, \qquad u_y = -v_x}$$In polar form: \( u_r = \frac{1}{r}v_\theta \), \( v_r = -\frac{1}{r}u_\theta \). Then \( f'(z) = u_x + iv_x \).
The CR equations are necessary. They are also sufficient when \( u, v \) have continuous first partial derivatives. A compact test: \( f \) is analytic only if it depends on \( z \) alone, not on \( \bar z \), i.e. \( \partial f/\partial\bar z = 0 \).
| Function | Analytic? |
|---|---|
| \( z^2 = (x^2 - y^2) + 2ixy \) | yes, everywhere |
| \( \bar z = x - iy \) | nowhere (\( u_x = 1 \ne v_y = -1 \)) |
| \( \lvert z\rvert^2 = x^2 + y^2 \) | differentiable only at \( z = 0 \); analytic nowhere |
| \( \operatorname{Re}z = x \) | nowhere |
| \( e^z \), \( \sin z \), \( \cos z \) | entire |
| \( 1/z \) | everywhere except \( z = 0 \) |
Harmonic functions
If \( f = u + iv \) is analytic, both \( u \) and \( v \) satisfy Laplace’s equation, \( \nabla^2u = \nabla^2v = 0 \), and their level curves cross at right angles. Given a harmonic \( u \), the harmonic conjugate \( v \) follows from the CR equations.
Example. \( u = x^2 - y^2 + x \). Then \( v_y = u_x = 2x + 1 \Rightarrow v = 2xy + y + g(x) \); \( v_x = 2y + g' = -u_y = 2y \Rightarrow g = \text{const} \). So \( v = 2xy + y + C \) and \( f = z^2 + z + iC \).
This is why complex analysis solves two-dimensional electrostatics and ideal fluid flow: the real and imaginary parts of one analytic function are a potential and its stream (or field) lines.
Cauchy’s Theorem and Integral Formula
Cauchy’s theorem. If \( f \) is analytic on and inside a simple closed contour \( C \),
$$\boxed{\oint_Cf(z)\,dz = 0}$$Consequently a contour can be deformed freely through any region where the integrand is analytic, without changing the integral.
Cauchy’s integral formula. For \( a \) inside \( C \) (counter-clockwise),
$$\boxed{f(a) = \frac{1}{2\pi i}\oint_C\frac{f(z)}{z - a}dz, \qquad f^{(n)}(a) = \frac{n!}{2\pi i}\oint_C\frac{f(z)}{(z - a)^{n+1}}dz}$$An analytic function is infinitely differentiable, and its values inside a contour are fixed by its values on the contour.
Examples.
- \( \oint_{\lvert z\rvert=2}\frac{e^z}{z - 1}dz = 2\pi i\,e^1 = 2\pi ie \).
- \( \oint_{\lvert z\rvert=2}\frac{\cos z}{(z - 1)^3}dz = \frac{2\pi i}{2!}\left.\frac{d^2}{dz^2}\cos z\right\rvert_{z=1} = -\pi i\cos1 \).
- \( \oint_{\lvert z\rvert=1}\frac{dz}{z - 3} = 0 \), since the only singularity lies outside.
Two consequences used in reasoning questions:
- Liouville’s theorem: a bounded entire function is constant. So \( \sin z \) is unbounded in the complex plane (indeed \( \sin(iy) = i\sinh y \)).
- Maximum modulus principle: a non-constant analytic function attains its maximum modulus on a closed bounded region only on the boundary.
Taylor and Laurent Series
Taylor series
If \( f \) is analytic in the disc \( \lvert z - a\rvert < R \), then \( f(z) = \sum_{n\ge0}c_n(z - a)^n \) with \( c_n = f^{(n)}(a)/n! \), converging in the largest disc about \( a \) that contains no singularity.
$$\boxed{\text{radius of convergence} = \text{distance from } a \text{ to the nearest singularity}}$$This explains a puzzle of real analysis. \( 1/(1 + x^2) \) is smooth on the whole real line, yet its Maclaurin series converges only for \( \lvert x\rvert < 1 \): the poles at \( z = \pm i \) are at distance 1 from the origin. Likewise \( z/(e^z - 1) \) has a removable singularity at 0 and poles at \( \pm2\pi i \), so its Maclaurin series (which generates the Bernoulli numbers) has radius \( 2\pi \).
Laurent series
If \( f \) is analytic in an annulus \( r < \lvert z - a\rvert < R \),
$$f(z) = \sum_{n=-\infty}^{\infty}c_n(z - a)^n, \qquad c_n = \frac{1}{2\pi i}\oint\frac{f(z)}{(z - a)^{n+1}}dz.$$The terms with negative powers form the principal part. The expansion depends on the annulus: the same function has different Laurent series in different annuli.
Classifying isolated singularities
At an isolated singularity \( a \), look at the principal part of the Laurent series in \( 0 < \lvert z - a\rvert < R \):
| Type | Principal part | Behaviour | Example at \( z = 0 \) |
|---|---|---|---|
| Removable | none | \( f \) bounded near \( a \); limit exists | \( \sin z/z \) |
| Pole of order \( m \) | finitely many terms, lowest \( (z - a)^{-m} \) | \( \lvert f\rvert \to \infty \) | \( 1/z^2 \); \( 1/(1 - \cos z) \) (order 2) |
| Essential | infinitely many terms | takes values arbitrarily close to every complex number (Casorati–Weierstrass) | \( e^{1/z} \), \( \sin(1/z) \) |
A quick test for a pole of order \( m \): \( (z - a)^mf(z) \) has a finite non-zero limit. If \( f = g/h \) with \( g(a) \ne 0 \) and \( h \) having a zero of order \( m \) at \( a \), then \( f \) has a pole of order \( m \).
Branch points are not isolated singularities. \( \sqrt z \) and \( \ln z \) are multivalued; going once round \( z = 0 \) changes their value. They need a branch cut, and no Laurent series about 0 exists.
Residues
The residue of \( f \) at \( a \) is \( c_{-1} \), the coefficient of \( (z - a)^{-1} \) in the Laurent series about \( a \).
Residue theorem
$$\boxed{\oint_Cf(z)\,dz = 2\pi i\sum_{\text{poles inside }C}\operatorname{Res}f}$$for \( C \) traversed counter-clockwise.
Computing residues
| Situation | Formula |
|---|---|
| Simple pole | \( \operatorname{Res}_af = \lim_{z\to a}(z - a)f(z) \) |
| \( f = g/h \), \( g(a) \ne 0 \), \( h \) has a simple zero at \( a \) | \( \operatorname{Res}_af = g(a)/h'(a) \) |
| Pole of order \( m \) | \( \operatorname{Res}_af = \frac{1}{(m-1)!}\lim_{z\to a}\frac{d^{m-1}}{dz^{m-1}}\left[(z - a)^mf(z)\right] \) |
| Essential singularity | read \( c_{-1} \) off the Laurent series |
| Residue at infinity | \( \operatorname{Res}_\infty f = -\operatorname{Res}_{w=0}\frac{1}{w^2}f(1/w) \); the sum of all residues including \( \infty \) is zero |
Examples.
- \( e^z/z^3 \) at 0: \( e^z/z^3 = z^{-3} + z^{-2} + \tfrac{1}{2}z^{-1} + \cdots \), residue \( \tfrac{1}{2} \).
- \( e^{1/z} \) at 0: \( 1 + z^{-1} + \tfrac{1}{2}z^{-2} + \cdots \), residue 1, so \( \oint_{\lvert z\rvert=1}e^{1/z}dz = 2\pi i \).
- \( 1/\sinh z \) at 0: \( g/h' = 1/\cosh0 = 1 \).
- \( \cot z \) at \( n\pi \): \( \cos z/\sin z \), residue \( \cos n\pi/\cos n\pi = 1 \).
Evaluating Real Integrals
Type 1: trigonometric integrals over \( [0, 2\pi] \)
Put \( z = e^{i\theta} \): \( d\theta = dz/iz \), \( \cos\theta = \frac{1}{2}(z + z^{-1}) \), \( \sin\theta = \frac{1}{2i}(z - z^{-1}) \). The integral becomes a contour integral round \( \lvert z\rvert = 1 \). A standard result:
$$\boxed{\int_0^{2\pi}\frac{d\theta}{a + b\cos\theta} = \frac{2\pi}{\sqrt{a^2 - b^2}}, \qquad a > \lvert b\rvert}$$For \( a = 5 \), \( b = 4 \): \( 2\pi/3 \).
Type 2: rational functions over the real line
If \( f = P/Q \) with \( \deg Q \ge \deg P + 2 \) and no real poles, close the contour with a large semicircle in the upper half-plane; its contribution vanishes. Then
$$\int_{-\infty}^{\infty}f(x)\,dx = 2\pi i\sum_{\text{upper half-plane}}\operatorname{Res}f.$$Example. \( \int_{-\infty}^{\infty}\frac{dx}{(x^2 + 1)^2} \). The pole at \( z = i \) is double; \( \frac{d}{dz}(z + i)^{-2} = -2(z + i)^{-3} \) at \( z = i \) is \( -2/(2i)^3 = 1/(4i) \). The integral is \( 2\pi i\cdot\frac{1}{4i} = \frac{\pi}{2} \).
Other results worth knowing: \( \int_{-\infty}^{\infty}\frac{dx}{x^2 + a^2} = \frac{\pi}{a} \); \( \int_0^\infty\frac{dx}{1 + x^4} = \frac{\pi}{2\sqrt2} \); \( \int_{-\infty}^{\infty}\frac{x^2}{1 + x^4}dx = \frac{\pi}{\sqrt2} \).
Type 3: Fourier-type integrals and Jordan’s lemma
For \( \int_{-\infty}^{\infty}f(x)e^{ikx}dx \) with \( k > 0 \) and \( f \to 0 \) at infinity, Jordan’s lemma says the upper semicircle contributes nothing even if \( f \) falls only as \( 1/\lvert z\rvert \). Close upward for \( k > 0 \) (where \( e^{ikz} \) decays) and downward for \( k < 0 \).
$$\boxed{\int_{-\infty}^{\infty}\frac{\cos kx}{x^2 + a^2}dx = \frac{\pi}{a}e^{-ka}, \qquad k, a > 0}$$Take the real part of \( \int e^{ikx}/(x^2 + a^2) \): the pole at \( ia \) gives residue \( e^{-ka}/2ia \).
Type 4: poles on the real axis
When a simple pole lies on the contour, indent round it with a small semicircle. The indentation contributes \( -\pi i \) times the residue (passing above the pole, clockwise) and the remaining integral is a Cauchy principal value. This gives
$$\int_0^\infty\frac{\sin x}{x}dx = \frac{\pi}{2}.$$Type 5: branch cuts (for recognition)
With a keyhole contour round the positive real axis, \( \int_0^\infty\frac{x^{a-1}}{1 + x}dx = \frac{\pi}{\sin\pi a} \) for \( 0 < a < 1 \).
graph TD
A[Real integral] --> B{Form}
B -->|rational in cos and sin over 0 to 2pi| C[z = e to the i theta; unit circle]
B -->|rational, degree gap at least 2| D[Semicircle; upper half-plane residues]
B -->|times e to the ikx| E[Jordan lemma; close where e to the ikz decays]
B -->|pole on real axis| F[Indent; principal value]
B -->|x to a non-integer power| G[Keyhole contour; branch cut]Memory Tricks
Don’t Confuse
| This | vs | That |
|---|---|---|
| Differentiable at a point (\( \lvert z\rvert^2 \) at 0) | Analytic (differentiable in a neighbourhood) | |
| Removable singularity (\( \sin z/z \)) | Simple pole (\( 1/z \)) | |
| Pole: finitely many negative powers | Essential: infinitely many (\( e^{1/z} \)) | |
| Isolated singularity | Branch point (\( \sqrt z \), \( \ln z \)): no Laurent series round it | |
| Laurent series in \( 0 < \lvert z\rvert < 1 \) | Laurent series in \( \lvert z\rvert > 1 \) (different coefficients) | |
| Real Maclaurin series of \( 1/(1+x^2) \): radius 1 | The function itself: smooth on all of \( \mathbb R \) |
Common Mistakes
Practice
All questions below are original practice questions written for this page. They are not from any CSIR NET paper.
Level 1: Foundation
- Is \( f(z) = x^2 - y^2 + 2ixy \) analytic?
- What is the residue of \( \dfrac{1}{z(z - 1)} \) at \( z = 1 \)?
- What is the radius of convergence of the Maclaurin series of \( \dfrac{1}{1 + z^2} \)?
Answers
- Yes, everywhere. It is \( z^2 \).
- 1. \( \lim_{z\to1}(z - 1)f = 1/1 \).
- 1. Nearest singularities \( \pm i \).
Level 2: Part B Style
Practice Q1. The value of \( \oint_{\lvert z\rvert=2}\dfrac{e^z}{z - 1}dz \) (counter-clockwise) is:
(a) 0 (b) \( 2\pi i \) (c) \( 2\pi ie \) (d) \( 2\pi i/e \)
Answer: (c) 2πie
The pole \( z = 1 \) lies inside \( \lvert z\rvert = 2 \); by Cauchy’s formula the integral is \( 2\pi i\,e^1 \).
Practice Q2. The value of \( \displaystyle\int_{-\infty}^{\infty}\frac{dx}{(x^2 + 1)^2} \) is:
(a) \( \pi \) (b) \( \pi/2 \) (c) \( \pi/4 \) (d) \( 2\pi \)
Answer: (b) π/2
Double pole at \( z = i \) in the upper half-plane. Residue \( = \frac{d}{dz}(z + i)^{-2}\big\rvert_{z=i} = -2(2i)^{-3} = \frac{1}{4i} \). Integral \( = 2\pi i/4i = \pi/2 \). Option (a) is \( \int dx/(x^2 + 1) \).
Practice Q3. If \( u(x, y) = x^2 - y^2 + x \) is the real part of an analytic function \( f \), then (up to a constant) \( f(z) \) is:
(a) \( z^2 + z \) (b) \( z^2 + \bar z \) (c) \( \lvert z\rvert^2 + z \) (d) \( z^2 - iz \)
Answer: (a)
The harmonic conjugate is \( v = 2xy + y \), so \( f = (x^2 - y^2 + x) + i(2xy + y) = z^2 + z \). Options (b) and (c) contain \( \bar z \) and are not analytic; (d) has real part \( x^2 - y^2 + y \).
Practice Q4. The value of \( \displaystyle\int_0^{2\pi}\frac{d\theta}{5 + 4\cos\theta} \) is:
(a) \( 2\pi/9 \) (b) \( 2\pi/3 \) (c) \( \pi/3 \) (d) \( 2\pi/5 \)
Answer: (b) 2π/3
\( \frac{2\pi}{\sqrt{a^2 - b^2}} = \frac{2\pi}{\sqrt{25 - 16}} = \frac{2\pi}{3} \). By residues: with \( z = e^{i\theta} \) the integrand becomes \( \frac{1}{i}\cdot\frac{1}{2z^2 + 5z + 2} = \frac{1}{i}\cdot\frac{1}{(2z + 1)(z + 2)} \); only \( z = -\tfrac{1}{2} \) is inside, with residue \( \frac{1}{i}\cdot\frac{1}{2\cdot\frac{3}{2}} = \frac{1}{3i} \); times \( 2\pi i \) gives \( 2\pi/3 \).
Level 3: Part C Style
Practice Q5. The value of \( \displaystyle\int_{-\infty}^{\infty}\frac{\cos x}{x^2 + 4}dx \) is closest to:
(a) 0.106 (b) 0.213 (c) 0.785 (d) 1.571
Answer: (b) 0.213
\( \frac{\pi}{a}e^{-ka} \) with \( a = 2 \), \( k = 1 \): \( \frac{\pi}{2}e^{-2} \approx 1.5708\times0.1353 \approx 0.2126 \).
Option (a) is half of this (taking \( \int_0^\infty \) by mistake); (c) is \( \pi/4 \), which drops the exponential factor; (d) is \( \pi/2 \), the \( k = 0 \) value \( \int dx/(x^2 + 4) \).
Practice Q6. Let \( f(z) = \dfrac{1}{z^2(z - 2)} \). Which of the following are correct?
- \( z = 0 \) is a pole of order 2 with residue \( -\tfrac{1}{4} \).
- The residue at \( z = 2 \) is \( \tfrac{1}{4} \).
- \( \oint_{\lvert z\rvert=3}f\,dz = 0 \).
- \( \oint_{\lvert z\rvert=1}f\,dz = \tfrac{\pi i}{2} \).
(a) 1 and 2 only (b) 1, 2 and 3 only (c) 2, 3 and 4 only (d) all four
Answer: (b) 1, 2 and 3 only
Statement 1: \( \operatorname{Res}_0 = \frac{d}{dz}\frac{1}{z - 2}\big\rvert_0 = -\frac{1}{(z - 2)^2}\big\rvert_0 = -\frac{1}{4} \). True.
Statement 2: \( \frac{1}{z^2}\big\rvert_{z=2} = \frac{1}{4} \). True.
Statement 3: both poles inside; \( 2\pi i(-\tfrac{1}{4} + \tfrac{1}{4}) = 0 \). True.
Statement 4: only the pole at 0 is inside \( \lvert z\rvert = 1 \): \( 2\pi i\cdot(-\tfrac{1}{4}) = -\tfrac{\pi i}{2} \). The sign is wrong. False.
Practice Q7. Which of the following statements are correct?
- \( \sin z/z \) has a removable singularity at \( z = 0 \).
- \( e^{1/z} \) has an essential singularity at \( z = 0 \), and \( \oint_{\lvert z\rvert=1}e^{1/z}dz = 2\pi i \).
- \( 1/(1 - \cos z) \) has a simple pole at \( z = 0 \).
- The Maclaurin series of \( z/(e^z - 1) \) has radius of convergence \( 2\pi \).
(a) 1 and 2 only (b) 1, 2 and 4 only (c) 2, 3 and 4 only (d) all four
Answer: (b) 1, 2 and 4 only
Statement 1: \( \sin z/z = 1 - z^2/6 + \cdots \). True.
Statement 2: \( e^{1/z} = \sum_n z^{-n}/n! \) has infinitely many negative powers, and \( c_{-1} = 1 \). True.
Statement 3: \( 1 - \cos z = z^2/2 - z^4/24 + \cdots \) has a double zero, so the pole is of order 2. False.
Statement 4: the singularity at 0 is removable (limit 1); the nearest genuine singularities are the zeros of \( e^z - 1 \) at \( \pm2\pi i \). True.
Quick Revision Table
| Item | Result |
|---|---|
| Cauchy–Riemann | \( u_x = v_y \), \( u_y = -v_x \); polar \( u_r = v_\theta/r \), \( v_r = -u_\theta/r \) |
| Cauchy’s formula | \( f^{(n)}(a) = \frac{n!}{2\pi i}\oint\frac{f}{(z - a)^{n+1}} \) |
| Radius of convergence | distance to nearest singularity |
| Residue, simple pole | \( \lim(z - a)f \) or \( g(a)/h'(a) \) |
| Residue, order \( m \) | \( \frac{1}{(m-1)!}\frac{d^{m-1}}{dz^{m-1}}[(z - a)^mf] \) |
| Residue theorem | \( \oint f = 2\pi i\sum\operatorname{Res} \) (inside, counter-clockwise) |
| Trig integral | \( \int_0^{2\pi}\frac{d\theta}{a + b\cos\theta} = \frac{2\pi}{\sqrt{a^2 - b^2}} \) |
| Rational | \( \int\frac{dx}{x^2 + a^2} = \frac{\pi}{a} \); \( \int\frac{dx}{(x^2 + 1)^2} = \frac{\pi}{2} \) |
| Fourier type | \( \int\frac{\cos kx}{x^2 + a^2} = \frac{\pi}{a}e^{-ka} \) |
| Dirichlet | \( \int_0^\infty\frac{\sin x}{x} = \frac{\pi}{2} \) |
Key Takeaways
What’s Next
- Probability Distributions and the Central Limit Theorem: the last topic in this chapter.
- Fourier Series, Fourier and Laplace Transforms, the previous topic.
- Taylor and Laurent Series, Singularities and Residues in Mathematical Sciences, for proofs and harder residue problems.
- Mathematical Methods: Quick Revision.