11. Residues

Applications To Contour Integrals

Applications of Residues to Contour Integrals

students, in complex analysis one of the most powerful ideas is that hard-looking contour integrals can often be evaluated using only a few pieces of information about singularities ✨. In this lesson, you will learn how residues turn contour integration into a manageable process. Instead of directly parameterizing a complicated curve and computing a difficult integral by hand, you can often find the singularities inside the contour, compute their residues, and use a theorem to get the answer quickly.

What you will learn

By the end of this lesson, you should be able to:

  • Explain what residues are and why they matter for contour integrals.
  • Use the Residue Theorem to evaluate contour integrals.
  • Identify which singularities lie inside a contour and determine their contributions.
  • Connect residue methods to the broader study of complex analysis and contour integration.
  • Apply these ideas to real examples, such as integrals around circles and other closed curves.

The main hook is simple: many contour integrals that look difficult become easy when you focus on the singularities inside the path 🚀.

Why residues help with contour integrals

A contour integral has the form $\int_C f(z)\,dz$, where $C$ is a curve in the complex plane. If $f(z)$ is analytic everywhere inside and on a closed contour $C$, then Cauchy’s theorem tells us that $\int_C f(z)\,dz=0$. But what happens when $f(z)$ has singularities inside the contour?

That is where residues enter the picture. A residue is the coefficient of $\frac{1}{z-a}$ in the Laurent expansion of $f(z)$ around a singularity $a$. This coefficient is special because it measures the singular part that contributes to the contour integral.

The key fact is the Residue Theorem:

$$\int_C f(z)\,dz=2\pi i\sum \operatorname{Res}(f,a_k)$$

where the sum is taken over all isolated singularities $a_k$ of $f$ inside the contour $C$.

This theorem is the core tool for applications to contour integrals. It says that the entire integral depends only on the residues inside the curve, not on the full complexity of the function 🌟.

The main idea behind the Residue Theorem

The Residue Theorem fits perfectly with the big ideas of complex analysis. Analytic functions are extremely rigid: if a function has no singularities inside a closed contour, its integral around that contour is $0$. If singularities are present, each one contributes a local amount, and that local amount is the residue.

Think of a contour like a fence around a region. The integral around the fence does not care about every point inside equally. Instead, it “detects” the singularities enclosed by the curve. This is why residues are so useful for contour integrals involving rational functions, trigonometric functions, and expressions with exponentials.

For example, if a function has poles at $a_1,a_2,\dots,a_n$ inside $C$, then

$$\int_C f(z)\,dz=2\pi i\left(\operatorname{Res}(f,a_1)+\operatorname{Res}(f,a_2)+\cdots+\operatorname{Res}(f,a_n)\right).$$

If there are no poles inside, the integral is $0$.

How to evaluate contour integrals using residues

To use residues on a contour integral, follow a standard process:

  1. Identify the singularities of $f(z)$.
  2. Decide which singularities lie inside the contour $C$.
  3. Compute the residue at each enclosed singularity.
  4. Add those residues.
  5. Multiply the sum by $2\pi i$.

This procedure works best when $C$ is a closed contour and $f(z)$ has isolated singularities. A common type of contour is a circle such as $|z|=R$, but the method works for many closed curves.

Example 1: A simple rational function

Evaluate

$$\int_{|z|=2}\frac{1}{z(z-1)}\,dz.$$

The function

$$f(z)=\frac{1}{z(z-1)}$$

has singularities at $z=0$ and $z=1$. Both are inside the circle $|z|=2$.

Now compute the residues.

At $z=0$,

$$\operatorname{Res}\left(\frac{1}{z(z-1)},0\right)=\lim_{z\to 0} z\cdot \frac{1}{z(z-1)}=\lim_{z\to 0}\frac{1}{z-1}=-1.$$

At $z=1$,

$$\operatorname{Res}\left(\frac{1}{z(z-1)},1\right)=\lim_{z\to 1} (z-1)\cdot \frac{1}{z(z-1)}=\lim_{z\to 1}\frac{1}{z}=1.$$

So the sum of residues is $-1+1=0$, and therefore

$$\int_{|z|=2}\frac{1}{z(z-1)}\,dz=2\pi i(0)=0.$$

This is a great example of how two singularities can cancel each other out.

Example 2: A contour enclosing one pole

Evaluate

$$\int_{|z|=1}\frac{e^z}{z-\frac12}\,dz.$$

The only singularity is at $z=\frac12$, and it lies inside $|z|=1$. Since this is a simple pole,

