The math optional, made finite. Daily Practice

Cauchy-Riemann equations (necessary and sufficient)

At a Glance

Why This Chapter Matters

The Cauchy-Riemann equations are the single most-tested idea in complex analysis at this level: every year from 2019 to 2024 carried a CR question. They appear in four flavours — showing CR hold but the derivative fails, proving an analytic function must be constant, recovering an analytic function from one harmonic part, and verifying analyticity using CR directly — and a candidate who can execute all four is essentially guaranteed full marks on any Section A complex-analysis part. The polar form of the CR equations, often overlooked, is indispensable for the recovery archetype and for logz\log z.

Minimum Theory

CR equations (Cartesian). If f=u+ivf = u + iv is differentiable at z0=x0+iy0z_0 = x_0 + iy_0 then the partial derivatives satisfy ux=vy,uy=vxat (x0,y0).u_x = v_y, \qquad u_y = -v_x \quad \text{at } (x_0, y_0). These are necessary for differentiability. Alone they are not sufficient: the classic pathology (2014) shows CR can hold at a point while ff' fails to exist.

Sufficient conditions (Milne-Thomson theorem). If uu and vv have continuous first-order partial derivatives on an open neighbourhood of z0z_0 and the CR equations hold at z0z_0, then ff is analytic at z0z_0 and f(z)=ux+ivx=vyiuy.f'(z) = u_x + iv_x = v_y - iu_y. The continuity of partials in a neighbourhood (not just at the point) is the extra ingredient that converts CR into analyticity.

CR equations (Polar). With z=reiθz = re^{i\theta}, u=u(r,θ)u = u(r,\theta), v=v(r,θ)v = v(r,\theta): ur=1rvθ,uθ=rvr,f(z)=eiθ(ur+ivr).u_r = \frac{1}{r}\,v_\theta, \qquad u_\theta = -r\,v_r, \qquad f'(z) = e^{-i\theta}(u_r + iv_r). Use these when the given harmonic part is expressed in (r,θ)(r,\theta) — the recovery archetype always arrives in polar form.

Harmonic conjugates. If f=u+ivf = u + iv is analytic on a domain, then 2u=0\nabla^2 u = 0 and 2v=0\nabla^2 v = 0; vv is called a harmonic conjugate of uu. Conversely, given a harmonic function uu (or vv), a conjugate can be recovered by integrating the CR relations.

CR equations: necessary condition, sufficient conditions, and polar form

Question Archetypes

ArchetypeRecognition cue
cr-pathology”Show CR hold at a point but ff' does not exist”
analytic-constant”Prove ff analytic with Imf=(Ref)2\operatorname{Im}f = (\operatorname{Re}f)^2 (or similar constraint) is constant”
recover-analytic-polar”Given v(r,θ)v(r,\theta) or u(r,θ)u(r,\theta), find analytic f(z)f(z)
analyticity-conditions”State sufficient conditions; show logz\log z is analytic; find d(logz)/dzd(\log z)/dz
verify-cr”Verify CR / show analyticity for f=p+iqf = p + iq built from harmonic φ,ψ\varphi, \psi

cr-pathology (1 question; 2014)

Show the Cauchy-Riemann equations hold at a point yet the derivative fails to exist.

Recognition Cues

The question gives a piecewise-defined ff (often f(0)=0f(0)=0 with a rational formula elsewhere) and asks to verify CR at the origin and show that f(0)f'(0) does not exist. The key signal is that two limits of f(z)/zf(z)/z along different paths disagree.

Solution Template

  1. Write f=u+ivf = u + iv and read off uu and vv from the formula.
  2. Compute ux(0,0)u_x(0,0) and uy(0,0)u_y(0,0) using the limit definition: ux(0,0)=limh0u(h,0)u(0,0)h,uy(0,0)=limk0u(0,k)u(0,0)k.u_x(0,0) = \lim_{h\to0}\frac{u(h,0)-u(0,0)}{h}, \quad u_y(0,0) = \lim_{k\to0}\frac{u(0,k)-u(0,0)}{k}. Do the same for vxv_x and vyv_y. Confirm ux=vyu_x = v_y and uy=vxu_y = -v_x.
  3. Test f(0)=limz0f(z)/zf'(0) = \lim_{z\to0} f(z)/z along two different paths (e.g., real axis y=0y=0 and diagonal y=xy=x). Obtain two different limits.
  4. Conclude: CR necessary conditions hold, but the limit is path-dependent, so f(0)f'(0) does not exist. State that the partials are not continuous in any neighbourhood of 00.

