Complex differentiation

With the concept of limit and continuity, we are ready to introduce differentiation on the complex plane. Complex differentiation is defined as follows:

Definition 1 (Complex Derivative). We say that f(z):ℂ→ℂf(z):\mathbb C\to \mathbb C is complex differentiable at z0z_0 (or more precisely in a neighborhood of z0z_0) if the limit limz→z0f(z)−f(z0)z−z0\lim_{z\to z_0}\dfrac{f(z)-f(z_0)}{z-z_0} exists. In this case, we denote the limit by f′(z0)f'(z_0) or dfdz(z0)\dfrac{df}{dz}(z_0) and call it the the complex derivative of ff at z0z_0.

Clearly, if we introduce δz=z−z0\delta z=z-z_0, we have the following equivalent form of the definition of complex derivative: f′(z0):=limδz→0f(z0+δz)−f(z0)δz.f'(z_0) := \lim_{\delta z\to 0}\dfrac{f(z_0+\delta z)-f(z_0)}{\delta z}.

It is also immediately clear that for a constant function f(z)=cf(z)=c, f′(z)=0f'(z)=0.

Definition 2 (Complex Analytic/Holomorphic Function). A complex function f:ℂ→ℂf:\mathbb C\to\mathbb C is said to be analytic at zz if it is complex differentiable at zz. A function ff is said to be complex analytic or holomorphic in a domain Ω⊆ℂ\Omega\subseteq\mathbb C if it is complex differentiable in a neighborhood of every point in Ω\Omega. A function is said to be entire if it is holomorphic on the whole complex plane ℂ\mathbb C.

Definition 3 (Singular Point). A singular point of f(z)f(z) is a point z0∈Dom(f)z_0\in Dom(f) where f′(z0)f'(z_0) does not exist.

A singular point of a function ff is often loosely called a singularity of ff.

In the same manner as we learned in functions of real variables, if a complex function is differentiable at zz, it is continuous at zz.

Theorem 4 (Differentiability Implies Continuity). If f(z):ℂ→ℂf(z):\mathbb C\to \mathbb C is differentiable at z0z_0, then f(z)f(z) is continuous at z0z_0.

Proof. This follows from the fact that limz→z0f(z)=limz→z0[f(z)−f(z0)z−z0(z−z0)+f(z0)]=f′(z0)0+f(z0)=f(z0)\displaystyle\lim_{z \to z_0} f(z) = \displaystyle\lim_{z\to z_0}[\dfrac{f(z)-f(z_0)}{z-z_0} (z-z_0) + f(z_0)]=f'(z_0)0+f(z_0) = f(z_0). ◻

Most of the consequences of differentiability are quite different in the real and complex cases. We will see this in the next a few lectures. However, the simplest algebraic rules of differentiation are the same in the real and complex cases. We now briefly review those algebraic rules.

Theorem 5 (Properties of Complex Derivatives). Let f(z):ℂ→ℂf(z): \mathbb C\to \mathbb C and g(z):ℂ→ℂg(z): \mathbb C\to \mathbb C be differentiable at zz with derivatives f′(z)f'(z) and g′(z)g'(z) respectively. Then (f+g)′(z)=f′(z)+g′(z)(f+g)'(z) = f'(z)+g'(z) (fg)′(z)=f′(z)g(z)+f(z)g′(z)(fg)'(z) = f'(z)g(z)+f(z)g'(z) (f/g)′(z)=(f′(z)g(z)−f(z)g′(z))/g2(z),g(z)≠0(f/g)'(z) = (f'(z)g(z)-f(z)g'(z))/g^2(z),\ \ \ g(z) \neq 0 [f(g)(z)]′=f′(g(z))g′(z),iff′(g(z))exists.[f(g)(z)]' = f'(g(z)) g'(z), \ \ \ \mbox{if}\ f'(g(z))\ \mbox{exists}.

