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 appearsThe role
The quantity to be made largest or smallestThe objective function
A constraint tying the variables togetherThe constraint equation
A possible range for the variableThe domain of the problem

Two worked examples

Example 1 — a rectangle of fixed perimeter

  1. A rectangle has a perimeter of forty; its area is to be made largest.
  2. The objective has two variables. A = xy
  3. The constraint ties them. 2x + 2y = 40 \;\Rightarrow\; y = 20 - x
  4. Substituting leaves one variable, on the range from zero to twenty. A(x) = x(20-x)

Example 2 — an open box from a sheet

  1. Squares of side x are cut from the corners of a sheet twelve by twelve.
  2. The base is what remains after two cuts on each side. (12 - 2x)
  3. The height is the cut itself, so the volume follows. V(x) = x(12-2x)^{2}
  4. The range is from zero to six — beyond that nothing is left to fold.
A calculator: An open box from a sheet: V(x) = x(s - 2x)^2 — sliders for The sheet side s, The side x of the cut square, with results that update at once on a graph.