← 2023 Paper 2

UPSC 2023 Maths Optional Paper 2 Q2b — Step-by-Step Solution

15 marks · Section A

Maxima and minima of multi-variable functions (analytic criteria) · Real Analysis · asked 5× in 13 yrs · Read the full method →

Question

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

Technique

Lagrange multipliers; the critical points turn out to be the two intersections of the line OPOP with the sphere.

Solution

Strategy. Minimise/maximise the squared distance f(x,y,z)=(x2)2+(y6)2+(z3)2f(x,y,z)=(x-2)^{2}+(y-6)^{2}+(z-3)^{2} subject to g(x,y,z)=x2+y2+z24=0g(x,y,z)=x^{2}+y^{2}+z^{2}-4=0. Squaring is monotone on non-negative reals, so extremising ff extremises the actual distance.

Step 1 — Lagrange system.

f=λg\nabla f=\lambda\nabla g gives

2(x2)=2λx,2(y6)=2λy,2(z3)=2λz,2(x-2)=2\lambda x,\quad 2(y-6)=2\lambda y,\quad 2(z-3)=2\lambda z,

i.e.

(1λ)x=2,(1λ)y=6,(1λ)z=3.()(1-\lambda)x=2,\quad(1-\lambda)y=6,\quad(1-\lambda)z=3. \tag{$\ast$}

Note λ1\lambda\ne 1 (otherwise the LHS of ()(\ast) vanishes but the RHS doesn’t), so

x=21λ,y=61λ,z=31λ.x=\frac{2}{1-\lambda},\quad y=\frac{6}{1-\lambda},\quad z=\frac{3}{1-\lambda}.

Step 2 — Apply the constraint.

x2+y2+z2=4+36+9(1λ)2=49(1λ)2=4x^{2}+y^{2}+z^{2}=\frac{4+36+9}{(1-\lambda)^{2}}=\frac{49}{(1-\lambda)^{2}}=4   (1λ)2=494    1λ=±72.\Rightarrow\;(1-\lambda)^{2}=\frac{49}{4}\;\Rightarrow\;1-\lambda=\pm\frac{7}{2}.

Step 3 — Two critical points.

Step 4 — Evaluate ff at both.

Let Q±=±(47,127,67)=±27(2,6,3)=±27PQ_{\pm}=\pm\bigl(\tfrac{4}{7},\tfrac{12}{7},\tfrac{6}{7}\bigr)=\pm\tfrac{2}{7}(2,6,3)=\pm\tfrac{2}{7}\mathbf{P}.

f(Q+)=P27P2=(57)2P2=254949=25,f(Q_{+})=\bigl|\mathbf{P}-\tfrac{2}{7}\mathbf{P}\bigr|^{2}=\bigl(\tfrac{5}{7}\bigr)^{2}|\mathbf{P}|^{2}=\tfrac{25}{49}\cdot 49=25, f(Q)=P+27P2=(97)2P2=814949=81.f(Q_{-})=\bigl|\mathbf{P}+\tfrac{2}{7}\mathbf{P}\bigr|^{2}=\bigl(\tfrac{9}{7}\bigr)^{2}|\mathbf{P}|^{2}=\tfrac{81}{49}\cdot 49=81.

So the squared distances are 2525 (minimum) and 8181 (maximum).

Step 5 — Conclude.

Answer

  dmin=5 at (47,127,67),dmax=9 at (47,127,67).  \boxed{\;d_{\min}=5\text{ at }\bigl(\tfrac{4}{7},\tfrac{12}{7},\tfrac{6}{7}\bigr),\quad d_{\max}=9\text{ at }\bigl(-\tfrac{4}{7},-\tfrac{12}{7},-\tfrac{6}{7}\bigr).\;}
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 — 13 years, mapped. Get the take-away PDF free.