Lecture 9: complex line integrals

Complex analysis, lecture 2
(February 23, 2026)

1.  Harmonic conjugates and the mean value property

Our first application of the tools of path integration to the material of this class is to better justify our proof that harmonic functions on star-shaped domains really do have harmonic conjugates.

Suppose u:D→ℝ is a harmonic function, where D⊂ℝ2 is a domain. We claim that the differential

ω=−∂u∂y⁢d⁢x+∂u∂x⁢d⁢y

is closed. Indeed, recall that a differential P⁢d⁢x+Q⁢d⁢y is closed if ∂P∂y=∂Q∂x, so here we are asking for

∂∂y⁢(−∂u∂y)=∂∂x⁢(∂u∂x),

i.e. that

−∂2u∂y2=∂2u∂x2,

which is exactly Laplace’s equation Δ⁢u=0.

By the results above, it follows that if D is a star-shaped domain, there exists some function v:D→ℝ such that ω=d⁢v; that is, since ω is closed on a star-shaped domain, it must be exact. Therefore ω=−∂u∂y⁢d⁢x+∂u∂x⁢d⁢y=d⁢v=∂v∂x⁢d⁢x+∂v∂y⁢d⁢y, so

∂v∂x=−∂u∂y,∂v∂y=∂u∂x.

These are exactly the Cauchy–Riemann equations for u and v, so u+i⁢v is analytic, i.e. v is a harmonic conjugate for u! Explicitly, since d⁢v=ω, we immediately get the formula

v⁢(B)=∫ABω=∫AB−∂u∂y⁢d⁢x+∂u∂x⁢d⁢y,

which agrees with the formula we sketched when first talking about harmonic conjugates.

We can now prove that harmonic functions satisfy the mean value property. Recall that f:D→ℂ satisfies the mean value property if for all z0∈D,

f⁢(x0,y0)=12⁢π⁢∫02⁢πf⁢(x0+r⁢cos⁡θ,y0+r⁢sin⁡θ)⁢𝑑θ.

We claim that this is true if f is harmonic on D.

To see this, we again use the fact that −∂f∂y⁢d⁢x+∂f∂x⁢d⁢y is closed if f is harmonic. It then follows from Green’s theorem that

∫γ−∂f∂y⁢d⁢x+∂f∂x⁢d⁢y=0.

Parametrizing the circle by γ⁢(t)=(r⁢cos⁡t,r⁢sin⁡t) for 0≤t≤2⁢π, this integral is

r⁢∫02⁢π(∂f∂x⁢cos⁡t+∂f∂y⁢sin⁡t)⁢𝑑θ =r⁢∫02⁢π∂f∂r⁢(x0+r⁢cos⁡t,y0+r⁢sin⁡t)⁢𝑑t
=r⁢∂∂r⁢∫02⁢πf⁢(x0+r⁢cos⁡t,y0+r⁢sin⁡t)⁢𝑑t
=2⁢π⁢r⁢∂∂r⁢A⁢(r)
=0,

i.e. A′⁢(r)=0. Hence A⁢(r) is constant for 0<r<R, and since it is continuous at 0 we must have A⁢(r)=limr→0A⁢(r)=f⁢(x0,y0) for all r<R.

2.  Complex integrals

We now turn to the complex case. Recall we’ve been reviewing the theory of path integrals in the plane ℝ2. We now specialize to the complex plane and see what things look like here.

We start off by writing d⁢z=d⁢x+i⁢d⁢y for z=x+i⁢y, as mentioned last week. Thus for h:D→ℂ a complex function on a domain D and γ a curve in D, if h=u+i⁢v we have

∫γh⁢(z)⁢𝑑z =∫γh⁢(z)⁢𝑑x+i⁢h⁢(z)⁢d⁢y
=∫γ(u+i⁢v)⁢𝑑x+(−v+i⁢u)⁢d⁢y.

In particular, the differential ω=h⁢(z)⁢d⁢z=(u+i⁢v)⁢d⁢x+(−v+i⁢u)⁢d⁢y is closed if and only if

∂∂y⁢(u+i⁢v)=∂∂x⁢(−v+i⁢u),

taking the real and imaginary parts of which give

∂u∂y=−∂v∂x,∂v∂y=∂u∂x,

which are exactly the Cauchy–Riemann equations! That is: h⁢(z)⁢d⁢z is closed on D if and only if h is analytic on D.

