Skip to content
Tutorials Center
My learning

Topics

Lesson 21 of 36 · Contour Integration

Antiderivatives and Path Independence

Use the fundamental theorem for contour integrals, see when the path does not matter, and learn why 1/z has no antiderivative on the punctured plane.

Computing a contour integral from the definition can be tedious. If the integrand has an antiderivative, there is a shortcut that mirrors the fundamental theorem of calculus: evaluate the antiderivative at the two endpoints and subtract. As a bonus, the answer then does not depend on the path at all, and any closed contour gives zero.

This lesson states that theorem, uses it, and then studies the most important function that does not have an antiderivative: 1/z.

The fundamental theorem for contour integrals

Let D be a domain (an open connected set) and let f be continuous on D. A function F is an antiderivative of f on D if F'(z) = f(z) for every z in D.

Theorem. If F is an antiderivative of f on D and C is a contour in D from p to q, then

Text
∫_C f(z) dz = F(q) - F(p)

Proof idea. With z = γ(t), the chain rule gives d/dt F(γ(t)) = F'(γ(t)) γ'(t) = f(γ(t)) γ'(t). So the integrand is the derivative of F(γ(t)), and the ordinary fundamental theorem of calculus gives F(γ(b)) - F(γ(a)) = F(q) - F(p).

Two consequences follow at once:

  • Path independence. The value depends only on the endpoints p and q, not on the route inside D.
  • Closed contours give zero. If p = q, then F(q) - F(p) = 0.

In fact, the converse is also true: if ∫_C f dz = 0 for every closed contour in D, then f has an antiderivative on D.

Example 1

Compute ∫ z² dz from 0 to 1 + i along any contour. An antiderivative is z³/3, so the value is (1+i)³/3 = (-2 + 2i)/3. This agrees with the diagonal computation in Complex line integrals, and also with the corner route.

Example 2

Compute ∮ e^z dz around any closed contour. Since e^z is its own antiderivative, the answer is 0. The same is true for polynomials, sin z, cos z, and any entire function. (An entire function is analytic on all of the complex plane.)

Example 3: powers

For an integer n ≠ -1, z^n has the antiderivative z^(n+1)/(n+1). On D = C (for n ≥ 0) or on the punctured plane C \ {0} (for n ≤ -2) this means

Text
∮ z^n dz = 0   for every closed contour not passing through 0, when n ≠ -1

For example, ∮_(|z|=1) dz/z² = 0, because -1/z is single valued and differentiable on the punctured plane.

The special case: 1/z

For n = -1 the formula z^(n+1)/(n+1) breaks down (it would divide by zero), and the integral around the unit circle is ∮ dz/z = ∫_0^(2π) (1/e^(it)) i e^(it) dt = 2πi ≠ 0.

By the theorem above, a nonzero closed-contour integral means that 1/z has no antiderivative on C \ {0}. The natural candidate is the logarithm, but a complex logarithm is multi-valued: going once around the origin changes arg z by 2π, so log z changes by 2πi.

You can still use a logarithm if you cut the plane. The principal logarithm Log z = ln|z| + i Arg z, with -π < Arg z ≤ π, is analytic on C minus the non-positive real axis, and there Log' z = 1/z. So on any contour that avoids the cut, ∫ dz/z = Log(q) - Log(p).

On the unit circle, starting at 1 and going once around, you must cross the cut at -1, so the principal logarithm is not an antiderivative along the whole curve. That is why the answer is 2πi and not Log(1) - Log(1) = 0.

Example 4: two half circles

Integrate 1/z from 1 to -1 along the upper half circle e^(it), 0 ≤ t ≤ π:

Text
∫ dz/z = ∫_0^π i dt = iπ

Along the lower half circle e^(-it), 0 ≤ t ≤ π (also from 1 to -1), the integral is -iπ. Same endpoints, different answers: path independence fails, exactly because there is no antiderivative on the punctured plane. The difference between the two answers is 2πi, one full loop.

Try it: path independence for z³

We integrate z³ from 1 to -1 along the upper and lower half circles. Because F(z) = z⁴/4 is an antiderivative, both results must equal F(-1) - F(1) = 0.

Python Path independence when an antiderivative exists

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: 1/z breaks path independence

Now the same two paths for f(z) = 1/z. The numerical values should be iπ and -iπ. Then we add a third route, the straight segments from 1 to i to -1, to show that the result depends on how many times and in which direction you wind around the origin.

Python Why 1/z has no antiderivative

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.

The straight route 1 → i → -1 goes through the upper half-plane, so it is homotopic to the upper half circle (it can be deformed into it without crossing the origin); you should find the value close to iπ. The next lessons make that precise with winding numbers and the Cauchy-Goursat theorem.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. If F' = f on a domain containing a contour from p to q, then the integral of f along it equals

    This is the fundamental theorem for contour integrals: end value minus start value.
  2. 2. What is the integral of cos z around any closed contour?

    cos z has the antiderivative sin z on the whole plane, so every closed-contour integral is 0.
  3. 3. Why can't 1/z have an antiderivative on the punctured plane C \ {0}?

    An antiderivative would force every closed-contour integral to be 0, but the circle gives 2πi.
  4. 4. The integral of 1/z from 1 to -1 along the upper half unit circle is

    With z = e^(it), dz/z = i dt, so the integral over 0 ≤ t ≤ π is iπ.

Summary

  • If F' = f on a domain, then ∫_C f dz = F(end) - F(start).
  • With an antiderivative, integrals are path independent and closed contours give 0.
  • z^n for n ≠ -1 always has an antiderivative; 1/z does not on C \ {0}.
  • The principal logarithm is an antiderivative of 1/z only on a cut plane.
  • The failure of path independence for 1/z is measured by how often a path winds around the origin.

Next: Winding numbers