Skip to content
Tutorials Center
My learning

Topics

Lesson 24 of 36 · Cauchy Theorems

Cauchy's Integral Formula

Recover the value of an analytic function inside a curve from its boundary values with Cauchy's integral formula, and evaluate contour integrals with it.

Cauchy's integral formula is one of the most surprising facts in mathematics. It says that if you know an analytic function only on a closed curve, you know it at every point inside. The values on the boundary determine the values in the interior, completely, through a single integral. Nothing like this holds for real differentiable functions.

It is also a practical tool: many contour integrals can be computed in one line by recognizing them as a Cauchy integral.

The formula

Let f be analytic on a simply connected domain D, let C be a simple closed counterclockwise contour in D, and let a be a point inside C. Then

Text
f(a) = (1 / 2πi) ∮_C f(z) / (z - a) dz

Equivalently, ∮_C f(z)/(z - a) dz = 2πi · f(a).

Why it is true. The function g(z) = f(z)/(z - a) is analytic everywhere inside C except at a. By deformation (see the Cauchy-Goursat theorem) we may replace C by a tiny circle |z - a| = ε. On this circle f(z) ≈ f(a) when ε is small, so

Text
∮_(|z-a|=ε) f(z)/(z - a) dz ≈ f(a) ∮ dz/(z - a) = 2πi · f(a)

as computed in winding numbers. The error is at most the ML bound max|f(z) - f(a)| / ε · 2πε = 2π · max|f(z) - f(a)|, which tends to 0 as ε → 0 by continuity. The left side does not depend on ε, so the approximation is exact.

Using it

The recipe: put the integrand in the form f(z)/(z - a) where f is analytic inside and on the contour, and a is inside.

Example 1

∮_(|z|=2) e^z/(z - 1) dz. Here f(z) = e^z, a = 1 lies inside the circle of radius 2, so the integral is 2πi · e^1 = 2πie.

Example 2

∮_(|z|=1) cos z / z dz. With f = cos and a = 0: 2πi · cos 0 = 2πi.

Example 3: the pole is outside

∮_(|z|=1) e^z/(z - 3) dz. The only singularity z = 3 is outside the contour, so the integrand is analytic inside, and the integral is 0.

Example 4: two singularities, partial fractions

∮_(|z|=2) dz/(z² - 1). Factor z² - 1 = (z - 1)(z + 1) and use partial fractions:

Text
1/(z² - 1) = (1/2) [ 1/(z - 1) - 1/(z + 1) ]

Both ±1 lie inside |z| = 2. Each term is a Cauchy integral with f = 1 giving 2πi, so the total is (1/2)(2πi - 2πi) = 0.

Example 5: a non-constant numerator

∮_(|z|=3) (z² + 1) / ((z - 1)(z + 2)) dz. Both 1 and -2 lie inside the circle. Cut the contour into two small circles, one around each point. Around z = 1 write the integrand as f₁(z)/(z - 1) with f₁(z) = (z² + 1)/(z + 2), which is analytic near 1. Around z = -2 use f₂(z) = (z² + 1)/(z - 1). Cauchy's formula on each small circle gives

Text
2πi · f₁(1) + 2πi · f₂(-2) = 2πi · (2/3) + 2πi · (-5/3) = -2πi

(This is the residue theorem in disguise; see the residue theorem.)

When several singularities lie inside, either split the integrand by partial fractions, or cut the contour into pieces that each enclose one singularity. The general version of this idea is the residue theorem.

Try it: evaluating Cauchy integrals

The code evaluates all five examples numerically on a circle and compares with the formulas. For the circle we use the trapezoid rule, which converges extremely quickly for periodic analytic integrands.

Python Check the integral formula

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Try it: values inside from values on the boundary

Now the formula as a reconstruction machine. We pretend that we only know f(z) = e^z on the unit circle, and recover its values at points inside by the integral. Points near the boundary need more samples for the same accuracy; points at the center are easiest.

Python Recover f(a) from boundary data

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Special case: the mean value property

Take C to be the circle |z - a| = r. Then z = a + r e^(it), dz = i r e^(it) dt and z - a = r e^(it), so the formula becomes

Text
f(a) = (1/2π) ∫_0^(2π) f(a + r e^(it)) dt

The value at the center of a circle is the average of the values on the circle. We use this in the maximum modulus lesson.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is ∮_(|z|=3) e^z/(z - 1) dz?

    f(z) = e^z is analytic and a = 1 lies inside |z| = 3, so the integral is 2πi·f(1) = 2πi·e.
  2. 2. What is ∮_(|z|=1) cos z/(z - 2) dz?

    The point z = 2 lies outside the unit circle, so the integrand is analytic inside and the integral is 0.
  3. 3. Cauchy's formula shows that the value f(a) for a inside C is determined by

    f(a) = (1/2πi)∮ f(z)/(z - a) dz uses only the values of f on the curve.
  4. 4. The mean value property says f(a) equals

    Setting z = a + r e^(it) turns the formula into f(a) = (1/2π)∫ f(a + r e^(it)) dt.

Summary

  • For f analytic inside and on C, and a inside, f(a) = (1/2πi) ∮ f(z)/(z - a) dz.
  • It follows from deformation to a tiny circle plus the integral of 1/(z - a).
  • To evaluate integrals, identify f and a; use partial fractions for several singularities.
  • If the singularity is outside the contour the integral is 0.
  • On a circle the formula gives the mean value property.

Next: Derivatives from integrals, and Liouville's theorem