Proof. The results follows directly from the definition and the properties of limit. We only prove the second and the fourth property. (fg)′(z)=limδz→0f(z+δz)g(z+δz)−f(z)g(z)δz=limδz→0f(z+δz)g(z+δz)−f(z+δz)g(z)+f(z+δz)g(z)−f(z)g(z)δz=limδz→0f(z+δz)(g(z+δz)−g(z))δz+(f(z+δz)−f(z))g(z)δz=f(z)g′(z)+f′(z)g(z).\begin{gathered} (fg)'(z)=\displaystyle\lim_{\delta z\to 0}\dfrac{f(z+\delta z)g(z+\delta z)-f(z)g(z)}{\delta z}\\ =\displaystyle\lim_{\delta z\to 0}\dfrac{f(z+\delta z)g(z+\delta z)-f(z+\delta z)g(z) + f(z+\delta z)g(z)-f(z)g(z)}{\delta z} \\ =\displaystyle\lim_{\delta z\to 0}\dfrac{f(z+\delta z)(g(z+\delta z)-g(z))}{\delta z} + \dfrac{(f(z+\delta z)-f(z))g(z)}{\delta z}\\ =f(z)g'(z)+f'(z)g(z). \end{gathered} (f(g))′(z)=limδz→0f(g(z+δz))−f(g(z))δz=limδz→0f(g(z+δz))−f(g(z))g(z+δz)−g(z)g(z+δz)−g(z)δz=limδz→0f(g(z+δz)−g(z)δzδz+g(z))−f(g(z))g(z+δz)−g(z)δzδz⋅g(z+δz)−g(z)δz=f′((g(z))g′(z).\begin{gathered} (f(g))'(z)=\displaystyle\lim_{\delta z\to 0}\dfrac{f(g(z+\delta z))-f(g(z))}{\delta z}=\displaystyle\lim_{\delta z\to 0}\dfrac{f(g(z+\delta z))-f(g(z))}{g(z+\delta z)-g(z)}\dfrac{g(z+\delta z)-g(z)}{\delta z} \\ =\displaystyle\lim_{\delta z\to 0}\dfrac{f(\frac{g(z+\delta z)-g(z)}{\delta z} \delta z+g(z))-f(g(z))}{\frac{g(z+\delta z)-g(z)}{\delta z} \delta z} \cdot \dfrac{g(z+\delta z)-g(z)}{\delta z}\\ =f'((g(z)) g'(z). \end{gathered} ◻

Exercise 6. Prove the results in Theorem Theorem 5.

Theorem 7 (Derivatives of Elementary Complex Functions). Let n≥1n\ge 1 be an integer. Then (a)ddzzn=nzn−1,(a)\ \dfrac{d}{dz} z^n = n z^{n-1}, (b)ddzez=ez,(b)\ \dfrac{d}{dz} e^z = e^z, (c)ddzsinz=cosz,(c)\ \dfrac{d}{dz} \sin z = \cos z, (d)ddzcosz=−sinz.(d)\ \dfrac{d}{dz} \cos z = -\sin z .

Proof. We prove the first two results. (a) Using the binomial formula (z+δz)n=∑j=1nn!j!(n−j)!zj(δz)n−j(z+\delta z)^n=\sum_{j=1}^n \dfrac{n!}{j!(n-j)!}z^j(\delta z)^{n-j}, we see immediately that ddzzn=limδ→0(z+δz)n−znδz=limδz→0∑j=1n−1n!j!(n−j)!zj(δz)n−j−1.\dfrac{d}{dz} z^n = \displaystyle\lim_{\delta \to 0}\dfrac{(z+\delta z)^n-z^n}{\delta z}=\displaystyle\lim_{\delta z\to 0} \sum_{j=1}^{n-1} \dfrac{n!}{j!(n-j)!}z^j(\delta z)^{n-j-1}. The only term survives in the limit is the j=n−1j=n-1 term which gives nzn−1nz^{n-1}.
(b) We first prove that limδz→0eδz−1δz=1\displaystyle\lim_{\delta z\to 0} \dfrac{e^{\delta z}-1}{\delta z} =1. This follows from the following calculation: limδz→0eδz=limδz→0eδx+iδy=limδz→0eδxeiδy=limδx+iδy→0eδx(cosδy+isinδy)=1\displaystyle\lim_{\delta z\to 0} e^{\delta z} =\displaystyle\lim_{\delta z\to 0} e^{\delta x +i \delta y} =\displaystyle\lim_{\delta z\to 0} e^{\delta x} e^{i \delta y} = \displaystyle\lim_{\delta x+ i\delta y\to 0} e^{\delta x} (\cos \delta y + i\sin \delta y) =1. We now have limδz→0ez+δz−ezδz=limδz→0ezeδz−1δz=ez\displaystyle\lim_{\delta z\to 0}\dfrac{e^{z+\delta z}-e^z}{\delta z}=\displaystyle\lim_{\delta z\to 0}e^z \dfrac{e^{\delta z}-1}{\delta z} = e^z. ◻

