Menu Close

Functions of several variables: UPSC Maths Optional PYQ Solutions (2010–2025)

All 17 questions UPSC has asked on functions of several variables in the Mathematics Optional (Paper II, Real Analysis) from 2010 to 2025, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Real Analysis 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):

2025 · 3b 2023 · 2b 2022 · 3b 2021 · 3b 2020 · 3c 2019 · 1b 2019 · 2c 2019 · 4a 2016 · 3b 2015 · 4b 2014 · 3b 2014 · 4b 2013 · 3c 2012 · 2b 2012 · 2d 2011 · 2d 2010 · 3d

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

Show that the volume of the greatest rectangular parallelopiped that can be inscribed in the ellipsoid x2a2+y2b2+z2c2=1 is 8abc33.

2025 · Paper II · Q3b · 20 marks

Solution

By symmetry the largest box has its faces parallel to the coordinate planes and its centre at the origin, with vertices (±x,±y,±z)(\pm x,\pm y,\pm z), x,y,z>0x,y,z>0, on the ellipsoid. Its volume is V=8xyzV=8xyz.

Lagrange’s method. Maximise V=8xyzV=8xyz subject to ϕ=x2a2+y2b2+z2c2−1=0\phi=\dfrac{x^2}{a^2}+\dfrac{y^2}{b^2}+\dfrac{z^2}{c^2}-1=0: 8yz=λ2xa2,8zx=λ2yb2,8xy=λ2zc2.8yz=\lambda\frac{2x}{a^2},\qquad8zx=\lambda\frac{2y}{b^2},\qquad8xy=\lambda\frac{2z}{c^2}. Multiply these by x,y,zx,y,z respectively: 8xyz=2λx2a2=2λy2b2=2λz2c28xyz=\dfrac{2\lambda x^2}{a^2}=\dfrac{2\lambda y^2}{b^2}=\dfrac{2\lambda z^2}{c^2}. So x2a2=y2b2=z2c2=13(they add up to 1),\frac{x^2}{a^2}=\frac{y^2}{b^2}=\frac{z^2}{c^2}=\frac13\qquad(\text{they add up to }1), i.e. x=a3x=\dfrac{a}{\sqrt3}, y=b3y=\dfrac{b}{\sqrt3}, z=c3z=\dfrac{c}{\sqrt3}.

Vmax=8⋅a3⋅b3⋅c3=8abc33.V_{\max}=8\cdot\frac{a}{\sqrt3}\cdot\frac{b}{\sqrt3}\cdot\frac{c}{\sqrt3}=\frac{8abc}{3\sqrt3}. It is a maximum: V≥0V\ge0 is continuous on the closed bounded part of the ellipsoid with x,y,z≥0x,y,z\ge0, it is 0 on the boundary (xx, yy or z=0z=0), and this is the only interior stationary point. (AM–GM confirms it: (x2a2y2b2z2c2)1/3≤13\left(\frac{x^2}{a^2}\frac{y^2}{b^2}\frac{z^2}{c^2}\right)^{1/3}\le\frac13.) ◼\blacksquare

✓ Checked by computer We checked by computer: the maximum is at x2/a2=y2/b2=z2/c2=13x^2/a^2=y^2/b^2=z^2/c^2=\frac13, giving 8abc33\frac{8abc}{3\sqrt3}.

↑ Back to the question list

Using the method of Lagrange’s multipliers, find the minimum and maximum distances of the point P(2,6,3) from the sphere x2+y2+z2=4.

2023 · Paper II · Q2b · 15 marks

Solution

Find the extreme values of D=(x−2)2+(y−6)2+(z−3)2D=(x-2)^2+(y-6)^2+(z-3)^2 (the square of the distance) on x2+y2+z2=4x^2+y^2+z^2=4.

F=(x−2)2+(y−6)2+(z−3)2+λ(x2+y2+z2−4).F=(x-2)^2+(y-6)^2+(z-3)^2+\lambda(x^2+y^2+z^2-4). Fx=2(x−2)+2λx=0⇒x=21+λ,y=61+λ,z=31+λ.F_x=2(x-2)+2\lambda x=0\Rightarrow x=\frac{2}{1+\lambda},\quad y=\frac{6}{1+\lambda},\quad z=\frac{3}{1+\lambda}. So (x,y,z)=k(2,6,3)(x,y,z)=k(2,6,3) with k=11+λk=\frac1{1+\lambda}. Put into the sphere: k2(4+36+9)=4k^2(4+36+9)=4, so 49k2=449k^2=4, k=±27k=\pm\dfrac27.

  • k=27k=\frac27: the point (47,127,67)\left(\frac47,\frac{12}{7},\frac67\right). Distance =(1−k)⋅|OP|=57⋅7=5=(1-k)\cdot|OP|=\frac57\cdot7=5.
  • k=−27k=-\frac27: the point (−47,−127,−67)\left(-\frac47,-\frac{12}{7},-\frac67\right). Distance =(1+27)⋅7=9=(1+\frac27)\cdot7=9.

