Skip to content
Tutorials Center
My learning

Topics

Lesson 12 of 36 · Analytic Functions

The Complex Derivative

Define the derivative of a complex function as a limit in the plane, see why it is so restrictive, and apply the familiar differentiation rules with worked examples.

The derivative of a complex function looks exactly like the one from real calculus:

Text
f'(z₀) = lim (h → 0) [ f(z₀ + h) - f(z₀) ] / h

The only change is that h is now a complex number, so h → 0 means h approaches zero from any direction in the plane. The limit must exist and be the same along all of those paths. If it does, f is complex differentiable at z₀. This is far more demanding than real differentiability, and it is the reason complex analysis is so rich.

A first example

Take f(z) = z². Then

Text
[ (z + h)² - z² ] / h = (2zh + h²) / h = 2z + h  →  2z

as h → 0, no matter how h approaches zero. So f'(z) = 2z, the same rule as in real calculus.

A function that fails

Take f(z) = z̄. Then

Text
[ conj(z + h) - conj(z) ] / h = conj(h) / h

If h is real, h̄/h = 1. If h is purely imaginary, h̄/h = -1. The quotient takes different values along different paths, so the limit does not exist, and z̄ is not differentiable at any point. Yet z̄ is a perfectly smooth function of (x, y): it is the reflection (x, y) → (x, -y). Complex differentiability asks for more than smoothness.

The geometric meaning: a differentiable f acts near z₀ like multiplication by the complex number f'(z₀), which is a rotation combined with a scaling. Reflection cannot be written as a multiplication by a complex number, so z̄ is excluded.

Python Difference quotients in many directions

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.

In the first row every direction gives about 2 + 2i. In the other two rows the values depend on the direction, so no derivative exists at this point.

Differentiation rules

The usual rules hold, with the same proofs as in real calculus, because only algebra of limits is used. If f and g are differentiable at z:

Rule Formula
Constant d/dz (c) = 0
Power d/dz (zⁿ) = n zⁿ⁻¹ for integer n
Sum (f + g)' = f' + g'
Product (fg)' = f'g + fg'
Quotient (f/g)' = (f'g - fg')/g², where g ≠ 0
Chain (f(g(z)))' = f'(g(z)) g'(z)

Consequences: every polynomial is differentiable everywhere (it is entire), and every rational function is differentiable wherever its denominator is nonzero.

Worked example: differentiate f(z) = (z² + 1)/(z - i). Quotient rule: f' = [2z(z - i) - (z² + 1)] / (z - i)² = (z² - 2iz - 1)/(z - i)². Note z² - 2iz - 1 = (z - i)², so f' = 1 wherever z ≠ i. Indeed z² + 1 = (z - i)(z + i), so f(z) = z + i away from i, and its derivative is 1.

When a quotient looks messy, try factoring first. Cancelling a common factor often turns the problem into a derivative of a polynomial.

Differentiability implies continuity

If f'(z₀) exists then f(z₀ + h) - f(z₀) = h · [difference quotient] → 0 · f'(z₀) = 0, so f is continuous at z₀. The converse is false: z̄ and abs(z) are continuous everywhere but nowhere differentiable (for abs(z), even z₀ = 0 fails: the quotient is abs(h)/h, which has modulus 1 and no limit).

Checking derivatives with a symbolic tool

SymPy can differentiate expressions of z directly, which is handy for checking homework. Let us verify the rule for the quotient above and the chain rule for f(z) = (z² + 3i)⁵.

Python Symbolic derivatives

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.

Treating z as an ordinary symbol works because the differentiation rules are identical to the real case.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the derivative of f(z) = z³ + 2iz?

    Power rule on z³ gives 3z²; the constant multiple 2i of z gives 2i.
  2. 2. Why is f(z) = conj(z) nowhere complex differentiable?

    The limit of the difference quotient depends on the direction of approach, so it does not exist.
  3. 3. Which statement is true?

    Differentiability gives continuity, but abs(z) and conj(z) show the converse fails.
  4. 4. Where is a rational function p(z)/q(z) differentiable?

    The quotient rule applies wherever the denominator is nonzero.

Summary

  • f'(z₀) = lim (h → 0) [f(z₀ + h) - f(z₀)]/h with h complex; the limit must not depend on direction.
  • Sum, product, quotient, power and chain rules are the same as in real calculus.
  • Polynomials are differentiable everywhere; conj(z) and abs(z) are nowhere differentiable.
  • Complex differentiability means "locally a rotation and a scaling".

Next: The Cauchy-Riemann Equations