Advanced Physics‹›⌂ 0:00 studied

Module 22 · 8 min read · Free chapter

Complex analysis: analytic functions and Cauchy-Riemann equations, Cauchy's theorem and integral formula, Taylor and Laurent series, poles and residues, evaluation of real integrals

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: numbers that rotate

Multiplying by −1 turns an arrow round by 180°. Multiplying by i, with i2=−1i^2 = -1, turns it by 90°. So complex numbers z=x+iy=reiθz = x + iy = re^{i\theta} are points in a plane that can be stretched and rotated, which is why AC circuits, waves and quantum amplitudes use them.

Functions of a complex variable that can be differentiated are extremely rigid. Their values on a loop fix them everywhere inside. That rigidity gives powerful tools: real integrals that are hard to do directly fall out by counting singular points, and two-dimensional field problems can be solved by mapping one shape onto another.

Analytic functions and Cauchy-Riemann equations

Write f(z)=u(x,y)+iv(x,y)f(z) = u(x, y) + iv(x, y). The derivative

f′(z)=lim⁡Δz→0f(z+Δz)−f(z)Δzf'(z) = \lim_{\Delta z\to 0}\frac{f(z + \Delta z) - f(z)}{\Delta z}

must be the same whichever direction Δz\Delta z approaches from. Approaching along x and along iy and equating gives the Cauchy-Riemann equations:

∂u∂x=∂v∂y,∂u∂y=−∂v∂x\frac{\partial u}{\partial x} = \frac{\partial v}{\partial y}, \qquad \frac{\partial u}{\partial y} = -\frac{\partial v}{\partial x}

If these hold with continuous partial derivatives in a region, f is analytic there, and f′(z)=ux+ivxf'(z) = u_x + iv_x.

Examples. z2=(x2−y2)+i 2xyz^2 = (x^2 - y^2) + i\,2xy is analytic everywhere (ux=2x=vyu_x = 2x = v_y, uy=−2y=−vxu_y = -2y = -v_x). Polynomials, eze^z, sin⁡z\sin z and cos⁡z\cos z are analytic everywhere (entire). 1z\dfrac{1}{z} is analytic except at z = 0. But zˉ=x−iy\bar{z} = x - iy is analytic nowhere (ux=1u_x = 1, vy=−1v_y = -1), and neither is ∣z∣2\lvert z\rvert^2.

Consequences.

  • Differentiating CR again gives ∇2u=0\nabla^2u = 0 and ∇2v=0\nabla^2v = 0: real and imaginary parts are harmonic, so they solve Laplace's equation in 2D.
  • The curves u = constant and v = constant cross at right angles. In 2D electrostatics or fluid flow, u can be the potential and v the stream function or field lines.
  • Given u, v follows (up to a constant) from CR: the harmonic conjugate.

Worked example. Find the analytic f with u=x2−y2+xu = x^2 - y^2 + x. From vy=ux=2x+1v_y = u_x = 2x + 1, v=2xy+y+g(x)v = 2xy + y + g(x). From vx=−uy=2yv_x = -u_y = 2y, g′ = 0. So f=z2+zf = z^2 + z (plus an imaginary constant).

Conformal mapping. An analytic map w = f(z) with f′ ≠ 0 preserves angles. A Laplace problem in an awkward shape can be mapped to a simple one (a half-plane or a circle), solved there, and mapped back. The Joukowski map w=z+1zw = z + \dfrac{1}{z} turns circles into aerofoil shapes and was used to compute lift on early aircraft wings.

Multi-valued functions. z\sqrt{z} and ln⁡z=ln⁡r+iθ\ln z = \ln r + i\theta change value on going round the origin, so a branch cut is drawn to make them single-valued.

Cauchy's theorem and integral formula

Contour integral. ∮Cf(z) dz\oint_C f(z)\,dz along a closed path C, taken anticlockwise. A key example: on the circle z=z0+Reiθz = z_0 + Re^{i\theta},

