← 2026 Paper 2

UPSC 2026 Maths Optional Paper 2 Q1d — Step-by-Step Solution

10 marks · Section A

Cauchy-Riemann equations (necessary and sufficient) · Complex Analysis · asked 6× in 14 yrs · Read the full method →

Question

Show that the function f(z)=∣xy∣f(z) = \sqrt{|xy|} is not analytic at the origin, although Cauchy-Riemann equations are satisfied at that point.

Technique

This is the standard counterexample to the converse of the Cauchy–Riemann theorem, and the whole mark lies in the contrast, so the answer must do two separate things and keep them separate. First, compute the four partials at the origin from first principles — not by differentiating a formula, because ∣xy∣\sqrt{|xy|} has no usable formula-derivative at (0,0)(0,0) — and observe all four vanish, so CR hold. Second, kill differentiability by the definition: f′(0)f'(0) is a limit of f(z)−f(0)z\dfrac{f(z)-f(0)}{z} over every approach to 00, and here the substitution z=reiθz=re^{i\theta} makes the quotient independent of rr but dependent on θ\theta — the limit is different along every ray. The trigger: CR satisfied at a single point is only necessary, never sufficient; sufficiency needs the partials continuous in a neighbourhood.

Solution

Step 0 — Set up the real and imaginary parts.

Write z=x+iyz=x+iy with x,y∈Rx,y\in\mathbb{R}. The given function is real-valued, so

f(z)=u(x,y)+i v(x,y),u(x,y)=∣xy∣,v(x,y)≡0.f(z)=u(x,y)+i\,v(x,y),\qquad u(x,y)=\sqrt{|xy|},\qquad v(x,y)\equiv 0 .

Note f(0)=u(0,0)=0f(0)=u(0,0)=0, and ff is defined (and continuous) on all of C\mathbb{C}.

Recall the two things that must not be confused:

So failure of differentiability at z0z_0 already destroys analyticity at z0z_0.

Step 1 — The four first-order partials at the origin, from the definition.

At the origin the formula ∣xy∣\sqrt{|xy|} is not differentiable term-by-term, so the partials must be computed as limits of difference quotients:

ux(0,0)=lim⁡h→0u(h,0)−u(0,0)h=lim⁡h→0∣h⋅0∣−0h=lim⁡h→00h=0,u_{x}(0,0)=\lim_{h\to0}\frac{u(h,0)-u(0,0)}{h}=\lim_{h\to0}\frac{\sqrt{|h\cdot 0|}-0}{h}=\lim_{h\to0}\frac{0}{h}=0, uy(0,0)=lim⁡k→0u(0,k)−u(0,0)k=lim⁡k→0∣0⋅k∣−0k=lim⁡k→00k=0.u_{y}(0,0)=\lim_{k\to0}\frac{u(0,k)-u(0,0)}{k}=\lim_{k\to0}\frac{\sqrt{|0\cdot k|}-0}{k}=\lim_{k\to0}\frac{0}{k}=0 .

(The quotients are identically zero, not merely tending to zero, because uu vanishes identically on both coordinate axes.)

Since v≡0v\equiv0,

vx(0,0)=0,vy(0,0)=0.v_{x}(0,0)=0,\qquad v_{y}(0,0)=0 .

Step 2 — The Cauchy–Riemann equations hold at the origin.

ux(0,0)=0=vy(0,0),uy(0,0)=0=−vx(0,0).u_{x}(0,0)=0=v_{y}(0,0),\qquad u_{y}(0,0)=0=-v_{x}(0,0).

So both CR equations

ux=vy,uy=−vxu_{x}=v_{y},\qquad u_{y}=-v_{x}

are satisfied at z=0z=0, and all four partials exist there. ✓\qquad\checkmark

Step 3 — Yet f′(0)f'(0) does not exist: the difference quotient depends on the direction.

By definition,

f(z)−f(0)z−0=∣xy∣x+iy,z≠0.\frac{f(z)-f(0)}{z-0}=\frac{\sqrt{|xy|}}{x+iy},\qquad z\neq0 .

Put z=reiθz=re^{i\theta} with r>0r>0, so x=rcos⁡θx=r\cos\theta, y=rsin⁡θy=r\sin\theta and ∣xy∣=r2∣cos⁡θsin⁡θ∣|xy|=r^{2}\left|\cos\theta\sin\theta\right|. Since r>0r>0, ∣xy∣=r∣cos⁡θsin⁡θ∣\sqrt{|xy|}=r\sqrt{\left|\cos\theta\sin\theta\right|}, and hence

f(z)−f(0)z=r∣cos⁡θsin⁡θ∣r eiθ=∣cos⁡θsin⁡θ∣  e−iθ  =:  Φ(θ).\frac{f(z)-f(0)}{z}=\frac{r\sqrt{\left|\cos\theta\sin\theta\right|}}{r\,e^{i\theta}}=\sqrt{\left|\cos\theta\sin\theta\right|}\;e^{-i\theta}\;=:\;\Phi(\theta).

This is a remarkable and decisive fact: the quotient does not depend on rr at all. Along the ray of direction θ\theta it is the constant Φ(θ)\Phi(\theta), so the limit along that ray exists and equals Φ(θ)\Phi(\theta). Two rays now settle the matter:

Since

0=Φ(0) ≠ Φ ⁣(π4)=1−i2,0=\Phi(0)\ \neq\ \Phi\!\left(\tfrac{\pi}{4}\right)=\frac{1-i}{2},

