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 D2 is a domain. We claim that the differential

ω=uydx+uxdy

is closed. Indeed, recall that a differential Pdx+Qdy is closed if Py=Qx, so here we are asking for

y(uy)=x(ux),

i.e. that

2uy2=2ux2,

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 ω=dv; that is, since ω is closed on a star-shaped domain, it must be exact. Therefore ω=uydx+uxdy=dv=vxdx+vydy, so

vx=uy,vy=ux.

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

v(B)=ABω=ABuydx+uxdy,

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 z0D,

f(x0,y0)=12π02πf(x0+rcosθ,y0+rsinθ)𝑑θ.

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

To see this, we again use the fact that fydx+fxdy is closed if f is harmonic. It then follows from Green’s theorem that

γfydx+fxdy=0.

Parametrizing the circle by γ(t)=(rcost,rsint) for 0t2π, this integral is

r02π(fxcost+fysint)𝑑θ =r02πfr(x0+rcost,y0+rsint)𝑑t
=rr02πf(x0+rcost,y0+rsint)𝑑t
=2πrrA(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)=limr0A(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 dz=dx+idy for z=x+iy, as mentioned last week. Thus for h:D a complex function on a domain D and γ a curve in D, if h=u+iv we have

γh(z)𝑑z =γh(z)𝑑x+ih(z)dy
=γ(u+iv)𝑑x+(v+iu)dy.

In particular, the differential ω=h(z)dz=(u+iv)dx+(v+iu)dy is closed if and only if

y(u+iv)=x(v+iu),

taking the real and imaginary parts of which give

uy=vx,vy=ux,

which are exactly the Cauchy–Riemann equations! That is: h(z)dz 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+Reiθ for 0θ<2π. Then dz=iReiθdθ. For f(z)=(zz0)n, the integral is

02π(Reiθ)niReiθ𝑑θ=iRn+102πeiθ(n+1)𝑑θ.

For n+10, 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 iRn+1=i, so

2πi.

That is,

γ1zz0𝑑z=2πi,γ(zz0)n𝑑z=0

for n1. 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)||dz|.

(This is essentially the triangle inequality.) If γ has length L=γ|dz|=γ|dx+idy|=γx(t)2+y(t)2𝑑t and for every zγ we have |h(z)|M, then

|γh(z)𝑑z|γ|h(z)||dz|γM|dz|=ML.

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)|=|(zz0)n|=Rn and γ has length 2πR, so the estimate bounds the integral by 2πRn+1. For n1, 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)=Fx=F(iy)=1iFy (note the factor of i!), and so

F(B)F(A)=AB𝑑F=ABFx𝑑x+Fydy=ABF(z)(dx+idy)=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)=1zz0 around a circle centered at z0. Indeed, although we can find an antiderivative of f here, given by log(zz0)+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)dz is closed. So in the case where closed and exact are the same, it follows that h(z)dz 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)dz 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πiDh(w)wz𝑑w

for any zD.

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 DU, with boundary Dγ where γ is the circle of radius r around z in the negative direction. Then h(w)zw as a function of w is analytic on DU, since there wz; so by Cauchy’s theorem,

Dh(w)zw𝑑wγh(w)zw𝑑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+reiθ, with dw=ireiθdθ, so the integral becomes

02πh(z+reiθ)reiθireiθ𝑑θ=2πiA(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πih(z), i.e.

12πiDh(w)zw𝑑w=h(z).

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

h(n)(z)=n!2πiDh(w)(wz)n+1𝑑w

for every n0 and zD. 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.