Complex Variables & Transforms · Unit 1 · Topic 02

Milne-Thomson's method: from u to f(z) in four lines.

Short answer

A function is harmonic if \(u_{xx} + u_{yy} = 0\). The real and imaginary parts of an analytic function are harmonic.

Milne-Thomson's method: given \(u\), \[f'(z) = u_x(z, 0) - i\,u_y(z, 0),\] then integrate. Example: \(u = x^2 - y^2\) gives \(f'(z) = 2z\), so \(f(z) = z^2 + ic\).

Engineering MathsSemester III/IVBSc
01

Harmonic functions and conjugates

Before you start: you need the Cauchy–Riemann equations.

Definitions

A real function \(\phi(x, y)\) with continuous second partial derivatives is harmonic if it satisfies Laplace's equation \[\phi_{xx} + \phi_{yy} = 0.\]

If \(f = u + iv\) is analytic, then \(u\) and \(v\) are both harmonic. Such a \(v\) is called a harmonic conjugate of \(u\).

Why are they harmonic? Differentiate the C-R equations. From \(u_x = v_y\) we get \(u_{xx} = v_{yx}\), and from \(u_y = -v_x\) we get \(u_{yy} = -v_{xy}\). The mixed partials are equal, so adding gives \(u_{xx} + u_{yy} = 0\). The same trick works for \(v\).

This gives you a quick filter. If \(u\) is not harmonic, no analytic function has \(u\) as its real part, and you can stop. If it is harmonic, its conjugate is unique up to an added constant.

Two facts that trip students up: if \(v\) is a harmonic conjugate of \(u\), then a harmonic conjugate of \(v\) is \(-u\), not \(u\). And \(u\) and \(v\) are the real and imaginary parts of the same analytic function, so the curves \(u = \text{const}\) and \(v = \text{const}\) cut each other at right angles wherever \(f'(z) \ne 0\). Engineers use this: in 2D fluid flow they are the equipotential lines and streamlines.

02

Milne-Thomson's method

You can find \(v\) from \(u\) by integrating the C-R equations (Example 2). Milne-Thomson's method skips \(v\) and gives \(f(z)\) directly.

When u is given

\[f'(z) = u_x(z, 0) - i\,u_y(z, 0)\]

Integrate with respect to \(z\): \(f(z) = \int f'(z)\,dz + ic\), with \(c\) real.

When v is given

\[f'(z) = v_y(z, 0) + i\,v_x(z, 0)\]

Integrate: \(f(z) = \int f'(z)\,dz + c\), with \(c\) real.

When \(u - v\) or \(u + v\) is given

Let \(F = (1 + i)f = (u - v) + i(u + v)\). Then \(u - v\) is the real part of \(F\) and \(u + v\) is its imaginary part. Find \(F\) by the rules above, then \(f = \dfrac{F}{1 + i}\).

Why it works

From the C-R equations, \(f'(z) = u_x + i\,v_x = u_x - i\,u_y\). This is an analytic function, and it agrees with \(u_x(z, 0) - i\,u_y(z, 0)\) at every real \(z\). Two analytic functions that agree along a line segment agree throughout any connected region where both are analytic, so the formula holds there for all \(z\).

  1. Find \(u_x\) and \(u_y\) (or \(v_x\), \(v_y\)).
  2. Put \(x = z\), \(y = 0\) in each.
  3. Form \(f'(z)\) with the right signs.
  4. Integrate with respect to \(z\) and add the constant.
03

Solved examples

Example 1: Is it harmonic?

Easy

Check whether (a) \(u = x^3 - 3xy^2 + 3x^2 - 3y^2\) and (b) \(u = x^2 + y^2\) are harmonic.

  1. (a) \(u_{xx} = 6x + 6\) and \(u_{yy} = -6x - 6\). The sum is 0.
  2. (b) \(u_{xx} + u_{yy} = 2 + 2 = 4 \ne 0\).

Answer(a) is harmonic; (b) is not, so \(x^2 + y^2\) cannot be the real part of an analytic function

Example 2: Conjugate by integration

Easy

Find a harmonic conjugate of \(u = 2x - x^3 + 3xy^2\) and the analytic function \(f = u + iv\).

  1. \(u_x = 2 - 3x^2 + 3y^2\) and \(u_y = 6xy\).
  2. \(v_y = u_x\), so integrate in \(y\): \(v = 2y - 3x^2y + y^3 + g(x)\).
  3. \(v_x = -6xy + g'(x)\) must equal \(-u_y = -6xy\). So \(g'(x) = 0\) and \(g\) is a constant.
  4. Compare with \(z^3 = (x^3 - 3xy^2) + i(3x^2y - y^3)\): \(u + iv = 2z - z^3\).

Answer\(v = 2y - 3x^2y + y^3 + c\) and \(f(z) = 2z - z^3 + ic\)

Example 3: Milne-Thomson from u

Medium

Find the analytic function whose real part is \(u = e^x(x\cos y - y\sin y)\).

  1. \(u_x = e^x(x\cos y - y\sin y) + e^x\cos y\).
  2. \(u_y = e^x(-x\sin y - \sin y - y\cos y)\).
  3. Put \(x = z\), \(y = 0\): \(u_x(z, 0) = ze^z + e^z\) and \(u_y(z, 0) = 0\).
  4. So \(f'(z) = (z + 1)e^z\). Integrating, \(\int (z + 1)e^z\,dz = ze^z\).

Answer\(f(z) = ze^z + ic\)

Example 4: Milne-Thomson from v

Medium

Find the analytic function \(f(z)\) whose imaginary part is \(v = -\dfrac{y}{x^2 + y^2}\).

  1. \(v_y = \dfrac{y^2 - x^2}{(x^2 + y^2)^2}\) and \(v_x = \dfrac{2xy}{(x^2 + y^2)^2}\).
  2. Put \(x = z\), \(y = 0\): \(v_y(z, 0) = -\dfrac{1}{z^2}\) and \(v_x(z, 0) = 0\).
  3. \(f'(z) = v_y + i\,v_x = -\dfrac{1}{z^2}\), so \(f(z) = \dfrac{1}{z} + c\).

Answer\(f(z) = \dfrac{1}{z} + c\), with \(c\) real

Example 5: The logarithm

Medium

Show that \(u = \tfrac{1}{2}\log(x^2 + y^2)\) is harmonic and find its harmonic conjugate.

  1. \(u_x = \dfrac{x}{x^2 + y^2}\) and \(u_{xx} = \dfrac{y^2 - x^2}{(x^2 + y^2)^2}\). By symmetry \(u_{yy} = \dfrac{x^2 - y^2}{(x^2 + y^2)^2}\). The sum is 0.
  2. \(u_x(z, 0) = \dfrac{1}{z}\) and \(u_y(z, 0) = 0\), so \(f'(z) = \dfrac{1}{z}\).
  3. \(f(z) = \log z + ic = \log r + i\theta + ic\).

AnswerHarmonic for \((x, y) \ne (0, 0)\); \(v = \theta = \tan^{-1}\dfrac{y}{x}\) (for \(x > 0\)) plus a constant, and \(f = \log z\)

Example 6: Given u + v

Medium

Find the analytic function \(f = u + iv\) if \(u + v = e^x(\cos y + \sin y)\).

  1. Let \(F = (1 + i)f\). Its imaginary part is \(V = u + v\).
  2. \(V_y = e^x(\cos y - \sin y)\) and \(V_x = e^x(\cos y + \sin y)\). At \((z, 0)\) both equal \(e^z\).
  3. \(F'(z) = V_y + i\,V_x = (1 + i)e^z\), so \(F = (1 + i)e^z + c_1\).
  4. Divide by \(1 + i\).

Answer\(f(z) = e^z + c\)

Example 7: Given u - v

Exam level

Find the analytic function \(f = u + iv\) if \(u - v = (x - y)(x^2 + 4xy + y^2)\).

  1. Let \(F = (1 + i)f\). Its real part is \(U = u - v = x^3 + 3x^2y - 3xy^2 - y^3\).
  2. \(U_x = 3x^2 + 6xy - 3y^2\) and \(U_y = 3x^2 - 6xy - 3y^2\). At \((z, 0)\): \(U_x = 3z^2\), \(U_y = 3z^2\).
  3. \(F'(z) = U_x - i\,U_y = 3(1 - i)z^2\), so \(F = (1 - i)z^3 + c_1\).
  4. \(f = \dfrac{F}{1 + i}\), and \(\dfrac{1 - i}{1 + i} = \dfrac{(1 - i)^2}{2} = -i\).
  5. Check: \(-iz^3\) has \(u = 3x^2y - y^3\), \(v = 3xy^2 - x^3\), and \(u - v\) matches. ✓

Answer\(f(z) = -iz^3 + c\)

Example 8: A trigonometric real part

Exam level

Find the analytic function whose real part is \(u = \dfrac{\sin 2x}{\cosh 2y - \cos 2x}\).

  1. \(u_x(z, 0)\) is the derivative of \(u(x, 0)\) with \(x\) replaced by \(z\). On \(y = 0\): \[u(x, 0) = \frac{\sin 2x}{1 - \cos 2x} = \frac{2\sin x\cos x}{2\sin^2 x} = \cot x.\]
  2. So \(u_x(z, 0) = -\operatorname{cosec}^2 z\).
  3. \(u\) is even in \(y\) (only \(\cosh 2y\) appears), so \(u_y(x, 0) = 0\).
  4. \(f'(z) = -\operatorname{cosec}^2 z\), and integrating gives \(\cot z\).

Answer\(f(z) = \cot z + ic\)

Vipul Sir's tip

Example 8 used a shortcut worth remembering: \(u_x(z, 0)\) is just \(\dfrac{d}{dx}u(x, 0)\) with \(x\) renamed \(z\). Put \(y = 0\) first, simplify, then differentiate. For messy fractions this saves a page of quotient rule. You cannot do the same for \(u_y\), because that derivative is taken across the line \(y = 0\).

04

Common mistakes

1. Getting the sign wrong in \(f'(z)\)

When \(u\) is given, \(f'(z) = u_x - i\,u_y\). When \(v\) is given, \(f'(z) = v_y + i\,v_x\). For \(u = y^3 - 3x^2y\), the right sign gives \(f' = 3iz^2\) and \(f = iz^3\). With the sign flipped you get \(-iz^3\), whose real part is \(-u\).

2. Putting \(y = 0\) in \(u\) itself and calling it \(f\)

For \(u = x^2 - y^2 - y\), setting \(y = 0\) gives \(z^2\). But the correct function is \(f = z^2 + iz\), since \(\operatorname{Re}(iz) = -y\). The substitution belongs in the derivatives \(u_x\) and \(u_y\), not in \(u\).

3. Forgetting to divide by \(1 + i\)

In the \(u - v\) and \(u + v\) problems you find \(F = (1 + i)f\). In Example 7, stopping at \((1 - i)z^3\) is wrong; the answer is \(-iz^3\).

05

Practice questions

Try each one on paper before you open the answer.

Q1Show that \(u = x^2 - y^2 + 5x + y\) is harmonic and find \(f(z)\).

\(u_{xx} + u_{yy} = 2 - 2 = 0\). \(u_x(z, 0) = 2z + 5\) and \(u_y(z, 0) = 1\).

\(f'(z) = 2z + 5 - i\), so \(f(z) = z^2 + (5 - i)z + ic\).

Q2Find a harmonic conjugate of \(u = e^x\cos y\).

\(f'(z) = u_x(z, 0) - i\,u_y(z, 0) = e^z\), so \(f = e^z\) and \(v = e^x\sin y + c\).

Q3Find a harmonic conjugate of \(u = y^3 - 3x^2y\).

\(u_x(z, 0) = 0\), \(u_y(z, 0) = -3z^2\), so \(f'(z) = 3iz^2\) and \(f = iz^3 + ic\).

Then \(v = \operatorname{Im}(iz^3) = x^3 - 3xy^2 + c\).

Q4Find \(f(z)\) if \(v = e^{-x}(x\sin y - y\cos y)\).

\(v_y(z, 0) = e^{-z}(z - 1)\) and \(v_x(z, 0) = 0\).

\(f'(z) = (z - 1)e^{-z}\). Integrating by parts, \(f(z) = -ze^{-z} + c\).

Q5Find \(f(z)\) if \(u + v = x^2 - y^2 + 2xy\).

\(F = (1 + i)f\) has imaginary part \(V = x^2 - y^2 + 2xy\). \(V_y(z, 0) = 2z\), \(V_x(z, 0) = 2z\).

\(F' = 2(1 + i)z\), so \(F = (1 + i)z^2 + c_1\) and \(f(z) = z^2 + c\).

Q6Can \(u = x^3 + y^3\) be the real part of an analytic function?

\(u_{xx} + u_{yy} = 6x + 6y\), which is not identically 0. So \(u\) is not harmonic, and the answer is no.

Stuck on a question?

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

06

Frequently asked questions

What is a harmonic function?

A function \(\phi(x, y)\) that satisfies Laplace's equation \(\phi_{xx} + \phi_{yy} = 0\). The real and imaginary parts of any analytic function are harmonic.

What is a harmonic conjugate?

If \(u\) is harmonic, a harmonic conjugate is a function \(v\) such that \(u + iv\) is analytic. It is unique up to an added constant. Be careful with the order: the conjugate of \(v\) is \(-u\).

What is Milne-Thomson's method?

A shortcut to find an analytic \(f(z)\) from its real or imaginary part. Put \(x = z\), \(y = 0\) in the partial derivatives to get \(f'(z) = u_x(z, 0) - i\,u_y(z, 0)\), then integrate with respect to \(z\).

How do I find f(z) when u - v or u + v is given?

Work with \(F = (1 + i)f\), whose real part is \(u - v\) and imaginary part is \(u + v\). Find \(F\) by Milne-Thomson's method, then divide by \(1 + i\).

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↗