$$\operatorname{Res}\left(\frac{e^z}{z-\frac12},\frac12\right)=e^{1/2}.$$

By the Residue Theorem,

$$\int_{|z|=1}\frac{e^z}{z-\frac12}\,dz=2\pi i\,e^{1/2}.$$

Notice how quickly this result appears once the residue is known. No long parameterization is needed 📘.

Finding residues in contour integral problems

Residues are often easiest to compute for simple poles. If $f(z)$ has a simple pole at $a$, then

$$\operatorname{Res}(f,a)=\lim_{z\to a}(z-a)f(z).$$

For higher-order poles, the formula is a little more advanced. If $f(z)$ has a pole of order $m$ at $a$, then

$$\operatorname{Res}(f,a)=\frac{1}{(m-1)!}\lim_{z\to a}\frac{d^{m-1}}{dz^{m-1}}\left[(z-a)^m f(z)\right].$$

In contour integral applications, it is often enough to recognize the type of singularity and choose the most efficient residue method.

Example 3: A double pole inside the contour

Evaluate

$$\int_{|z|=3}\frac{z}{(z-1)^2}\,dz.$$

There is a pole of order $2$ at $z=1$, which lies inside $|z|=3$. Using the formula for a double pole with

$$f(z)=\frac{z}{(z-1)^2},$$

we compute

$$\operatorname{Res}\left(\frac{z}{(z-1)^2},1\right)=\lim_{z\to 1}\frac{d}{dz}\left[(z-1)^2\cdot \frac{z}{(z-1)^2}\right]=\lim_{z\to 1}\frac{d}{dz}(z)=1.$$

Therefore,

$$\int_{|z|=3}\frac{z}{(z-1)^2}\,dz=2\pi i.$$

This example shows that even higher-order poles can be handled systematically.

Choosing the correct contour and checking enclosure

A very important step is deciding which singularities are inside the contour. If a singularity lies on the contour itself, the usual Residue Theorem does not apply directly. In that case, a different technique or interpretation may be needed.

For standard exam-style contour integrals, the contour is often chosen so that no singularity lies exactly on the curve. Then the rule is straightforward:

  • If the singularity is inside, include its residue.
  • If it is outside, ignore it.

For example, if the contour is $|z|=1$ and the singularities are at $z=2$ and $z=\frac12$, only $z=\frac12$ contributes. This simple inside-outside test is a major reason residues are so effective 🧭.

How residue methods fit into the bigger picture

Applications to contour integrals are one of the most important uses of residues in complex analysis. They connect several major ideas:

  • analytic functions and singularities,
  • Laurent series,
  • poles and residues,
  • contour integration,
  • and the Residue Theorem.

Residues also serve as a bridge to other topics, such as evaluating real integrals and studying inverse transforms. Even when the final goal is not a contour integral itself, residue methods often provide the key step.

In this lesson, the central message is that contour integrals are not always about directly computing along the curve. Often, the geometry of the contour and the singularities inside it provide all the information needed. This is one of the most elegant features of complex analysis ✨.

Conclusion

students, residues give a fast and powerful way to evaluate contour integrals. The essential idea is that each isolated singularity inside a closed contour contributes a residue, and the sum of those residues determines the integral through the formula

$$\int_C f(z)\,dz=2\pi i\sum \operatorname{Res}(f,a_k).$$

To solve these problems, you identify singularities, check which ones are inside the contour, compute residues, and apply the theorem. This method is a central part of the residue topic because it turns local information near singularities into exact global answers for contour integrals.

Study Notes

  • A contour integral is written as $\int_C f(z)\,dz$.
  • If $f(z)$ is analytic inside and on a closed contour $C$, then $\int_C f(z)\,dz=0$.
  • A residue is the coefficient of $\frac{1}{z-a}$ in the Laurent expansion of $f(z)$ around a singularity $a$.
  • The Residue Theorem states that

$$\int_C f(z)\,dz=2\pi i\sum \operatorname{Res}(f,a_k).$$

  • Only singularities inside the contour contribute to the integral.
  • For a simple pole at $a$,

$$\operatorname{Res}(f,a)=\lim_{z\to a}(z-a)f(z).$$

  • For a pole of order $m$ at $a$,

$$\operatorname{Res}(f,a)=\frac{1}{(m-1)!}\lim_{z\to a}\frac{d^{m-1}}{dz^{m-1}}\left[(z-a)^m f(z)\right].$$

  • Residues make many contour integrals much easier to evaluate than direct parameterization.
  • The method is a major application of residues within complex analysis.

Practice Quiz

5 questions to test your understanding