Menu Close

Functions of two or three variables: UPSC Maths Optional PYQ Solutions (2008–2026)

All 32 questions UPSC has asked on functions of two or three variables in the Mathematics Optional (Paper I, Calculus) from 2008 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Calculus topic-wise PYQs page.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the answer was worked out again independently with computer algebra (SymPy).
  • ✓ Proof checked step by step for “prove that” questions, every step was checked against the definitions.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 1c 2025 · 3c(ii) 2025 · 4b 2024 · 2b 2023 · 3b 2022 · 2b 2021 · 2b 2021 · 3a(i) 2020 · 4c 2019 · 1b 2019 · 4c(i) 2019 · 4c(ii) 2018 · 2b 2018 · 3b 2017 · 3c 2016 · 3a 2016 · 3b 2015 · 3b 2015 · 4d 2014 · 3b 2013 · 3a 2013 · 3b 2012 · 1a 2012 · 3a 2011 · 1c 2011 · 3b 2010 · 2b 2010 · 4b 2009 · 2b 2009 · 3b 2009 · 3c 2008 · 2b

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

If u(x,y,z)=(x2+y2+z2)−1/2, then find the value of ∂2u∂x2+∂2u∂y2+∂2u∂z2.

2026 · Paper I · Q1c · 10 marks

Solution

Write r2=x2+y2+z2r^2=x^2+y^2+z^2, so u=r−1u=r^{-1} and ∂r∂x=xr\dfrac{\partial r}{\partial x}=\dfrac xr. ∂u∂x=−1r2⋅xr=−xr3,∂2u∂x2=−1r3+3xr4⋅xr=−1r3+3x2r5.\frac{\partial u}{\partial x}=-\frac{1}{r^2}\cdot\frac xr=-\frac{x}{r^3},\qquad \frac{\partial^2u}{\partial x^2}=-\frac1{r^3}+\frac{3x}{r^4}\cdot\frac xr=-\frac1{r^3}+\frac{3x^2}{r^5}. In the same way, uyy=−1r3+3y2r5u_{yy}=-\dfrac1{r^3}+\dfrac{3y^2}{r^5} and uzz=−1r3+3z2r5u_{zz}=-\dfrac1{r^3}+\dfrac{3z^2}{r^5}. Adding, ∂2u∂x2+∂2u∂y2+∂2u∂z2=−3r3+3(x2+y2+z2)r5=−3r3+3r3=0\frac{\partial^2u}{\partial x^2}+\frac{\partial^2u}{\partial y^2}+\frac{\partial^2u}{\partial z^2}=-\frac{3}{r^3}+\frac{3(x^2+y^2+z^2)}{r^5}=-\frac3{r^3}+\frac3{r^3}=0 at every point other than the origin. (u=1/ru=1/r satisfies Laplace’s equation.)

✓ Checked by computer We computed the three second derivatives by computer (SymPy); their sum simplifies to 00.

↑ Back to the question list

If u(x,y)=xf(yx)+g(yx), where f and g are arbitrary functions, then show that I. x∂u∂x+y∂u∂y=xf(yx), II\. x2∂2u∂x2+2xy∂2u∂x∂y+y2∂2u∂y2=0.

2025 · Paper I · Q3c(ii) · 10 marks

Solution

Let v=yxv=\dfrac yx. Then vx=−yx2v_x=-\dfrac{y}{x^2}, vy=1xv_y=\dfrac1x, so xvx+yvy=−yx+yx=0.xv_x+yv_y=-\frac yx+\frac yx=0 . Write D=x∂∂x+y∂∂yD=x\dfrac{\partial}{\partial x}+y\dfrac{\partial}{\partial y}. For any function ϕ(v)\phi(v), Dϕ=ϕ′(v)(xvx+yvy)=0D\phi=\phi'(v)(xv_x+yv_y)=0.