∮C(z−z0)n dz={2πi,n=−10,n≠−1\oint_C(z - z_0)^n\,dz = \begin{cases}2\pi i, & n = -1\\ 0, & n \neq -1\end{cases}

Cauchy's theorem. If f is analytic on and inside a simple closed curve C, then

∮Cf(z) dz=0\oint_C f(z)\,dz = 0

Proof via Green's theorem (vector calculus): ∮(u+iv)(dx+i dy)=∮(u dx−v dy)+i∮(v dx+u dy)\oint(u + iv)(dx + i\,dy) = \oint(u\,dx - v\,dy) + i\oint(v\,dx + u\,dy). Green's theorem turns these into ∬(−vx−uy)\iint(-v_x - u_y) and ∬(ux−vy)\iint(u_x - v_y) over the region, both zero by CR. So a contour can be deformed freely through any region where f is analytic without changing the integral.

Cauchy's integral formula. For a inside C:

f(a)=12πi∮Cf(z)z−a dz,f(n)(a)=n!2πi∮Cf(z)(z−a)n+1 dzf(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

Shrink C to a tiny circle round a; f(z) ≈ f(a) there and the key example gives 2πi f(a)2\pi i\,f(a). Remarkable consequences follow:

  • An analytic function has derivatives of all orders.
  • Liouville's theorem: a bounded entire function is constant, which leads to a short proof of the fundamental theorem of algebra.
  • The mean value property: f at a point is the average of f round any circle centred there, like the potential at the centre of a charge-free sphere.

Worked example. ∮∣z∣=2ezz−1 dz=2πi e1=2πie\oint_{\lvert z\rvert = 2}\dfrac{e^z}{z - 1}\,dz = 2\pi i\,e^1 = 2\pi ie, since z = 1 lies inside the circle.

Laurent series, residues and real integrals

Taylor series. An analytic f has f(z)=∑an(z−z0)nf(z) = \sum a_n(z - z_0)^n with an=f(n)(z0)n!a_n = \dfrac{f^{(n)}(z_0)}{n!}, converging in the largest circle free of singularities.

Laurent series. In an annulus round an isolated singularity z0z_0:

f(z)=∑n=−∞∞an(z−z0)nf(z) = \sum_{n=-\infty}^{\infty}a_n(z - z_0)^n

The negative-power part is the principal part, and it classifies the singularity:

  • no negative powers: removable (e.g. sin⁡zz\dfrac{\sin z}{z} at 0);
  • lowest power (z−z0)−m(z - z_0)^{-m}: pole of order m;
  • infinitely many negative powers: essential (e.g. e1/ze^{1/z} at 0).

Residue = a−1a_{-1}. Shortcuts:

  • simple pole: Res=lim⁡z→z0(z−z0)f(z)\text{Res} = \lim_{z\to z_0}(z - z_0)f(z); for f=p(z)q(z)f = \dfrac{p(z)}{q(z)} with a simple zero of q, Res=p(z0)q′(z0)\text{Res} = \dfrac{p(z_0)}{q'(z_0)};
  • pole of order m: Res=1(m−1)!lim⁡z→z0dm−1dzm−1[(z−z0)mf(z)]\text{Res} = \dfrac{1}{(m-1)!}\lim_{z\to z_0}\dfrac{d^{m-1}}{dz^{m-1}}\left[(z - z_0)^mf(z)\right].

Residue theorem:

∮Cf(z) dz=2πi∑(residues inside C)\oint_C f(z)\,dz = 2\pi i\sum\text{(residues inside C)}

Type 1: rational functions on the real line. Example: I=∫−∞∞dx1+x2I = \int_{-\infty}^{\infty}\dfrac{dx}{1 + x^2}. Close with a large semicircle in the upper half-plane; its contribution vanishes because f falls as 1R2\dfrac{1}{R^2}. The only enclosed pole is z = i, with residue 12i\dfrac{1}{2i}. So I=2πi⋅12i=πI = 2\pi i\cdot\dfrac{1}{2i} = \pi.

Type 2: trigonometric integrals over 0 to 2π. Put z=eiθz = e^{i\theta}, cos⁡θ=12(z+1z)\cos\theta = \dfrac{1}{2}\left(z + \dfrac{1}{z}\right), dθ=dzizd\theta = \dfrac{dz}{iz}. Example: for a > 1,

∫02πdθa+cos⁡θ=∮∣z∣=12 dzi(z2+2az+1)=2πa2−1\int_0^{2\pi}\frac{d\theta}{a + \cos\theta} = \oint_{\lvert z\rvert = 1}\frac{2\,dz}{i(z^2 + 2az + 1)} = \frac{2\pi}{\sqrt{a^2 - 1}}

using the pole z1=−a+a2−1z_1 = -a + \sqrt{a^2 - 1} inside the unit circle.

Type 3: Fourier integrals. For ∫−∞∞cos⁡kxx2+a2 dx\int_{-\infty}^{\infty}\dfrac{\cos kx}{x^2 + a^2}\,dx (k > 0), use eikze^{ikz} and close above; Jordan's lemma kills the arc. The pole at z = ia gives πae−ka\dfrac{\pi}{a}e^{-ka}. This is how propagators and Green's functions are evaluated in quantum theory.

Causality and Kramers-Kronig. A physical response (such as the permittivity ε(ω)) cannot respond before it is driven, so it is analytic in the upper half ω-plane. Cauchy's formula then links its real part (refraction) to its imaginary part (absorption) by the Kramers-Kronig relations, used in optics and in magnetotelluric geophysics.

Mains lens: how UPSC asks this

Complex analysis is asked directly in Geo-Scientist B1 (analytic functions, Taylor and Laurent series, poles, residues) and in NET Part A. In the CSE and IFoS papers it appears as tools: phasors in AC circuits, Fourier integrals and wave packets.

Expect:

  • Derive the Cauchy-Riemann equations; test functions for analyticity; find the harmonic conjugate (10 marks).
  • State and prove Cauchy's integral theorem; use the integral formula.
  • Find the Laurent series of a function in a given annulus and classify its singularities.
  • Evaluate a real integral by residues (15 marks).

Model answer plan: "Using contour integration, evaluate ∫02πdθ5+4cos⁡θ\int_0^{2\pi}\dfrac{d\theta}{5 + 4\cos\theta}." (10 marks).

  1. Substitute z=eiθz = e^{i\theta}; the integral becomes ∮dzi(2z2+5z+2)\oint\dfrac{dz}{i(2z^2 + 5z + 2)}.
  2. Roots z = −12-\dfrac{1}{2} (inside) and z = −2 (outside).
  3. Residue at −12-\dfrac{1}{2}: 1i⋅4(z+54)\dfrac{1}{i\cdot 4\left(z + \frac{5}{4}\right)} evaluated there =13i= \dfrac{1}{3i}.
  4. Integral =2πi⋅13i=2π3= 2\pi i\cdot\dfrac{1}{3i} = \dfrac{2\pi}{3}.
  5. Check with the general formula 2πa2−b2\dfrac{2\pi}{\sqrt{a^2 - b^2}} with a = 5, b = 4.

Quick revision

  • CR: ux=vyu_x = v_y, uy=−vxu_y = -v_x; u, v harmonic and orthogonal; zˉ\bar{z} nowhere analytic.
  • Cauchy: ∮f dz=0\oint f\,dz = 0 (analytic inside); f(a)=12πi∮fz−adzf(a) = \dfrac{1}{2\pi i}\oint\dfrac{f}{z - a}dz.
  • ∮(z−z0)ndz=2πi\oint(z - z_0)^n dz = 2\pi i only for n = −1.
  • Laurent: removable, pole of order m, essential; residue = a−1a_{-1}.
  • Residue theorem 2πi∑Res2\pi i\sum\text{Res}; ∫dx1+x2=π\int\dfrac{dx}{1 + x^2} = \pi; ∫02πdθa+bcos⁡θ=2πa2−b2\int_0^{2\pi}\dfrac{d\theta}{a + b\cos\theta} = \dfrac{2\pi}{\sqrt{a^2 - b^2}}.
  • Jordan's lemma for eikze^{ikz}; Kramers-Kronig from causality; conformal maps for 2D Laplace.

Mains answer practice

Write your answer first, then open the points a good answer should cover.

  1. Derive the Cauchy-Riemann equations for an analytic function f(z) = u + iv. Show that u = x² − y² + x is harmonic and find the analytic function of which it is the real part.

    Show answer points
    • Derivative along x: u_x + i v_x; along iy: v_y − i u_y
    • Equate: u_x = v_y, u_y = −v_x
    • u_xx + u_yy = 2 − 2 = 0, so u is harmonic
    • v_y = 2x + 1 gives v = 2xy + y + g(x); v_x = −u_y = 2y gives g constant
    • f(z) = z² + z + iC
  2. State and prove Cauchy's integral theorem. Using Cauchy's integral formula evaluate the integral of e^z/(z − 1) round the circle |z| = 2.

    Show answer points
    • Statement: ∮ f dz = 0 for f analytic on and inside a simple closed curve
    • Write ∮(u + iv)(dx + i dy) as two real line integrals
    • Green's theorem gives ∬(−v_x − u_y) and ∬(u_x − v_y), both zero by CR
    • Integral formula f(a) = (1/2πi)∮ f(z)/(z − a) dz
    • z = 1 is inside |z| = 2, so integral = 2πi e
  3. Define a Laurent series and classify isolated singularities. Find the Laurent expansion of 1/[z(z − 1)] valid for 0 < |z| < 1 and read off the residue at z = 0.

    Show answer points
    • Laurent series has positive and negative powers in an annulus
    • Removable (no negative powers), pole of order m, essential (infinite negative powers)
    • 1/[z(z − 1)] = −(1/z) · 1/(1 − z)
    • = −(1/z)(1 + z + z² + ...) = −1/z − 1 − z − ...
    • Simple pole at 0 with residue −1
  4. Using contour integration, evaluate (a) the integral of dx/(1 + x²) from −∞ to ∞ and (b) the integral of dθ/(5 + 4 cos θ) from 0 to 2π.

    Show answer points
    • (a) Close with a semicircle in the upper half-plane; arc vanishes since f ~ 1/R²
    • Pole at z = i inside, residue 1/(2i); integral = π
    • (b) z = e^(iθ): integral becomes ∮ dz/[i(2z² + 5z + 2)]
    • Roots −1/2 (inside) and −2 (outside); residue at −1/2 = 1/(3i)
    • Integral = 2πi/(3i) = 2π/3, matching 2π/√(a² − b²)
  5. Why must a physical response function such as the permittivity ε(ω) be analytic in the upper half of the complex frequency plane? What do the Kramers-Kronig relations connect?

    Show answer points
    • Causality: response cannot precede the driving field
    • Response kernel vanishes for t < 0, so its transform is analytic for Im ω > 0
    • Cauchy's formula on a contour in the upper half-plane links real and imaginary parts
    • Kramers-Kronig: refractive index (dispersion) from absorption spectrum and vice versa
    • Used in optics and magnetotelluric data checks

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Mathematical physics

Official sources

Facts in this chapter were checked against these official sources.

  1. IGNOU PHE-14 Mathematical Methods in Physics III: complex variables
  2. MIT OpenCourseWare 18.04 Complex Variables with Applications
  3. NPTEL Mathematical Methods in Physics (IIT)