← 2026 Paper 1

UPSC 2026 Maths Optional Paper 1 Q1c — Step-by-Step Solution

10 marks · Section A

Partial derivatives · Calculus · asked 9× in 14 yrs · Read the full method →

Question

If u(x,y,z)=(x2+y2+z2)−1/2u(x, y, z) = (x^2 + y^2 + z^2)^{-1/2}, then find the value of ∂2u∂x2+∂2u∂y2+∂2u∂z2\dfrac{\partial^2 u}{\partial x^2} + \dfrac{\partial^2 u}{\partial y^2} + \dfrac{\partial^2 u}{\partial z^2}.

Technique

Write u=r−1u=r^{-1} with r=x2+y2+z2r=\sqrt{x^2+y^2+z^2} and use the chain rule through ∂r∂x=xr\dfrac{\partial r}{\partial x}=\dfrac{x}{r}. Compute uxxu_{xx} once and obtain uyy,uzzu_{yy},u_{zz} by the symmetry of rr in x,y,zx,y,z; add and use x2+y2+z2=r2x^2+y^2+z^2=r^2. State the exclusion of the origin.

Solution

Step 0 — Notation and domain.

Put

r=x2+y2+z2  (>0),u=r−1=(x2+y2+z2)−1/2.r=\sqrt{x^2+y^2+z^2}\;(>0),\qquad u=r^{-1}=(x^2+y^2+z^2)^{-1/2}.

uu is defined and infinitely differentiable only for (x,y,z)≠(0,0,0)(x,y,z)\neq(0,0,0) — at the origin r=0r=0 and uu is not even finite, so the whole computation is carried out on R3∖{(0,0,0)}\mathbb{R}^3\setminus\{(0,0,0)\}. This exclusion is part of the answer, not a footnote.

From r2=x2+y2+z2r^2=x^2+y^2+z^2, differentiating partially with respect to xx: 2r rx=2x2r\,r_x = 2x, so

∂r∂x=xr,and similarly∂r∂y=yr,∂r∂z=zr.\frac{\partial r}{\partial x}=\frac{x}{r},\qquad\text{and similarly}\qquad \frac{\partial r}{\partial y}=\frac{y}{r},\quad \frac{\partial r}{\partial z}=\frac{z}{r}.

Step 1 — First partial derivative.

∂u∂x=ddr(r−1)⋅∂r∂x=−r−2⋅xr=−xr3.\frac{\partial u}{\partial x}=\frac{d}{dr}\big(r^{-1}\big)\cdot\frac{\partial r}{\partial x} = -r^{-2}\cdot\frac{x}{r} = -\frac{x}{r^{3}}.

(Direct check without the rr-substitution: ∂u∂x=−12(x2+y2+z2)−3/2⋅2x=−x(x2+y2+z2)−3/2\dfrac{\partial u}{\partial x} = -\tfrac12 (x^2+y^2+z^2)^{-3/2}\cdot 2x = -x(x^2+y^2+z^2)^{-3/2}. ✓)

Step 2 — Second partial derivative.

Differentiate ux=−x r−3u_x=-x\,r^{-3} by the product rule:

∂2u∂x2=−[ 1⋅r−3+x⋅∂∂x(r−3)]=−[ r−3+x(−3r−4⋅xr)],\frac{\partial^2 u}{\partial x^2} = -\left[\,1\cdot r^{-3} + x\cdot\frac{\partial}{\partial x}\big(r^{-3}\big)\right] = -\left[\,r^{-3} + x\left(-3r^{-4}\cdot\frac{x}{r}\right)\right], ∂2u∂x2=−1r3+3x2r5.\frac{\partial^2 u}{\partial x^2} = -\frac{1}{r^{3}}+\frac{3x^{2}}{r^{5}}.

By the complete symmetry of rr in x,y,zx,y,z (the same computation with yy or zz in place of xx):

∂2u∂y2=−1r3+3y2r5,∂2u∂z2=−1r3+3z2r5.\frac{\partial^2 u}{\partial y^2} = -\frac{1}{r^{3}}+\frac{3y^{2}}{r^{5}},\qquad \frac{\partial^2 u}{\partial z^2} = -\frac{1}{r^{3}}+\frac{3z^{2}}{r^{5}}.

