The math optional, made finite. Daily Practice

Harmonic functions and harmonic conjugate

At a Glance

Why This Chapter Matters

Harmonic conjugates appear in 7 of the last 13 years — always in Section A — making this the most reliable Complex Analysis atom in the paper. Five of the seven questions ask you to: (i) verify a given function is harmonic, (ii) find its harmonic conjugate by integrating the Cauchy–Riemann equations, and (iii) express the analytic function f(z)=u+ivf(z)=u+iv in closed form. The Milne–Thomson method is the fastest route for step (iii) and avoids direct integration entirely for the conjugate. The two harder questions (2017, 2024) ask for the theoretical proof that real/imaginary parts of an analytic function are harmonic.

Minimum Theory

Harmonic function. A twice-differentiable real function ϕ(x,y)\phi(x,y) is harmonic iff 2ϕ=ϕxx+ϕyy=0\nabla^2\phi=\phi_{xx}+\phi_{yy}=0 everywhere on its domain.

Harmonic conjugate. If f=u+ivf=u+iv is analytic, then uu and vv are harmonic and satisfy the Cauchy–Riemann equations: ux=vy,uy=vx.u_x=v_y,\qquad u_y=-v_x. Given uu (harmonic), the function vv satisfying these equations is the harmonic conjugate of uu, and f=u+ivf=u+iv is analytic. The conjugate is unique up to an additive real constant.

Recovering the conjugate by CR integration. Given uu:

  1. Integrate vy=uxv_y=u_x w.r.t. yy: v=uxdy+g(x)v=\int u_x\,dy+g(x).
  2. Differentiate and match vx=uyv_x=-u_y: this determines g(x)g'(x), hence g(x)g(x) up to a constant.

Milne–Thomson method. For an analytic f=u+ivf=u+iv: f(z)=ux+ivx=uxiuy.f'(z)=u_x+iv_x=u_x-iu_y. Substitute y=0y=0, x=zx=z in uxiuyu_x-iu_y (valid because ff' is analytic, and the formula on the real axis extends by analyticity). Then integrate f(z)f'(z) to recover f(z)f(z).

Equivalently, if vv is given: f(z)=vy+ivx.f'(z)=v_y+iv_x. Substitute y=0y=0, x=zx=z and integrate.

Why u,vu,v are harmonic. Differentiate CR: x(ux=vy)uxx=vyx\partial_x(u_x=v_y)\Rightarrow u_{xx}=v_{yx} and y(uy=vx)uyy=vxy\partial_y(u_y=-v_x)\Rightarrow u_{yy}=-v_{xy}. Adding and using vxy=vyxv_{xy}=v_{yx} (analyticity guarantees CC^\infty): uxx+uyy=0u_{xx}+u_{yy}=0. Similarly vxx+vyy=0v_{xx}+v_{yy}=0.

Useful identities. ln(x2+y2)=2Relnz\ln(x^2+y^2)=2\operatorname{Re}\ln z, arctan(y/x)=Imlnz\arctan(y/x)=\operatorname{Im}\ln z, so lnz=12ln(x2+y2)+iarctan(y/x)\ln z=\tfrac{1}{2}\ln(x^2+y^2)+i\arctan(y/x).

Question Archetypes

Two patterns cover every harmonic-function question in the corpus.

ArchetypeYou are seeing this when…
harmonic-conjugateGiven uu or vv: verify harmonicity, find the conjugate, express f(z)f(z) in zz
harmonic-proofProve that u,vu,v are harmonic (given ff analytic), or that $\log

harmonic-conjugate (5 question(s); 2015, 2016, 2018, 2022, 2023)

Recognition Cues

Solution Template

Standard form (given uu or vv explicitly):

  1. Harmonicity: compute ϕxx+ϕyy\phi_{xx}+\phi_{yy} and show it is zero. Show each second partial, then add.
  2. Conjugate (CR route): integrate vy=uxv_y=u_x w.r.t. yy; differentiate and use vx=uyv_x=-u_y to find the integration function g(x)g(x); set the constant to 00.
  3. Analytic function: assemble f=u+ivf=u+iv; recognise the closed form. Common patterns:
    • u+iv=znu+iv = z^n (polynomial): spot Re(zn)\text{Re}(z^n) in uu.
    • u+iv=zezu+iv = ze^z, eze^z, sinz\sin z, cosz\cos z: use ex(cosy+isiny)=eze^x(\cos y+i\sin y)=e^z, x±iy=zx\pm iy=z.
    • u+ivu+iv involves arctan\arctan/log\log: use lnz=12ln(x2+y2)+iarctan(y/x)\ln z=\tfrac{1}{2}\ln(x^2+y^2)+i\arctan(y/x).
    • Milne–Thomson (fastest for complicated uu): write f(z)=uxiuyf'(z)=u_x-iu_y, set y=0,x=zy=0,x=z, integrate.