the limit lim⁡z→0f(z)−f(0)z\displaystyle\lim_{z\to0}\frac{f(z)-f(0)}{z} does not exist. Hence ff is not differentiable at z=0z=0, and a fortiori not analytic at z=0z=0. ■\qquad\blacksquare

(Equivalently in Cartesian form: approaching along y=mxy=mx, x→0+x\to0^{+}, gives ∣m∣ xx(1+im)=∣m∣1+im\dfrac{\sqrt{|m|}\,x}{x(1+im)}=\dfrac{\sqrt{|m|}}{1+im}, which is 00 for m=0m=0 and 11+i=1−i2\dfrac{1}{1+i}=\dfrac{1-i}{2} for m=1m=1 — the same conclusion. The polar form is preferable because it exhibits the rr-independence, showing the failure is purely directional.)

Step 4 — Why this is no contradiction: exactly which hypothesis fails.

The theorem that CR “implies” differentiability is a sufficient condition with an extra hypothesis:

If u,vu,v have first-order partials in a neighbourhood of z0z_{0}, those partials are continuous at z0z_{0}, and CR hold at z0z_{0}, then f′(z0)f'(z_{0}) exists.

(Equivalently and more sharply: if u,vu,v are real-differentiable at z0z_{0} and CR hold at z0z_{0}, then f′(z0)f'(z_{0}) exists.)

Here the extra hypothesis fails, and it is worth showing precisely how.

(a) uu is not real-differentiable at (0,0)(0,0). If it were, then since ux(0,0)=uy(0,0)=0u_{x}(0,0)=u_{y}(0,0)=0 the differential would be the zero map, forcing

u(x,y)=o ⁣(x2+y2)as (x,y)→(0,0).u(x,y)=o\!\left(\sqrt{x^{2}+y^{2}}\right)\qquad\text{as }(x,y)\to(0,0).

But along y=x>0y=x>0,

u(x,x)x2+x2=x2x2=12  ↛  0.\frac{u(x,x)}{\sqrt{x^{2}+x^{2}}}=\frac{\sqrt{x^{2}}}{x\sqrt2}=\frac{1}{\sqrt2}\;\not\to\;0 .

So uu fails to be differentiable at the origin as a function of two real variables — this is the precise defect.

(b) The partials are not continuous at (0,0)(0,0) — indeed they are unbounded near it. For x>0, y>0x>0,\ y>0 we have u=xyu=\sqrt{xy}, so

ux(x,y)=12yx → x→0+, y=1  +∞,u_{x}(x,y)=\frac12\sqrt{\frac{y}{x}}\ \xrightarrow[\ x\to0^{+},\ y=1\ ]{}\ +\infty ,

while ux(0,0)=0u_{x}(0,0)=0.

So CR holding at a point carries no differentiability information whatever; the CR equations are necessary but not sufficient, and this function is the textbook witness.

Step 5 — A stronger conclusion: ff is analytic nowhere.

Analyticity at 00 would require differentiability, hence CR, at every point of a whole neighbourhood of 00. In fact the CR equations hold only at the origin:

ux(a,b)=sgn⁡(a)2∣b∣∣a∣≠0,u_{x}(a,b)=\frac{\operatorname{sgn}(a)}{2}\sqrt{\frac{|b|}{|a|}}\neq0 ,

whereas CR would demand ux=vy=0u_{x}=v_{y}=0. CR fail.

Hence every punctured neighbourhood of 00 contains points where CR fail, confirming again that ff is not analytic at 00 — and that it is not analytic at any point of C\mathbb{C}.

(Consistency remark, one line: a real-valued function analytic on a domain is necessarily constant there, since v≡0v\equiv0 forces ux=vy=0u_{x}=v_{y}=0 and uy=−vx=0u_{y}=-v_{x}=0. So no non-constant real-valued ff, this one included, can be analytic anywhere — the most a function like ∣xy∣\sqrt{|xy|} can achieve is differentiability at isolated points, and even that fails here.)

Answer

  u=∣xy∣, v≡0:ux(0,0)=uy(0,0)=vx(0,0)=vy(0,0)=0 ⇒ ux=vy, uy=−vx hold at z=0.  \boxed{\;u=\sqrt{|xy|},\ v\equiv0:\quad u_x(0,0)=u_y(0,0)=v_x(0,0)=v_y(0,0)=0\ \Rightarrow\ u_x=v_y,\ u_y=-v_x\ \text{hold at }z=0.\;}   But f(z)−f(0)z∣z=reiθ=∣cos⁡θsin⁡θ∣  e−iθ  (independent of r),  which is 0 for θ=0 and 1−i2 for θ=π4.  \boxed{\;\text{But } \frac{f(z)-f(0)}{z}\Big|_{z=re^{i\theta}}=\sqrt{|\cos\theta\sin\theta|}\;e^{-i\theta}\ \ (\text{independent of }r),\ \ \text{which is }0\text{ for }\theta=0\text{ and }\tfrac{1-i}{2}\text{ for }\theta=\tfrac{\pi}{4}.\;}   So f′(0) does not exist and f is not analytic at 0; the CR theorem is not contradicted because u is not real-differentiable at (0,0) (its partials are unbounded near 0).  \boxed{\;\text{So } f'(0)\text{ does not exist and } f \text{ is not analytic at } 0;\ \text{the CR theorem is not contradicted because } u \text{ is not real-differentiable at } (0,0)\ (\text{its partials are unbounded near } 0).\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 14 years, mapped. Get the take-away PDF free.