Before proceeding further, let’s compute an example. Let γ be the circle around a point z0 (in the positive direction) of radius R, which in the complex setting we can parametrize by z=γ⁢(θ)=z0+R⁢ei⁢θ for 0≤θ<2⁢π. Then d⁢z=i⁢R⁢ei⁢θ⁢d⁢θ. For f⁢(z)=(z−z0)n, the integral is

∫02⁢π(R⁢ei⁢θ)n⁢i⁢R⁢ei⁢θ⁢𝑑θ=i⁢Rn+1⁢∫02⁢πei⁢θ⁢(n+1)⁢𝑑θ.

For n+1≠0, this integral is zero, by symmetry or by expressing in terms of trigonometric functions; when n+1=0, i.e. when n=−1, it is just the integral of the constant function 1, multiplied by i⁢Rn+1=i, so

2⁢π⁢i.

That is,

∫γ1z−z0⁢𝑑z=2⁢π⁢i,∫γ(z−z0)n⁢𝑑z=0

for n≠−1. This will actually be an important calculation later.

Note that although this is a path integral, in many respects we could now treat it as similar to a usual one-variable integral, just now with complex parameter and output. This is an advantage of working over ℂ.

Integrals over ℂ satisfy the following useful bound: if γ is a curve in ℂ and h is a continuous complex function defined on γ, then

|∫γh⁢(z)⁢𝑑z|≤∫γ|h⁢(z)|⁢|d⁢z|.

(This is essentially the triangle inequality.) If γ has length L=∫γ|d⁢z|=∫γ|d⁢x+i⁢d⁢y|=∫γx′⁢(t)2+y′⁢(t)2⁢𝑑t and for every z∈γ we have |h⁢(z)|≤M, then

|∫γh⁢(z)⁢𝑑z|≤∫γ|h⁢(z)|⁢|d⁢z|≤∫γM⁢|d⁢z|=M⁢L.

This is sometimes simply called the ML bound, and is surprisingly useful. We will sometimes invoke both bounds above without explicitly referring to them, so they’re good to know implicitly.

For the example above, on the circle γ of radius R around z0, we have |f⁢(z)|=|(z−z0)n|=Rn and γ has length 2⁢π⁢R, so the estimate bounds the integral by 2⁢π⁢Rn+1. For n≠−1, the actual value for the integral is zero, so this is not a very good bound. For n=−1 however the integral is 2⁢π⁢i, with absolute value 2⁢π, while the bound is 2⁢π, so it is actually sharp.

Much like in the real case, we can ask if a version of the fundamental theorem of calculus holds in our setting. The answer is yes: if f⁢(z)=F′⁢(z) for an analytic function F on D, then F′⁢(z)=∂F∂x=∂F∂(i⁢y)=1i⁢∂F∂y (note the factor of i!), and so

F⁢(B)−F⁢(A)=∫AB𝑑F=∫AB∂F∂x⁢𝑑x+∂F∂y⁢d⁢y=∫ABF′⁢(z)⁢(d⁢x+i⁢d⁢y)=∫ABF′⁢(z)⁢𝑑z.

In particular this is independent of the path taken in the complex plane.

However, we have to be careful. If A=B, this would predict that the integral is always zero. But we saw above an example where this is not true: f⁢(z)=1z−z0 around a circle centered at z0. Indeed, although we can find an antiderivative of f here, given by log⁡(z−z0)+C for some constant C, it is not defined on the interior of the disk, in particular at z0, so there is no analytic primitive on D. Therefore the integral is not necessarily path-independent; indeed taking the constant path from some point on the circle to itself would give 0, different from the circle path.

But we’ve already seen how to fix this. Just as in the real case, a differential is exact if it comes from an analytic function; it is closed if it satisfies the corresponding differential equation, and we saw above that if h⁢(z) is analytic, then h⁢(z)⁢d⁢z is closed. So in the case where closed and exact are the same, it follows that h⁢(z)⁢d⁢z is exact. In particular, if D is a star-shaped domain, then

∫γh⁢(z)⁢𝑑z

is independent of the path γ in D so long as h⁢(z) is analytic on D.

We now have two methods to compute complex integrals: by direct parametrization, and (if we’re in a star-shaped domain, or otherwise know our differential to be exact) by the fundamental theorem of calculus. In the real case, we had another method: Green’s theorem. This told us two things: first, that the integral around the boundary of a domain of a closed differential vanishes; and second, for a non-closed differential, it gave us an exact formula, given by an integral over the interior of the domain.