Exercise 8. Prove (c) and (d) of Theorem Theorem 7.

Remark 9. The fact that when f(z)f(z) is continuous, f(z)¯\overline{f(z)} is also continuous could easily lead us to believe that when f(z)f(z) is differentiable, f(z)¯\overline{f(z)} is also differentiable. However, this is Not true. For instance, f(z)=zf(z)=z is differentiable. To see why, we observe that limδz→0z+δz¯−z‾δz=limδz→0δz¯δz=limδz→0e−i2θ\lim_{\delta z\to 0}\dfrac{\overline{z+\delta z}-\bar z}{\delta z} = \lim_{\delta z\to 0}\dfrac{\overline{\delta z}}{\delta z} = \lim_{\delta z\to 0} e^{-i2\theta} with θ\theta the argument of δz\delta z. If we take δz→0\delta z\to 0 along the positive xx-axis (θ=0\theta=0), we have that the limit is 11. If we take δz→0\delta z \to 0 along the positive yy-axis (θ=π/2\theta=\pi/2), we have that the limit is −1-1. Therefore, the taking limit from different paths yield different results. This means that the limit does not exist!

The Cauchy-Riemann equations

Complex functions that are differentiable have some special properties. For instance, if a function is differentiable at zz, it is continuous there ([the converse is NOT true]). We now look at some other property of differentiable complex functions.

One of the most important results about differentiability is following theorem.

Theorem 10 (Cauchy-Riemann Conditions). The complex function f(z)=u(x,y)+iv(x,y)f(z) = u(x,y)+iv(x,y) is differentiable at z=x+iyz=x+iy of a region if and only if the partial derivatives uxu_x, uyu_y, vxv_x and vyv_y are continuous and satisfy the following Cauchy-Riemann equations: ux=vy,vx=−uy.\label{EQ:CR} u_x = v_y, \ \ \ v_x = -u_y \,.

Proof. (i) If ff is differentiable at zz, then f′(z)=limδz→0f(z+δz)−f(z)δzf'(z)=\displaystyle\lim_{\delta z\to 0}\dfrac{f(z+\delta z)-f(z)}{\delta z}. Take δz=δx\delta z=\delta x, we have that f′(z)=limδx→0f(z+δx)−f(z)δx=limδx→0(u(x+δx,y)−u(y))+i(v(x+δx,y)−v(x,y))δx=ux(x,y)+ivx(x,y)\begin{gathered} f'(z)=\displaystyle\lim_{\delta x \to 0}\dfrac{f(z+\delta x)-f(z)}{\delta x} \\ =\lim_{\delta x\to 0}\dfrac{(u(x+\delta x, y)-u(y))+i(v(x+\delta x, y)-v(x,y))}{\delta x} = u_x(x,y) + i v_x(x,y) \end{gathered} Take δz=iδy\delta z=i\delta y, we have that f′(z)=limδy→0f(z+iδy)−f(z)iδy=limδy→0(u(x,y+δy)−u(y))+i(v(x,y+δy)−v(x,y))δy=−iuy(x,y)+vy(x,y)\begin{gathered} f'(z)=\displaystyle\lim_{\delta y \to 0}\dfrac{f(z+i \delta y)-f(z)}{i \delta y} \\ =\lim_{\delta y\to 0}\dfrac{(u(x, y+\delta y)-u(y))+i(v(x, y+\delta y)-v(x,y))}{\delta y} = -iu_y(x,y) + v_y(x,y) \end{gathered} The two ways of calculation should result in the same result. Therefore, we have [EQ:CR].

The reason why the partial derivatives have to be continuous is hard to prove right now. We postpone that part to a future lecture.