Given uvu-v (2022 type):

  1. Note Re[(1+i)f]=uv\operatorname{Re}[(1+i)f]=u-v (since (1+i)(u+iv)=(uv)+i(u+v)(1+i)(u+iv)=(u-v)+i(u+v)).
  2. Set g(z)=(1+i)f(z)g(z)=(1+i)f(z); apply Milne–Thomson to Re(g)=uv\operatorname{Re}(g)=u-v.
  3. Simplify g(z)g(z) on the real axis (y=0y=0), analytically continue to get g(z)g(z), then f(z)=g(z)/(1+i)f(z)=g(z)/(1+i).
  4. Fix any additive constant via the initial condition.

Worked Example(s)

2016 Paper 2, 2016-P2-Q1d (10 marks, compulsory)

Is v=x33xy2+2yv=x^3-3xy^2+2y harmonic? If yes, find its conjugate uu and the analytic function.

Harmonicity. vxx=6xv_{xx}=6x, vyy=6xv_{yy}=-6x; vxx+vyy=0v_{xx}+v_{yy}=0 ✓.

Conjugate uu (CR integration). CR equations with vv as imaginary part: ux=vy=6xy+2u_x=v_y=-6xy+2, uy=vx=(3x23y2)u_y=-v_x=-(3x^2-3y^2).

Integrate uxu_x w.r.t. xx: u=3x2y+2x+φ(y).u=-3x^2y+2x+\varphi(y). Differentiate: uy=3x2+φ(y)u_y=-3x^2+\varphi'(y). Match uy=3x2+3y2u_y=-3x^2+3y^2: φ(y)=3y2\varphi'(y)=3y^2, φ(y)=y3+C\varphi(y)=y^3+C. u=3x2y+y3+2x.\boxed{u=-3x^2y+y^3+2x.}

Analytic function. f=u+iv=(3x2y+y3)+i(x33xy2)+(2x+2iy)f=u+iv=(-3x^2y+y^3)+i(x^3-3xy^2)+(2x+2iy). Recognise iz3=(3x2yy3)+i(x33xy2)iz^3=-(3x^2y-y^3)+i(x^3-3xy^2) and 2z=2x+2iy2z=2x+2iy: f(z)=iz3+2z.\boxed{f(z)=iz^3+2z.}


2018 Paper 2, 2018-P2-Q1c (10 marks, compulsory)

Prove u=(x1)33xy2+3y2u=(x-1)^3-3xy^2+3y^2 is harmonic. Find the conjugate vv and f(z)f(z).

Harmonicity. uxx=6(x1)u_{xx}=6(x-1), uyy=6(x1)u_{yy}=-6(x-1); sum =0=0 ✓.

Conjugate (Milne–Thomson). f(z)=uxiuy=[3(x1)23y2]i[6xy+6y]f'(z)=u_x-iu_y=\bigl[3(x-1)^2-3y^2\bigr]-i\bigl[-6xy+6y\bigr].

Set y=0y=0, x=zx=z: f(z)=3(z1)2f'(z)=3(z-1)^2. Integrate: f(z)=(z1)3+C.f(z)=(z-1)^3+C. Take C=0C=0: f(z)=(z1)3.\boxed{f(z)=(z-1)^3.}

Conjugate. Im(z1)3=3(x1)2yy3=3x2y6xyy3+3y\operatorname{Im}(z-1)^3=3(x-1)^2y-y^3=3x^2y-6xy-y^3+3y: v=3x2y6xyy3+3y.\boxed{v=3x^2y-6xy-y^3+3y.}


2023 Paper 2, 2023-P2-Q3b (15 marks)

Prove u=ex(xcosyysiny)u=e^x(x\cos y-y\sin y) is harmonic. Find its conjugate vv and f(z)f(z).

Harmonicity. ux=ex[(x+1)cosyysiny]u_x=e^x[(x+1)\cos y-y\sin y], uxx=ex[(x+2)cosyysiny]u_{xx}=e^x[(x+2)\cos y-y\sin y]. uy=ex[(x+1)siny+ycosy]u_y=-e^x[(x+1)\sin y+y\cos y], uyy=ex[(x+2)cosyysiny]u_{yy}=-e^x[(x+2)\cos y-y\sin y]. Sum: uxx+uyy=0u_{xx}+u_{yy}=0 ✓.

Conjugate (CR integration). Integrate vy=ux=ex[(x+1)cosyysiny]v_y=u_x=e^x[(x+1)\cos y-y\sin y] w.r.t. yy: v=ex[(x+1)siny+ycosysiny]+g(x)=ex[xsiny+ycosy]+g(x).v=e^x\bigl[(x+1)\sin y+y\cos y-\sin y\bigr]+g(x)=e^x\bigl[x\sin y+y\cos y\bigr]+g(x). Differentiate: vx=ex[xsiny+ycosy+siny]+g(x)=ex[(x+1)siny+ycosy]+g(x)v_x=e^x[x\sin y+y\cos y+\sin y]+g'(x)=e^x[(x+1)\sin y+y\cos y]+g'(x). Match vx=uy=ex[(x+1)siny+ycosy]v_x=-u_y=e^x[(x+1)\sin y+y\cos y]: g(x)=0g'(x)=0, so g(x)=Cg(x)=C. v=ex(xsiny+ycosy).\boxed{v=e^x(x\sin y+y\cos y).}

