Last time: | Next time: |
We saw that if we make his pen rectangular (and "free-standing") then we should make it in the shape of a square. That should be somewhat satisfying! Some solutions feel intuitively correct.
I have a big old barn: what if we can use an existing wall, e.g. the side of a long barn? What would the dimensions be? What do you think?
We still have a constraint: 200 meters of fencing.
Now the two dimensions in our picture (remember to draw a picture, and provide good variable names?) are related by \[ 2w+l=200 \]
so \[ l=200 - 2w=2(100 - w) \]
Therefore \[ A(w)=2w*(100-w) \]
No need to differentiate: this is just twice the previous equation, so it has the same critical point: \[ A'(w)=100 - 2w = 0 \textrm{ when } w=50 \] But now the length is 100m. You might think of this as two of the previous square pens glued together!
Did you expect that shape? Maybe you thought that it would be square again... Here's where calculus helps! Whatever we might think, calculus may well be able to provide the right answer.
Generally we seek the global maximum or the global minimum -- which we have found in the cases above. Because those functions were quadratics, we know that they have only one point on their graphs where the derivative is zero -- and no points where their derivatives don't exist (although there were boundaries beyond which we couldn't go -- no lengths or widths were to be negative, for example).
Notice that there can be ties! Thus a constant function \(x=a\) has global extrema everywhere.
One other important consideration is the domain. In those problems, the dimensions had to be positive. So we could have constrained the solutions to be where both $w>0$ and $l>0$.
This sets up the possibility for the maximum or minimum to be at the border (as is true in this case -- the global minimum is 0 -- if we run the fencing the whole length, so that it's all length, with $w=0$. This results in a fence that Ace won't like at all! (Remember that we don't want to kill Ace by squishing him into a pen of width zero!)
Furthermore, however, we might have local "extrema" (maxes or mins), that, while larger than their neighbors, give Ace only a local advantage -- but a better solution could be found elsewhere in the domain:
and this set of images showing (some of) the kinds of things that can go wrong (at least in the case of a continuous function -- if you introduce discontinuities, things can get uglier):
Figure 3.1.5. From left to right,
These \(x\)-values, these places where the derivative is zero or doesn't exist are called critical points, or critical numbers.
Here's the graph of the derivative discussed in that activity:
Try plotting \[ \frac{x^3}{3}+2 x^2+x+6 \ln(|x-2|)-\frac{38}{3} \] (restrict the range to (-10,50)) and see what you think.)