(Here |OP|=4+36+9=7|OP|=\sqrt{4+36+9}=7, and distances along the line OPOP are |1−k|⋅7|1-k|\cdot7.)

Minimum distance =5=5, maximum distance =9=9. These are the nearest and farthest points of the sphere on the line through the centre and PP.

✓ Checked by computer We checked by computer: |OP|=7|OP|=7, so the distances are 7−2=57-2=5 and 7+2=97+2=9.

↑ Back to the question list

Find the maximum and minimum values of x2a4+y2b4+z2c4, when lx+my+nz=0 and x2a2+y2b2+z2c2=1. Interpret the result geometrically.

2022 · Paper II · Q3b · 20 marks

Solution

Let u=x2a4+y2b4+z2c4u=\dfrac{x^2}{a^4}+\dfrac{y^2}{b^4}+\dfrac{z^2}{c^4}. Use two multipliers: F=u+λ(x2a2+y2b2+z2c2−1)+μ(lx+my+nz).F=u+\lambda\left(\frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{z^2}{c^2}-1\right)+\mu(lx+my+nz). 2xa4+2λxa2+μl=0,2yb4+2λyb2+μm=0,2zc4+2λzc2+μn=0.\frac{2x}{a^4}+\frac{2\lambda x}{a^2}+\mu l=0,\quad\frac{2y}{b^4}+\frac{2\lambda y}{b^2}+\mu m=0,\quad\frac{2z}{c^4}+\frac{2\lambda z}{c^2}+\mu n=0 .

Find λ\lambda. Multiply by x,y,zx,y,z and add; using the two constraints, 2u+2λ+0=02u+2\lambda+0=0, so λ=−u\lambda=-u.

Find x,y,zx,y,z. Then 2xa4(1−a2u)=−μl\dfrac{2x}{a^4}(1-a^2u)=-\mu l, so x=−μ2⋅la41−a2u,y=−μ2⋅mb41−b2u,z=−μ2⋅nc41−c2u.x=-\frac{\mu}{2}\cdot\frac{la^4}{1-a^2u},\quad y=-\frac{\mu}{2}\cdot\frac{mb^4}{1-b^2u},\quad z=-\frac{\mu}{2}\cdot\frac{nc^4}{1-c^2u}.

Use the plane lx+my+nz=0lx+my+nz=0: l2a41−a2u+m2b41−b2u+n2c41−c2u=0.\frac{l^2a^4}{1-a^2u}+\frac{m^2b^4}{1-b^2u}+\frac{n^2c^4}{1-c^2u}=0 . Clearing denominators this is a quadratic in uu: l2a4(1−b2u)(1−c2u)+m2b4(1−c2u)(1−a2u)+n2c4(1−a2u)(1−b2u)=0,l^2a^4(1-b^2u)(1-c^2u)+m^2b^4(1-c^2u)(1-a^2u)+n^2c^4(1-a^2u)(1-b^2u)=0, and its two roots are the maximum and minimum values of uu.

Geometric meaning. The tangent plane to the ellipsoid at (x,y,z)(x,y,z) is xXa2+yYb2+zZc2=1\dfrac{xX}{a^2}+\dfrac{yY}{b^2}+\dfrac{zZ}{c^2}=1, so the perpendicular pp from the centre to it satisfies 1p2=x2a4+y2b4+z2c4=u.\frac{1}{p^2}=\frac{x^2}{a^4}+\frac{y^2}{b^4}+\frac{z^2}{c^4}=u . The points (x,y,z)(x,y,z) run over the ellipse in which the central plane lx+my+nz=0lx+my+nz=0 cuts the ellipsoid. So the roots give the extreme values of 1/p21/p^2: the least and greatest perpendiculars from the centre to the tangent planes of the ellipsoid along this central section.

✓ Checked by computer We checked by computer: for sample values (a,b,c=2,1.5,1a,b,c=2,1.5,1; l,m,n=0.3,0.5,0.8l,m,n=0.3,0.5,0.8) numerical optimisation gives the same max and min as the roots of the equation below.

↑ Back to the question list

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

2021 · Paper II · Q3b · 20 marks

Solution

Let r2=x2+y2+z2r^2=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,\qquad2y+2\lambda by+\mu m=0,\qquad2z+2\lambda cz+\mu n=0 .

Find λ\lambda. Multiply by x,y,zx,y,z and add; by the two conditions, 2r2+2λ=02r^2+2\lambda=0, so λ=−r2\lambda=-r^2.

