Maxima & Minima
Now that we have a good idea of how to perform curve sketching, we can now consider one of the most useful applications of differential calculus: Finding maxima and minima. In short, solving max-min problems, the most common forms of an optimization problem.
Consider the following problem:
problem. Suppose we have a wire of length The wire is cut into two pieces, and each piece must enclose a square. What is the largest area that can be enclosed?
To solve this problem, we want to first draw a diagram of the wire:
Next, since we're trying to find the area, we want to express the area as a formula:
Once we have this formula, the most intuitive and straightforward way to solve the problem is to find the critical points. In other words, solving for:
Computing the derivative:
Solving for where
Accordingly, we have the critical point The critical value then is:
And with that, we're done. We hand our results in, and two weeks later, we get an email: "We used the measurements sent, and there has to be some mistake. These are the tiniest squares we've ever made." Confusion sets in. Did we do something wrong? We double-check our work, and everything is right. We slowly realize, however, that we didn't check the end points. Given our function we know that the domain is: If we examine the limits:
At this point, it should be clear what we've just done. The critical value we calculated is and the endpoints are and So the graph actually looks like:
We didn't find the largest possible area; we found the smallest. Not the max, but the min. This demonstrates a critical practice point in solving solving optimization problems:
postulate. The maximum or minimum value does not always occur when the first derviative is The function's value at the endpoints of the interval considered for global maxima and minima must always be considered.
Let's consider another example:
problem. Let be a box without a top. Find the least surface area for given a fixed a volume.
Again we start with a diagram:
Next, we specify the formulas. For the volume, we have:
For the surface area, we have one bottom and four sides:
This surface area formula is pretty ugly. It contains three spearate variables in three separate terms. Is there any way to reduce the number of variables present? Well, let's start by asking why we even have three variables in the first place. We have three variables because we don't know the length, width, or height of this box. But couldn't the box have a square bottom? In which case we'd just have two variables — and
That would certainly simplify the problem, but for us to take that route, it must be true that a square bottom has a smaller perimeter rather than a rectangular bottom. Otherwise we wouldn't have the smallest possible surface area. Let's state the problem:
problem. Given a rectangle 's perimeter what are the smallest possible dimensions of
Once more we start with a diagram:
Expressing the rectangle's perimeter as a formula:
We want to find the minimum perimeter, so we differentiate with respect to and solve for
Looking at that result, we see that a rectangle with the smallest possible area is, in fact, a square, since (the width) is equal to (the height). So, we can revise the diagram we started out with:
Now we just have two variables, and our equations are much simpler:
We still have several unknowns in our problem: and This is still a good amount of complexity. Fortunately, the problem contains a constraint — the volume is fixed. This means that the quantiy never changes. This in turn means that we can solve for through
We can then substitute into the area formula:
Now we're in a good spot to differentiate:
Setting and solving for
We now have our critical point:
As we saw earlier, we aren't done. We have no idea whether this critical point corresponds to the maximum value or the minimum value. So we have to check the endpoints. So what are the endpoints for We know that it cannot be negative — a rectangle cannot have negative dimensions:
And the upperbound? It's could be anything:
Now that we have the endpoints, we can evalaute:
Ok, so at the lower endpoint, we get a box with infinite area. That's not what we want, so let's consider the other upper endpoint:
This tells us that we've found a minimum. The critical point we've found does, in fact, correspond to the smallest possible area:
The smallest possible area of a lidless box with a fixed volume will have the bottom dimensions by where is twice the box's height. In other words, a box.
With a function's sketch, it's easy to find maxima and minima:
The trouble is, sketching is a lot of work. We don't want to always have to sketch just to find a maximum and minimum — it's too time consuming. Fortunately, there's a faster way to finding maxima and minima. We just need to examine a few facts about the function:
- Criticial points,
- endpoints, and
- points of discontinuity
To illustrate, consider the graph of the following function:
There are five possible places the minimum or maximum might be:
Only one out of these five places is a critical point.