(ii) If the partial derivatives are continuous, then by Taylor’s Theorem, we know that u(x+δx,y+δy)=u(x,y)+uxδx+uyδy+p(x,y)(δx)2+(δy)2u(x+\delta x, y+ \delta y)=u(x, y)+ u_x \delta x+ u_y \delta y + p(x, y) \sqrt{(\delta x)^2+(\delta y)^2} with p→0p\to 0 when (δx,δy)→0(\delta x, \delta y)\to 0. Similarly, v(x+δx,y+δy)=v(x,y)+vxδx+vyδy+q(x,y)(δx)2+(δy)2v(x+\delta x, y+ \delta y)=v(x, y)+ v_x \delta x+ v_y \delta y + q(x, y) \sqrt{(\delta x)^2+(\delta y)^2} with q→0q\to 0 when (δx,δy)→0(\delta x, \delta y)\to 0. Therefore, after some algebraic calculations, we have f(z+δz)−f(z)δz=(uxδxδz+uyδyδz)+i(vxδxδz+vyδyδz)+(p+iq)|δz|δz.\dfrac{f(z+\delta z)-f(z)}{\delta z}=(u_x\dfrac{\delta x}{\delta z}+u_y\dfrac{\delta y}{\delta z})+i(v_x\dfrac{\delta x}{\delta z}+v_y\dfrac{\delta y}{\delta z})+(p+iq)\dfrac{|\delta z|}{\delta z}. If the Cauchy-Riemann equations are satisfied, then this simplifies to f(z+δz)−f(z)δz=(ux+ivx)δx+iδyδz+(p+iq)|δz|δz.\dfrac{f(z+\delta z)-f(z)}{\delta z}=(u_x+iv_x) \dfrac{\delta x+i\delta y}{\delta z}+(p+iq)\dfrac{|\delta z|}{\delta z}. The first term on the right is f′(z)f'(z) and the second term on the right vanishes when taking the limit δz→0\delta z\to 0. Therefore, f(z)f(z) is differentiable. ◻

Remark 11. An important observation from the proof of the above theorem is that f′(z)=∂f∂xandf′(z)=−i∂f∂yf'(z) = \dfrac{\partial f}{\partial x} \ \ \ \mbox{and}\ \ \ f'(z) = -i\dfrac{\partial f}{\partial y} The Cauchy-Riemann equation can therefore be written as ∂f∂x=−i∂f∂y.\dfrac{\partial f}{\partial x}= -i\dfrac{\partial f}{\partial y} .

Therefore, to check whether or not a complex function f(z):ℂ→ℂf(z): \mathbb C\to \mathbb C is analytic at a point, we need to check whether or not the Cauchy-Riemann equation is satisfied in a neighborhood of that point.

Example 12. The function f(z)=ezf(z)=e^z is analytic everywhere. To see that, we observe that f(z)=ex+iy=exeiy=excosy+iexsinyf(z)=e^{x+iy}=e^xe^{iy}=e^x\cos y + i e^x\sin y. Therefore u(x,y)=excosyu(x,y)=e^x \cos y and v(x,y)=exsinyv(x,y)=e^x\sin y. It is easy to verify that ux=excosy=vyu_x=e^x\cos y=v_y, and uy=−exsiny=−vxu_y=-e^x\sin y= -v_x hold everywhere on ℂ\mathbb C.

Example 13. The function f(z)=z2f(z)=z^2 is analytic everywhere. To see that, we observe that f(z)=z2=(x2−y2)+i2xyf(z)=z^2=(x^2-y^2)+i2xy. Therefore u(x,y)=x2−y2u(x,y)=x^2-y^2 and v(x,y)=2xyv(x,y)=2xy. It is easy to verify that ux=2x=vyu_x=2x=v_y, and uy=−2y=−vxu_y=-2 y= -v_x hold everywhere on ℂ\mathbb C.

Example 14. The function f(z)=|z|f(z)=|z| is nowhere analytic.