Worked Example

2014 Paper 2, 2014-P2-Q1c (10 marks)

Let f(z)=x3(1+i)y3(1i)x2+y2f(z) = \dfrac{x^3(1+i)-y^3(1-i)}{x^2+y^2} for z0z\ne0 and f(0)=0f(0)=0. Show CR equations are satisfied at z=0z=0 but f(0)f'(0) does not exist.

Separate real and imaginary parts: u(x,y)=x3y3x2+y2,v(x,y)=x3+y3x2+y2.u(x,y) = \frac{x^3 - y^3}{x^2+y^2}, \qquad v(x,y) = \frac{x^3+y^3}{x^2+y^2}.

CR at the origin (limit definition): ux(0,0)=limh0h3/h2h=limh01=1.u_x(0,0) = \lim_{h\to0}\frac{h^3/h^2}{h} = \lim_{h\to0} 1 = 1. uy(0,0)=limk0k3/k2k=limk0(1)=1.u_y(0,0) = \lim_{k\to0}\frac{-k^3/k^2}{k} = \lim_{k\to0}(-1) = -1. vx(0,0)=limh0h3/h2h=1,vy(0,0)=limk0k3/k2k=1.v_x(0,0) = \lim_{h\to0}\frac{h^3/h^2}{h} = 1, \qquad v_y(0,0) = \lim_{k\to0}\frac{k^3/k^2}{k} = 1.

Check: ux=vy=1u_x = v_y = 1 \checkmark, uy=vx=1\quad u_y = -v_x = -1 \checkmark. CR hold at the origin.

Derivative fails to exist:

Along the real axis (y=0y=0): f(z)z=xx3(1+i)x2x=1+i.\frac{f(z)}{z} = \frac{x\cdot\frac{x^3(1+i)}{x^2}}{x} = 1+i.

Along the diagonal (y=xy=x, z=x(1+i)z = x(1+i)): f(z)z=x3(1+i)x3(1i)2x2x(1+i)=x2i/2x(1+i)=i1+i=1+i2.\frac{f(z)}{z} = \frac{\frac{x^3(1+i)-x^3(1-i)}{2x^2}}{x(1+i)} = \frac{x\cdot 2i/2}{x(1+i)} = \frac{i}{1+i} = \frac{1+i}{2}.

Since 1+i1+i21+i \ne \dfrac{1+i}{2}, the limit of f(z)/zf(z)/z as z0z\to0 is path-dependent. Therefore f(0)f'(0) does not exist.

