Complex differentiability and the Cauchy–Riemann equations
Derive the Cauchy–Riemann conditions and construct harmonic conjugates with explicit hypotheses.
§4.1Estimated reading time: 37 min
The question
A function of one complex variable can also be read as a pair of real functions of two real variables. If z=x+iy and f=u+iv, then f corresponds to the map (x,y)↦(u(x,y),v(x,y)) from a subset of R2 to R2. This note asks what extra structure complex differentiability imposes on the pair (u,v).
The answer is a pair of first-order partial differential equations, the Cauchy–Riemann equations. We prove that they are necessary for complex differentiability at a point; that on their own they are not sufficient, even for a continuous function; that together with continuity of the partial derivatives they are sufficient; and that, under C2 regularity, they make the real and imaginary parts harmonic. Finally we construct a holomorphic function with prescribed harmonic real part on a rectangle, and show with log∣z∣ that on the punctured plane no such construction is possible.
Standing conventions. Throughout, U⊆C is open and is identified with a subset of R2 via x+iy↔(x,y). We write f=u+iv with u=Ref, v=Imf, and subscripts denote partial derivatives, for example ux=∂u/∂x. We assume the elementary properties of ez, including (ez)′=ez and ∣ez∣=eRez.
Complex differentiability
In one real variable, g′(x0) is the limit of difference quotients as h→0 through real numbers. The complex definition looks identical on the page, but h is now a complex number, which can approach 0 from any direction and along any path. Demanding a single limit over all of these approaches is much stronger than real differentiability of (x,y)↦(u,v).
Definition 4.1.1
(Complex derivative and holomorphic function)
Let f:U→C and z0∈U. Then f is complex differentiable at z0 if there is a∈C such that for every ε>0 there is δ>0 with
Such an a is unique; it is the complex derivativef′(z0). The function f is holomorphic on U if it is complex differentiable at every point of U.
Uniqueness holds because limits in a metric space are unique and, U being open, every punctured disk about z0 meets U. The order of the quantifiers carries the meaning. A single number a must serve every approach. The radius δ depends on ε and z0 but not on the direction of h. Restricting h to real or to imaginary values gives statements about ∂f/∂x and ∂f/∂y, each strictly weaker than the definition.
Setting r(h):=f(z0+h)−f(z0)−ah gives the equivalent form
f(z0+h)=f(z0)+ah+r(h),hr(h)→0 as h→0.
Near z0, then, f is approximated to first order by multiplication by the complex number a. If a=∣a∣eiθ=0, that map is a rotation by θ composed with scaling by ∣a∣. A general real-linear map of R2 can shear, reflect, or stretch different directions by different amounts; multiplication by a cannot.
Worked example 4.1.2
(The derivative of z2 from the definition)
Let f(z)=z2 and fix z0∈C. For h=0,
h(z0+h)2−z02=h2z0h+h2=2z0+h,
so the quotient differs from 2z0 by exactly ∣h∣. Given ε>0, the choice δ=ε works for every direction of h at once. Hence f is holomorphic on C with f′(z)=2z. The same algebra handles every polynomial in z, and sums, products, quotients with nonzero denominator, and compositions of complex differentiable functions are complex differentiable, with the proofs of one real variable.
Worked example 4.1.3
(Conjugation is smooth but nowhere complex differentiable)
Let f(z)=zˉ, in real coordinates the reflection (x,y)↦(x,−y). Its difference quotient is
hz0+h−zˉ0=hhˉ.
For real h this equals 1; for h=it with t real it equals −it/(it)=−1. Both values occur for arbitrarily small ∣h∣, so no single a works, and zˉ is complex differentiable nowhere. A reflection is not multiplication by any complex number.
Quick check
(In the definition of f′(z0), may the radius δ depend on the direction of h?)
Read the order of the quantifiers.
Solution · Answer
No. δ is chosen after ε and before h, so one δ must work for every h with 0<∣h∣<δ, whatever its direction. A function whose difference quotients have a limit along each ray, with different limits on different rays, is not complex differentiable.
Necessity: the Cauchy–Riemann equations
Theorem 4.1.4
(Cauchy–Riemann equations are necessary)
Let f=u+iv:U→C be complex differentiable at z0=x0+iy0∈U. Then the four partial derivatives ux,uy,vx,vy exist at (x0,y0), they satisfy the Cauchy–Riemann equations
Let f′(z0)=α+iβ with α,β real. Given ε>0, choose δ as in the definition, shrinking it so that the disk of radius δ about z0 lies in U. We use ∣Rew∣≤∣w∣ and ∣Imw∣≤∣w∣.
which again lies within ε of α+iβ. Hence vy(x0,y0)=α and −uy(x0,y0)=β. Comparing, ux=α=vy and uy=−β=−vx, and f′(z0)=α+iβ=ux+ivx=vy−iuy.
Only two directions of approach were used, which is why the converse can fail. Writing fx=ux+ivx and fy=uy+ivy, the proof gave f′(z0)=fx(z0)=−ify(z0), so the two real equations combine into the single complex equation fy=ifx. In Wirtinger notation,
∂zˉ∂f:=21(fx+ify)=21((ux−vy)+i(vx+uy)),
so, wherever the four partials exist, the Cauchy–Riemann equations say ∂f/∂zˉ=0.
Common mistake
(A formula for f′ is not a proof that f′ exists)
The formula f′(z0)=ux+ivx and the equation ∂f/∂zˉ=0 are consequences of complex differentiability. Computing ux+ivx at a point where the partials happen to satisfy the Cauchy–Riemann equations does not show that the derivative exists there; the next section gives a continuous function for which it does not.
Concept lensAlgebraic
The Jacobian is multiplication by a complex number
If f′(z0)=α+iβ, the expansion f(z0+h)=f(z0)+(α+iβ)h+r(h) shows that f is real (Fréchet) differentiable at (x0,y0) with derivative h↦(α+iβ)h. For h=s+it, (α+iβ)(s+it)=(αs−βt)+i(βs+αt), so
(uxvxuyvy)=(αβ−βα).
The real 2×2 matrices of this shape are exactly the matrices of multiplication by complex numbers, and the Cauchy–Riemann equations say precisely that the Jacobian has this shape. Its determinant is α2+β2=∣f′(z0)∣2≥0, so a complex differentiable map never reverses orientation to first order. In this language, f is complex differentiable at z0 if and only if it is real differentiable there and its Jacobian satisfies the Cauchy–Riemann equations; the reverse implication is the sufficiency argument proved below.
The Cauchy–Riemann equations alone are not enough
Existence of the four partial derivatives is a statement about two directions; complex differentiability concerns all approaches at once.
Counterexample mode
Cauchy–Riemann at a point without complex differentiability
Claim: if the partial derivatives exist at z0 and satisfy the Cauchy–Riemann equations there, f is complex differentiable at z0. Let f(0)=0 and, for z=x+iy=0,
u(x,y)=x2+y2x3,v(x,y)=x2+y2y3.
Continuity: since x2/(x2+y2)≤1, we get ∣u∣≤∣x∣ and likewise ∣v∣≤∣y∣, so ∣f(z)∣≤2∣z∣→0. On the axes, u(t,0)=t, u(0,t)=0, v(t,0)=0, v(0,t)=t for all real t, so
ux(0,0)=1,uy(0,0)=0,vx(0,0)=0,vy(0,0)=1,
and both Cauchy–Riemann equations hold at the origin. If f′(0) existed, it would equal ux+ivx=1. Along the diagonal h=t(1+i), t>0, we have u=v=t/2, so
hf(h)−f(0)=t(1+i)2t(1+i)=21
for every t>0, which does not tend to 1. So f′(0) does not exist. Along the ray h=teiθ the quotient is the constant (cos3θ+isin3θ)e−iθ: each ray has its own limit, and the limits disagree. The repair is to add a hypothesis giving real differentiability, for instance continuity of the partials. Here ux=(x4+3x2y2)/(x2+y2)2 off the origin equals 1 on the x-axis and 0 on the y-axis, so ux is discontinuous at 0.
Sufficiency under continuous partial derivatives
The bridge is real differentiability, and the standard way to obtain it is continuity of the partial derivatives.
Lemma 4.1.5
(Continuous partials imply real differentiability)
Let U⊆R2 be open, and let w:U→R have partial derivatives wx,wy on U that are continuous at p=(x0,y0). Then
w(x0+s,y0+t)=w(p)+wx(p)s+wy(p)t+ρ(s,t),s2+t2ρ(s,t)→0 as (s,t)→(0,0).
Proof
(Two straight steps and the mean value theorem)
Choose a disk D about p in U, and let (s,t) be so small that p+(s,t)∈D; then the points p, (x0,y0+t), (x0+s,y0+t) and the segments joining them lie in D. Split
By the one-variable mean value theorem, the first bracket is swx(ξ) for some ξ on the horizontal segment and the second is twy(η) for some η on the vertical one (take ξ=p or η=p if s=0 or t=0). Hence ρ=s(wx(ξ)−wx(p))+t(wy(η)−wy(p)), and since ∣s∣,∣t∣≤s2+t2,
s2+t2∣ρ(s,t)∣≤∣wx(ξ)−wx(p)∣+∣wy(η)−wy(p)∣.
Both ξ and η lie within s2+t2 of p, so continuity of wx and wy at p sends the right-hand side to 0.
Theorem 4.1.6
(C1 plus Cauchy–Riemann implies holomorphic)
Let u,v:U→R have continuous first partial derivatives on U satisfying ux=vy and uy=−vx at every point of U. Then f=u+iv is holomorphic on U, and f′=ux+ivx=vy−iuy is continuous on U.
Proof
(The linear part is multiplication by α+iβ)
Fix z0∈U, put p=(x0,y0), α=ux(p), β=vx(p). The Cauchy–Riemann equations give vy(p)=α and uy(p)=−β. The lemma, applied to u and to v, gives for small h=s+it
with ρj/∣h∣→0. Since (α+iβ)(s+it)=(αs−βt)+i(βs+αt),
f(z0+h)−f(z0)=(α+iβ)h+ρ1+iρ2,
and ∣ρ1+iρ2∣/∣h∣≤(∣ρ1∣+∣ρ2∣)/∣h∣→0. This is complex differentiability at z0 with f′(z0)=α+iβ=ux+ivx, and f′ is continuous because ux and vx are.
The two hypotheses do different jobs, and the counterexample above shows what is lost without the first.
Proof X-ray
Regularity buys a linear approximation; Cauchy–Riemann shapes it
Continuity of the partial derivatives is used only through the lemma, and only to make u and v real differentiable at z0. So the proof gives a pointwise statement: real differentiability at z0 together with the Cauchy–Riemann equations at z0 implies complex differentiability at z0. The counterexample satisfies the equations at 0 but is not real differentiable there; the only candidate linear map is h↦h, and along the diagonal ∣f(h)−h∣/∣h∣ is a fixed positive number.
The Cauchy–Riemann equations enter in one line, the identity (α+iβ)(s+it)=(αs−βt)+i(βs+αt). Without them the linear part would be a general real-linear map (s,t)↦(as+bt,cs+dt), and dividing by h would leave a quantity depending on the direction of h. The equations are imposed at every point of U because the conclusion is wanted at every point.
Harmonic real and imaginary parts under C2 regularity
Definition 4.1.7
(Harmonic function)
Let U⊆R2 be open. A function w:U→R is harmonic on U if w∈C2(U) and Δw:=wxx+wyy=0 on U.
Here C2(U) means that all partial derivatives of order at most two exist and are continuous on U; then Schwarz's theorem gives wxy=wyx.
Theorem 4.1.8
(Holomorphic implies harmonic parts under C2 regularity)
Let f=u+iv be holomorphic on U with u,v∈C2(U). Then u and v are harmonic on U.
Proof
(Differentiate the Cauchy–Riemann equations once more)
By necessity, ux=vy and uy=−vx hold as identities on U, between C1 functions. Differentiating the first in x and the second in y gives uxx=vyx and uyy=−vxy, so Δu=vyx−vxy=0 by Schwarz's theorem for v. Differentiating the first in y and the second in x gives uxy=vyy and uyx=−vxx, so Δv=uxy−uyx=0.
The C2 assumption is what permits the second differentiation at this stage. That real and imaginary parts of holomorphic functions are automatically infinitely differentiable is a later consequence of Cauchy's integral formula, and nothing here depends on it.
Definition 4.1.9
(Harmonic conjugate)
Let u be harmonic on an open U⊆R2. A function v∈C1(U) is a harmonic conjugate of u on U if vx=−uy and vy=ux on U, that is, if u+iv satisfies the Cauchy–Riemann equations on U.
Then vx, vy are C1, so v∈C2(U), the sufficiency theorem makes u+iv holomorphic, and the previous theorem makes v harmonic, which justifies the name. If U is connected and v1,v2 are conjugates of the same u, then w=v1−v2 has wx=wy=0. By the mean value theorem on horizontal and vertical segments, w is constant on each disk in U, so each level set of w is open with open complement, and connectedness makes w constant. Harmonic conjugates on a connected open set are unique up to an additive real constant. Existence is the real question, and it depends on the shape of the domain.
Constructing harmonic conjugates on rectangles
We look for v with dv=ω, where ω:=−uydx+uxdy. A form Pdx+Qdy with C1 coefficients is closed if Py=Qx and exact if it equals dv for some C1 function v; exact forms with C1 coefficients are closed by Schwarz's theorem. For our ω, Py=Qx reads −uyy=uxx, so u is harmonic exactly when ω is closed. Closedness is local; exactness is global. To produce v we integrate ω from a base point along a path that stays in the domain.
An open rectangle is R=(a,b)×(c,d) with −∞≤a<b≤∞ and −∞≤c<d≤∞; the plane, half-planes such as {x>0}, and strips qualify. If (x0,y0) and (x,y) lie in R, so do the vertical segment from (x0,y0) to (x0,y) and the horizontal segment from (x0,y) to (x,y), because each coordinate stays in its own interval.
Theorem 4.1.10
(Harmonic conjugates exist on open rectangles)
Let u be harmonic on an open rectangle R, and fix (x0,y0)∈R. Define
Then v is a harmonic conjugate of u on R, so f=u+iv is holomorphic on R with f′=ux−iuy. Every harmonic conjugate of u on R is v+C with C real.
Proof
(Integrate the conjugate differential along an L-shaped path)
The formula integrates ω along the vertical leg, where only uxdy contributes, and then the horizontal leg, where only −uydx contributes. Both segments lie in R and the integrands are continuous on them, so v is well defined.
For fixed y, the first integral does not depend on x, and the fundamental theorem of calculus gives vx(x,y)=−uy(x,y).
For fixed x, the first term has y-derivative ux(x0,y). In the second term, uy and ∂yuy=uyy are continuous on the product of the interval between x0 and x with (c,d), a subset of R, so we may differentiate under the integral sign. Harmonicity, uyy=−uxx, and the fundamental theorem of calculus in s give
Hence vy=ux(x0,y)+ux(x,y)−ux(x0,y)=ux(x,y). So vx=−uy and vy=ux are continuous; the sufficiency theorem makes u+iv holomorphic with f′=ux+ivx=ux−iuy. The rectangle is convex, hence connected, so uniqueness up to constants applies.
The proof shows exactly where each feature of the setting was spent.
Proof X-ray
Harmonicity closes the form; the rectangle reaches every point
One partial derivative, vx, is free: it is the fundamental theorem of calculus on the horizontal leg. The other is where Δu=0 is used. Differentiating under the integral sign produces −∫uyyds, harmonicity turns it into ∫uxxds, and that integrates back to ux(x,y)−ux(x0,y), canceling the contribution of the vertical leg. Without harmonicity, vy would differ from ux by −∫x0xΔu(s,y)ds.
The rectangle is used only to guarantee that the L-shaped path from the one base point to every (x,y) stays in the domain, together with a product neighborhood for differentiating under the integral sign. On a domain with a hole, no single base point serves every point, and the logarithm below shows that this is a genuine obstruction rather than a weakness of the method.
Worked example 4.1.11
(Recovering 2xy as the conjugate of x2−y2)
Let u=x2−y2 on R2, base point (0,0). Then ux=2x, uy=−2y, Δu=2−2=0, and
So θ is also a conjugate, and θ(1,0)=0=v(1,0); by uniqueness, v=θ. It is the angle of z in (−2π,2π). The function L(z)=log∣z∣+iarctan(y/x) is holomorphic on H with L′=ux−iuy=(x−iy)/r2=1/z, and eL(z)=∣z∣eiθ=z, so L is a logarithm on H.
Proposition 4.1.13
(log∣z∣ has no harmonic conjugate around a circle about 0)
Let ρ>0, and let U⊆C∖{0} be open and contain the circle {∣z∣=ρ}. Then log∣z∣ has no harmonic conjugate on U. In particular there is none on C∖{0}, on a punctured disk {0<∣z∣<R}, or on an annulus {r1<∣z∣<r2}.
Proof
(The would-be conjugate gains 2π around the circle)
Suppose v∈C1(U) has vx=−uy and vy=ux. With γ(θ)=(ρcosθ,ρsinθ), the chain rule gives
dθdv(γ(θ))=−ρ2ρsinθ(−ρsinθ)+ρ2ρcosθ(ρcosθ)=1.
Integrating over [0,2π] gives v(γ(2π))−v(γ(0))=2π, but γ(2π)=γ(0), a contradiction.
So ω is closed but not exact on C∖{0}: any local conjugate increases by 2π once around the origin, the familiar multivaluedness of the argument.
Common mistake
(Harmonic on a domain does not mean real part of a holomorphic function there)
Harmonicity of u makes ω closed, which yields a conjugate on rectangles and other domains reachable by suitable paths. It does not yield one on every domain: log∣z∣ is harmonic on C∖{0} and is the real part of no holomorphic function there.
A holomorphic branch of the logarithm on a connected open D⊆C∖{0} is a holomorphic L with eL(z)=z on D. Branches and conjugates are the same problem. If L is a branch, then eReL=∣z∣ gives ReL=log∣z∣, and ImL, whose partials −uy, ux are continuous, is a conjugate. Conversely, if v is a conjugate, g=log∣z∣+iv is holomorphic with g′=ux−iuy=1/z, so k(z)=ze−g(z) has k′=e−g(1−zg′)=0. By the derivative formula and Cauchy–Riemann, all partials of Rek and Imk vanish, so k is constant on D; since ∣k∣=1, k=eiθ0 and L=g+iθ0 is a branch. Consequently branches exist on every open rectangle avoiding 0 and on the slit plane (the exercise on the principal branch below), but on no open set containing a circle about 0. Two branches on a connected domain differ by a constant d with ed=1, so by 2πik with k∈Z.
Exercises
Exercise 4.1.14
(Let f(z)=∣z∣2. Find the points where the Cauchy–Riemann equations hold, show from the definition that f′(0) exists, and explain why f is holomorphic on no nonempty open set.)
Foundation
Solution(3)
1
Locate the Cauchy–Riemann points
Here u=x2+y2, v=0, so ux=2x, uy=2y, vx=vy=0. The equations read 2x=0 and 2y=0, which hold only at the origin.
2
Differentiate at the origin from the definition
For h=0, (f(h)−f(0))/h=hhˉ/h=hˉ, which tends to 0 with δ=ε. So f′(0)=0.
3
Rule out holomorphy on open sets
At any z0=0 the equations fail, so f′(z0) does not exist. Every nonempty open set contains such points, so f is holomorphic on none. Here u,v are C∞: the failure is entirely in the Cauchy–Riemann equations.
Because: Complex differentiability at a point forces the Cauchy–Riemann equations there.
Exercise 4.1.15
(Let u(x,y)=x3−3xy2+2y. Verify that u is harmonic, find a harmonic conjugate with base point (0,0), and describe all holomorphic functions on C with real part u.)
Core
Solution(4)
1
Check harmonicity
ux=3x2−3y2 and uy=−6xy+2, so uxx=6x, uyy=−6x and Δu=0; u is a polynomial on the rectangle R2.
2
Apply the rectangle formula
Key step
v(x,y)=∫0y(−3t2)dt−∫0x(−6sy+2)ds=−y3+3x2y−2x.
Check: vx=6xy−2=−uy and vy=3x2−3y2=ux.
3
Recognize the function of z
z3=(x3−3xy2)+i(3x2y−y3) and −2iz=2y−2ix, so z3−2iz=u+iv.
4
Describe all solutions
If g is holomorphic with Reg=u, then Img has continuous partials −uy, ux, so it is a conjugate and equals v+C. Hence g(z)=z3−2iz+iC with C∈R.
Because: Conjugates on the connected set C are unique up to a real constant.
Exercise 4.1.16
(Let S=C∖(−∞,0] and r=x2+y2. Show that r+x>0 on S, that φ=2arctan(y/(r+x)) is a harmonic conjugate of log∣z∣ on S, and that L=log∣z∣+iφ is a branch of the logarithm with ImL∈(−π,π).)
Synthesis
Solution(4)
1
Positivity of the denominator
r≥∣x∣≥−x, so r+x≥0, with equality only if y=0 and x≤0, which is excluded from S.
2
Differentiate w=y/(r+x)
1+w2=r+x2r,wx=−r(r+x)y,wy=r(r+x)x.
Because: rx=x/r, ry=y/r and r2−y2=x2.
3
Check the conjugate equations
Key step
φx=1+w22wx=−r2y=−uy,φy=1+w22wy=r2x=ux.
So φ∈C∞(S) is a conjugate, L is holomorphic, and L′=ux−iuy=1/z.
4
Identify the angle
Write z=reiθ with θ∈(−π,π). Then tan(θ/2)=sinθ/(1+cosθ)=y/(r+x) with θ/2∈(−2π,2π), so φ=θ and eL=reiθ=z. This is the principal branch; φ→±π from the two sides of the negative real axis, so it does not extend continuously there.
Exercise 4.1.17
(Let f=u+iv be holomorphic on U with u∈C2(U). Show that v∈C2(U). Then find the real a for which x2+ay2 is the real part of a holomorphic function on C, and all such functions.)
Core
Solution(3)
1
Regularity of v
vx=−uy and vy=ux are C1 on U, so all second partials of v exist and are continuous; v is continuous since it is real differentiable by the lemma. Thus v∈C2(U), and both u, v are harmonic.
Because: Necessity gives the Cauchy–Riemann equations on U.
2
Necessary condition on a
Key step
If x2+ay2 is the real part of a holomorphic function, it is harmonic by the first step, and Δ(x2+ay2)=2+2a. Hence a=−1.
3
All functions for a=−1
For u=x2−y2 the worked example gives the conjugate 2xy, so the functions are exactly z2+iC, C∈R. For a=−1 there is none; for instance Δ(x2+y2)=4, so ∣z∣2 is the real part of no holomorphic function on any nonempty open set.
Because: Conjugates on C are unique up to real constants.
Related notes and prerequisites
Prerequisites: limits and continuity in C; partial derivatives, the mean value theorem, and Schwarz's theorem; the complex exponential.
Next steps: contour integrals of closed forms around loops; Cauchy's theorem, which turns the obstruction above into a general principle; Cauchy's integral formula and the automatic smoothness of holomorphic functions; branches of the logarithm on simply connected domains.