Proof. (By Contradiction) Let u(x,y)=x2+y2u(x,y)=\sqrt{x^2+y^2} and v(x,y)=0v(x,y)=0. Then f(z)=|z|=u(x,y)+iv(x,y)f(z)=|z|=u(x,y)+iv(x,y). We then have ux(x,y)=2xx2+y2,vy=0,uy(x,y)=2yx2+y2,−vx=0.u_x(x,y)=\dfrac{2x}{\sqrt{x^2+y^2}}, \quad v_y=0, \quad u_y(x,y)=\dfrac{2y}{\sqrt{x^2+y^2}}, \quad -v_x=0. Assume that ff is differentiable at some zz. Then the Cauchy-Riemann conditions require that ux=uy=0u_x=u_y=0. This means that 2xx2+y2=2yx2+y2=0\dfrac{2x}{\sqrt{x^2+y^2}}=\dfrac{2y}{\sqrt{x^2+y^2}}=0 which is impossible. Therefore ff is nowhere differentiable. ◻

Consequences of analyticity

Being analytic has huge consequences. Let us define nn-th (n≥2)(n\ge 2) order derivatives of f(z):ℂ→ℂf(z):\mathbb C\to \mathbb C as f(n)(z)≡limδz→0f(n−1)(z+δz)−f(n−1)(z)δzf^{(n)}(z) \equiv \displaystyle\lim_{\delta z\to 0}\dfrac{f^{(n-1)}(z+\delta z)-f^{(n-1)}(z)}{\delta z}. Then we can prove the following result, which we will do in a few lectures.

Theorem 15 (Analytic Functions Are Differentiable Infinitely Many Times). Let f(z)≡u(x,y)+iv(x,y)f(z)\equiv u(x,y)+iv(x,y) be analytic in region Ω\Omega. Then f(k)(z)f^{(k)}(z) exists in Ω\Omega for any k≥1k\ge 1. Moreover, u(x,y)u(x,y) and v(x,y)v(x,y) have continuous partial derivatives of any order.

The Laplace Equation.

By the theorem, we can taking partial derivatives of uu and vv of any order. Let’s differentiate the Cauchy-Riemann equations to obtain uxx=vyx,vxy=−uyyu_{xx}=v_{yx}, \ \ \ v_{xy} = -u_{yy} This immediately gives that Δu:=uxx+uyy=0.\Delta u := u_{xx}+u_{yy} =0. This equation for uu is called the Laplace equation.

In the same manner, we can show that vv satisfy the Laplace equation also: Δv:=vxx+vyy=0.\Delta v : = v_{xx}+v_{yy} =0. Therefore, if a function is analytic, then the real and imaginary parts of the function both satisfy the Laplace equation.

Notation 1. The Laplace operator Δ\Delta is sometimes denoted by ∇2\nabla^2.

Definition 16 (Harmonic Functions). A function f:ℝ2→ℝf:\mathbb R^2\to\mathbb R that satisfies the Laplace equation is called is a harmonic function. The real and imaginary parts of an analytic function is called the harmonic conjugate of each other.

It is clear that two functions that are harmonic conjugate of each other, that is the real and imaginary parts an analytical function, are not independent since they are tied together by the Cauchy-Riemann equations. Therefore it is possible to find one given the other. Here is an example.

Example 17. Let f(z)=u(x,y)+iv(x,y)f(z)=u(x,y)+iv(x,y) be an analytical function. Assume that u(x,y)=x(1−y)u(x,y)=x(1-y), find f(z)f(z).

To solve this problem, we note that . Therefore, by the Cauchy-Riemann equation, we have vy=ux=1−y,vx=−uy=x.v_y=u_x=1-y, \ \ \ v_x = -u_y = x. Therefore, we can integrate these equations to obtain v(x,y)=y−y2/2+p(x),v(x,y)=x2/2+q(y)v(x,y) = y-y^2/2+p(x), \ \ \ v(x,y) = x^2/2 + q(y) Therefore p(x)=x2/2+cp(x)=x^2/2+c and q(y)=y−y2/2+cq(y)=y-y^2/2+c with cc an arbitrary constant.

Therefore f(z)=x(1−y)+i(x2/2+y−y2/2+c)f(z) = x(1-y) + i(x^2/2+y-y^2/2+c).

Example 18. Let f(z)=u(x,y)+iv(x,y)f(z)=u(x,y)+iv(x,y) be an analytical function. Assume that v(x,y)=x−yv(x,y)=x-y, find f(z)f(z).

