Solved exercises on partial derivatives and unconstrained and constrained extrema
Eleven exercises with solutions: partial derivatives, gradient and directional derivative, tangent plane, limits in two variables, critical points and the Hessian, Lagrange multipliers, absolute extrema on a disc, cases where the Hessian does not decide.
https://www.electronics-engineering.com/en/partial-derivatives-extrema-lagrange-exercises-solved/
Exercises on limits, partial derivatives, tangent planes and unconstrained and constrained maxima and minima of functions of several variables, of the kind set in Mathematical Analysis 2 (multivariable calculus) courses, in three levels: basic, for partial derivatives, the gradient and the tangent plane; intermediate, with critical points classified with the Hessian matrix and limits in two variables; exam, with Lagrange multipliers, absolute extrema on a closed set and cases where the Hessian does not decide. The result is given straight away; the full solution opens with a click.
Basic level
Exercise 1. Partial derivatives
Compute the partial derivatives of
.
Result:
,
.
Solution
For the derivative with respect to
you treat
as a constant:
and, by the chain rule,
.
In the same way with respect to
, with
constant:
and
.
Exercise 2. Gradient and directional derivative
Compute the derivative of
at the point
in the direction of the vector
.
Result:
.
Solution
The gradient is
, which at
equals
. The direction must be normalised:
, so
. For a differentiable function
![]()
The largest directional derivative is
, in the direction of the gradient.
Exercise 3. The tangent plane to a surface
Write the tangent plane to the graph of
at the point
.
Result:
.
Solution
The tangent plane to the graph of
at
is
![]()
Here
,
,
:
.
Intermediate level
Exercise 4. Critical points and the Hessian matrix
Find and classify the critical points of
.
Result:
saddle point;
local minimum, with
.
Solution
The gradient vanishes when
![Rendered by QuickLaTeX.com \[ \begin{cases} 3x^2 - 3y = 0\\ 3y^2 - 3x = 0 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-0ddfb3757d5110baf51d19ed7eaf773c_l3.png)
The Hessian matrix is
![]()
At
:
, saddle point. At
:
and
, local minimum, with
.
Exercise 5. The minimum of a quadratic function
Find the extrema of
.
Result: a single critical point,
, absolute minimum with
.
Solution
and
give
, then
,
,
.
The Hessian is constant,
, with determinant 3 and
: positive definite. A quadratic function with a positive definite Hessian is convex, so the local minimum is also absolute:
.
Exercise 6. A limit in two variables that exists
Compute
.
Result:
.
Solution
In polar coordinates
,
:
![]()
The factor
is bounded (at most 1 in absolute value) and does not depend on
:
, whichever way you approach the origin. The limit is 0.
Exercise 7. A limit in two variables that does not exist
Show that
does not exist.
Result: along the lines
the value is
, which depends on
.
Solution
On the line
(with
) the function equals
![]()
Exam level
Exercise 8. Lagrange multipliers
Find the maxima and minima of
on the circle
.
Result: maximum
at
and
; minimum
at
and
.
Solution
The constraint is a closed and bounded set, so the maximum and minimum exist (Weierstrass theorem). With the Lagrangian
:
![Rendered by QuickLaTeX.com \[ \begin{cases} y = 2\lambda x\\ x = 2\lambda y\\ x^2 + y^2 = 2 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-0155ba9e8db13061b1345c2a8c784eee_l3.png)
From the first two
. If
then also
, which is not on the constraint; so
. With
you get
and
; with
you get
and
. Comparing the values:
at the points with
,
at those with
.
Check with the parametrisation
,
:
, which ranges between
and
.
Exercise 9. Absolute extrema on a disc
Find the absolute maximum and minimum of
on the disc
.
Result: minimum
at
; maximum
at
.
Solution
Interior:
gives
, which is inside the disc, with
.
Boundary: on the circle
, so
with
. The maximum on the boundary is
for
, the minimum
for
.
Comparing all the candidates: absolute minimum
at
, absolute maximum
at
. You can also see it geometrically:
is the squared distance from
minus 1, and the point of the disc farthest from
is
.
Exercise 10. When the Hessian does not decide
Classify the critical point
of
and of
.
Result: for
it is an absolute minimum; for
it is a saddle point. In both cases the Hessian at
is zero.
Solution
The second derivatives contain
and
and are all zero at
:
and the Hessian test gives no information. You study the sign of
near the point.
For
:
everywhere, so an absolute minimum. For
: on the
axis
, on the
axis
; in every neighbourhood of the origin
takes values of both signs, so a saddle.
Exercise 11. The distance from a plane with Lagrange
Find the point of the plane
closest to the origin and its distance.
Result: the point
, distance
.
Solution
Minimise the squared distance,
, subject to the constraint. The Lagrange conditions are
,
,
: the point is
, parallel to the normal
, as expected. In the constraint:
,
, so the point is
and the distance
.
Check with the point-plane distance formula:
.