Analytic function. f=ex[(xcosyysiny)+i(xsiny+ycosy)]=exeiy(x+iy)=(x+iy)ex+iyf=e^x[(x\cos y-y\sin y)+i(x\sin y+y\cos y)]=e^x e^{iy}(x+iy)=(x+iy)e^{x+iy}: f(z)=zez.\boxed{f(z)=ze^z.}

Common Traps


harmonic-proof (2 question(s); 2017, 2024)

Recognition Cues

Solution Template

Both parts harmonic (2017 type):

  1. State the CR equations ux=vyu_x=v_y, uy=vxu_y=-v_x (follow from analyticity).
  2. Differentiate CR-1 in xx and CR-2 in yy; add: uxx+uyy=vxyvyx=0u_{xx}+u_{yy}=v_{xy}-v_{yx}=0 (using vxy=vyxv_{xy}=v_{yx} since fCf\in C^\infty).
  3. Similarly differentiate the other way to show vxx+vyy=0v_{xx}+v_{yy}=0.

Log of derivative (2024 type):

  1. Since ff analytic and f0f'\ne0, the function logf(z)\log f'(z) is locally analytic.
  2. Re(logf(z))=logf(z)\operatorname{Re}(\log f'(z))=\log|f'(z)|.
  3. Real part of an analytic function is harmonic: done.

Worked Example(s)

2017 Paper 2, 2017-P2-Q3b (15 marks)

f=u+ivf=u+iv analytic on the unit disc DD. Show 2u=0=2v\nabla^2u=0=\nabla^2v.

Since ff is analytic on DD, at every point u,vu,v satisfy the Cauchy–Riemann equations: ux=vy(CR-1),uy=vx(CR-2).u_x=v_y\quad(\text{CR-1}),\qquad u_y=-v_x\quad(\text{CR-2}). Analyticity implies fC(D)f\in C^\infty(D), so all mixed partials are equal (uxy=uyxu_{xy}=u_{yx}, etc.).

uu is harmonic. Differentiate CR-1 in xx: uxx=vyxu_{xx}=v_{yx}. Differentiate CR-2 in yy: uyy=vxyu_{yy}=-v_{xy}. Add: uxx+uyy=vyxvxy=0u_{xx}+u_{yy}=v_{yx}-v_{xy}=0 (mixed partials equal). \blacksquare

vv is harmonic. Differentiate CR-1 in yy: uyx=vyyu_{yx}=v_{yy}. Differentiate CR-2 in xx: uxy=vxxu_{xy}=-v_{xx}. Subtract: vyy+vxx=uyxuxy=0v_{yy}+v_{xx}=u_{yx}-u_{xy}=0. \blacksquare

  2u=2v=0 on D.  \boxed{\;\nabla^2u=\nabla^2v=0\text{ on }D.\;}


2024 Paper 2, 2024-P2-Q1b (10 marks, compulsory)

If w=f(z)w=f(z) is analytic, show (2x2+2y2)logf(z)=0\left(\frac{\partial^2}{\partial x^2}+\frac{\partial^2}{\partial y^2}\right)\log|f'(z)|=0.

Suppose f0f'\ne0 in the region of interest. Choose a local branch of log\log: logf(z)=logf(z)+iargf(z).\log f'(z)=\log|f'(z)|+i\arg f'(z). Since ff is analytic, ff' is analytic; since f0f'\ne0, logf(z)\log f'(z) is locally analytic. Its real part is logf(z)\log|f'(z)|. A real part of an analytic function is harmonic (by the theorem proved in 2017-Q3b above): 2logf(z)=0.\nabla^2\log|f'(z)|=0.\qquad\blacksquare

Common Traps


Marks-Aware Writing

10-mark questions (2015, 2016, 2018, 2022, 2024): Three clear steps: verify Laplace, find the conjugate (show the CR integration or Milne–Thomson step explicitly), write f(z)f(z) in closed form. For the log proof: 3–4 lines are sufficient.

15-mark questions (2017, 2023): For 2023, show all second-partial computations in full — each one is worth marks. For 2017, label the four differentiation steps and the mixed-partial equality clearly; the examiner is looking for the logical chain, not just the final equation.

Practice Set

YearPaper/QMarksArchetypeOne-line hint
2015P2-Q1d10harmonic-conjugatev=ln(x2+y2)+x+yv=\ln(x^2+y^2)+x+y; conjugate involves arctan(y/x)\arctan(y/x); f(z)=(1+i)z+2ilnzf(z)=(1+i)z+2i\ln z
2022P2-Q1b10harmonic-conjugateuv=Re[(1+i)f]u-v=\operatorname{Re}[(1+i)f]; Milne-Thomson on the y=0y=0 slice; half-angle identities simplify the denominator; f(z)=1i4[1cot(z/2)]f(z)=\tfrac{1-i}{4}[1-\cot(z/2)]

We've mapped all 13 years of this exam. Get new chapters, tools, and solutions as we release them — free.