To solve this problem, we note that . Therefore, by the Cauchy-Riemann equation, we have ux=vy=−1,uy=−vx=−1.u_x=v_y=-1, \ \ \ u_y=-v_x= -1. Therefore, we can integrate these equations to obtain u(x,y)=−x+p(y),u(x,y)=−y+q(x)u(x,y) = -x+p(y), \ \ \ u(x,y) = -y + q(x) Therefore p(y)=−y+cp(y)=-y+c and q(x)=−x+cq(x)=-x+c with cc an arbitrary constant.

Therefore f(z)=(x−y)+i(−x−y+c)f(z) = (x-y) + i(-x-y+c).

Remark 19. Motivated by the fact that x=(z+z‾)/2x=(z+\bar z)/2, y=(z−z‾)/(2i)y=(z-\bar z)/(2i), which, if zz and z‾\bar z were independent variables, would give ∂x/∂z=1/2\partial x/\partial z=1/2 and ∂y/∂z=−i/2\partial y/\partial z=-i/2, it is convenient to introduce the notations: ∂f∂z≡12(∂f∂x−i∂f∂y),∂f∂z‾≡12(∂f∂x+i∂f∂y).\frac{\partial f}{\partial z} \equiv \frac12\left(\frac{\partial f}{\partial x}-i\frac{\partial f}{\partial y}\right), \qquad \frac{\partial f}{\partial \bar z} \equiv \frac12\left(\frac{\partial f}{\partial x}+i\frac{\partial f}{\partial y}\right). In terms of these notations, the Cauchy–Riemann equations are exactly equivalent to ∂f∂z‾=0,\frac{\partial f}{\partial \bar z}=0, which is also equivalent to ∂f∂z=∂f∂x.\frac{\partial f}{\partial z}=\frac{\partial f}{\partial x}.

Moreover, it is easy to verify that ∂∂z∂∂z‾=∂∂z‾∂∂z=14Δ.\label{EQ:Complex Derivative2} \frac{\partial}{\partial z}\frac{\partial}{\partial \bar z} =\frac{\partial}{\partial\bar z}\frac{\partial}{\partial z} =\frac14\Delta. This shows that any analytic function is harmonic (equivalently, its real and imaginary parts are harmonic). It also shows that the conjugate of an analytic function, while not analytic, is harmonic.

Exercise 20. Verify [EQ:Complex Derivative2].

Guided review and additional examples

Learning goals

  • Test a difference quotient along arbitrary complex directions.
  • Use the Cauchy–Riemann equations as a practical differentiability test.
  • Distinguish differentiability at one point from analyticity on a neighborhood.
  • Compute derivatives using complex analogues of familiar rules.

Concept connection: the derivative must ignore direction

The quotient [f(z+h)−f(z)]/h[f(z+h)-f(z)]/h must approach one value as the complex increment hh approaches zero from every direction. The Cauchy–Riemann equations express the compatibility forced by that requirement. They are necessary at a differentiability point; with continuous first partial derivatives in a neighborhood, they are also sufficient there.

Worked example 1: verify f(z)=z2f(z)=z^2

Write f=u+ivf=u+iv with u=x2−y2u=x^2-y^2 and v=2xyv=2xy. Then

ux=2x=vy,uy=−2y=−vx. u_x=2x=v_y,\qquad u_y=-2y=-v_x.

The equations hold everywhere, so ff is entire. Its derivative is

f′(z)=ux+ivx=2x+2iy=2z. f'(z)=u_x+i v_x=2x+2iy=2z.

Worked example 2: f(z)=|z|2f(z)=|z|^2 at the origin

Here u=x2+y2u=x^2+y^2 and v=0v=0. The Cauchy–Riemann equations hold only at (0,0)(0,0). Directly,

f(h)−f(0)h=|h|2h=h¯→0. \frac{f(h)-f(0)}{h}=\frac{|h|^2}{h}=\overline h\longrightarrow0.

So ff is complex differentiable at 00 with f′(0)=0f'(0)=0, but it is not analytic at 00 because it is not differentiable throughout any neighborhood of 00.

Check your understanding

Why does checking only horizontal and vertical approaches to a difference quotient not by itself prove differentiability?

Show the answer

Those checks examine only two of infinitely many directions and paths. Agreement is necessary, but a different slanted or curved approach may still produce another limit. A complete proof needs a direction-independent estimate or an applicable theorem such as the Cauchy–Riemann sufficiency result.