Module 1 · 10 min read · Free chapter
Complex variables: analytic functions, contour integrals and residues
A complex function is analytic where it has a derivative, which needs the Cauchy-Riemann equations to hold. For analytic functions, a closed contour integral is zero unless the contour encloses a singularity. The residue theorem then gives the integral as 2πi times the sum of residues inside, which makes hard real integrals easy.
Start from zero: numbers that can turn
On a number line you can only move forward or backward. Complex numbers add a second direction, so a number becomes a point on a plane. In , the real part is the step to the right and the imaginary part is the step upward. Here is defined by .
The real power of the idea is rotation. Multiplying by turns a point through 90° about the origin, and multiplying by twice turns it through 180°, which is the same as multiplying by . That is exactly why makes sense.
Polar form. A point can also be described by its distance from the origin and its angle. The modulus is , and the argument is , placed in the correct quadrant. Then , and Euler's formula shortens this to .
Rules that follow.
- Multiplying two complex numbers multiplies their moduli and adds their arguments.
- De Moivre's theorem: , which gives powers and roots quickly.
- The conjugate is the mirror image in the real axis, and .
Why it matters. Every AC circuit is analysed with complex numbers called phasors. The same tool is used for transfer functions in control and for frequency in signals. GATE ME, EE and EC list complex variables, while GATE CS does not.
Analytic functions and the Cauchy-Riemann equations
A function of a complex variable maps each point to another point . For a real function, the derivative must be the same from the left and the right. For a complex function, z can approach a point from every direction in the plane, so the condition is much stronger.
A function that has a derivative at every point of a region is called analytic (or holomorphic) there. Taking the limit along the x-direction and along the y-direction, and asking that they agree, gives the Cauchy-Riemann (C-R) equations: and . They are necessary, and when the partial derivatives are continuous they are also sufficient.
Worked example. For , and . Then and , so is analytic everywhere. By contrast, has but , so it is analytic nowhere.
Harmonic functions. If f is analytic, both u and v satisfy Laplace's equation, and . Given u, its harmonic conjugate v can be built from the C-R equations. For example, leads back to , plus a constant.
Why it matters. In two-dimensional ideal fluid flow, u and v act as the velocity potential and the stream function. Their level curves cross at right angles, which is how flow nets for seepage and potential flow are drawn.
Cauchy's integral theorem and formula
In the complex plane, we integrate along a curve, called a contour. When the contour is closed and traced anticlockwise, the integral is written . The results are surprisingly strong.
Cauchy's integral theorem. If f is analytic on a simple closed curve and everywhere inside it, then . It is the complex version of a conservative field: with no "holes" where f misbehaves, going round a loop gives nothing. So the integral between two points also does not depend on the path inside such a region.
Cauchy's integral formula. If is inside , then . The values on the boundary fix the value at every point inside. Differentiating gives , so an analytic function has derivatives of every order.
Worked example 1. Find round . The point lies inside, and is analytic, so the integral is .
Worked example 2. Find round . Here , and , so . The formula then gives the integral as .
Taylor and Laurent series, and kinds of singularity
Inside any circle where f is analytic, f has a Taylor series in powers of , just as for real functions. For example, for . The series stops working at the nearest point where f breaks down, so the radius of convergence is the distance to the nearest singularity.
Near a point where f does break down, a Laurent series is used instead. It contains negative powers as well, , and it is valid in a ring . The part with negative powers is called the principal part, and it tells what kind of singularity a is.
- If there are no negative powers, the singularity is removable, as for (sin z)/z at 0.
- If the negative powers stop at , a is a pole of order ; order 1 is a simple pole.
- If there are infinitely many negative powers, a is an essential singularity, as for at 0.
The coefficient of is special and is called the residue of f at a. It is the only term that survives when you integrate round the point, because is for and zero for every other whole number .
Worked example. For in , write . The principal part is , so is a simple pole with residue .
The residue theorem: integrals by bookkeeping
The residue theorem combines everything so far. If f is analytic inside and on C except at a few poles inside it, then
A hard integral is reduced to finding a few coefficients.
Finding residues quickly.
- At a simple pole a, the residue is .
- If with and , the residue is .
- At a pole of order , the residue is .
Worked example. Evaluate round . Both poles, and , lie inside. The residue at 0 is , and at 2 it is . So the integral is .
Round instead, only is inside, so the answer becomes . Choosing which poles are enclosed is often the whole question.
Why it matters. In control systems the poles of a transfer function decide stability, and the Nyquist criterion is built on this same "count the poles inside a contour" idea. Inverse Laplace and z-transforms can also be found by residues.
Descriptive lens: how ESE and state papers ask this
Descriptive questions ask you to test analyticity with the C-R equations, to build a harmonic conjugate, or to evaluate a real integral using residues.
Our practice questions (not previous-year questions).
- Show that is harmonic, find its harmonic conjugate , and write in terms of .
- Evaluate round .
- Evaluate by putting and using residues.
Answer plan for question 3.
- First, put , so and , and the integral runs round .
- Next, simplify the integrand to , whose poles are .
- Then note that only lies inside the unit circle, and its residue is .
- Finally, the integral is .
Quick revision
- , with , and multiplying by turns a point through 90°.
- De Moivre gives , and .
- C-R equations: and ; the parts of an analytic function are harmonic.
- , and are analytic everywhere, while and are analytic nowhere.
- Cauchy's theorem gives when is analytic inside and on .
- Cauchy's formula gives , with for derivatives.
- A Laurent principal part decides the type: none is removable, finite is a pole, infinite is essential.
- At a simple pole the residue is , or .
- The residue theorem gives .