Step 3 — Add the three.

∇2u=∂2u∂x2+∂2u∂y2+∂2u∂z2=−3r3+3(x2+y2+z2)r5.\nabla^{2}u=\frac{\partial^2 u}{\partial x^2}+\frac{\partial^2 u}{\partial y^2}+\frac{\partial^2 u}{\partial z^2} = -\frac{3}{r^{3}}+\frac{3\left(x^{2}+y^{2}+z^{2}\right)}{r^{5}}.

Since x2+y2+z2=r2x^{2}+y^{2}+z^{2}=r^{2},

∇2u=−3r3+3r2r5=−3r3+3r3=0.\nabla^{2}u = -\frac{3}{r^{3}}+\frac{3r^{2}}{r^{5}} = -\frac{3}{r^{3}}+\frac{3}{r^{3}} = 0.

Hence uu satisfies Laplace’s equation everywhere except the origin: u=1/ru=1/r is a harmonic function on R3∖{0}\mathbb{R}^3\setminus\{\mathbf 0\} — the Newtonian (gravitational / Coulomb) potential of a unit point source at the origin.

Step 4 — The general result, as a check and for depth.

For u=rnu=r^{n} the identical computation gives ux=n x rn−2u_x = n\,x\,r^{n-2} and

∂2u∂x2=n rn−2+n(n−2) x2rn−4,\frac{\partial^2 u}{\partial x^2}=n\,r^{n-2}+n(n-2)\,x^{2}r^{n-4},

so, adding the three and using x2+y2+z2=r2x^2+y^2+z^2=r^2,

∇2(rn)=3n rn−2+n(n−2) rn−2=n(n+1) rn−2.\nabla^{2}\left(r^{n}\right)=3n\,r^{n-2}+n(n-2)\,r^{n-2}=n(n+1)\,r^{n-2}.

Putting n=−1n=-1: ∇2(r−1)=(−1)(0) r−3=0\nabla^{2}\left(r^{-1}\right)=(-1)(0)\,r^{-3}=0 ✓ — consistent with Step 3. (Note n=0n=0 and n=−1n=-1 are the only exponents making rnr^n harmonic in R3\mathbb{R}^3.)

Spot check at a point. Take (x,y,z)=(1,2,−2)(x,y,z)=(1,2,-2), so r=1+4+4=3r=\sqrt{1+4+4}=3, r3=27r^3=27, r5=243r^5=243:

uxx=−127+3(1)243,uyy=−127+3(4)243,uzz=−127+3(4)243.u_{xx}=-\tfrac{1}{27}+\tfrac{3(1)}{243},\qquad u_{yy}=-\tfrac{1}{27}+\tfrac{3(4)}{243},\qquad u_{zz}=-\tfrac{1}{27}+\tfrac{3(4)}{243}. Sum=−327+3(1+4+4)243=−19+27243=−19+19=0 ✓\text{Sum}=-\frac{3}{27}+\frac{3(1+4+4)}{243}=-\frac{1}{9}+\frac{27}{243}=-\frac{1}{9}+\frac{1}{9}=0\ \checkmark

Remark (depth, one line). The exclusion is essential: over all of R3\mathbb{R}^3, in the sense of distributions ∇2 ⁣(1r)=−4π δ(r)\nabla^{2}\!\left(\frac{1}{r}\right)=-4\pi\,\delta(\mathbf r), so the origin carries the whole source. Classically, ∇2u\nabla^2 u is simply undefined there.

Answer

  ∂2u∂x2+∂2u∂y2+∂2u∂z2=0for all (x,y,z)≠(0,0,0);  u=r−1 is harmonic off the origin.  \boxed{\;\frac{\partial^{2}u}{\partial x^{2}}+\frac{\partial^{2}u}{\partial y^{2}}+\frac{\partial^{2}u}{\partial z^{2}}=0\quad\text{for all }(x,y,z)\neq(0,0,0);\ \ u=r^{-1}\text{ is harmonic off the origin.}\;}
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.