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
If , then find the value of .
Solution
Write , so and . In the same way, and . Adding, at every point other than the origin. ( satisfies Laplace’s equation.)
✓ Checked by computer We computed the three second derivatives by computer (SymPy); their sum simplifies to .
If , where and are arbitrary functions, then show that I. II\.
Solution
Let . Then , , so Write . For any function , .
I. , and So .
II. Apply to (assuming ): By part I, , and again. So
✓ Proof checked step by step Proof checked step by step; we also confirmed both identities by computer (SymPy) with arbitrary functions and .
If then find
Solution
We write and .
on the -axis. , so for any on the -axis. Similarly Hence (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 by computer (SymPy): and .
If and , then find . Are and functionally related? If yes, find the relationship.
Solution
Since the Jacobian vanishes identically, and are functionally related. Indeed, by the addition formula for , so the relationship is (for ).
✓ Checked by computer We computed the Jacobian by computer (SymPy): it simplifies to .
Justify whether is an extreme point for the function .
Solution
At : , , so the origin is a stationary point. But , , , so and the second-derivative test fails. We look at directly.
- Along : for .
- Along : for .
Every neighbourhood of the origin has points where and points where . So is not an extreme point (it is a saddle-type point), even though has a minimum at along every straight line through the origin.
✓ Checked by computer We checked by computer (SymPy) the factorisation and the values of along and .
A wire of length 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.
Solution
Let the square have side and the circle radius . Minimise subject to . From the constraint, : This is the least value: is a sum of squares on a line, and the end cases give larger areas ( for all square, 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).
Given that . Find and . Hence show that .
Solution
. For and , and : For : . So for all .
. In the same way, for , and .
Hence so .
✓ Checked by computer We computed the partial derivatives along the axes by computer (SymPy): both are identically .
If , , where , , then find .
Solution
In polar form, and . Check by the chain rule. and , so the product is . ✓
✓ Checked by computer We computed the Jacobian by computer (SymPy) two ways: directly, and as .
Find an extreme value of the function , subject to the condition , by using Lagrange’s method of undetermined multiplier.
Solution
So ; write . The constraint gives , : This is a minimum: is the squared distance from the origin, which has no maximum on the plane. So .
✓ Checked by computer We solved the Lagrange equations by computer (SymPy); the value equals the squared distance of the plane from the origin, .
Let be a function and . If is continuous at , then show that the functions and are continuous at and at respectively.
Solution
Since is continuous at : for every there is such that at . Take any with and . The distance from to is , so . This is exactly continuity of at .
at . The same argument with .
The converse is false: , , has and (both continuous) but is not continuous at (along it equals ).
✓ Proof checked step by step Proof checked step by step against the – definitions.
If then show that is a homogeneous function of and of degree . Hence show that
Solution
Homogeneity. . Replacing by multiplies the numerator by and the denominator by , so : is homogeneous of degree .
First order. By Euler’s theorem, . With , , so Second order. Apply to both sides: So , with :
✓ Proof checked step by step Proof checked step by step; we also checked the final identity by computer (SymPy) at sample points.
Using the Jacobian method, show that if and , then
Solution
Let and . Then , , and (as in the 2024 question) So and are functionally related: for some function , i.e. To find , put : , and , so . Hence
✓ Proof checked step by step Proof checked step by step; we also confirmed by computer (SymPy) that the Jacobian is .
Find the shortest distance from the point to the parabola .
Solution
A point of the parabola is with , . Its squared distance from is For this is least at . So the nearest point is the vertex and the shortest distance is .
(So : is the focus of , and the focal distance of any point is .)
✓ Checked by computer We minimised the squared distance by computer (SymPy): minimum at .
Let Determine which of and exists and which does not exist.
Solution
Near we have , so in a whole neighbourhood of the point. Both partial derivatives exist at : and .
(In fact , and , so both partial derivatives exist at every point of the plane, including the line .)
✓ Checked by computer We computed both partial derivatives at from the definition by computer (SymPy).
If calculate and at .
Solution
This is the same function as in the 2025 question above. From there, and for all . So The two mixed derivatives at the origin are unequal ( and ).
✓ Checked by computer We computed the mixed derivatives at by computer (SymPy): and .
Find the maximum and minimum values of subject to the conditions and .
Solution
Let and Multiply by and add; using both constraints, , so . Then Substituting in (with ): Maximum , at ; minimum , at with . (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 and .
Let Find a such that , whenever .
Solution
As printed, no such exists. Along : So is close to for small , and is not even continuous at the origin. The middle term has degree 4 while the others have degree 5, which suggests a misprint for .
With (the intended version). Let , so : So whenever . A suitable choice is (Any smaller also works.)
✓ Checked by computer We checked by computer (SymPy): as printed, along ; with the bound holds.
Which point of the sphere is at the maximum distance from the point ?
Solution
Maximise subject to : So : the point lies on the line through the origin and . On the unit sphere, The sign gives the nearest point (distance ); the sign gives the farthest:
✓ Checked by computer We solved the Lagrange equations by computer (SymPy): the farthest point is .
For the function Examine the continuity and differentiability.
Solution
The function is defined for (because of ).
Continuity. Along (): . Along (): . The limit at the origin does not exist, so is not continuous at . (Away from the origin is continuous, being a quotient with non-zero denominator.)
Partial derivatives at . Differentiability. A function differentiable at a point is continuous there. Since is not continuous at , it is not differentiable at .
✓ Checked by computer We computed the limit along and the partial derivatives at by computer (SymPy).
Find the maximum or minimum values of subject to the conditions and . Interpret the result geometrically.
Solution
Let and Multiply by and add; using both constraints, , so . Then Putting these in gives the equation for the stationary values: that is, Its two roots are the maximum and minimum values of .
Geometric meaning. The plane passes through the centre of the central conicoid and cuts it in a conic (an ellipse when ). 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 against direct Lagrange solutions.
Using Lagrange’s multiplier method, find the shortest distance between the line and the ellipse .
Solution
The line does not meet the ellipse: substituting gives , whose discriminant is negative. The whole ellipse lies on the side , so the distance of an ellipse point from the line is Lagrange. Minimise subject to : Then , so . With : and (the other choice gives , the farthest point).
Shortest distance , between on the ellipse and , 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 .
Compute and for the function Also, discuss the continuity of and at .
Solution
We write , . Note and . Hence Continuity. Away from the origin (where ), both mixed derivatives equal Its limit as depends on the path: along it is , along it is , along it is . So the limit does not exist, and neither nor is continuous at , which is why they can differ there.
✓ Checked by computer We computed , and the mixed derivative away from the origin by computer (SymPy), and its limits along , and .
Define a function of two real variables in the -plane by Check the continuity and differentiability of at .
Solution
Continuity. For , using and : Elsewhere . So : is continuous at .
Partial derivatives. and (“otherwise”), so .
Differentiability. would be differentiable at only if Along : , which oscillates and has no limit. So is not differentiable at .
✓ Checked by computer We checked by computer: at random points, and has no limit.
Find the points of local extrema and saddle points of the function of two variables defined by
Solution
Subtracting: , i.e. .
- : , so or : points , .
- : , so or : points , .
With , , , :
| Point | Nature | |||
|---|---|---|---|---|
| local minimum | ||||
| local maximum | ||||
| saddle point | ||||
| saddle point |
✓ Checked by computer We found the stationary points and their Hessians by computer (SymPy); the four points and their types match.
Find if it exists.
Solution
Along the line (, ): This depends on : it is along and along . So the limit does not exist.
✓ Checked by computer We checked by computer (SymPy): along the value is .
Find the points on the sphere that are closest to and farthest from the point .
Solution
As in the 2015 question, the extreme points lie on the line through the centre and . and the sphere has radius , so the two points are :
- Closest: , at distance
- Farthest: , at distance
(Lagrange: gives , and fixes the two points.)
✓ Checked by computer We solved the Lagrange equations by computer (SymPy); the two points are as shown.
Show that a box (rectangular parallelopiped) of maximum volume with prescribed surface area is a cube.
Solution
Let the edges be and the prescribed surface area : . Maximise . Multiply the first by and the second by : both left sides become , so (otherwise ) and , so . In the same way . So the only stationary point has : a cube.
It is the maximum: on , whenever an edge tends to , and also when an edge (then and ). So has a greatest value, attained at a stationary point, which must be this one. .
✓ Proof checked step by step Proof checked step by step; we also confirmed by computer (SymPy) that the Lagrange system forces .
If is a homogeneous function of degree in and , and has continuous first- and second-order partial derivatives, then show that (i) \(ii\)
Solution
homogeneous of degree means for all .
(i) Differentiate with respect to (chain rule): Put : .
(ii) Differentiate the last identity again with respect to : using (the second partial derivatives are continuous). Put :
✓ Proof checked step by step Proof checked step by step; we also checked both identities by computer (SymPy) for () and ().
If and , with approximately what accuracy can you calculate the polar coordinates and of the point ? Express your estimates as percentage changes of the values that and have at the point .
Solution
, . At : , rad. With : As percentages: So (about ) and rad (about ).
✓ Checked by computer We checked the numbers by computer: , , i.e. and .
Let be defined as Is continuous at ? Compute partial derivatives of at any point , if exist.
Solution
Continuity. Since , So is continuous at .
Partial derivatives. Write . For : At the origin, , so So both partial derivatives exist at every point. (They are not continuous at the origin, and is not differentiable there: along , .)
✓ Checked by computer We computed the partial derivatives by computer (SymPy) and checked .
A space probe in the shape of the ellipsoid enters the earth’s atmosphere and its surface begins to heat. After one hour, the temperature at the point on the probe surface is given by Find the hottest point on the probe surface.
Solution
Maximise on : Case (from the first equation, if ): , then , so . The constraint gives , so . Case : the remaining equations give the points with , and with , the larger being .
The hottest points are
✓ Checked by computer We solved the Lagrange equations by computer (SymPy) and compared at all stationary points; the largest is .
Determine the maximum and minimum distances of the origin from the curve given by the equation
Solution
Extremise subject to . Lagrange: Writing , this is , . A non-zero solution needs Multiplying the Lagrange equations by and and adding: , so .
- : , at points with (e.g. )
- : , at points with (e.g. )
Maximum distance ; minimum distance . (The curve is an ellipse with these semi-axes.)
✓ Checked by computer We found the eigenvalues and both points by computer (SymPy); the distances are and .
More on Calculus
- Calculus topic-wise PYQs (questions only, for practice)
- Mathematics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Mathematics booklist
Questions: UPSC Civil Services (Main) Examination, Mathematics Paper I, 2008–2026. Solutions: Optional Province. Found an error? Tell us.