Find x,y,zx,y,z. 2x(1−ar2)=−μl2x(1-ar^2)=-\mu l, so x=−μl2(1−ar2),y=−μm2(1−br2),z=−μn2(1−cr2).x=-\frac{\mu l}{2(1-ar^2)},\qquad y=-\frac{\mu m}{2(1-br^2)},\qquad z=-\frac{\mu n}{2(1-cr^2)}.

Use the plane lx+my+nz=0lx+my+nz=0: l21−ar2+m21−br2+n21−cr2=0.\frac{l^2}{1-ar^2}+\frac{m^2}{1-br^2}+\frac{n^2}{1-cr^2}=0 . This is a quadratic in r2r^2, l2(1−br2)(1−cr2)+m2(1−cr2)(1−ar2)+n2(1−ar2)(1−br2)=0,l^2(1-br^2)(1-cr^2)+m^2(1-cr^2)(1-ar^2)+n^2(1-ar^2)(1-br^2)=0, whose two roots are the stationary values of x2+y2+z2x^2+y^2+z^2.

Geometric meaning. ax2+by2+cz2=1ax^2+by^2+cz^2=1 is a central conicoid and lx+my+nz=0lx+my+nz=0 is a plane through its centre, so they meet in a conic with centre OO. The quantity x2+y2+z2x^2+y^2+z^2 is the square of the distance from the centre to a point of this conic; its stationary values occur at the ends of the axes. So the roots are the squares of the semi-axes of the central section of the conicoid by the plane lx+my+nz=0lx+my+nz=0.

✓ Checked by computer We checked by computer: for sample values numerical optimisation gives the same stationary values as the roots of the equation below.

↑ Back to the question list

If u=tan−1x3+y3x−y, x≠y then show that x2∂2u∂x2+2xy∂2u∂x∂y+y2∂2u∂y2=(1−4sin2u)sin2u

2020 · Paper II · Q3c · 20 marks

Solution

Let z=tanu=x3+y3x−yz=\tan u=\dfrac{x^3+y^3}{x-y}. This zz is homogeneous of degree 2 in x,yx,y.

Euler’s theorem for zz: xzx+yzy=2zxz_x+yz_y=2z. Since zx=sec2uuxz_x=\sec^2u\,u_x etc., sec2u(xux+yuy)=2tanu⇒xux+yuy=2tanusec2u=2sinucosu=sin2u.\sec^2u\,(xu_x+yu_y)=2\tan u\quad\Longrightarrow\quad xu_x+yu_y=\frac{2\tan u}{\sec^2u}=2\sin u\cos u=\sin2u . Call this g(u)=sin2ug(u)=\sin2u.

Second order. Differentiate xux+yuy=g(u)xu_x+yu_y=g(u) with respect to xx and to yy: ux+xuxx+yuxy=g′(u)ux,xuxy+uy+yuyy=g′(u)uy.u_x+xu_{xx}+yu_{xy}=g'(u)u_x,\qquad xu_{xy}+u_y+yu_{yy}=g'(u)u_y . Multiply the first by xx, the second by yy, and add: x2uxx+2xyuxy+y2uyy+(xux+yuy)=g′(u)(xux+yuy),x^2u_{xx}+2xyu_{xy}+y^2u_{yy}+(xu_x+yu_y)=g'(u)(xu_x+yu_y), so x2uxx+2xyuxy+y2uyy=g(u)(g′(u)−1)=sin2u(2cos2u−1).x^2u_{xx}+2xyu_{xy}+y^2u_{yy}=g(u)\big(g'(u)-1\big)=\sin2u\,(2\cos2u-1).

Finally 2cos2u−1=2(1−2sin2u)−1=1−4sin2u2\cos2u-1=2(1-2\sin^2u)-1=1-4\sin^2u. Hence x2∂2u∂x2+2xy∂2u∂x∂y+y2∂2u∂y2=(1−4sin2u)sin2u.◼x^2\frac{\partial^2u}{\partial x^2}+2xy\frac{\partial^2u}{\partial x\,\partial y}+y^2\frac{\partial^2u}{\partial y^2}=\left(1-4\sin^2u\right)\sin2u. \qquad\blacksquare

✓ Checked by computer We checked by computer: both sides agree numerically at (2,1)(2,1), (3,−1)(3,-1) and (0.5,2.7)(0.5,2.7).

↑ Back to the question list