What might a complex analogue look like? Let’s start with the first part.111We will come back to a direct analogue of the second part, but not for a little while; we’ll see a looser analogue later today. We said that if h⁢(z) is analytic on a (bounded) domain D (with piecewise smooth boundary), then h⁢(z)⁢d⁢z is closed; so by Green’s theorem,

∫∂Dh⁢(z)⁢𝑑z=0.

Despite the simplicity of its proof, this is a very important theorem, called Cauchy’s integral theorem, so let’s formally state it as such.

Theorem (Cauchy’s integral theorem).

Let D be a bounded domain with piecewise smooth boundary, and h:D→ℂ be an analytic function extending smoothly to the boundary of D. Then

∫∂Dh⁢(z)⁢𝑑z=0.

Consider the region D={r<|z|<R} for 0<r<R real numbers. This is an annulus around the origin, i.e. a disk with a smaller disk cut out. Its boundary is a pair of circles: one of radius R, in the positive direction, and one of radius r, in the negative direction. This has to do with the notion of orientation, which we have only briefly touched on; for the boundary of any domain D, we want to think of it as going in the direction to have the interior of D on its left. So for a disk, the boundary is the circle in the positive direction; but for the annulus, the inner boundary is in the negative direction.

By Cauchy’s theorem, for any h analytic on D we have

0=∫∂Dh⁢(z)⁢𝑑z=∮|z|=Rh⁢(z)⁢𝑑z−∮|z|=rh⁢(z)⁢𝑑z.

Here ∮ denotes an integral around a closed loop; we will sometimes use this as a notational reminder. In particular, it follows that

∮|z|=Rh⁢(z)⁢𝑑z=∮|z|=rh⁢(z)⁢𝑑z,

i.e. ∮|z|=rh⁢(z)⁢𝑑z is independent of r (so long as h is analytic on the annulus containing the circle of radius r). This makes sense with our discussion of deforming the paths along which we integrate. For h⁢(z)=zn, it also agrees with our calculations above.

Cauchy’s integral theorem has many applications, but one of the first and most critical is also due to Cauchy and is (perhaps confusingly) called Cauchy’s integral formula.

Theorem (Cauchy’s integral formula).

Let D be a bounded domain with piecewise smooth boundary. If h⁢(z) is analytic on D and extends smoothly to the boundary of D, then

h⁢(z)=12⁢π⁢i⁢∫∂Dh⁢(w)w−z⁢𝑑w

for any z∈D.

This is quite a remarkable formula. The right-hand side only involves evaluating h at points on the boundary of the domain, but we are claiming that somehow this can tell us the value of the function at every point on the interior! Further, this is true for any D, so if the function is defined on some larger domain we can take any domain inside that containing z and use this boundary; so this is a strong deformation statement as well.

The proof is as follows. Let U be a small disk of radius r centered at z, contained in D. We can consider the domain D∖U, with boundary ∂D∪γ where γ is the circle of radius r around z in the negative direction. Then h⁢(w)z−w as a function of w is analytic on D∖U, since there w≠z; so by Cauchy’s theorem,

∫∂Dh⁢(w)z−w⁢𝑑w−∫γh⁢(w)z−w⁢𝑑w=0.

So it suffices to study the second term, which is then equal to the first.

On the circle, we can write w=z+r⁢ei⁢θ, with d⁢w=i⁢r⁢ei⁢θ⁢d⁢θ, so the integral becomes

∫02⁢πh⁢(z+r⁢ei⁢θ)r⁢ei⁢θ⁢i⁢r⁢ei⁢θ⁢𝑑θ=2⁢π⁢i⁢A⁢(r)

where A⁢(r) is the mean value on the circle of radius r as last time. Since h is analytic, it is harmonic, so it satisfies the mean value property, hence A⁢(r)=h⁢(z). Therefore the second term is 2⁢π⁢i⁢h⁢(z), i.e.

12⁢π⁢i⁢∫∂Dh⁢(w)z−w⁢𝑑w=h⁢(z).

Differentiating, we can even get a formula for every derivative at z:

h(n)⁢(z)=n!2⁢π⁢i⁢∫∂Dh⁢(w)(w−z)n+1⁢𝑑w

for every n≥0 and z∈D. This is sometimes useful for things like computing Taylor series. More abstractly, we have justified one of our big claims about analytic functions: this shows that, even though we only assumed h is continuously differentiable on D, it is actually infinitely differentiable at every point in D! This is even more valuable than the explicit formula.

Eventually, we’ll also want to show that holomorphic functions are “analytic” in the sense of being equal to their Taylor series, but as we haven’t really talked about Taylor series yet we’ll put this off.