Chapter 47. Solutions to Part Foxtrot
§47.1 Solution to Exercise 17.1 (critical points of a 2-variable function)
Finding the critical points
The first-order partial derivatives are:
To find the critical points, we solve the system:
Rewriting the equations:
From , substitute into :
Hence either or . These correspond to and .
Classifying the critical points
Hence the two critical points are
To classify them, compute the second-order derivatives. Then in the notation of Section 17.6,
At , we have
So .
At , we have
Since , and , it follows .
§47.2 Solution to Exercise 17.2 (critical points of a 3-variable function)
Finding the critical points
The first-order partial derivatives are:
To find the critical points, we solve the system:
Solving for each variable:
Thus, the only critical point is:
Classifying the critical points
Since this is a -variable function, we cannot classify it using the second derivative test. However, one can tell just by looking at the function that it is neither a local minimum or maximum. One simple way to do so is to note that for any small we have
In other words, there are always points near the origin which are both larger than and smaller than . Hence .
§47.3 Solution to Exercise 17.3 (every point is a saddle point)
No, it’s not possible.
We will prove the following result:
In particular, every point of will be both a local minimum and a local maximum. This means that has no saddle points at all.
Proof. Consider any two points and . We prove that .
Define the function along the line segment from to by
This function represents restricted to the straight-line path between the two points.
Since is differentiable, is also differentiable on , and the derivative of can be computed using the chain rule:
Since and , we have
Thus,
By assumption, every point is a critical point, meaning and everywhere. Therefore,
Hence, must be a constant function. So implies as needed.
§47.4 Solution to Exercise 17.4 (every lattice point is a saddle point)
Inventing the function
The function
works. The idea is that a saddle point occurs if and only if one of these two conditions holds:
- when the cosines reach their maximum value, meaning and are even integers;
- when the cosines reach their minimum value, meaning and are odd integers.
Verifying the function works
Inventing the example above (which is one of many) is the main difficulty of the exercise. For completeness, let’s just verify that the guess above does in fact work. From now on, use
The first-order partial derivatives are:
To find critical points, we set and :
Since , the equations reduce to:
Solving these equations:
- when for .
- when for .
- when for .
- when for .
A critical point must satisfy both conditions simultaneously. The only common solutions occur in two cases.
- Each lattice point , where are integers, is a critical point.
- Each point , where are integers, is a critical point.
We classify with the second derivative test. Compute
Now we check the cases:
At any lattice point , we have and , so . So every lattice point is indeed a saddle point.
At any point of the form , we have and , so . Hence there are no saddle points here.
§47.5 Solution to Exercise 19.1 (geometry optimization)
Exercise 19.1. Let be the triangle in the -plane with vertices , , . For what point in the plane is the sum
as small as possible?
For we let
See Figure 108.
We first want to change into an expression like we’re used to. We do this using the Pythagorean theorem as follows:
Summing these expressions:
We are optimizing over the entire space . Let’s follow the recipe in Section 19.2:
- There is no boundary, but we have limit cases if or .
To find the critical points, we compute the partial derivatives:
Thus, the only critical point is:
- There are no boundary points to consider.
- If either or , then the quadratic terms dominate and cause . Hence can take arbitrarily large values.
Putting this together, the point is the unique point minimizing .
If is replaced by a different triangle, it turns out that the best point is the center of mass of the three points , , . In other words, if , , the answer will work out to
(This point is called the centroid or gravity center of and is often denoted by the letter .)
§47.6 Solution to Exercise 19.2 (sine optimization)
The region has boundary whenever or . It also has limit cases when or .
We find the LM-critical points. The gradients are
and
From the first two equations, we have:
Equating these expressions for , we get:
Thus, we get an LM-critical point whenever
Note that . Since , we conclude . Together with , that means and must differ by a multiple of .
Since we want to be as small as possible, we might as well take . The smallest for which is . So of all the LM-critical points, the lowest value occurs when
In the limit cases if either or then .
Suppose . Then . So this part of the boundary consists of the points , , , …. All of these have , so they do worse than the point from before.
Similarly, if , we get boundary points , , , …. Again all of these have , so they do worse than the point from before.
In conclusion the minimum possible value occurs at
§47.7 Solution to Exercise 19.3 (optimization with absolute value)
Exercise 19.3 (Suggested by Ting-Wei Chao). Compute the global minimum of the function
This problem shows a case where does not exist at certain points: the derivative of only exists when .
To avoid this issue, we split into cases based on the sign of the term inside the absolute value. We will split28 into two cases and . In each case we execute the procedure.
Case where
We follow Section 19.2.
- The region is a two-dimensional region with no limit cases but whose boundary is .
We seek all points with . In the region , we have
Solving gives
Therefore, it gives the critical point . This point is indeed in the region , so this is a critical point.
We apply Lagrange multipliers (Section 19.4) on the boundary . Let .
- This is a one-dimensional region with no boundary and no limit cases.
We search for all LM-critical points. First note that is never zero on this boundary. The system of equations is
It’s clear that , , must be nonzero. Hence, the first two equations together imply . Hence, we get two critical points and in this case.
- There are no boundary points to consider.
- There are no limit points to consider.
- There are no limit cases.
Case where
We follow Section 19.2 again.
- The region is a two-dimensional region with limit cases when and but whose boundary is .
In the region , we have
Solving gives
This gives the point , but this point doesn’t lie inside , so we don’t need to consider it.
- We need to apply Lagrange multipliers (Section 19.4) on the boundary . However, we did this already in the earlier case where . So we can just repeat the same calculation verbatim here.
- When or , the square terms dominate and . Hence we get that is bounded above.
Putting things together
We are searching for the global minimum of . Aggregating the critical points, we check
Therefore, the global minimum is .
§47.8 Solution to Exercise 20.1 (butterfly)
Exercise 20.1. A butterfly is fluttering in the plane with position given by , starting from time at .
- Compute the speed of the butterfly at .
- Compute the arc length of the butterfly’s trajectory from to .
- Sketch the butterfly’s trajectory from to in the plane.
Sketch of the trajectory
We start actually by sketching the trajectory first (even though this was the last part), since that will make it easier to see what’s going on in future parts. See Figure 109. The trajectory described by traces out a straight line in the -plane because both the - and -coordinates are equal for all . Specifically, the butterfly’s motion follows the line , with producing oscillations between and .
The trajectory is a straight line from to and back following the line .
Speed of the butterfly at
The speed of the butterfly is given by the magnitude of its velocity vector, which is the derivative of with respect to time .
First, compute the velocity :
(This has direction along the line , which is what we expect.)
The speed at any time is the magnitude of the velocity vector:
At , we have:
Thus, the speed at is:
Arc length of the butterfly’s trajectory from to
Note that from the sketch of the trajectory, we can actually find the arc length with no calculus at all. Indeed, “arc length” is a misnomer because the “arc” is just two line segments!
From the Pythagorean theorem, distance from to is
So the total distance is
Of course, one could also use the arc length formula, and we show how to do so. The arc length of the trajectory is given by the integral of the speed:
We just saw that . Therefore, the arc length from to is:
Because of the absolute value, we can break the integral into two parts. On the interval , , and on the interval , , so
See Figure 110 for an illustration of this integral.
Both integrals are the same, so we compute one and multiply by 2:
Thus, the total arc length is:
§47.9 Solution to Exercise 20.2 (tangent to level curve)
The first task is to recover the value of which wasn’t given in the statement. First, substitute the point into the function :
We are told that , so we set the equation equal to 21:
Thus, the function is:
Now that we know , we can compute the gradient by taking the partial derivatives:
Now evaluate the gradient at :
The gradient is always normal to the tangent line, so the tangent line must be of the form
for some number . This line passes through so we can get
Hence the line requested is
§47.10 Solution to Exercise 20.3 (approximation of )
We are given the function:
and are asked to estimate using linear approximation, starting from the point , at which
We start by computing .
To get the partial derivative with respect to , use the power rule and chain rule:
For the partial derivative with respect to , we treat as a constant:
Thus, the gradient of is:
The gradient at is thus
The linear approximation of near the point can be expressed in terms of the gradient dot the displacement:
§47.11 Solution to Exercise 20.4 (cosine-quartic critical points)
Exercise 20.4. Consider the function defined by
- Compute all the critical points and classify them as saddle point, local minimum, or local maximum.
- Compute the global minimums and global maximums of , if they exist.
Although this is stated as an 18.02 problem, it can actually be solved basically only using 18.01 methods. We’ll still present the solution from an 18.02 perspective, but we’ll comment many times on places where just 18.01 methods would have been sufficient.
Finding the critical points
To find the critical points, we first compute the gradient. The partial derivatives are
Hence
Setting this equal to lets us solve each equation individually:
- is true whenever is an integer.
To solve , factor the equation:
So there are infinitely many critical points! The critical points occur when is any integer and , , . See Figure 111.
Classification using second derivative test
We now classify each of the points using the second derivative test. Calculate the second derivatives needed:
- We have if is even and if is odd.
- We always have .
We have
We summarize all six cases in the table below. For each entry in the table we also compute and then specify the answer based on the second derivative test.
| is even | is odd | |
|---|---|---|
gives saddle pt | gives local min | |
gives local max | gives saddle pt | |
gives saddle pt | gives local min |
Another approach without the second derivative test
You can get the same classification by just looking at the given function too. The point is that the function splits nicely into two halves: if define the one-variable functions
then
In that case, the following result is true:
- A point is a critical point of if is a critical point of and is a critical point of .
If so then, the point is…
- a local minimum of if is a local minimum of and is a local minimum of .
- a local maximum of if is a local maximum of and is a local maximum of .
- a saddle point otherwise.
If you have a good conceptual understanding of saddle points, this should be obvious. It’s essentially Figure 38 from Section 17.3.
This gives us the same table as above, since:
The critical points of are . The minimums are the odd integers when the value reaches , the maximums are the even integers when the value reaches .
The critical points of are the roots of , which are the same we saw before. See Figure 112. There are local minimums at and and a local maximum at .
The global minimums and maximums
First, we evaluate on every critical point. This is easiest to do if we use the and notation from before and compute
Then we get the six values shown in Table 25.
| is even | is odd | |
|---|---|---|
There are no inequality constraints at all, so we just think about limit cases or .
When , the quartic explodes to infinity. This implies already there cannot be any global maximum.
In the case where , the cosine term of will oscillate between and , with period . So there are no new smaller values of that can be obtained here.
Another way to see the global minimums and maximums
Because
the global minimum of should be the sum of the global minimums of and , and likewise the global maximum of should be the sum of the global maximums of and . So we could have also just used 18.01 methods on and individually, as in Figure 112. That is:
- Because and , the global minimum is .
- Because and , there is no global maximum.
Remember, this only works because we could easily divorce into a function in plus a function in . For most functions like or , this approach is not going to fly.
§47.12 Solution to Exercise 20.5 (LM practice)
Let . Let denote the region (a ball of radius ) and let denote the boundary (a sphere of radius ). We follow the steps we described in the recipe in Section 19.2 and Section 19.4.
is three-dimensional and has no limit cases but a two-dimensional boundary . (Because of the condition and all the squares being nonnegative, none of the variables can go to .)
We calculate all the critical points of the objective function . The gradient is
So there are no critical points, because this gradient is never .
The boundary in is a sphere, and it cannot easily be handled. We pull out Lagrange multipliers and follow the recipe all the way through again.
is two-dimensional and has no limit cases or boundary.
We search for LM-critical points by letting , so is the level surface . Calculate the gradient of :
Recall that an LM-critical point is one for which and either
This gradient could be at , but this point does not lie on , so we disregard it.
In the main case , we seek points such that
Our strategy is to kill every variable except , by writing
Plugging this back into the constraint equation and simplifying gives
Putting these two values of in gives These are the two LM-critical points. Evaluating this gives
There are no boundary cases to consider for .
There are no limit cases to consider for .
In conclusion, the maximum value is and the minimum value is , at the points and we found earlier.
There are no limit cases to consider for .
§47.13 Solution to Exercise 20.6 (tangent plane)
The gradient of the function
and so the gradient at the origin is
The tangent plane consists of those vectors which are normal to . This plane is two-dimensional. So, to find two vectors spanning , according to the “buy two get one free” result from Section 8.2, we just need to give any two linearly independent (i.e. not multiples of each other) vectors which are both perpendicular to .
There are many valid choices. One such example might be and . These two vectors are clearly not multiples of each other, and
so they are indeed tangent vectors contained in .