CR hold at z=0, but f(0) does not exist.\boxed{\text{CR hold at }z=0,\text{ but }f'(0)\text{ does not exist.}}

Common Traps


analytic-constant (1 question; 2019)

Show that an analytic function satisfying a relation between Ref\operatorname{Re}f and Imf\operatorname{Im}f must be constant.

Recognition Cues

The question states ”ff is analytic on a domain DD” and imposes a constraint such as v=u2v = u^2, v=g(u)v = g(u), f=const|f| = \text{const}, or argf=const\arg f = \text{const}. The instruction is “show ff is constant.” The method is always: differentiate the constraint, substitute CR, factor into a product (positive factor)()=0(\text{positive factor}) \cdot (\partial) = 0, conclude the partials are zero, hence ff is constant on the connected domain.

Solution Template

  1. Write the constraint explicitly: e.g. v=u2v = u^2.
  2. Differentiate in xx and yy to get vx,vyv_x, v_y in terms of u,ux,uyu, u_x, u_y.
  3. Substitute CR (ux=vyu_x = v_y, uy=vxu_y = -v_x) to obtain a system purely in u,ux,uyu, u_x, u_y.
  4. Eliminate one variable: substitute the first equation into the second to obtain Pux=0P \cdot u_x = 0 where P>0P > 0 everywhere.
  5. Conclude ux=0u_x = 0, back-substitute to get uy=vx=vy=0u_y = v_x = v_y = 0.
  6. State: all partials vanish on connected DD \Rightarrow u,vu, v constant \Rightarrow ff constant.

Worked Example

2019 Paper 2, 2019-P2-Q1d (10 marks)

Let f=u+ivf = u + iv be analytic on a domain DD and v=u2v = u^2 throughout DD. Prove ff is constant.

Differentiate v=u2v = u^2: vx=2uux,vy=2uuy.v_x = 2u \cdot u_x, \qquad v_y = 2u \cdot u_y.

Apply CR (ux=vyu_x = v_y, uy=vxu_y = -v_x): ux=vy=2uuy,uy=vx=2uux.u_x = v_y = 2u \cdot u_y, \qquad u_y = -v_x = -2u \cdot u_x.

Substitute the first equation into the second: ux=2uuy=2u(2uux)=4u2ux,u_x = 2u \cdot u_y = 2u\cdot(-2u \cdot u_x) = -4u^2 u_x, ux(1+4u2)=0.u_x(1 + 4u^2) = 0.

Since 1+4u21>01 + 4u^2 \geq 1 > 0 for all real uu, we must have ux=0u_x = 0.

Then uy=2uux=0u_y = -2u \cdot u_x = 0, and from vx=2uux=0v_x = 2u u_x = 0, vy=2uuy=0v_y = 2u u_y = 0.

All four partial derivatives vanish on the connected domain DD, so uu and vv are individually constant, hence

f is constant on D.\boxed{f \text{ is constant on } D.}

Common Traps


recover-analytic-polar (1 question; 2020)

Given one harmonic part in polar coordinates, recover the full analytic function f(z)f(z).

Recognition Cues

The question gives v(r,θ)v(r,\theta) (or u(r,θ)u(r,\theta)) in polar form and asks to find f(z)=u+ivf(z) = u + iv. The signal words are “find an analytic function” or “determine f(z)f(z).” Since the given part contains r±1r^{\pm1} and sinθ/cosθ\sin\theta/\cos\theta, the polar CR equations are the correct tool; using Cartesian CR leads to messy algebra.

Solution Template

  1. Compute vrv_r and vθv_\theta from the given v(r,θ)v(r,\theta).
  2. Use polar CR: ur=1rvθu_r = \tfrac{1}{r}v_\theta and uθ=rvru_\theta = -r v_r.
  3. Integrate uru_r with respect to rr, holding θ\theta fixed: u=urdr+g(θ)u = \int u_r\,dr + g(\theta).
  4. Differentiate w.r.t. θ\theta and match with uθu_\theta from step 2 to find g(θ)g'(\theta), then g(θ)g(\theta) (usually a constant CC).
  5. Write f=u+ivf = u + iv and recognise the combination as a known function of zz (often z+1/zz + 1/z, znz^n, etc.), absorbing CC.

Worked Example

2020 Paper 2, 2020-P2-Q4a (15 marks)

If v(r,θ)=(r1r)sinθv(r,\theta) = \left(r - \dfrac{1}{r}\right)\sin\theta, find the analytic function f(z)=u+ivf(z) = u + iv.

Compute vrv_r and vθv_\theta: vr=(1+1r2)sinθ,vθ=(r1r)cosθ.v_r = \left(1 + \frac{1}{r^2}\right)\sin\theta, \qquad v_\theta = \left(r - \frac{1}{r}\right)\cos\theta.

Apply polar CR to find uru_r: ur=1rvθ=1r(r1r)cosθ=(11r2)cosθ.u_r = \frac{1}{r}\,v_\theta = \frac{1}{r}\left(r-\frac{1}{r}\right)\cos\theta = \left(1 - \frac{1}{r^2}\right)\cos\theta.

Integrate uru_r with respect to rr: u=(11r2)cosθdr=(r+1r)cosθ+g(θ).u = \int\left(1 - \frac{1}{r^2}\right)\cos\theta\,dr = \left(r + \frac{1}{r}\right)\cos\theta + g(\theta).

Find g(θ)g(\theta) via uθu_\theta: uθ=(r+1r)sinθ+g(θ).u_\theta = -\left(r+\frac{1}{r}\right)\sin\theta + g'(\theta). Polar CR also gives uθ=rvr=r(1+1r2)sinθ=(r+1r)sinθu_\theta = -r v_r = -r\left(1+\dfrac{1}{r^2}\right)\sin\theta = -\left(r+\dfrac{1}{r}\right)\sin\theta.

Matching: g(θ)=0g'(\theta) = 0, so g(θ)=Cg(\theta) = C (constant).

Assemble ff: f=(r+1r)cosθ+i(r1r)sinθ+C.f = \left(r+\frac{1}{r}\right)\cos\theta + i\left(r-\frac{1}{r}\right)\sin\theta + C.

Recognise using e±iθ=cosθ±isinθe^{\pm i\theta} = \cos\theta \pm i\sin\theta: f=reiθ+1reiθ+C=z+1z+C.f = r e^{i\theta} + \frac{1}{r}e^{-i\theta} + C = z + \frac{1}{z} + C.

f(z)=z+1z+C.\boxed{f(z) = z + \frac{1}{z} + C.}

Common Traps


analyticity-conditions (1 question; 2023)

State the sufficient conditions for analyticity, verify them for logz\log z, and compute the derivative.

Recognition Cues

The question explicitly asks to “state sufficient conditions” before the application, signalling that a theorem statement is required. The application is typically logz\log z, znz^n, or a rational function, and always involves identifying a branch cut (the standard principal branch of logz\log z has a cut along (,0](-\infty, 0]).

Solution Template

  1. State the theorem: If uu, vv have continuous first-order partial derivatives in an open neighbourhood of z0z_0, and if the CR equations ux=vyu_x = v_y, uy=vxu_y = -v_x hold at z0z_0, then f=u+ivf = u + iv is analytic at z0z_0 and f(z0)=ux+ivxf'(z_0) = u_x + iv_x.
  2. Write the given function in u+ivu + iv form; specify the domain (eliminate the branch cut).
  3. Compute all four partials ux,uy,vx,vyu_x, u_y, v_x, v_y.
  4. Verify CR hold identically on the domain.
  5. Check continuity (usually obvious for rational expressions in x,yx, y).
  6. Apply the formula f=ux+ivxf' = u_x + iv_x and simplify to a function of zz.

Worked Example

2023 Paper 2, 2023-P2-Q1d (10 marks)

State sufficient conditions for a function f(z)=u+ivf(z) = u + iv to be analytic. Show that f(z)=logzf(z) = \log z is analytic for z0z \ne 0 with a suitable branch cut, and find df/dzdf/dz.

Theorem statement. If ux,uy,vx,vyu_x, u_y, v_x, v_y exist and are continuous in an open neighbourhood of z0z_0, and the CR equations ux=vyu_x = v_y, uy=vxu_y = -v_x hold at z0z_0, then ff is analytic at z0z_0 with f(z0)=ux+ivxf'(z_0) = u_x + iv_x.

Apply to logz\log z. Take the principal branch: logz=lnz+iargz\log z = \ln|z| + i\arg z on C(,0]\mathbb{C} \setminus (-\infty, 0].

u=lnx2+y2=12ln(x2+y2),v=arctan ⁣(yx) (with appropriate quadrant adjustment).u = \ln\sqrt{x^2+y^2} = \tfrac{1}{2}\ln(x^2+y^2), \qquad v = \arctan\!\left(\frac{y}{x}\right) \text{ (with appropriate quadrant adjustment)}.

Partial derivatives: ux=xx2+y2,uy=yx2+y2,vx=yx2+y2,vy=xx2+y2.u_x = \frac{x}{x^2+y^2}, \quad u_y = \frac{y}{x^2+y^2}, \quad v_x = \frac{-y}{x^2+y^2}, \quad v_y = \frac{x}{x^2+y^2}.

Verify CR: ux=vy=xx2+y2,uy=vx=yx2+y2.u_x = v_y = \frac{x}{x^2+y^2} \checkmark, \qquad u_y = -v_x = \frac{y}{x^2+y^2} \checkmark.

All four partials are continuous on C{0}\mathbb{C}\setminus\{0\} away from the branch cut. By the theorem, logz\log z is analytic on C(,0]\mathbb{C}\setminus(-\infty,0].

Derivative: ddzlogz=ux+ivx=xx2+y2+iyx2+y2=xiyx2+y2=zˉz2=1z.\frac{d}{dz}\log z = u_x + iv_x = \frac{x}{x^2+y^2} + i\cdot\frac{-y}{x^2+y^2} = \frac{x-iy}{x^2+y^2} = \frac{\bar{z}}{|z|^2} = \frac{1}{z}.

ddzlogz=1z.\boxed{\frac{d}{dz}\log z = \frac{1}{z}.}

Common Traps


verify-cr (1 question; 2024)

Verify the CR equations for f=p+iqf = p + iq where pp and qq are defined in terms of two harmonic functions.

Recognition Cues

The question defines pp and qq explicitly as linear combinations of partial derivatives of given harmonic functions φ\varphi and ψ\psi, and asks to show f=p+iqf = p + iq is analytic. The harmonic condition (2φ=0\nabla^2\varphi = 0, 2ψ=0\nabla^2\psi = 0) is what makes the two CR equations close.

Solution Template

  1. Write out pxp_x, pyp_y, qxq_x, qyq_y by differentiating the given expressions for pp and qq.
  2. Form pxqyp_x - q_y and py+qxp_y + q_x; group terms to isolate 2φ\nabla^2\varphi and 2ψ\nabla^2\psi.
  3. Use φxx+φyy=0\varphi_{xx}+\varphi_{yy}=0 and ψxx+ψyy=0\psi_{xx}+\psi_{yy}=0 to conclude both expressions equal zero.
  4. State: px=qyp_x = q_y and py=qxp_y = -q_x (CR), partials continuous (since φ,ψ\varphi,\psi are harmonic hence smooth), therefore f=p+iqf = p + iq is analytic.

Worked Example

2024 Paper 2, 2024-P2-Q1d (10 marks)

If φ\varphi and ψ\psi are harmonic functions of (x,y)(x,y), show that f=p+iqf = p + iq is analytic where p=φyψxp = \varphi_y - \psi_x and q=φx+ψyq = \varphi_x + \psi_y.

Compute partial derivatives of pp and qq: px=φyxψxx,py=φyyψxy,p_x = \varphi_{yx} - \psi_{xx}, \quad p_y = \varphi_{yy} - \psi_{xy}, qx=φxx+ψyx,qy=φxy+ψyy.q_x = \varphi_{xx} + \psi_{yx}, \quad q_y = \varphi_{xy} + \psi_{yy}.

First CR equation (px=qyp_x = q_y): pxqy=φyxψxxφxyψyy=(ψxx+ψyy)=0p_x - q_y = \varphi_{yx} - \psi_{xx} - \varphi_{xy} - \psi_{yy} = -(\psi_{xx}+\psi_{yy}) = 0 since ψ\psi is harmonic. Hence px=qyp_x = q_y \checkmark.

Second CR equation (py=qxp_y = -q_x): py+qx=φyyψxy+φxx+ψxy=φxx+φyy=0p_y + q_x = \varphi_{yy} - \psi_{xy} + \varphi_{xx} + \psi_{xy} = \varphi_{xx}+\varphi_{yy} = 0 since φ\varphi is harmonic. Hence py=qxp_y = -q_x \checkmark.

Since φ\varphi and ψ\psi are harmonic (and hence CC^\infty), all partial derivatives of pp and qq are continuous. By the Milne-Thomson sufficient conditions:

f=p+iq is analytic.\boxed{f = p + iq \text{ is analytic.}}

Common Traps


Marks-Aware Writing

For a 10-mark CR question: UPSC expects (i) explicit computation of all four partials or limit-definition values, (ii) a clear check of both CR equations with tick marks or “hence CR satisfied”, and (iii) either a path-dependence argument (pathology) or an invocation of the sufficient conditions theorem (analyticity). Showing only one of the two CR equations earns at most half credit.

For the 15-mark recovery question (2020): Show all intermediate steps — both vrv_r and vθv_\theta, the integration constant argument, and the assembly into a closed form of zz. The final boxed answer f(z)=z+1/z+Cf(z) = z + 1/z + C is worth 3–4 marks; the working leading to it is worth 10–11. Do not skip the g(θ)g(\theta) determination step.

Theorem statement questions (2023 style): Examiners expect the exact statement of the Milne-Thomson theorem with all three hypotheses: (a) existence of partials, (b) continuity of partials in a neighbourhood, (c) CR equations hold. Omitting (b) is the single most penalised error in this atom.

Practice Set

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