Calculus · Applying the derivative
Optimisation — setting the problem up
The difficulty is in the translating, not the differentiating.
A paragraph that must become a function
Forty units of fence, and the largest possible area to enclose. There is no formula here, just a few sentences. The first decision — what exactly is to be made large, and what holds it back — matters more than any derivative that comes after it.
An optimisation problem arrives as a paragraph of words and must leave as a single function of a single variable. Once it is in that form the calculus is the easy part — the fourth unit already did it. This lesson is entirely about the translation.
| In the problem there appears | The role |
|---|---|
| The quantity to be made largest or smallest | The objective function |
| A constraint tying the variables together | The constraint equation |
| A possible range for the variable | The domain of the problem |
Two worked examples
Example 1 — a rectangle of fixed perimeter
- A rectangle has a perimeter of forty; its area is to be made largest.
- The objective has two variables.
A = xy - The constraint ties them.
2x + 2y = 40 \;\Rightarrow\; y = 20 - x - Substituting leaves one variable, on the range from zero to twenty.
A(x) = x(20-x)
Example 2 — an open box from a sheet
- Squares of side x are cut from the corners of a sheet twelve by twelve.
- The base is what remains after two cuts on each side.
(12 - 2x) - The height is the cut itself, so the volume follows.
V(x) = x(12-2x)^{2} - The range is from zero to six — beyond that nothing is left to fold.
- The objective is differentiated before the substitution — Substitute first, then differentiate A function of two variables is not differentiated with the tools of this course.
- The possible range is ignored — The domain is part of the problem A negative side or too large a cut are no solutions at all.