Complex Variables & Transforms · Unit 1 · Topic 03

Cauchy's integral formula: one value inside, fixed by the boundary.

Short answer

If \(f\) is analytic inside and on a closed curve \(C\) and \(a\) is inside \(C\), then

\[\oint_C \frac{f(z)}{z - a}\,dz = 2\pi i\,f(a).\]

If \(a\) is outside \(C\), the integral is 0. Example: \(\oint_{|z| = 1}\dfrac{e^z}{z}\,dz = 2\pi i\,e^0 = 2\pi i\).

Engineering MathsSemester III/IVBSc
01

Complex line integrals

Before you start: you need analytic functions and the idea of a line integral.

A complex integral is taken along a path \(C\) in the plane. If the path is \(z = z(t)\) for \(a \le t \le b\), then

\[\int_C f(z)\,dz = \int_a^b f\big(z(t)\big)\,z'(t)\,dt.\]

So the recipe is: parametrise the path, substitute, and do an ordinary integral in \(t\). For a circle \(|z - a| = r\) the standard choice is \(z = a + re^{i\theta}\), \(dz = ire^{i\theta}\,d\theta\), \(0 \le \theta \le 2\pi\). The symbol \(\oint\) means the path is closed and traced anticlockwise.

The single most used result comes from that substitution:

Basic circle integral

\[\oint_{|z - a| = r}(z - a)^n\,dz = \begin{cases} 2\pi i, & n = -1 \\ 0, & n \ne -1 \end{cases}\]

Check the \(n = -1\) case yourself: \(\displaystyle\int_0^{2\pi}\frac{ire^{i\theta}}{re^{i\theta}}\,d\theta = \int_0^{2\pi} i\,d\theta = 2\pi i\). Everything else in this lesson grows out of that one line.

02

Cauchy's integral theorem

Cauchy's theorem

If \(f\) is analytic at every point inside and on a simple closed curve \(C\), then \[\oint_C f(z)\,dz = 0.\]

Two consequences you will use constantly:

  • Path independence. In a region where \(f\) is analytic, \(\int f\,dz\) from \(z_1\) to \(z_2\) depends only on the end points. You can integrate as in calculus: \(\int_{z_1}^{z_2} f\,dz = F(z_2) - F(z_1)\), where \(F' = f\).
  • Points outside don't count. If \(f(z)/(z - a)\) has its only trouble at \(z = a\) and \(a\) lies outside \(C\), the integrand is analytic inside and on \(C\), so the integral is 0.

For a function that is not analytic, such as \(\overline{z}\), the value really does depend on the path. Example 2 shows this.

03

Cauchy's integral formula

Cauchy's integral formula

If \(f\) is analytic inside and on \(C\), and \(a\) is inside \(C\), then \[\oint_C \frac{f(z)}{z - a}\,dz = 2\pi i\,f(a).\]

Derivative form

\[\oint_C \frac{f(z)}{(z - a)^{n+1}}\,dz = \frac{2\pi i}{n!}\,f^{(n)}(a)\]

Read it as: the values of an analytic function on a closed curve fix its value, and all its derivatives, at every point inside. The derivative form is what you get by differentiating the first formula \(n\) times with respect to \(a\).

  1. Find where the denominator is zero.
  2. Mark which of those points lie inside \(C\). For \(|z - z_0| = r\), the point \(a\) is inside when \(|a - z_0| < r\).
  3. One point inside: put everything else into \(f(z)\) and use the formula.
  4. Two or more inside: split with partial fractions, then use the formula on each piece.
04

Solved examples

Example 1: Along a straight line

Easy

Evaluate \(\displaystyle\int_0^{1+i} z^2\,dz\) along the line \(y = x\).

  1. On the line, \(z = (1 + i)t\) for \(0 \le t \le 1\), so \(dz = (1 + i)\,dt\).
  2. \[\int_0^1 (1 + i)^2 t^2\,(1 + i)\,dt = (1 + i)^3\int_0^1 t^2\,dt = \frac{(1 + i)^3}{3}.\]
  3. \((1 + i)^2 = 2i\), so \((1 + i)^3 = 2i(1 + i) = -2 + 2i\).
  4. Since \(z^2\) is analytic, \(\left[\tfrac{z^3}{3}\right]_0^{1+i}\) gives the same answer along any path.

Answer\(\dfrac{-2 + 2i}{3}\)

Example 2: When the path matters

Medium

Evaluate \(\displaystyle\int \overline{z}\,dz\) from 0 to \(1 + i\) (a) along \(y = x\), (b) along the real axis to 1 and then straight up to \(1 + i\).

  1. (a) \(z = (1 + i)t\), \(\overline{z} = (1 - i)t\): \(\displaystyle\int_0^1 (1 - i)(1 + i)\,t\,dt = 2\cdot\tfrac{1}{2} = 1\).
  2. (b) First leg: \(z = t\), \(\displaystyle\int_0^1 t\,dt = \tfrac{1}{2}\).
  3. Second leg: \(z = 1 + it\), \(dz = i\,dt\): \(\displaystyle\int_0^1 (1 - it)\,i\,dt = i + \tfrac{1}{2}\).
  4. Total for (b): \(1 + i\). Different from (a), because \(\overline{z}\) is not analytic.

Answer(a) \(1\); (b) \(1 + i\)

Example 3: One point inside

Easy

Evaluate \(\displaystyle\oint_{|z| = 1}\frac{e^z}{z}\,dz\).

  1. The denominator is zero at \(z = 0\), which is inside \(|z| = 1\).
  2. Take \(f(z) = e^z\), \(a = 0\): the integral is \(2\pi i\,f(0) = 2\pi i\).

Answer\(2\pi i\)

Example 4: The point is outside

Easy

Evaluate \(\displaystyle\oint_{|z| = 1}\frac{e^z}{z - 2}\,dz\).

  1. \(z = 2\) is outside \(|z| = 1\), since \(|2| > 1\).
  2. So \(\dfrac{e^z}{z - 2}\) is analytic inside and on the circle, and Cauchy's theorem gives 0.

Answer\(0\)

Example 5: Choosing f(z)

Medium

Evaluate \(\displaystyle\oint_{|z| = 2}\frac{z^2}{(z - 1)(z - 3)}\,dz\).

  1. Zeros of the denominator: \(z = 1\) (inside, \(|1| < 2\)) and \(z = 3\) (outside).
  2. Keep the outside factor in \(f\): \(f(z) = \dfrac{z^2}{z - 3}\), which is analytic inside the circle.
  3. \(f(1) = \dfrac{1}{-2} = -\dfrac{1}{2}\). The integral is \(2\pi i\cdot\left(-\dfrac{1}{2}\right)\).

Answer\(-\pi i\)

Example 6: Derivative form

Medium

Evaluate \(\displaystyle\oint_{|z| = 1}\frac{e^{2z}}{z^4}\,dz\).

  1. \(z^4 = (z - 0)^{3+1}\), so \(n = 3\), \(a = 0\), \(f(z) = e^{2z}\).
  2. \(f'''(z) = 8e^{2z}\), so \(f'''(0) = 8\).
  3. Integral \(= \dfrac{2\pi i}{3!}\cdot 8 = \dfrac{16\pi i}{6}\).

Answer\(\dfrac{8\pi i}{3}\)

Example 7: A double factor

Exam level

Evaluate \(\displaystyle\oint_{|z| = 2}\frac{z}{(z - 1)^2(z + 3)}\,dz\).

  1. \(z = 1\) is inside; \(z = -3\) is outside.
  2. Take \(f(z) = \dfrac{z}{z + 3}\) and \(n = 1\): the integral is \(2\pi i\,f'(1)\).
  3. \(f'(z) = \dfrac{(z + 3) - z}{(z + 3)^2} = \dfrac{3}{(z + 3)^2}\), so \(f'(1) = \dfrac{3}{16}\).

Answer\(\dfrac{3\pi i}{8}\)

Example 8: Two points inside

Exam level

Evaluate \(\displaystyle\oint_C \frac{\sin \pi z^2 + \cos \pi z^2}{(z - 1)(z - 2)}\,dz\), where \(C\) is \(|z| = 3\).

  1. Both \(z = 1\) and \(z = 2\) are inside. Split: \(\dfrac{1}{(z - 1)(z - 2)} = \dfrac{1}{z - 2} - \dfrac{1}{z - 1}\).
  2. With \(f(z) = \sin \pi z^2 + \cos \pi z^2\), the integral is \(2\pi i\,\big[f(2) - f(1)\big]\).
  3. \(f(2) = \sin 4\pi + \cos 4\pi = 1\) and \(f(1) = \sin \pi + \cos \pi = -1\).
  4. Integral \(= 2\pi i\,(1 + 1)\).

Answer\(4\pi i\)

Vipul Sir's tip

Before you touch the formula, draw the circle and mark the points. The slip I see most often in this topic is using a point that is outside the curve. The sketch takes ten seconds and settles which factor goes into \(f(z)\).

05

Common mistakes

1. Using a point that is outside the curve

In Example 5, \(z = 3\) is outside \(|z| = 2\). Adding a \(2\pi i\) term for it gives a wrong answer. Points outside contribute nothing.

2. Wrong \(n\) in the derivative form

For \((z - a)^4\) in the denominator, \(n + 1 = 4\), so \(n = 3\) and you need \(f'''(a)/3!\). Using \(n = 4\) or dropping the \(n!\) is the usual slip.

3. Leaving part of the integrand out of \(f(z)\)

In Example 5 the factor \(\dfrac{1}{z - 3}\) belongs inside \(f\). Taking \(f = z^2\) gives \(2\pi i\), which is wrong. Everything except the factor for the inside point goes into \(f\).

06

Practice questions

Try each one on paper before you open the answer.

Q1Evaluate \(\displaystyle\oint_{|z| = 1}\frac{\cos z}{z}\,dz\).

\(2\pi i\cos 0 = 2\pi i\).

Q2Evaluate \(\displaystyle\oint_{|z| = 1}\frac{z^2 + 1}{2z - 1}\,dz\).

Write \(\dfrac{1}{2z - 1} = \dfrac{1}{2}\cdot\dfrac{1}{z - \frac{1}{2}}\). The point \(\tfrac{1}{2}\) is inside.

Integral \(= 2\pi i\cdot\tfrac{1}{2}\left(\tfrac{1}{4} + 1\right) = \dfrac{5\pi i}{4}\).

Q3Evaluate \(\displaystyle\oint_{|z| = 1}\frac{e^z}{z - 3}\,dz\).

\(z = 3\) is outside, so the integral is \(0\).

Q4Evaluate \(\displaystyle\oint_{|z| = 3}\frac{e^z}{(z - 1)(z - 2)}\,dz\).

Both points are inside. Partial fractions give \(2\pi i\,(e^2 - e)\).

Q5Evaluate \(\displaystyle\oint_{|z| = 1}\frac{\cos z}{z^3}\,dz\).

\(n = 2\), \(f = \cos z\), \(f''(0) = -1\). Integral \(= \dfrac{2\pi i}{2!}(-1) = -\pi i\).

Q6Evaluate \(\displaystyle\int_0^{1+i}(z^2 + 3z)\,dz\) along any path.

The integrand is analytic, so use \(F = \tfrac{z^3}{3} + \tfrac{3z^2}{2}\).

\[F(1 + i) = \frac{-2 + 2i}{3} + 3i = -\frac{2}{3} + \frac{11}{3}i.\]

Stuck on a question?

Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.

07

Frequently asked questions

What is Cauchy's integral theorem?

If \(f\) is analytic inside and on a simple closed curve \(C\), then \(\oint_C f(z)\,dz = 0\). It is why, in a region without holes, integrals of analytic functions do not depend on the path.

What is Cauchy's integral formula?

For \(f\) analytic inside and on \(C\) and \(a\) inside \(C\): \(\oint_C \dfrac{f(z)}{z - a}\,dz = 2\pi i\,f(a)\). The derivative form replaces \(z - a\) by \((z - a)^{n+1}\) and \(f(a)\) by \(f^{(n)}(a)/n!\).

What if the point a lies outside the curve?

Then \(\dfrac{f(z)}{z - a}\) is analytic inside and on \(C\), and by Cauchy's theorem the integral is 0.

What if the point lies on the curve?

Then the integrand blows up on the path itself, so the ordinary integral does not exist and the formula does not apply. If you find \(|a|\) equal to the radius, read the question again.

Related lessons

← All 12 Complex Variables & Transforms topics
Vipul Sir
Written by Vipul Sir

Vipul Sir has taught mathematics for over 15 years to HSC, CBSE, ICSE, IGCSE/IB, Diploma, Engineering and BSc students at VVS Classes in Goregaon and Vile Parle, Mumbai. He teaches every class himself, concepts first and exam technique second.

Complex Variables and Transforms

Get Complex Variables & Transforms right, with Vipul Sir beside you.

Concept-first classes in small batches in Goregaon and Vile Parle, or online. Your first class is free.

WhatsApp↗