Surface Sketching and Optimization
Curve Sketching and Optimization for Multivariable Functions
Local Extrema
* The disk may be small. We just want to identify a disk small enough so that the inequality holds.
The small circle is the our disk defining the local maxima, but if the circle were bigger it wouldn't be a maximum.
Critical Points
A point
Second Derivative Test
Recall, the determinant is a product of eigenvalues:
since higher order partial derivatives are the same regardless of order.
The reason we need the extra conditions for maxima or minima is because if
Find and classify the critical points of the function:
Critical points:
To classify:
left = -2; right = 2;
bottom = -2; top = 2;
---
(1, 1) | label: MIN
(1, -1) | label: SADDLE
(-1, 1) | label: SADDLE
(-1, -1) | label: MAX
(1-27-0)
What the graph looks like:
Locate and classify the critical points of the function
solution
We seek all pairs of
Solving by substitution by manipulating
Substituting
Substituting
As such, our critical points are
Next, we must find
Now to classify each point:
This point is a local minimum.
This point is a local maximum.
This point is a saddle.
This point is a saddle.
Constrained Optimization and the Method of Lagrange
As an example, we want to find the max of
For our level curves, we have
A couple ways we can do this:
- We can parameterize the constraint, i.e
Now stick it into to get
To find max (or min):
Which makes (see quotient identities), the critical points are at .
Critical points:
, so the critical points are:
-
We can look at the derivative. Observe:
**The extrema occur at the points** where the constraint curve and level curves **touch tangentially**. Using the chain rule for paths: $$ \begin{align} \frac{dg}{dt} & = \frac{d}{dt}f\big(x(t), y(t)\big) \\ & = \frac{ \partial f }{ \partial x } \frac{dx}{dt} + \frac{ \partial f }{ \partial y } \frac{dy}{dt} \\ & = \vec{\nabla}f \cdot \frac{d\vec{r}}{dt} \\ & = 0 \end{align} $$ Recall that the Gradient Vector is orthogonal to the level curves, and the dot product of two orthogonal vectors is 0.- We know at the max, level curve is parallel to the constraint
- Flip this idea around: a vector perpendicular to the level curve is perpendicular to constraint
Method of Lagrange
To find critical points of
for some constant
Same example, find the max of
solution
We have
Next,
which means
and with
Generally, we should just eliminate
sub this into our bounds:
So our critical points are:
Find maximum of
solution
Eliminate
so
A circular hot plate given by the relationship
solution
Let
We have:
First, to find the critical points on the boundary, we use the method of Lagrange:
We have
We have
Right away from
Then, solving by substitution, we find:
Plugging this in to
So our critical points on the boundary are
Next, we have to check inside the boundary. For this, we perform unconstrained optimization and then check if the points we find are within the boundary.
We seek
This system is easy to solve;
In summary, our entire collection of critical points is
Now we plug in to
Thus, the hot plate is hottest at