Show that the function f(x,y)={x2−y2x−y,(x,y)≠(1,−1),(1,1)0,(x,y)=(1,1),(1,−1) is continuous and differentiable at (1,−1).

2019 · Paper II · Q1b · 10 marks

Solution

For x≠yx\ne y, x2−y2x−y=x+y\dfrac{x^2-y^2}{x-y}=x+y. The point (1,−1)(1,-1) is not on the line x=yx=y (its distance from that line is 2\sqrt2), so on the disc DD of radius 1 about (1,−1)(1,-1) we have x≠yx\ne y and f(x,y)=x+yfor (x,y)∈D,(x,y)≠(1,−1).f(x,y)=x+y\quad\text{for }(x,y)\in D,\ (x,y)\ne(1,-1). At the point itself, f(1,−1)=0f(1,-1)=0, which also equals 1+(−1)1+(-1). So f(x,y)=x+yon the whole of D.f(x,y)=x+y\quad\text{on the whole of } D .

Continuous at (1,−1)(1,-1): lim(x,y)→(1,−1)f(x,y)=lim(x+y)=0=f(1,−1)\lim_{(x,y)\to(1,-1)}f(x,y)=\lim(x+y)=0=f(1,-1).

Differentiable at (1,−1)(1,-1): with h,kh,k small, f(1+h,−1+k)−f(1,−1)=h+k.f(1+h,-1+k)-f(1,-1)=h+k . This is exactly fxh+fykf_x\,h+f_y\,k with fx=fy=1f_x=f_y=1, and the error term is 00. So ff is differentiable at (1,−1)(1,-1), with fx(1,−1)=fy(1,−1)=1f_x(1,-1)=f_y(1,-1)=1. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

Using differentials, find an approximate value of f(4.1,4.9) where f(x,y)=(x3+x2y)12.

2019 · Paper II · Q2c · 15 marks

Solution

Take the base point (4,5)(4,5), with dx=0.1dx=0.1, dy=−0.1dy=-0.1.

f(4,5)=64+80=144=12.f(4,5)=\sqrt{64+80}=\sqrt{144}=12 . fx=3x2+2xy2x3+x2y,fy=x22x3+x2y.f_x=\frac{3x^2+2xy}{2\sqrt{x^3+x^2y}},\qquad f_y=\frac{x^2}{2\sqrt{x^3+x^2y}} . At (4,5)(4,5): fx=48+4024=113f_x=\dfrac{48+40}{24}=\dfrac{11}{3}, fy=1624=23f_y=\dfrac{16}{24}=\dfrac23.

df=fxdx+fydy=113(0.1)+23(−0.1)=93(0.1)=0.3.df=f_x\,dx+f_y\,dy=\frac{11}{3}(0.1)+\frac23(-0.1)=\frac{9}{3}(0.1)=0.3 . f(4.1,4.9)≈12+0.3=12.3.f(4.1,4.9)\approx12+0.3=\mathbf{12.3}. (In fact 4.13+4.12⋅4.9=151.29=12.324.1^3+4.1^2\cdot4.9=151.29=12.3^2, so the approximation happens to be exact.)

✓ Checked by computer We checked by computer: the exact value is 151.29=12.3\sqrt{151.29}=12.3, so the approximation is exact here.

↑ Back to the question list

Find the maximum value of f(x,y,z)=x2y2z2 subject to the subsidiary condition x2+y2+z2=c2, (x,y,z>0).

2019 · Paper II · Q4a · 15 marks

Solution

Maximise f=x2y2z2f=x^2y^2z^2 with ϕ=x2+y2+z2−c2=0\phi=x^2+y^2+z^2-c^2=0.

F=x2y2z2+λ(x2+y2+z2−c2).F=x^2y^2z^2+\lambda(x^2+y^2+z^2-c^2). Fx=2xy2z2+2λx=0⇒y2z2=−λ,similarly z2x2=−λ,x2y2=−λF_x=2xy^2z^2+2\lambda x=0\Rightarrow y^2z^2=-\lambda,\quad\text{similarly } z^2x^2=-\lambda,\ x^2y^2=-\lambda (dividing by 2x2x, 2y2y, 2z2z, which are non-zero). Hence x2y2=y2z2=z2x2x^2y^2=y^2z^2=z^2x^2, so x2=y2=z2x^2=y^2=z^2, and the constraint gives x2=y2=z2=c23x^2=y^2=z^2=\dfrac{c^2}{3}.

fmax=(c23)3=c627.f_{\max}=\left(\frac{c^2}{3}\right)^3=\frac{c^6}{27}. It is the maximum: by AM–GM, (x2y2z2)1/3≤x2+y2+z23=c23\left(x^2y^2z^2\right)^{1/3}\le\dfrac{x^2+y^2+z^2}{3}=\dfrac{c^2}{3}, with equality only when x2=y2=z2x^2=y^2=z^2.

✓ Checked by computer We checked by computer: the maximum c6/27c^6/27 is at x2=y2=z2=c2/3x^2=y^2=z^2=c^2/3.

↑ 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

Find the relative maximum and minimum values of the function f(x,y)=x4+y4−2x2+4xy−2y2.

2016 · Paper II · Q3b · 15 marks

Solution

Stationary points. fx=4x3−4x+4y=0,fy=4y3+4x−4y=0.f_x=4x^3-4x+4y=0,\qquad f_y=4y^3+4x-4y=0 . Adding: x3+y3=0x^3+y^3=0, so y=−xy=-x. Then x3−2x=0x^3-2x=0, so x=0,±2x=0,\ \pm\sqrt2. The points are (0,0),(2,−2),(−2,2).(0,0),\quad(\sqrt2,-\sqrt2),\quad(-\sqrt2,\sqrt2).

Second derivatives: r=fxx=12x2−4r=f_{xx}=12x^2-4, s=fxy=4s=f_{xy}=4, t=fyy=12y2−4t=f_{yy}=12y^2-4.

  • (±2,∓2)(\pm\sqrt2,\mp\sqrt2): r=t=20r=t=20, s=4s=4, rt−s2=384>0rt-s^2=384>0, r>0r>0: relative minimum, with value f=4+4−4−8−4=−8.f=4+4-4-8-4=-8 .
  • (0,0)(0,0): r=t=−4r=t=-4, s=4s=4, rt−s2=0rt-s^2=0: the test fails. Look directly: along y=xy=x, f=2x4>0f=2x^4>0; along y=0y=0, f=x4−2x2<0f=x^4-2x^2<0 for small x≠0x\ne0. So ff takes both signs near the origin, where f(0,0)=0f(0,0)=0: neither a maximum nor a minimum (a saddle point).

Answer: relative minimum −8-8 at (2,−2)(\sqrt2,-\sqrt2) and (−2,2)(-\sqrt2,\sqrt2); there is no relative maximum.

✓ Checked by computer We checked by computer: stationary points (0,0)(0,0), (2,−2)(\sqrt2,-\sqrt2), (−2,2)(-\sqrt2,\sqrt2), and f=−8f=-8 at the last two.

↑ Back to the question list

Find the absolute maximum and minimum values of the function f(x,y)=x2+3y2−y over the region x2+2y2≤1.

2015 · Paper II · Q4b · 15 marks

Solution

Inside (x2+2y2<1x^2+2y^2<1): fx=2x=0f_x=2x=0, fy=6y−1=0f_y=6y-1=0 give (0,16)\left(0,\frac16\right), which is inside, with f(0,16)=336−16=−112.f\left(0,\tfrac16\right)=\frac{3}{36}-\frac16=-\frac{1}{12}.

On the boundary x2+2y2=1x^2+2y^2=1: x2=1−2y2x^2=1-2y^2 with −12≤y≤12-\frac{1}{\sqrt2}\le y\le\frac1{\sqrt2}, so f=1−2y2+3y2−y=y2−y+1=:g(y).f=1-2y^2+3y^2-y=y^2-y+1=:g(y). g′(y)=2y−1=0g'(y)=2y-1=0 at y=12y=\frac12: g=34g=\frac34. At the ends: g(−12)=32+12≈2.207g\left(-\frac1{\sqrt2}\right)=\frac32+\frac1{\sqrt2}\approx2.207, g(12)=32−12≈0.793g\left(\frac1{\sqrt2}\right)=\frac32-\frac1{\sqrt2}\approx0.793.

Compare all candidates: −112,34,32+12,32−12-\frac1{12},\ \frac34,\ \frac32+\frac{1}{\sqrt2},\ \frac32-\frac1{\sqrt2}.

  • Absolute maximum: 32+12=3+22\dfrac32+\dfrac{1}{\sqrt2}=\dfrac{3+\sqrt2}{2}, at (0,−12)\left(0,-\frac1{\sqrt2}\right).
  • Absolute minimum: −112-\dfrac{1}{12}, at (0,16)\left(0,\frac16\right).

✓ Checked by computer We checked by computer: on the boundary ff ranges over [0.75,2.2071][0.75,\,2.2071], and inside the only stationary value is −1/12-1/12.

↑ Back to the question list

Obtain ∂2f(0,0)∂x∂y and ∂2f(0,0)∂y∂x for the function f(x,y)={xy(3x2−2y2)x2+y2,(x,y)≠(0,0)0,(x,y)=(0,0) Also, discuss the continuity of ∂2f∂x∂y and ∂2f∂y∂x at (0,0).

2014 · Paper II · Q3b · 15 marks

Solution

First partials on the axes. fx(0,y)=limh→0f(h,y)−f(0,y)h=limh→0y(3h2−2y2)h2+y2=−2y(also 0 at y=0),f_x(0,y)=\lim_{h\to0}\frac{f(h,y)-f(0,y)}{h}=\lim_{h\to0}\frac{y(3h^2-2y^2)}{h^2+y^2}=-2y\quad(\text{also } 0 \text{ at } y=0), fy(x,0)=limk→0f(x,k)−f(x,0)k=limk→0x(3x2−2k2)x2+k2=3x(also 0 at x=0).f_y(x,0)=\lim_{k\to0}\frac{f(x,k)-f(x,0)}{k}=\lim_{k\to0}\frac{x(3x^2-2k^2)}{x^2+k^2}=3x\quad(\text{also } 0 \text{ at } x=0).

Mixed partials at the origin. ∂2f∂y∂x(0,0)=∂∂y(fx)(0,0)=limk→0fx(0,k)−fx(0,0)k=lim−2kk=−2,\frac{\partial^2f}{\partial y\,\partial x}(0,0)=\frac{\partial}{\partial y}\Big(f_x\Big)(0,0)=\lim_{k\to0}\frac{f_x(0,k)-f_x(0,0)}{k}=\lim\frac{-2k}{k}=-2, ∂2f∂x∂y(0,0)=∂∂x(fy)(0,0)=limh→0fy(h,0)−fy(0,0)h=lim3hh=3.\frac{\partial^2f}{\partial x\,\partial y}(0,0)=\frac{\partial}{\partial x}\Big(f_y\Big)(0,0)=\lim_{h\to0}\frac{f_y(h,0)-f_y(0,0)}{h}=\lim\frac{3h}{h}=3 . So ∂2f(0,0)∂x∂y=3,∂2f(0,0)∂y∂x=−2.\frac{\partial^2f(0,0)}{\partial x\,\partial y}=3,\qquad\frac{\partial^2f(0,0)}{\partial y\,\partial x}=-2 .

Continuity at (0,0)(0,0). Away from the origin ff is smooth, so the two mixed partials are equal there: fxy(x,y)=fyx(x,y)=3x6+24x4y2−21x2y4−2y6(x2+y2)3.f_{xy}(x,y)=f_{yx}(x,y)=\frac{3x^6+24x^4y^2-21x^2y^4-2y^6}{(x^2+y^2)^3}. Along y=mxy=mx this equals 3+24m2−21m4−2m6(1+m2)3\dfrac{3+24m^2-21m^4-2m^6}{(1+m^2)^3}, which depends on mm (it is 33 on the xx-axis and tends to −2-2 near the yy-axis). So the limit at (0,0)(0,0) does not exist, and neither mixed partial is continuous at (0,0)(0,0). This is consistent with Schwarz’s theorem: if one of them were continuous there, they would be equal.

✓ Checked by computer We checked by computer: fx(0,y)=−2yf_x(0,y)=-2y, fy(x,0)=3xf_y(x,0)=3x, and the mixed partial along y=mxy=mx depends on mm.

↑ Back to the question list

Find the minimum value of x2+y2+z2 subject to the condition xyz=a3 by the method of Lagrange multipliers.

2014 · Paper II · Q4b · 15 marks

Solution

F=x2+y2+z2+λ(xyz−a3).F=x^2+y^2+z^2+\lambda(xyz-a^3). 2x+λyz=0,2y+λzx=0,2z+λxy=0.2x+\lambda yz=0,\qquad2y+\lambda zx=0,\qquad2z+\lambda xy=0 . Multiply by x,y,zx,y,z respectively: 2x2=2y2=2z2=−λxyz=−λa32x^2=2y^2=2z^2=-\lambda xyz=-\lambda a^3. Hence x2=y2=z2,and xyz=a3⇒|x|3=|a|3⇒x2=y2=z2=a2.x^2=y^2=z^2,\quad\text{and } xyz=a^3\ \Rightarrow\ |x|^3=|a|^3\ \Rightarrow\ x^2=y^2=z^2=a^2 . So the stationary value is x2+y2+z2=3a2.x^2+y^2+z^2=3a^2 . It is the minimum: by AM–GM, x2+y2+z23≥(x2y2z2)1/3=(a6)1/3=a2\dfrac{x^2+y^2+z^2}{3}\ge\left(x^2y^2z^2\right)^{1/3}=\left(a^6\right)^{1/3}=a^2. (There is no maximum: the surface xyz=a3xyz=a^3 is unbounded.)

✓ Checked by computer We checked by computer: the minimum 3a23a^2 is at x2=y2=z2=a2x^2=y^2=z^2=a^2.

↑ Back to the question list

Let f(x,y)=y2+4xy+3x2+x3+1. At what points will f(x,y) have a maximum or minimum ?

2013 · Paper II · Q3c · 10 marks

Solution

Stationary points. fx=4y+6x+3x2=0,fy=2y+4x=0⇒y=−2x.f_x=4y+6x+3x^2=0,\qquad f_y=2y+4x=0\ \Rightarrow\ y=-2x . Then −8x+6x+3x2=0-8x+6x+3x^2=0, i.e. x(3x−2)=0x(3x-2)=0, so x=0x=0 or x=23x=\frac23. Points: (0,0)(0,0) and (23,−43)\left(\frac23,-\frac43\right).

Second derivatives: r=6+6xr=6+6x, s=4s=4, t=2t=2.

  • (0,0)(0,0): r=6r=6, rt−s2=12−16<0rt-s^2=12-16<0: a saddle point – no extremum.
  • (23,−43)\left(\frac23,-\frac43\right): r=10r=10, rt−s2=20−16=4>0rt-s^2=20-16=4>0 and r>0r>0: a minimum, with value f=169−329+129+827+1=2327.f=\frac{16}{9}-\frac{32}{9}+\frac{12}{9}+\frac{8}{27}+1=\frac{23}{27}.

Answer: ff has a minimum (2327\frac{23}{27}) at (23,−43)\left(\frac23,-\frac43\right) and no maximum.

✓ Checked by computer We checked by computer: stationary points (0,0)(0,0) and (23,−43)\left(\frac23,-\frac43\right), and f=2327f=\frac{23}{27} at the second.

↑ Back to the question list

Let f(x,y)={(x+y)2x2+y2,if (x,y)≠(0,0)1,if (x,y)=(0,0). Show that ∂f∂x and ∂f∂y exist at (0,0) though f(x,y) is not continuous at (0,0).

2012 · Paper II · Q2b · 15 marks

Solution

Partial derivatives at (0,0)(0,0) exist. On the xx-axis, f(x,0)=x2x2=1f(x,0)=\dfrac{x^2}{x^2}=1 for x≠0x\ne0, and f(0,0)=1f(0,0)=1. So fx(0,0)=limh→0f(h,0)−f(0,0)h=limh→01−1h=0.f_x(0,0)=\lim_{h\to0}\frac{f(h,0)-f(0,0)}{h}=\lim_{h\to0}\frac{1-1}{h}=0 . Similarly f(0,y)=1f(0,y)=1, so fy(0,0)=0f_y(0,0)=0. Both partial derivatives exist.

ff is not continuous at (0,0)(0,0). Along the line y=mxy=mx, x≠0x\ne0: f(x,mx)=(1+m)2x2(1+m2)x2=(1+m)21+m2,f(x,mx)=\frac{(1+m)^2x^2}{(1+m^2)x^2}=\frac{(1+m)^2}{1+m^2}, which depends on mm: it is 11 for m=0m=0, 22 for m=1m=1 and 00 for m=−1m=-1. So lim(x,y)→(0,0)f(x,y)\lim_{(x,y)\to(0,0)}f(x,y) does not exist, and ff is not continuous at the origin. ◼\blacksquare

(Partial derivatives only look along the two axes, where ff is constant; continuity needs every direction.)

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

Find the minimum distance of the line given by the planes 3x+4y+5z=7 and x−z=9 from the origin, by the method of Lagrange’s multipliers.

2012 · Paper II · Q2d · 15 marks

Solution

Minimise x2+y2+z2x^2+y^2+z^2 subject to 3x+4y+5z=73x+4y+5z=7 and x−z=9x-z=9: F=x2+y2+z2+λ(3x+4y+5z−7)+μ(x−z−9).F=x^2+y^2+z^2+\lambda(3x+4y+5z-7)+\mu(x-z-9). 2x+3λ+μ=0,2y+4λ=0,2z+5λ−μ=0.2x+3\lambda+\mu=0,\qquad2y+4\lambda=0,\qquad2z+5\lambda-\mu=0 . So x=−3λ+μ2x=-\frac{3\lambda+\mu}{2}, y=−2λy=-2\lambda, z=μ−5λ2z=\frac{\mu-5\lambda}{2}. Substitute into the constraints:

  • x−z=9x-z=9: −3λ+μ2−μ−5λ2=λ−μ=9-\dfrac{3\lambda+\mu}{2}-\dfrac{\mu-5\lambda}{2}=\lambda-\mu=9.
  • 3x+4y+5z=73x+4y+5z=7: −9λ+3μ2−8λ+5μ−25λ2=−25λ+μ=7-\dfrac{9\lambda+3\mu}{2}-8\lambda+\dfrac{5\mu-25\lambda}{2}=-25\lambda+\mu=7.

Adding: −24λ=16-24\lambda=16, so λ=−23\lambda=-\frac23 and μ=λ−9=−293\mu=\lambda-9=-\frac{29}{3}. Hence x=356,y=43,z=−196.x=\frac{35}{6},\qquad y=\frac43,\qquad z=-\frac{19}{6}. (Check: x−z=9x-z=9 and 3x+4y+5z=105+32−956=73x+4y+5z=\frac{105+32-95}{6}=7.)

dmin2=352+82+19236=165036=2756,dmin=2756=5666≈6.77.d_{\min}^2=\frac{35^2+8^2+19^2}{36}=\frac{1650}{36}=\frac{275}{6},\qquad d_{\min}=\sqrt{\frac{275}{6}}=\frac{5\sqrt{66}}{6}\approx6.77 .

✓ Checked by computer We checked by computer: the nearest point is (356,43,−196)\left(\frac{35}{6},\frac43,-\frac{19}{6}\right) and the distance is 5666≈6.77\frac{5\sqrt{66}}{6}\approx6.77.

↑ Back to the question list

Find the shortest distance from the origin (0,0) to the hyperbola x2+8xy+7y2=225

2011 · Paper II · Q2d · 15 marks

Solution

Minimise x2+y2x^2+y^2 subject to x2+8xy+7y2=225x^2+8xy+7y^2=225: F=x2+y2−λ(x2+8xy+7y2−225).F=x^2+y^2-\lambda(x^2+8xy+7y^2-225). x−λ(x+4y)=0,y−λ(4x+7y)=0.x-\lambda(x+4y)=0,\qquad y-\lambda(4x+7y)=0 . Multiply by xx and yy and add: x2+y2=λ(x2+8xy+7y2)=225λx^2+y^2=\lambda(x^2+8xy+7y^2)=225\lambda, so λ=x2+y2225\lambda=\dfrac{x^2+y^2}{225}.

For a non-zero solution of (1−λ)x−4λy=0(1-\lambda)x-4\lambda y=0, −4λx+(1−7λ)y=0-4\lambda x+(1-7\lambda)y=0: (1−λ)(1−7λ)−16λ2=0⇔9λ2+8λ−1=0⇔(9λ−1)(λ+1)=0.(1-\lambda)(1-7\lambda)-16\lambda^2=0\iff9\lambda^2+8\lambda-1=0\iff(9\lambda-1)(\lambda+1)=0 . Since λ=x2+y2225>0\lambda=\frac{x^2+y^2}{225}>0, λ=19\lambda=\frac19, so x2+y2=225⋅19=25.x^2+y^2=225\cdot\frac19=25 . Then 89x=49y\frac89x=\frac49y, i.e. y=2xy=2x, and x2+8x(2x)+7(4x2)=45x2=225x^2+8x(2x)+7(4x^2)=45x^2=225, so x=±5x=\pm\sqrt5: the points ±(5,25)\pm(\sqrt5,2\sqrt5).

Shortest distance =25=5=\sqrt{25}=5. (In principal axes the curve is 9X2−Y2=2259X^2-Y^2=225, a hyperbola with semi-transverse axis 5.)

✓ Checked by computer We checked by computer: the nearest points are ±(5,25)\pm(\sqrt5,2\sqrt5), at distance 5.

↑ Back to the question list

Find the maxima, minima and saddle points of the surface Z=(x2−y2)e(−x2−y2)/2.

2010 · Paper II · Q3d · 15 marks

Solution

Zx=xe−(x2+y2)/2(2−x2+y2),Z_x=x\,e^{-(x^2+y^2)/2}\,(2-x^2+y^2), Zy=−ye−(x2+y2)/2(2+x2−y2).Z_y=-y\,e^{-(x^2+y^2)/2}\,(2+x^2-y^2).

Stationary points. Zx=0Z_x=0 needs x=0x=0 or x2−y2=2x^2-y^2=2; Zy=0Z_y=0 needs y=0y=0 or x2−y2=−2x^2-y^2=-2. The possible combinations:

  • x=0,y=0x=0,\ y=0: (0,0)(0,0);
  • x=0,x2−y2=−2x=0,\ x^2-y^2=-2: (0,±2)(0,\pm\sqrt2);
  • y=0,x2−y2=2y=0,\ x^2-y^2=2: (±2,0)(\pm\sqrt2,0);
  • x2−y2=2x^2-y^2=2 and =−2=-2 at once: impossible.

Classify (with r=Zxxr=Z_{xx}, s=Zxys=Z_{xy}, t=Zyyt=Z_{yy}):

Point ZZ rt−s2rt-s^2 rr Nature
(0,0)(0,0) 00 −4<0-4<0 22 saddle point
(±2,0)(\pm\sqrt2,0) 2e\frac2e 16e2>0\frac{16}{e^2}>0 −4e<0-\frac4e<0 maximum
(0,±2)(0,\pm\sqrt2) −2e-\frac2e 16e2>0\frac{16}{e^2}>0 4e>0\frac4e>0 minimum

Answer: maxima Z=2eZ=\dfrac{2}{e} at (±2,0)(\pm\sqrt2,0); minima Z=−2eZ=-\dfrac2e at (0,±2)(0,\pm\sqrt2); a saddle point at the origin (near it Z≈x2−y2Z\approx x^2-y^2).

✓ Checked by computer We checked by computer: the five stationary points and the Hessian values in the table.

↑ Back to the question list

More on Real Analysis

Questions: UPSC Civil Services (Main) Examination, Mathematics Paper II, 2010–2025. 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