Complex Variables & Transforms · Unit 1 · Topic 01

Cauchy–Riemann equations: the test every analytic function passes.

Short answer

A function \(f(z) = u + iv\) is analytic in a region when it has a derivative at every point there. It must satisfy the Cauchy–Riemann equations

\[u_x = v_y, \qquad u_y = -v_x,\]

and then \(f'(z) = u_x + i\,v_x\). For \(z^2\): \(u = x^2 - y^2\), \(v = 2xy\), both equations hold, and \(f'(z) = 2z\).

Engineering MathsSemester III/IVBSc
01

What makes a complex function analytic

Before you start: you need complex numbers in the form \(x + iy\) and partial differentiation.

A complex function \(w = f(z)\) takes \(z = x + iy\) and returns \(w = u + iv\), where \(u(x, y)\) and \(v(x, y)\) are ordinary real functions of two variables. For example,

\[z^2 = (x + iy)^2 = (x^2 - y^2) + i(2xy),\]

so \(u = x^2 - y^2\) and \(v = 2xy\).

The derivative is defined exactly as in calculus:

\[f'(z) = \lim_{h \to 0}\frac{f(z + h) - f(z)}{h}.\]

The catch is that \(h\) is now a complex number. It can shrink to 0 along the real axis, along the imaginary axis, along a spiral, from any direction in the plane. The limit has to come out the same every time. That is a far stronger demand than in real calculus, and it is the reason many innocent-looking functions, such as \(\overline{z}\), have no derivative at all.

Definitions

\(f\) is analytic at \(z_0\) if it is differentiable at every point of some disc around \(z_0\).

\(f\) is analytic in a region if it is analytic at every point of the region. A function analytic in the whole plane is called entire: polynomials, \(e^z\), \(\sin z\) and \(\cos z\) are entire.

Notice the word disc. Being differentiable at one lonely point is not enough to be analytic there. You will see why that matters in Example 4.

02

The Cauchy–Riemann equations

Cartesian form

If \(f = u + iv\) is differentiable at a point, then at that point \[u_x = v_y, \qquad u_y = -v_x\]

and \(f'(z) = u_x + i\,v_x = v_y - i\,u_y\).

Polar form

With \(z = re^{i\theta}\) and \(u, v\) written in terms of \(r\) and \(\theta\): \[u_r = \frac{1}{r}\,v_\theta, \qquad v_r = -\frac{1}{r}\,u_\theta\]

and \(f'(z) = e^{-i\theta}\,(u_r + i\,v_r)\).

Where they come from

Let \(h\) shrink to 0 along the real axis. Then \(h\) is real and the difference quotient becomes a partial derivative in \(x\):

\[f'(z) = u_x + i\,v_x.\]

Now let \(h = ik\) shrink along the imaginary axis. The quotient becomes a partial derivative in \(y\), divided by \(i\):

\[f'(z) = \frac{u_y + i\,v_y}{i} = v_y - i\,u_y.\]

Both answers are the same number, so the real parts agree (\(u_x = v_y\)) and the imaginary parts agree (\(v_x = -u_y\)). That is all the Cauchy–Riemann (C-R) equations say.

When are they enough?

The C-R equations are necessary: a differentiable function must satisfy them. On their own they are not sufficient. The working test is this: if \(u_x, u_y, v_x, v_y\) are continuous in a region and satisfy the C-R equations at every point of it, then \(f\) is analytic in that region.

03

How to test a function

  1. Split \(f\) into \(u + iv\). Use polar form if the function involves \(\log z\), powers \(z^n\) or the modulus and argument.
  2. Find the four first partial derivatives.
  3. Check both C-R equations. If they hold everywhere in a region (with continuous partials), \(f\) is analytic there. If they hold only at isolated points or along a curve, \(f\) is differentiable only there and analytic nowhere.
  4. Find \(f'(z) = u_x + i\,v_x\) and rewrite it in terms of \(z\).
\(f(z)\)\(u\)\(v\)Analytic?
\(z^2\)\(x^2 - y^2\)\(2xy\)everywhere, \(f' = 2z\)
\(e^z\)\(e^x\cos y\)\(e^x\sin y\)everywhere, \(f' = e^z\)
\(\sin z\)\(\sin x\cosh y\)\(\cos x\sinh y\)everywhere, \(f' = \cos z\)
\(\log z\)\(\log r\)\(\theta\)\(z \ne 0\), \(-\pi < \theta < \pi\); \(f' = 1/z\)
\(\overline{z}\)\(x\)\(-y\)nowhere
\(|z|^2\)\(x^2 + y^2\)\(0\)nowhere (differentiable only at 0)
04

Solved examples

Example 1: The square function

Easy

Show that \(f(z) = z^2\) is analytic everywhere and find \(f'(z)\).

  1. \(u = x^2 - y^2\), \(v = 2xy\).
  2. \(u_x = 2x\), \(v_y = 2x\), so \(u_x = v_y\).
  3. \(u_y = -2y\), \(v_x = 2y\), so \(u_y = -v_x\).
  4. The partials are polynomials, so they are continuous everywhere. Hence \(f\) is entire.
  5. \[f'(z) = u_x + i\,v_x = 2x + 2iy = 2(x + iy).\]

AnswerAnalytic everywhere, \(f'(z) = 2z\)

Example 2: The exponential

Easy

Show that \(f(z) = e^z\) is analytic and that \(f'(z) = e^z\).

  1. \(e^z = e^x e^{iy} = e^x\cos y + i\,e^x\sin y\), so \(u = e^x\cos y\) and \(v = e^x\sin y\).
  2. \(u_x = e^x\cos y = v_y\).
  3. \(u_y = -e^x\sin y\) and \(v_x = e^x\sin y\), so \(u_y = -v_x\).
  4. \[f'(z) = u_x + i\,v_x = e^x\cos y + i\,e^x\sin y = e^z.\]

AnswerEntire, and \(\dfrac{d}{dz}e^z = e^z\)

Example 3: The conjugate

Easy

Is \(f(z) = \overline{z}\) analytic?

  1. \(\overline{z} = x - iy\), so \(u = x\), \(v = -y\).
  2. \(u_x = 1\) but \(v_y = -1\). The first equation fails at every point.

Answer\(\overline{z}\) is differentiable nowhere, so it is analytic nowhere

Example 4: Differentiable at one point only

Medium

Show that \(f(z) = |z|^2\) is differentiable at \(z = 0\) but analytic nowhere.

  1. \(u = x^2 + y^2\), \(v = 0\).
  2. \(u_x = 2x\), \(v_y = 0\): the first equation needs \(x = 0\).
  3. \(u_y = 2y\), \(-v_x = 0\): the second needs \(y = 0\).
  4. So the C-R equations hold only at \(z = 0\). There, directly: \(\dfrac{f(h) - f(0)}{h} = \dfrac{|h|^2}{h} = \overline{h} \to 0\), so \(f'(0) = 0\).
  5. There is no disc around 0 (or around any other point) where \(f\) is differentiable at every point.

AnswerDifferentiable only at \(z = 0\), with \(f'(0) = 0\); analytic nowhere

Example 5: Powers in polar form

Medium

Use the polar C-R equations to show that \(f(z) = z^n\) is analytic and \(f'(z) = nz^{n-1}\).

  1. \(z^n = r^n e^{in\theta}\), so \(u = r^n\cos n\theta\), \(v = r^n\sin n\theta\).
  2. \(u_r = nr^{n-1}\cos n\theta\) and \(\dfrac{1}{r}v_\theta = \dfrac{1}{r}\cdot nr^n\cos n\theta = nr^{n-1}\cos n\theta\). Equal.
  3. \(v_r = nr^{n-1}\sin n\theta\) and \(-\dfrac{1}{r}u_\theta = \dfrac{1}{r}\cdot nr^n\sin n\theta\). Equal.
  4. \[f'(z) = e^{-i\theta}\,nr^{n-1}(\cos n\theta + i\sin n\theta) = nr^{n-1}e^{i(n-1)\theta}.\]

Answer\(f'(z) = nz^{n-1}\)

Example 6: The logarithm

Medium

Show that \(\log z\) is analytic for \(z \ne 0\), \(-\pi < \theta < \pi\), with derivative \(\dfrac{1}{z}\).

  1. \(\log z = \log r + i\theta\), so \(u = \log r\), \(v = \theta\).
  2. \(u_r = \dfrac{1}{r}\) and \(\dfrac{1}{r}v_\theta = \dfrac{1}{r}\). Equal.
  3. \(v_r = 0\) and \(-\dfrac{1}{r}u_\theta = 0\). Equal.
  4. \(f'(z) = e^{-i\theta}\cdot\dfrac{1}{r} = \dfrac{1}{re^{i\theta}}\).

Answer\(\dfrac{d}{dz}\log z = \dfrac{1}{z}\)

Example 7: Finding constants

Exam level

Find \(a, b, c, d\) so that \[f(z) = x^2 + 2axy + by^2 + i(cx^2 + 2dxy + y^2)\] is analytic. Then write \(f\) in terms of \(z\).

  1. \(u = x^2 + 2axy + by^2\), \(v = cx^2 + 2dxy + y^2\).
  2. \(u_x = 2x + 2ay\) and \(v_y = 2dx + 2y\). For these to match for all \(x, y\): \(d = 1\), \(a = 1\).
  3. \(u_y = 2ax + 2by\) and \(-v_x = -2cx - 2dy\). Matching: \(a = -c\), \(b = -d\). So \(c = -1\), \(b = -1\).
  4. Now \[f = x^2 + 2xy - y^2 + i(-x^2 + 2xy + y^2).\] Group it: \[f = (x^2 - y^2 + 2ixy) - i(x^2 - y^2 + 2ixy) = (1 - i)z^2.\]

Answer\(a = 1\), \(b = -1\), \(c = -1\), \(d = 1\); \(f(z) = (1 - i)z^2\) and \(f'(z) = 2(1 - i)z\)

Example 8: The sine function

Exam level

Given \(\sin z = \sin x\cosh y + i\cos x\sinh y\), show that \(\sin z\) is entire and find its derivative.

  1. \(u = \sin x\cosh y\), \(v = \cos x\sinh y\).
  2. \(u_x = \cos x\cosh y\) and \(v_y = \cos x\cosh y\). Equal.
  3. \(u_y = \sin x\sinh y\) and \(v_x = -\sin x\sinh y\), so \(u_y = -v_x\).
  4. All four partials are continuous everywhere, so \(\sin z\) is entire.
  5. \[f'(z) = u_x + i\,v_x = \cos x\cosh y - i\sin x\sinh y.\] This is the expansion of \(\cos z\).

Answer\(\dfrac{d}{dz}\sin z = \cos z\)

Vipul Sir's tip

Turning \(u_x + i\,v_x\) back into \(z\) can get messy. Since \(f'(z)\) is itself analytic, you can simply put \(x = z\) and \(y = 0\) in \(u_x + i\,v_x\). In Example 8 that gives \(\cos z\cdot 1 - i\sin z\cdot 0 = \cos z\) in one line. This is the idea behind Milne-Thomson's method in the next lesson.

05

Common mistakes

1. Calling a function analytic because C-R holds at one point

For \(|z|^2\) the equations hold at \(z = 0\) only. That makes it differentiable at 0, but analytic means differentiable in a whole disc. \(|z|^2\) is analytic nowhere.

2. Dropping the minus sign

The second equation is \(u_y = -v_x\), not \(u_y = v_x\). For \(z^2\): \(u_y = -2y\), \(v_x = 2y\). With the sign missing you would wrongly conclude that \(z^2\) fails the test.

3. Writing \(f'(z) = u_x + i\,u_y\)

The derivative is \(u_x + i\,v_x\). For \(z^2\), the wrong formula gives \(2x - 2iy = 2\overline{z}\) instead of \(2z\).

06

Practice questions

Try each one on paper before you open the answer.

Q1Show that \(f(z) = z^3\) is analytic and find \(f'(z)\).

\(u = x^3 - 3xy^2\), \(v = 3x^2y - y^3\). \(u_x = 3x^2 - 3y^2 = v_y\) and \(u_y = -6xy = -v_x\).

\(f'(z) = (3x^2 - 3y^2) + i(6xy) = 3z^2\).

Q2Where is \(f(z) = x^2 + iy^2\) differentiable? Is it analytic anywhere?

\(u_x = 2x\), \(v_y = 2y\): need \(y = x\). \(u_y = 0 = -v_x\) always.

Differentiable only on the line \(y = x\). A line contains no disc, so \(f\) is analytic nowhere.

Q3Given \(\cos z = \cos x\cosh y - i\sin x\sinh y\), show that \(\dfrac{d}{dz}\cos z = -\sin z\).

\(u_x = -\sin x\cosh y = v_y\), and \(u_y = \cos x\sinh y = -v_x\).

\[f' = u_x + i\,v_x = -\sin x\cosh y - i\cos x\sinh y = -\sin z.\]

Q4Find \(p\) so that \(f = r^2\cos 2\theta + i\,r^2\sin p\theta\) is analytic.

\(u_r = 2r\cos 2\theta\) must equal \(\dfrac{1}{r}v_\theta = pr\cos p\theta\) for all \(\theta\), so \(p = 2\).

Then \(v_r = 2r\sin 2\theta = -\dfrac{1}{r}u_\theta\). ✓ The function is \(z^2\).

Q5Using polar form, show that \(f(z) = \dfrac{1}{z}\) is analytic for \(z \ne 0\) and find \(f'(z)\).

\(\dfrac{1}{z} = \dfrac{1}{r}e^{-i\theta}\): \(u = \dfrac{\cos\theta}{r}\), \(v = -\dfrac{\sin\theta}{r}\).

\(u_r = -\dfrac{\cos\theta}{r^2} = \dfrac{1}{r}v_\theta\) and \(v_r = \dfrac{\sin\theta}{r^2} = -\dfrac{1}{r}u_\theta\).

\[f'(z) = e^{-i\theta}\,\frac{-\cos\theta + i\sin\theta}{r^2} = -\frac{e^{-2i\theta}}{r^2} = -\frac{1}{z^2}\]

Q6Is \(f(z) = \operatorname{Re} z\) analytic?

\(u = x\), \(v = 0\). \(u_x = 1\) but \(v_y = 0\), so the first equation fails everywhere. Not analytic anywhere.

Stuck on a question?

Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.

07

Frequently asked questions

What is an analytic function?

A complex function that has a derivative at every point of some disc around each point of its domain. Polynomials, \(e^z\), \(\sin z\) and \(\cos z\) are analytic everywhere; \(\overline{z}\) and \(|z|^2\) are analytic nowhere.

What are the Cauchy-Riemann equations?

For \(f = u + iv\): \(u_x = v_y\) and \(u_y = -v_x\). In polar form: \(u_r = \tfrac{1}{r}v_\theta\) and \(v_r = -\tfrac{1}{r}u_\theta\). Every differentiable complex function satisfies them.

Do the Cauchy-Riemann equations alone prove a function is analytic?

No. You also need the partial derivatives to be continuous. The standard counterexample is \(f = \sqrt{|xy|}\): at the origin all four partials are 0, so C-R holds, yet the difference quotient along \(y = x\) tends to \(\tfrac{1}{1 + i}\) from one side and \(-\tfrac{1}{1 + i}\) from the other.

How do I find f'(z) once I know f is analytic?

Use \(f'(z) = u_x + i\,v_x\), or in polar form \(f'(z) = e^{-i\theta}(u_r + i\,v_r)\). Then rewrite the answer in \(z\); putting \(x = z\), \(y = 0\) is the quickest way.

Related lessons

← All 12 Complex Variables & Transforms topics
Vipul Sir
Written by Vipul Sir

Vipul Sir has taught mathematics for over 15 years to HSC, CBSE, ICSE, IGCSE/IB, Diploma, Engineering and BSc students at VVS Classes in Goregaon and Vile Parle, Mumbai. He teaches every class himself, concepts first and exam technique second.

Complex Variables and Transforms

Get Complex Variables & Transforms right, with Vipul Sir beside you.

Concept-first classes in small batches in Goregaon and Vile Parle, or online. Your first class is free.

WhatsApp↗