I. D(g(v))=0D(g(v))=0, and D(xf(v))=x(f+xf′vx)+yxf′vy=xf+xf′(xvx+yvy)=xf(v).D\big(xf(v)\big)=x\big(f+xf'v_x\big)+y\,xf'v_y=xf+xf'\,(xv_x+yv_y)=xf(v). So x∂u∂x+y∂u∂y=xf(yx)x\dfrac{\partial u}{\partial x}+y\dfrac{\partial u}{\partial y}=x\,f\!\left(\dfrac yx\right).

II. Apply DD to Du=xux+yuyDu=xu_x+yu_y (assuming uxy=uyxu_{xy}=u_{yx}): D(Du)=x(ux+xuxx+yuxy)+y(xuxy+uy+yuyy)=x2uxx+2xyuxy+y2uyy+Du.D(Du)=x(u_x+xu_{xx}+yu_{xy})+y(xu_{xy}+u_y+yu_{yy})=x^2u_{xx}+2xyu_{xy}+y^2u_{yy}+Du . By part I, Du=xf(v)Du=xf(v), and D(xf(v))=xf(v)D(xf(v))=xf(v) again. So x2∂2u∂x2+2xy∂2u∂x∂y+y2∂2u∂y2=D(Du)−Du=xf−xf=0.◼x^2\frac{\partial^2u}{\partial x^2}+2xy\frac{\partial^2u}{\partial x\,\partial y}+y^2\frac{\partial^2u}{\partial y^2}=D(Du)-Du=xf-xf=0 .\quad\blacksquare

✓ Proof checked step by step Proof checked step by step; we also confirmed both identities by computer (SymPy) with arbitrary functions ff and gg.

↑ Back to the question list

If f(x,y)={xyx2−y2x2+y2,when (x,y)≠(0,0)0,when (x,y)=(0,0), then find fxy(0,0)andfyx(0,0).

2025 · Paper I · Q4b · 15 marks

Solution

We write fxy=∂∂y(∂f∂x)f_{xy}=\dfrac{\partial}{\partial y}\left(\dfrac{\partial f}{\partial x}\right) and fyx=∂∂x(∂f∂y)f_{yx}=\dfrac{\partial}{\partial x}\left(\dfrac{\partial f}{\partial y}\right).

fxf_x on the yy-axis. f(0,y)=0f(0,y)=0, so for any yy fx(0,y)=limh→0f(h,y)−0h=limh→0y(h2−y2)h2+y2=−y.f_x(0,y)=\lim_{h\to0}\frac{f(h,y)-0}{h}=\lim_{h\to0}\frac{y(h^2-y^2)}{h^2+y^2}=-y . fyf_y on the xx-axis. Similarly fy(x,0)=limk→0f(x,k)k=limk→0x(x2−k2)x2+k2=x.f_y(x,0)=\lim_{k\to0}\frac{f(x,k)}{k}=\lim_{k\to0}\frac{x(x^2-k^2)}{x^2+k^2}=x . Hence fxy(0,0)=limk→0fx(0,k)−fx(0,0)k=−kk=−1,fyx(0,0)=limh→0fy(h,0)−fy(0,0)h=hh=1.f_{xy}(0,0)=\lim_{k\to0}\frac{f_x(0,k)-f_x(0,0)}{k}=\frac{-k}{k}=-1,\qquad f_{yx}(0,0)=\lim_{h\to0}\frac{f_y(h,0)-f_y(0,0)}{h}=\frac hh=1 . fxy(0,0)=−1≠fyx(0,0)=1.f_{xy}(0,0)=-1\neq f_{yx}(0,0)=1 . (The mixed partial derivatives are not continuous at the origin, so Schwarz’s theorem does not apply.)

✓ Checked by computer We computed the first partial derivatives along the axes and the mixed derivatives at (0,0)(0,0) by computer (SymPy): −1-1 and 11.

↑ Back to the question list

If u=(x+y)/(1−xy) and v=tan−1x+tan−1y, then find ∂(u,v)/∂(x,y). Are u and v functionally related? If yes, find the relationship.

2024 · Paper I · Q2b · 15 marks

Solution

ux=(1−xy)+y(x+y)(1−xy)2=1+y2(1−xy)2,uy=1+x2(1−xy)2,u_x=\frac{(1-xy)+y(x+y)}{(1-xy)^2}=\frac{1+y^2}{(1-xy)^2},\qquad u_y=\frac{1+x^2}{(1-xy)^2}, vx=11+x2,vy=11+y2.v_x=\frac{1}{1+x^2},\qquad v_y=\frac1{1+y^2}. ∂(u,v)∂(x,y)=uxvy−uyvx=1(1−xy)2−1(1−xy)2=0.\frac{\partial(u,v)}{\partial(x,y)}=u_xv_y-u_yv_x=\frac{1}{(1-xy)^2}-\frac{1}{(1-xy)^2}=0 . Since the Jacobian vanishes identically, uu and vv are functionally related. Indeed, by the addition formula for tan\tan, tanv=tan(tan−1x)+tan(tan−1y)1−xy=x+y1−xy=u,\tan v=\frac{\tan(\tan^{-1}x)+\tan(\tan^{-1}y)}{1-xy}=\frac{x+y}{1-xy}=u, so the relationship is u=tanvu=\tan v (for xy≠1xy\neq1).

✓ Checked by computer We computed the Jacobian by computer (SymPy): it simplifies to 00.

↑ Back to the question list

Justify whether (0,0) is an extreme point for the function f(x,y)=2x4−3x2y+y2.

2023 · Paper I · Q3b · 15 marks

Solution

At (0,0)(0,0): fx=8x3−6xy=0f_x=8x^3-6xy=0, fy=−3x2+2y=0f_y=-3x^2+2y=0, so the origin is a stationary point. But r=fxx=0r=f_{xx}=0, s=fxy=0s=f_{xy}=0, t=fyy=2t=f_{yy}=2, so rt−s2=0rt-s^2=0 and the second-derivative test fails. We look at ff directly.

f(x,y)=2x4−3x2y+y2=(x2−y)(2x2−y),f(0,0)=0.f(x,y)=2x^4-3x^2y+y^2=(x^2-y)(2x^2-y),\qquad f(0,0)=0 .

  • Along y=0y=0: f=2x4>0f=2x^4>0 for x≠0x\ne0.
  • Along y=32x2y=\frac32x^2: f=(−12x2)(12x2)=−14x4<0f=\left(-\tfrac12x^2\right)\left(\tfrac12x^2\right)=-\tfrac14x^4<0 for x≠0x\ne0.

Every neighbourhood of the origin has points where f>0f>0 and points where f<0f<0. So (0,0)(0,0) is not an extreme point (it is a saddle-type point), even though ff has a minimum at OO along every straight line through the origin.

✓ Checked by computer We checked by computer (SymPy) the factorisation and the values of ff along y=0y=0 and y=32x2y=\frac32x^2.

↑ Back to the question list

A wire of length l is cut into two parts which are bent in the form of a square and a circle respectively. Using Lagrange’s method of undetermined multipliers, find the least value of the sum of the areas so formed.

2022 · Paper I · Q2b · 15 marks

Solution

Let the square have side xx and the circle radius rr. Minimise A=x2+πr2A=x^2+\pi r^2 subject to 4x+2πr=l4x+2\pi r=l. F=x2+πr2+λ(4x+2πr−l).F=x^2+\pi r^2+\lambda(4x+2\pi r-l). Fx=2x+4λ=0,Fr=2πr+2πλ=0⇒x=−2λ,r=−λ,so x=2r.F_x=2x+4\lambda=0,\qquad F_r=2\pi r+2\pi\lambda=0\;\Longrightarrow\;x=-2\lambda,\ r=-\lambda,\ \text{so } x=2r . From the constraint, 8r+2πr=l8r+2\pi r=l: r=l2(π+4),x=lπ+4.r=\frac{l}{2(\pi+4)},\qquad x=\frac{l}{\pi+4}. Amin=l2(π+4)2+πl24(π+4)2=l2(4+π)4(π+4)2=l24(π+4).A_{\min}=\frac{l^2}{(\pi+4)^2}+\frac{\pi l^2}{4(\pi+4)^2}=\frac{l^2(4+\pi)}{4(\pi+4)^2}=\frac{l^2}{4(\pi+4)} . This is the least value: AA is a sum of squares on a line, and the end cases give larger areas (l216\frac{l^2}{16} for all square, l24π\frac{l^2}{4\pi} for all circle). The wire is cut so that the square’s side equals the circle’s diameter.

✓ Checked by computer We solved the Lagrange equations by computer (SymPy) and compared with the two end cases (all square, all circle).

↑ Back to the question list

Given that f(x,y)=|x2−y2|. Find fxy(0,0) and fyx(0,0). Hence show that fxy(0,0)=fyx(0,0).

2021 · Paper I · Q2b · 15 marks

Solution

fx(0,y)f_x(0,y). For y≠0y\ne0 and |h|<|y||h|<|y|, f(h,y)=y2−h2f(h,y)=y^2-h^2 and f(0,y)=y2f(0,y)=y^2: fx(0,y)=limh→0(y2−h2)−y2h=limh→0(−h)=0.f_x(0,y)=\lim_{h\to0}\frac{(y^2-h^2)-y^2}{h}=\lim_{h\to0}(-h)=0 . For y=0y=0: fx(0,0)=lim|h2|h=limh=0f_x(0,0)=\lim\frac{|h^2|}{h}=\lim h=0. So fx(0,y)=0f_x(0,y)=0 for all yy.

fy(x,0)f_y(x,0). In the same way, fy(x,0)=limk→0(x2−k2)−x2k=0f_y(x,0)=\lim_{k\to0}\dfrac{(x^2-k^2)-x^2}{k}=0 for x≠0x\ne0, and fy(0,0)=0f_y(0,0)=0.

Hence fxy(0,0)=limk→0fx(0,k)−fx(0,0)k=0,fyx(0,0)=limh→0fy(h,0)−fy(0,0)h=0,f_{xy}(0,0)=\lim_{k\to0}\frac{f_x(0,k)-f_x(0,0)}{k}=0,\qquad f_{yx}(0,0)=\lim_{h\to0}\frac{f_y(h,0)-f_y(0,0)}{h}=0, so fxy(0,0)=fyx(0,0)=0f_{xy}(0,0)=f_{yx}(0,0)=0.

✓ Checked by computer We computed the partial derivatives along the axes by computer (SymPy): both are identically 00.

↑ Back to the question list

If u=x2+y2, v=x2−y2, where x=rcosθ, y=rsinθ, then find ∂(u,v)∂(r,θ).

2021 · Paper I · Q3a(i) · 7 marks

Solution

In polar form, u=r2u=r^2 and v=r2(cos2θ−sin2θ)=r2cos2θv=r^2(\cos^2\theta-\sin^2\theta)=r^2\cos2\theta. ∂(u,v)∂(r,θ)=∣2r02rcos2θ−2r2sin2θ∣=−4r3sin2θ.\frac{\partial(u,v)}{\partial(r,\theta)}=\begin{vmatrix}2r&0\\2r\cos2\theta&-2r^2\sin2\theta\end{vmatrix}=-4r^3\sin2\theta . Check by the chain rule. ∂(u,v)∂(x,y)=∣2x2y2x−2y∣=−8xy\dfrac{\partial(u,v)}{\partial(x,y)}=\begin{vmatrix}2x&2y\\2x&-2y\end{vmatrix}=-8xy and ∂(x,y)∂(r,θ)=r\dfrac{\partial(x,y)}{\partial(r,\theta)}=r, so the product is −8r3cosθsinθ=−4r3sin2θ-8r^3\cos\theta\sin\theta=-4r^3\sin2\theta. ✓

✓ Checked by computer We computed the Jacobian by computer (SymPy) two ways: directly, and as ∂(u,v)∂(x,y)⋅∂(x,y)∂(r,θ)\frac{\partial(u,v)}{\partial(x,y)}\cdot\frac{\partial(x,y)}{\partial(r,\theta)}.

↑ Back to the question list

Find an extreme value of the function u=x2+y2+z2, subject to the condition 2x+3y+5z=30, by using Lagrange’s method of undetermined multiplier.

2020 · Paper I · Q4c · 20 marks

Solution

F=x2+y2+z2+λ(2x+3y+5z−30).F=x^2+y^2+z^2+\lambda(2x+3y+5z-30). Fx=2x+2λ=0,Fy=2y+3λ=0,Fz=2z+5λ=0.F_x=2x+2\lambda=0,\quad F_y=2y+3\lambda=0,\quad F_z=2z+5\lambda=0 . So x:y:z=2:3:5x:y:z=2:3:5; write (x,y,z)=k(2,3,5)(x,y,z)=k(2,3,5). The constraint gives 38k=3038k=30, k=1519k=\frac{15}{19}: (x,y,z)=(3019,4519,7519),u=k2(4+9+25)=225361⋅38=45019.(x,y,z)=\left(\frac{30}{19},\frac{45}{19},\frac{75}{19}\right),\qquad u=k^2(4+9+25)=\frac{225}{361}\cdot38=\frac{450}{19}. This is a minimum: uu is the squared distance from the origin, which has no maximum on the plane. So umin=45019u_{\min}=\dfrac{450}{19}.

✓ Checked by computer We solved the Lagrange equations by computer (SymPy); the value equals the squared distance of the plane from the origin, 30238\frac{30^2}{38}.

↑ Back to the question list

Let f:D(⊆ℝ2)→ℝ be a function and (a,b)∈D. If f(x,y) is continuous at (a,b), then show that the functions f(x,b) and f(a,y) are continuous at x=a and at y=b respectively.

2019 · Paper I · Q1b · 10 marks

Solution

Since ff is continuous at (a,b)(a,b): for every ε>0\varepsilon>0 there is δ>0\delta>0 such that (x,y)∈D,(x−a)2+(y−b)2<δ⇒|f(x,y)−f(a,b)|<ε.(x,y)\in D,\ \sqrt{(x-a)^2+(y-b)^2}<\delta\ \Longrightarrow\ |f(x,y)-f(a,b)|<\varepsilon . f(x,b)f(x,b) at x=ax=a. Take any xx with (x,b)∈D(x,b)\in D and |x−a|<δ|x-a|<\delta. The distance from (x,b)(x,b) to (a,b)(a,b) is |x−a|<δ|x-a|<\delta, so |f(x,b)−f(a,b)|<ε|f(x,b)-f(a,b)|<\varepsilon. This is exactly continuity of x↦f(x,b)x\mapsto f(x,b) at x=ax=a.

f(a,y)f(a,y) at y=by=b. The same argument with |y−b|<δ|y-b|<\delta. ◼\blacksquare

The converse is false: f(x,y)=xyx2+y2f(x,y)=\dfrac{xy}{x^2+y^2}, f(0,0)=0f(0,0)=0, has f(x,0)=0f(x,0)=0 and f(0,y)=0f(0,y)=0 (both continuous) but is not continuous at (0,0)(0,0) (along y=xy=x it equals 12\tfrac12).

✓ Proof checked step by step Proof checked step by step against the ε\varepsilon–δ\delta definitions.

↑ Back to the question list

If u=sin−1x1/3+y1/3x1/2+y1/2 then show that sin2u is a homogeneous function of x and y of degree −16. Hence show that x2∂2u∂x2+2xy∂2u∂x∂y+y2∂2u∂y2=tanu12(1312+tan2u12)

2019 · Paper I · Q4c(i) · 12 marks

Solution

Homogeneity. z=sin2u=x1/3+y1/3x1/2+y1/2z=\sin^2u=\dfrac{x^{1/3}+y^{1/3}}{x^{1/2}+y^{1/2}}. Replacing x,yx,y by tx,tytx,ty multiplies the numerator by t1/3t^{1/3} and the denominator by t1/2t^{1/2}, so z(tx,ty)=t−1/6z(x,y)z(tx,ty)=t^{-1/6}z(x,y): sin2u\sin^2u is homogeneous of degree −16-\frac16.

First order. By Euler’s theorem, xzx+yzy=−16zxz_x+yz_y=-\frac16z. With z=sin2uz=\sin^2u, zx=2sinucosuuxz_x=2\sin u\cos u\,u_x, so 2sinucosu(xux+yuy)=−16sin2u⇒xux+yuy=−tanu12=:g(u).2\sin u\cos u\,(xu_x+yu_y)=-\frac16\sin^2u\;\Longrightarrow\;xu_x+yu_y=-\frac{\tan u}{12}=:g(u). Second order. Apply x∂x+y∂yx\partial_x+y\partial_y to both sides: x2uxx+2xyuxy+y2uyy+(xux+yuy)=g′(u)(xux+yuy)=g′(u)g(u).x^2u_{xx}+2xyu_{xy}+y^2u_{yy}+(xu_x+yu_y)=g'(u)\,(xu_x+yu_y)=g'(u)g(u). So x2uxx+2xyuxy+y2uyy=g(u)[g′(u)−1]x^2u_{xx}+2xyu_{xy}+y^2u_{yy}=g(u)\left[g'(u)-1\right], with g′(u)=−sec2u12g'(u)=-\dfrac{\sec^2u}{12}: =−tanu12(−sec2u12−1)=tanu12(1+1+tan2u12)=tanu12(1312+tan2u12).◼=-\frac{\tan u}{12}\left(-\frac{\sec^2u}{12}-1\right)=\frac{\tan u}{12}\left(1+\frac{1+\tan^2u}{12}\right)=\frac{\tan u}{12}\left(\frac{13}{12}+\frac{\tan^2u}{12}\right).\quad\blacksquare

✓ Proof checked step by step Proof checked step by step; we also checked the final identity by computer (SymPy) at sample points.

↑ Back to the question list

Using the Jacobian method, show that if f′(x)=11+x2 and f(0)=0, then f(x)+f(y)=f(x+y1−xy)

2019 · Paper I · Q4c(ii) · 8 marks

Solution

Let u=f(x)+f(y)u=f(x)+f(y) and v=x+y1−xyv=\dfrac{x+y}{1-xy}. Then ux=f′(x)=11+x2u_x=f'(x)=\dfrac1{1+x^2}, uy=11+y2u_y=\dfrac{1}{1+y^2}, and (as in the 2024 question) vx=1+y2(1−xy)2,vy=1+x2(1−xy)2.v_x=\frac{1+y^2}{(1-xy)^2},\qquad v_y=\frac{1+x^2}{(1-xy)^2}. ∂(u,v)∂(x,y)=uxvy−uyvx=11+x2⋅1+x2(1−xy)2−11+y2⋅1+y2(1−xy)2=0.\frac{\partial(u,v)}{\partial(x,y)}=u_xv_y-u_yv_x=\frac{1}{1+x^2}\cdot\frac{1+x^2}{(1-xy)^2}-\frac{1}{1+y^2}\cdot\frac{1+y^2}{(1-xy)^2}=0 . So uu and vv are functionally related: u=ϕ(v)u=\phi(v) for some function ϕ\phi, i.e. f(x)+f(y)=ϕ(x+y1−xy).f(x)+f(y)=\phi\!\left(\frac{x+y}{1-xy}\right). To find ϕ\phi, put y=0y=0: f(x)+f(0)=ϕ(x)f(x)+f(0)=\phi(x), and f(0)=0f(0)=0, so ϕ=f\phi=f. Hence f(x)+f(y)=f(x+y1−xy).◼f(x)+f(y)=f\!\left(\frac{x+y}{1-xy}\right).\quad\blacksquare

✓ Proof checked step by step Proof checked step by step; we also confirmed by computer (SymPy) that the Jacobian is 00.

↑ Back to the question list

Find the shortest distance from the point (1,0) to the parabola y2=4x.

2018 · Paper I · Q2b · 13 marks

Solution

A point of the parabola is (x,y)(x,y) with y2=4xy^2=4x, x≥0x\ge0. Its squared distance from (1,0)(1,0) is d2=(x−1)2+y2=(x−1)2+4x=(x+1)2.d^2=(x-1)^2+y^2=(x-1)^2+4x=(x+1)^2 . For x≥0x\ge0 this is least at x=0x=0. So the nearest point is the vertex (0,0)(0,0) and the shortest distance is 11.

(So d=x+1d=x+1: (1,0)(1,0) is the focus of y2=4xy^2=4x, and the focal distance of any point is x+1x+1.)

✓ Checked by computer We minimised the squared distance by computer (SymPy): minimum 11 at (0,0)(0,0).

↑ Back to the question list

Let f(x,y)={xy2,if y>0−xy2,if y≤0 Determine which of ∂f∂x(0,1) and ∂f∂y(0,1) exists and which does not exist.

2018 · Paper I · Q3b · 12 marks

Solution

Near (0,1)(0,1) we have y>0y>0, so f(x,y)=xy2f(x,y)=xy^2 in a whole neighbourhood of the point. ∂f∂x(0,1)=limh→0f(h,1)−f(0,1)h=limh→0h−0h=1,\frac{\partial f}{\partial x}(0,1)=\lim_{h\to0}\frac{f(h,1)-f(0,1)}{h}=\lim_{h\to0}\frac{h-0}{h}=1, ∂f∂y(0,1)=limk→0f(0,1+k)−f(0,1)k=limk→00−0k=0.\frac{\partial f}{\partial y}(0,1)=\lim_{k\to0}\frac{f(0,1+k)-f(0,1)}{k}=\lim_{k\to0}\frac{0-0}{k}=0 . Both partial derivatives exist at (0,1)(0,1): fx(0,1)=1f_x(0,1)=1 and fy(0,1)=0f_y(0,1)=0.

(In fact f(x,y)=xy|y|f(x,y)=xy|y|, and ∂∂y(y|y|)=2|y|\frac{\partial}{\partial y}(y|y|)=2|y|, so both partial derivatives exist at every point of the plane, including the line y=0y=0.)

✓ Checked by computer We computed both partial derivatives at (0,1)(0,1) from the definition by computer (SymPy).

↑ Back to the question list

If f(x,y)={xy(x2−y2)x2+y2,(x,y)≠(0,0)0,(x,y)=(0,0), calculate ∂2f∂x∂y and ∂2f∂y∂x at (0,0).

2017 · Paper I · Q3c · 15 marks

Solution

This is the same function as in the 2025 question above. From there, fx(0,y)=−yf_x(0,y)=-y and fy(x,0)=xf_y(x,0)=x for all x,yx,y. So ∂2f∂x∂y(0,0)=∂∂x(∂f∂y)(0,0)=limh→0fy(h,0)−fy(0,0)h=limh→0hh=1,\frac{\partial^2f}{\partial x\,\partial y}(0,0)=\frac{\partial}{\partial x}\left(\frac{\partial f}{\partial y}\right)(0,0)=\lim_{h\to0}\frac{f_y(h,0)-f_y(0,0)}{h}=\lim_{h\to0}\frac{h}{h}=1, ∂2f∂y∂x(0,0)=∂∂y(∂f∂x)(0,0)=limk→0fx(0,k)−fx(0,0)k=limk→0−kk=−1.\frac{\partial^2f}{\partial y\,\partial x}(0,0)=\frac{\partial}{\partial y}\left(\frac{\partial f}{\partial x}\right)(0,0)=\lim_{k\to0}\frac{f_x(0,k)-f_x(0,0)}{k}=\lim_{k\to0}\frac{-k}{k}=-1 . The two mixed derivatives at the origin are unequal (11 and −1-1).

✓ Checked by computer We computed the mixed derivatives at (0,0)(0,0) by computer (SymPy): 11 and −1-1.

↑ Back to the question list

Find the maximum and minimum values of x2+y2+z2 subject to the conditions x24+y25+z225=1 and x+y−z=0.

2016 · Paper I · Q3a · 20 marks

Solution

Let s=x2+y2+z2s=x^2+y^2+z^2 and F=x2+y2+z2+λ(x24+y25+z225−1)+μ(x+y−z).F=x^2+y^2+z^2+\lambda\left(\frac{x^2}{4}+\frac{y^2}{5}+\frac{z^2}{25}-1\right)+\mu(x+y-z). 2x+λx2+μ=0,2y+2λy5+μ=0,2z+2λz25−μ=0.2x+\frac{\lambda x}{2}+\mu=0,\qquad 2y+\frac{2\lambda y}{5}+\mu=0,\qquad 2z+\frac{2\lambda z}{25}-\mu=0 . Multiply by x,y,zx,y,z and add; using both constraints, 2s+2λ=02s+2\lambda=0, so λ=−s\lambda=-s. Then x=−2μ4−s,y=−5μ/25−s,z=25μ/225−s.x=\frac{-2\mu}{4-s},\qquad y=\frac{-5\mu/2}{5-s},\qquad z=\frac{25\mu/2}{25-s}. Substituting in x+y−z=0x+y-z=0 (with μ≠0\mu\neq0): 44−s+55−s+2525−s=0⇒34s2−490s+1500=0⇒17s2−245s+750=0.\frac{4}{4-s}+\frac{5}{5-s}+\frac{25}{25-s}=0\;\Longrightarrow\;34s^2-490s+1500=0\;\Longrightarrow\;17s^2-245s+750=0 . s=245±9534=10 or 7517.s=\frac{245\pm95}{34}=10\ \text{ or }\ \frac{75}{17}. Maximum =10=10, at ±519(2,3,5)\pm\sqrt{\tfrac5{19}}\,(2,3,5); minimum =7517=\dfrac{75}{17}, at ±k(8,−7,1)\pm k(8,-7,1) with k2=25646k^2=\frac{25}{646}. (Geometrically: these are the squares of the semi-axes of the ellipse in which the plane cuts the ellipsoid.)

✓ Checked by computer We solved the Lagrange equations by computer (SymPy): the stationary values are 1010 and 7517\frac{75}{17}.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Let f(x,y)={2x4y−5x2y2+y5(x2+y2)2,(x,y)≠(0,0)0,(x,y)=(0,0) Find a δ>0 such that |f(x,y)−f(0,0)|<.01, whenever x2+y2<δ.

2016 · Paper I · Q3b · 15 marks

Solution

As printed, no such δ\delta exists. Along y=xy=x: f(x,x)=2x5−5x4+x54x4=3x4−54→−54≠0.f(x,x)=\frac{2x^5-5x^4+x^5}{4x^4}=\frac{3x}{4}-\frac54\;\longrightarrow\;-\frac54\neq0 . So |f(x,x)−f(0,0)||f(x,x)-f(0,0)| is close to 54\frac54 for small xx, and ff is not even continuous at the origin. The middle term 5x2y25x^2y^2 has degree 4 while the others have degree 5, which suggests a misprint for 5x2y35x^2y^3.

With 5x2y35x^2y^3 (the intended version). Let ρ=x2+y2\rho=\sqrt{x^2+y^2}, so |x|,|y|≤ρ|x|,|y|\le\rho: |f(x,y)|≤2x4|y|+5x2|y|3+|y|5ρ4≤2ρ5+5ρ5+ρ5ρ4=8ρ.|f(x,y)|\le\frac{2x^4|y|+5x^2|y|^3+|y|^5}{\rho^4}\le\frac{2\rho^5+5\rho^5+\rho^5}{\rho^4}=8\rho . So |f(x,y)−0|<0.01|f(x,y)-0|<0.01 whenever 8ρ<0.018\rho<0.01. A suitable choice is δ=0.018=0.00125.\delta=\frac{0.01}{8}=0.00125 . (Any smaller δ\delta also works.)

✓ Checked by computer We checked by computer (SymPy): as printed, f→−54f\to-\frac54 along y=xy=x; with 5x2y35x^2y^3 the bound |f|≤8x2+y2|f|\le8\sqrt{x^2+y^2} holds.

↑ Back to the question list

Which point of the sphere x2+y2+z2=1 is at the maximum distance from the point (2,1,3)?

2015 · Paper I · Q3b · 13 marks

Solution

Maximise d2=(x−2)2+(y−1)2+(z−3)2d^2=(x-2)^2+(y-1)^2+(z-3)^2 subject to x2+y2+z2=1x^2+y^2+z^2=1: F=d2−λ(x2+y2+z2−1):(x−2)=λx,(y−1)=λy,(z−3)=λz.F=d^2-\lambda(x^2+y^2+z^2-1):\quad (x-2)=\lambda x,\ (y-1)=\lambda y,\ (z-3)=\lambda z . So (x,y,z)=11−λ(2,1,3)(x,y,z)=\dfrac{1}{1-\lambda}(2,1,3): the point lies on the line through the origin and (2,1,3)(2,1,3). On the unit sphere, (x,y,z)=±114(2,1,3).(x,y,z)=\pm\frac{1}{\sqrt{14}}(2,1,3). The ++ sign gives the nearest point (distance 14−1\sqrt{14}-1); the −– sign gives the farthest: (−214,−114,−314),at distance 14+1.\left(-\frac{2}{\sqrt{14}},\,-\frac{1}{\sqrt{14}},\,-\frac{3}{\sqrt{14}}\right),\qquad\text{at distance }\sqrt{14}+1 .

✓ Checked by computer We solved the Lagrange equations by computer (SymPy): the farthest point is −114(2,1,3)-\frac{1}{\sqrt{14}}(2,1,3).

↑ Back to the question list

For the function f(x,y)={x2−xyx2+y,(x,y)≠(0,0)0(x,y)=(0,0) Examine the continuity and differentiability.

2015 · Paper I · Q4d · 12 marks

Solution

The function is defined for y≥0y\ge0 (because of y\sqrt y).

Continuity. Along y=0y=0 (x≠0x\ne0): f(x,0)=x2x2=1→1f(x,0)=\dfrac{x^2}{x^2}=1\to1. Along x=0x=0 (y>0y>0): f(0,y)=0→0f(0,y)=0\to0. The limit at the origin does not exist, so ff is not continuous at (0,0)(0,0). (Away from the origin ff is continuous, being a quotient with non-zero denominator.)

Partial derivatives at (0,0)(0,0). fx(0,0)=limh→0f(h,0)−0h=limh→01hdoes not exist;fy(0,0)=limk→0+f(0,k)k=0.f_x(0,0)=\lim_{h\to0}\frac{f(h,0)-0}{h}=\lim_{h\to0}\frac1h\ \text{does not exist};\qquad f_y(0,0)=\lim_{k\to0^+}\frac{f(0,k)}{k}=0 . Differentiability. A function differentiable at a point is continuous there. Since ff is not continuous at (0,0)(0,0), it is not differentiable at (0,0)(0,0).

✓ Checked by computer We computed the limit along y=0y=0 and the partial derivatives at (0,0)(0,0) by computer (SymPy).

↑ Back to the question list

Find the maximum or minimum values of x2+y2+z2 subject to the conditions ax2+by2+cz2=1 and lx+my+nz=0. Interpret the result geometrically.

2014 · Paper I · Q3b · 20 marks

Solution

Let s=x2+y2+z2s=x^2+y^2+z^2 and F=x2+y2+z2+λ(ax2+by2+cz2−1)+μ(lx+my+nz).F=x^2+y^2+z^2+\lambda(ax^2+by^2+cz^2-1)+\mu(lx+my+nz). 2x+2λax+μl=0,2y+2λby+μm=0,2z+2λcz+μn=0.2x+2\lambda ax+\mu l=0,\qquad 2y+2\lambda by+\mu m=0,\qquad 2z+2\lambda cz+\mu n=0 . Multiply by x,y,zx,y,z and add; using both constraints, 2s+2λ=02s+2\lambda=0, so λ=−s\lambda=-s. Then x=−μl2(1−as),y=−μm2(1−bs),z=−μn2(1−cs).x=\frac{-\mu l}{2(1-as)},\quad y=\frac{-\mu m}{2(1-bs)},\quad z=\frac{-\mu n}{2(1-cs)} . Putting these in lx+my+nz=0lx+my+nz=0 gives the equation for the stationary values: l21−as+m21−bs+n21−cs=0,\frac{l^2}{1-as}+\frac{m^2}{1-bs}+\frac{n^2}{1-cs}=0, that is, s2(l2bc+m2ca+n2ab)−s[l2(b+c)+m2(c+a)+n2(a+b)]+(l2+m2+n2)=0.s^2\left(l^2bc+m^2ca+n^2ab\right)-s\left[l^2(b+c)+m^2(c+a)+n^2(a+b)\right]+\left(l^2+m^2+n^2\right)=0 . Its two roots are the maximum and minimum values of x2+y2+z2x^2+y^2+z^2.

Geometric meaning. The plane lx+my+nz=0lx+my+nz=0 passes through the centre of the central conicoid ax2+by2+cz2=1ax^2+by^2+cz^2=1 and cuts it in a conic (an ellipse when a,b,c>0a,b,c>0). x2+y2+z2x^2+y^2+z^2 is the square of the distance from the centre, so its extreme values are the squares of the semi-axes of this central section, and the stationary points are the ends of its axes.

✓ Checked by computer We checked the resulting quadratic by computer (SymPy) for sample values of a,b,c,l,m,na,b,c,l,m,n against direct Lagrange solutions.

↑ Back to the question list

Using Lagrange’s multiplier method, find the shortest distance between the line y=10−2x and the ellipse x24+y29=1.

2013 · Paper I · Q3a · 20 marks

Solution

The line 2x+y=102x+y=10 does not meet the ellipse: substituting y=10−2xy=10-2x gives 25x2−160x+364=025x^2-160x+364=0, whose discriminant is negative. The whole ellipse lies on the side 2x+y<102x+y<10, so the distance of an ellipse point (x,y)(x,y) from the line is 10−2x−y5.\frac{10-2x-y}{\sqrt5}. Lagrange. Minimise g=10−2x−yg=10-2x-y subject to x24+y29=1\dfrac{x^2}{4}+\dfrac{y^2}{9}=1: −2=λx2,−1=λ2y9⇒x=−4λ,y=−92λ.-2=\lambda\frac x2,\quad -1=\lambda\frac{2y}{9}\;\Longrightarrow\;x=-\frac4\lambda,\quad y=-\frac{9}{2\lambda}. Then 4λ2+94λ2=1\dfrac{4}{\lambda^2}+\dfrac{9}{4\lambda^2}=1, so λ=±52\lambda=\pm\dfrac52. With λ=−52\lambda=-\frac52: (x,y)=(85,95)(x,y)=\left(\frac85,\frac95\right) and g=5g=5 (the other choice gives g=15g=15, the farthest point).

Shortest distance =55=5=\dfrac{5}{\sqrt5}=\sqrt5, between (85,95)\left(\frac85,\frac95\right) on the ellipse and (185,145)\left(\frac{18}{5},\frac{14}{5}\right), the foot of the perpendicular on the line.

✓ Checked by computer We solved the Lagrange equations by computer (SymPy) and also minimised directly over the ellipse; both give 5\sqrt5.

↑ Back to the question list

Compute fxy(0,0) and fyx(0,0) for the function f(x,y)={xy3x+y2,(x,y)≠(0,0)0,(x,y)=(0,0). Also, discuss the continuity of fxy and fyx at (0,0).

2013 · Paper I · Q3b · 15 marks

Solution

We write fxy=∂∂y(∂f∂x)f_{xy}=\dfrac{\partial}{\partial y}\left(\dfrac{\partial f}{\partial x}\right), fyx=∂∂x(∂f∂y)f_{yx}=\dfrac{\partial}{\partial x}\left(\dfrac{\partial f}{\partial y}\right). Note f(0,y)=0f(0,y)=0 and f(x,0)=0f(x,0)=0. fx(0,y)=limh→0f(h,y)h=limh→0y3h+y2=y(y≠0),fx(0,0)=0,f_x(0,y)=\lim_{h\to0}\frac{f(h,y)}{h}=\lim_{h\to0}\frac{y^3}{h+y^2}=y\ (y\neq0),\qquad f_x(0,0)=0, fy(x,0)=limk→0f(x,k)k=limk→0xk2x+k2=0(x≠0),fy(0,0)=0.f_y(x,0)=\lim_{k\to0}\frac{f(x,k)}{k}=\lim_{k\to0}\frac{xk^2}{x+k^2}=0\ (x\ne0),\qquad f_y(0,0)=0 . Hence fxy(0,0)=limk→0fx(0,k)−0k=1,fyx(0,0)=limh→0fy(h,0)−0h=0.f_{xy}(0,0)=\lim_{k\to0}\frac{f_x(0,k)-0}{k}=1,\qquad f_{yx}(0,0)=\lim_{h\to0}\frac{f_y(h,0)-0}{h}=0 . Continuity. Away from the origin (where x+y2≠0x+y^2\neq0), both mixed derivatives equal fxy=fyx=y4(5x+y2)(x+y2)3.f_{xy}=f_{yx}=\frac{y^4(5x+y^2)}{(x+y^2)^3}. Its limit as (x,y)→(0,0)(x,y)\to(0,0) depends on the path: along x=0x=0 it is 11, along y=0y=0 it is 00, along x=y2x=y^2 it is 6y68y6=34\frac{6y^6}{8y^6}=\frac34. So the limit does not exist, and neither fxyf_{xy} nor fyxf_{yx} is continuous at (0,0)(0,0), which is why they can differ there.

✓ Checked by computer We computed fx(0,y)f_x(0,y), fy(x,0)f_y(x,0) and the mixed derivative away from the origin by computer (SymPy), and its limits along x=0x=0, y=0y=0 and x=y2x=y^2.

↑ Back to the question list

Define a function f of two real variables in the xy-plane by f(x,y)={x3cos1y+y3cos1xx2+y2for x,y≠00,otherwise Check the continuity and differentiability of f at (0,0).

2012 · Paper I · Q1a · 12 marks

Solution

Continuity. For x,y≠0x,y\neq0, using |cos|≤1|\cos|\le1 and |x|3≤|x|(x2+y2)|x|^3\le|x|(x^2+y^2): |f(x,y)|≤|x|3+|y|3x2+y2≤|x|+|y|→0.|f(x,y)|\le\frac{|x|^3+|y|^3}{x^2+y^2}\le|x|+|y|\to0 . Elsewhere f=0f=0. So f(x,y)→0=f(0,0)f(x,y)\to0=f(0,0): ff is continuous at (0,0)(0,0).

Partial derivatives. f(h,0)=0f(h,0)=0 and f(0,k)=0f(0,k)=0 (“otherwise”), so fx(0,0)=fy(0,0)=0f_x(0,0)=f_y(0,0)=0.

Differentiability. ff would be differentiable at (0,0)(0,0) only if lim(h,k)→(0,0)f(h,k)−0−0⋅h−0⋅kh2+k2=0.\lim_{(h,k)\to(0,0)}\frac{f(h,k)-0-0\cdot h-0\cdot k}{\sqrt{h^2+k^2}}=0 . Along h=kh=k: f(h,h)2|h|=2h3cos(1/h)2h2⋅2|h|=sgn(h)cos(1/h)2\dfrac{f(h,h)}{\sqrt2|h|}=\dfrac{2h^3\cos(1/h)}{2h^2\cdot\sqrt2|h|}=\dfrac{\operatorname{sgn}(h)\cos(1/h)}{\sqrt2}, which oscillates and has no limit. So ff is not differentiable at (0,0)(0,0).

✓ Checked by computer We checked by computer: |f|≤|x|+|y||f|\le|x|+|y| at random points, and f(h,h)/2|h|=cos(1/h)sgnh/2f(h,h)/\sqrt2|h|=\cos(1/h)\operatorname{sgn}h/\sqrt2 has no limit.

↑ Back to the question list

Find the points of local extrema and saddle points of the function f of two variables defined by f(x,y)=x3+y3−63(x+y)+12xy

2012 · Paper I · Q3a · 20 marks

Solution

fx=3x2−63+12y=0,fy=3y2−63+12x=0.f_x=3x^2-63+12y=0,\qquad f_y=3y^2-63+12x=0 . Subtracting: 3(x2−y2)−12(x−y)=03(x^2-y^2)-12(x-y)=0, i.e. (x−y)(x+y−4)=0(x-y)(x+y-4)=0.

  • y=xy=x: x2+4x−21=0x^2+4x-21=0, so x=3x=3 or x=−7x=-7: points (3,3)(3,3), (−7,−7)(-7,-7).
  • y=4−xy=4-x: x2−4x−5=0x^2-4x-5=0, so x=5x=5 or x=−1x=-1: points (5,−1)(5,-1), (−1,5)(-1,5).

With r=fxx=6xr=f_{xx}=6x, s=fxy=12s=f_{xy}=12, t=fyy=6yt=f_{yy}=6y, rt−s2=36xy−144rt-s^2=36xy-144:

Point rt−s2rt-s^2 rr Nature ff
(3,3)(3,3) 180>0180>0 18>018>0 local minimum −216-216
(−7,−7)(-7,-7) 1620>01620>0 −42<0-42<0 local maximum 784784
(5,−1)(5,-1) −324<0-324<0 saddle point −188-188
(−1,5)(-1,5) −324<0-324<0 saddle point −188-188

✓ Checked by computer We found the stationary points and their Hessians by computer (SymPy); the four points and their types match.

↑ Back to the question list

Find lim(x,y)→(0,0)x2yx3+y3 if it exists.

2011 · Paper I · Q1c · 10 marks

Solution

Along the line y=mxy=mx (m≠−1m\neq-1, x≠0x\neq0): x2yx3+y3=mx3x3(1+m3)=m1+m3.\frac{x^2y}{x^3+y^3}=\frac{mx^3}{x^3(1+m^3)}=\frac{m}{1+m^3}. This depends on mm: it is 00 along y=0y=0 and 12\frac12 along y=xy=x. So the limit does not exist.

✓ Checked by computer We checked by computer (SymPy): along y=mxy=mx the value is m1+m3\frac{m}{1+m^3}.

↑ Back to the question list

Find the points on the sphere x2+y2+z2=4 that are closest to and farthest from the point (3,1,−1).

2011 · Paper I · Q3b · 20 marks

Solution

As in the 2015 question, the extreme points lie on the line through the centre OO and P(3,1,−1)P(3,1,-1). |OP|=11|OP|=\sqrt{11} and the sphere has radius 22, so the two points are ±211(3,1,−1)\pm\frac{2}{\sqrt{11}}(3,1,-1):

  • Closest: (611,211,−211)\left(\dfrac{6}{\sqrt{11}},\dfrac{2}{\sqrt{11}},-\dfrac{2}{\sqrt{11}}\right), at distance 11−2\sqrt{11}-2
  • Farthest: (−611,−211,211)\left(-\dfrac{6}{\sqrt{11}},-\dfrac{2}{\sqrt{11}},\dfrac{2}{\sqrt{11}}\right), at distance 11+2\sqrt{11}+2

(Lagrange: (x−3,y−1,z+1)=λ(x,y,z)(x-3,\,y-1,\,z+1)=\lambda(x,y,z) gives (x,y,z)=11−λ(3,1,−1)(x,y,z)=\frac{1}{1-\lambda}(3,1,-1), and x2+y2+z2=4x^2+y^2+z^2=4 fixes the two points.)

✓ Checked by computer We solved the Lagrange equations by computer (SymPy); the two points are as shown.

↑ Back to the question list

Show that a box (rectangular parallelopiped) of maximum volume V with prescribed surface area is a cube.

2010 · Paper I · Q2b · 20 marks

Solution

Let the edges be x,y,z>0x,y,z>0 and the prescribed surface area SS: 2(xy+yz+zx)=S2(xy+yz+zx)=S. Maximise V=xyzV=xyz. F=xyz−λ(xy+yz+zx):yz=λ(y+z),zx=λ(z+x),xy=λ(x+y).F=xyz-\lambda(xy+yz+zx):\qquad yz=\lambda(y+z),\quad zx=\lambda(z+x),\quad xy=\lambda(x+y). Multiply the first by xx and the second by yy: both left sides become xyzxyz, so λ(xy+xz)=λ(xy+yz)⇒λz(x−y)=0.\lambda(xy+xz)=\lambda(xy+yz)\;\Longrightarrow\;\lambda z(x-y)=0 . λ≠0\lambda\neq0 (otherwise yz=0yz=0) and z≠0z\neq0, so x=yx=y. In the same way y=zy=z. So the only stationary point has x=y=z=S/6x=y=z=\sqrt{S/6}: a cube.

It is the maximum: on 2(xy+yz+zx)=S2(xy+yz+zx)=S, V→0V\to0 whenever an edge tends to 00, and also when an edge x→∞x\to\infty (then y,z≤S2x→0y,z\le\frac{S}{2x}\to0 and V≤S2z→0V\le\frac S2 z\to0). So VV has a greatest value, attained at a stationary point, which must be this one. Vmax=(S6)3/2V_{\max}=\left(\frac S6\right)^{3/2}. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step; we also confirmed by computer (SymPy) that the Lagrange system forces x=y=zx=y=z.

↑ Back to the question list

If f(x,y) is a homogeneous function of degree n in x and y, and has continuous first- and second-order partial derivatives, then show that (i) x∂f∂x+y∂f∂y=nf \(ii\) x2∂2f∂x2+2xy∂2f∂x∂y+y2∂2f∂y2=n(n−1)f

2010 · Paper I · Q4b · 20 marks

Solution

ff homogeneous of degree nn means f(tx,ty)=tnf(x,y)f(tx,ty)=t^nf(x,y) for all t>0t>0.

(i) Differentiate with respect to tt (chain rule): xfx(tx,ty)+yfy(tx,ty)=ntn−1f(x,y).x\,f_x(tx,ty)+y\,f_y(tx,ty)=nt^{n-1}f(x,y). Put t=1t=1: xfx+yfy=nf\;xf_x+yf_y=nf.

(ii) Differentiate the last identity again with respect to tt: x2fxx(tx,ty)+2xyfxy(tx,ty)+y2fyy(tx,ty)=n(n−1)tn−2f(x,y),x^2f_{xx}(tx,ty)+2xy\,f_{xy}(tx,ty)+y^2f_{yy}(tx,ty)=n(n-1)t^{n-2}f(x,y), using fxy=fyxf_{xy}=f_{yx} (the second partial derivatives are continuous). Put t=1t=1: x2∂2f∂x2+2xy∂2f∂x∂y+y2∂2f∂y2=n(n−1)f.◼x^2\frac{\partial^2f}{\partial x^2}+2xy\frac{\partial^2f}{\partial x\,\partial y}+y^2\frac{\partial^2f}{\partial y^2}=n(n-1)f .\quad\blacksquare

✓ Proof checked step by step Proof checked step by step; we also checked both identities by computer (SymPy) for f=x3y2+x5f=x^3y^2+x^5 (n=5n=5) and f=x2+y2f=\sqrt{x^2+y^2} (n=1n=1).

↑ Back to the question list

If x=3±0.01 and y=4±0.01, with approximately what accuracy can you calculate the polar coordinates r and θ of the point P(x,y)? Express your estimates as percentage changes of the values that r and θ have at the point (3,4).

2009 · Paper I · Q2b · 20 marks

Solution

r=x2+y2r=\sqrt{x^2+y^2}, θ=tan−1yx\theta=\tan^{-1}\dfrac yx. At (3,4)(3,4): r=5r=5, θ=tan−143≈0.9273\theta=\tan^{-1}\frac43\approx0.9273 rad. With |dx|,|dy|≤0.01|dx|,|dy|\le0.01: dr=xdx+ydyr=3dx+4dy5,|dr|≤0.03+0.045=0.014.dr=\frac{x\,dx+y\,dy}{r}=\frac{3\,dx+4\,dy}{5},\qquad |dr|\le\frac{0.03+0.04}{5}=0.014 . dθ=xdy−ydxr2=3dy−4dx25,|dθ|≤0.03+0.0425=0.0028 rad.d\theta=\frac{x\,dy-y\,dx}{r^2}=\frac{3\,dy-4\,dx}{25},\qquad |d\theta|\le\frac{0.03+0.04}{25}=0.0028\text{ rad}. As percentages: |dr|r×100≤0.0145×100=0.28%,|dθ|θ×100≤0.00280.9273×100≈0.30%.\frac{|dr|}{r}\times100\le\frac{0.014}{5}\times100=0.28\%,\qquad \frac{|d\theta|}{\theta}\times100\le\frac{0.0028}{0.9273}\times100\approx0.30\% . So r=5±0.014r=5\pm0.014 (about ±0.28%\pm0.28\%) and θ=0.9273±0.0028\theta=0.9273\pm0.0028 rad (about ±0.3%\pm0.3\%).

✓ Checked by computer We checked the numbers by computer: |dr|≤0.014|dr|\le0.014, |dθ|≤0.0028|d\theta|\le0.0028, i.e. 0.28%0.28\% and 0.30%0.30\%.

↑ Back to the question list

Let f:ℝ2→ℝ be defined as f(x,y)={xyx2+y2,if (x,y)≠(0,0)0,if (x,y)=(0,0) Is f continuous at (0,0)? Compute partial derivatives of f at any point (x,y), if exist.

2009 · Paper I · Q3b · 20 marks

Solution

Continuity. Since |xy|≤12(x2+y2)|xy|\le\frac12(x^2+y^2), |f(x,y)|≤12(x2+y2)x2+y2=12x2+y2→0=f(0,0).|f(x,y)|\le\frac{\frac12(x^2+y^2)}{\sqrt{x^2+y^2}}=\frac12\sqrt{x^2+y^2}\to0=f(0,0). So ff is continuous at (0,0)(0,0).

Partial derivatives. Write ρ=x2+y2\rho=\sqrt{x^2+y^2}. For (x,y)≠(0,0)(x,y)\ne(0,0): fx=yρ−x2yρ3=y3(x2+y2)3/2,fy=x3(x2+y2)3/2.f_x=\frac{y}{\rho}-\frac{x^2y}{\rho^3}=\frac{y^3}{(x^2+y^2)^{3/2}},\qquad f_y=\frac{x^3}{(x^2+y^2)^{3/2}}. At the origin, f(h,0)=f(0,k)=0f(h,0)=f(0,k)=0, so fx(0,0)=limh→00h=0,fy(0,0)=0.f_x(0,0)=\lim_{h\to0}\frac{0}{h}=0,\qquad f_y(0,0)=0 . So both partial derivatives exist at every point. (They are not continuous at the origin, and ff is not differentiable there: along y=xy=x, f(h,h)2|h|=12≠0\frac{f(h,h)}{\sqrt2|h|}=\frac12\neq0.)

✓ Checked by computer We computed the partial derivatives by computer (SymPy) and checked |f|≤12x2+y2|f|\le\frac12\sqrt{x^2+y^2}.

↑ Back to the question list

A space probe in the shape of the ellipsoid 4x2+y2+4z2=16 enters the earth’s atmosphere and its surface begins to heat. After one hour, the temperature at the point (x,y,z) on the probe surface is given by T(x,y,z)=8x2+4yz−16z+600 Find the hottest point on the probe surface.

2009 · Paper I · Q3c · 20 marks

Solution

Maximise T=8x2+4yz−16z+600T=8x^2+4yz-16z+600 on 4x2+y2+4z2=164x^2+y^2+4z^2=16: 16x=8λx,4z=2λy,4y−16=8λz.16x=8\lambda x,\qquad 4z=2\lambda y,\qquad 4y-16=8\lambda z . Case λ=2\lambda=2 (from the first equation, if x≠0x\ne0): z=yz=y, then 4y−16=16y4y-16=16y, so y=z=−43y=z=-\frac43. The constraint gives 4x2=16−169−649=6494x^2=16-\frac{16}{9}-\frac{64}{9}=\frac{64}{9}, so x=±43x=\pm\frac43. T=8⋅169+4⋅169+16⋅43+600=19283≈642.7.T=8\cdot\frac{16}{9}+4\cdot\frac{16}{9}+16\cdot\frac43+600=\frac{1928}{3}\approx642.7 . Case x=0x=0: the remaining equations give the points (0,4,0)(0,4,0) with T=600T=600, and (0,−2,±3)(0,-2,\pm\sqrt3) with T=600∓243T=600\mp24\sqrt3, the larger being ≈641.6\approx641.6.

The hottest points are (±43,−43,−43),T=19283≈642.7∘.\left(\pm\frac43,\,-\frac43,\,-\frac43\right),\qquad T=\frac{1928}{3}\approx642.7^\circ .

✓ Checked by computer We solved the Lagrange equations by computer (SymPy) and compared TT at all stationary points; the largest is 19283\frac{1928}{3}.

↑ Back to the question list

Determine the maximum and minimum distances of the origin from the curve given by the equation 3x2+4xy+6y2=140.

2008 · Paper I · Q2b · 20 marks

Solution

Extremise r2=x2+y2r^2=x^2+y^2 subject to 3x2+4xy+6y2=1403x^2+4xy+6y^2=140. Lagrange: x=μ(3x+2y),y=μ(2x+6y).x=\mu(3x+2y),\qquad y=\mu(2x+6y). Writing k=1/μk=1/\mu, this is (3−k)x+2y=0(3-k)x+2y=0, 2x+(6−k)y=02x+(6-k)y=0. A non-zero solution needs ∣3−k226−k∣=k2−9k+14=0⇒k=2or7.\begin{vmatrix}3-k&2\\2&6-k\end{vmatrix}=k^2-9k+14=0\;\Longrightarrow\;k=2\ \text{or}\ 7 . Multiplying the Lagrange equations by xx and yy and adding: r2=μ⋅140r^2=\mu\cdot140, so r2=140kr^2=\dfrac{140}{k}.

  • k=2k=2: r2=70r^2=70, at points with x=−2yx=-2y (e.g. y2=14y^2=14)
  • k=7k=7: r2=20r^2=20, at points with y=2xy=2x (e.g. x2=4x^2=4)

Maximum distance 70\sqrt{70}; minimum distance 20=25\sqrt{20}=2\sqrt5. (The curve is an ellipse with these semi-axes.)

✓ Checked by computer We found the eigenvalues 2,72,7 and both points by computer (SymPy); the distances are 70\sqrt{70} and 252\sqrt5.

↑ Back to the question list

More on Calculus

Questions: UPSC Civil Services (Main) Examination, Mathematics Paper I, 2008–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted