2I

Applications of maximisation and minimisation

A step-by-step method for optimisation problems: choosing a variable, writing the quantity as a function of one variable, finding and testing stationary points, checking endpoints, and answering in context.

Businesses want the least cost, engineers want the most strength, packaging designers want the least material. If the quantity can be written as a function of one variable, calculus finds the best value. Most of the work is setting up that function. The calculus is usually the easy part.

The method

Example 1: the biggest box●●

A square sheet of cardboard is $30$ cm wide. Equal squares of side $x$ cm are cut from each corner and the sides are folded up to make an open box. Find the greatest possible volume.

$V = x(30 - 2x)^2$
After cutting, the base is a square of side 30 − 2x and the height is x.
Domain: $0 \lt x \lt 15$.
Both the height and the base width must be positive.
$\dfrac{dV}{dx} = (30 - 2x)^2 - 4x(30 - 2x) = (30 - 2x)(30 - 6x)$
Product rule, then take out the common factor (30 − 2x).
$\dfrac{dV}{dx} = 0$ at $x = 5$.
30 − 2x = 0 gives x = 15, which is outside the domain.
At $x = 4$, $V' = 22 \times 6 \gt 0$. At $x = 6$, $V' = 18 \times (-6) \lt 0$. So $x = 5$ gives a maximum.
Test either side.
$V = 5 \times 20^2 = 2000$. The greatest volume is $2000$ cm³.
The question asks for the volume, not x.
Volume of the box against the cut

Drag X to try different cuts.

Try this

Small cuts give a flat box and big cuts give a narrow tower. Drag X to see both extremes, then predict the best cut before you check at $x = 5$.

Using a constraint

Example 2: the cheapest can●●●

A closed cylindrical can must hold $500$ cm³. Find the radius that uses the least metal, correct to two decimal places.

$S = 2\pi r^2 + 2\pi rh$
Surface area: two circles plus the curved side.
$\pi r^2 h = 500$, so $h = \dfrac{500}{\pi r^2}$ and $S = 2\pi r^2 + \dfrac{1000}{r}$, for $r \gt 0$.
Two variables. Use the fixed volume to replace h.
$\dfrac{dS}{dr} = 4\pi r - \dfrac{1000}{r^2} = 0$ when $r^3 = \dfrac{250}{\pi}$, so $r \approx 4.30$.
$\dfrac{d^2S}{dr^2} = 4\pi + \dfrac{2000}{r^3} \gt 0$, so it is a minimum.
The second derivative is positive for every r > 0, so this is a minimum.
The radius is about $4.30$ cm. (Then $h = \dfrac{500}{\pi r^2} = 2r$: the best can is as tall as it is wide.)

Cost and time problems

Example 3: running a boat●●●

A boat travelling at $v$ km/h costs $4v^2 + 400$ dollars per hour to run. Find the speed that makes a $100$ km trip cheapest, and the cost of that trip.

The trip takes $\dfrac{100}{v}$ hours.
Time = distance ÷ speed.
$C = (4v^2 + 400) \times \dfrac{100}{v} = 400v + \dfrac{40\,000}{v}$, for $v \gt 0$.
Total cost = cost per hour × hours.
$\dfrac{dC}{dv} = 400 - \dfrac{40\,000}{v^2} = 0$ when $v^2 = 100$, so $v = 10$.
$\dfrac{d^2C}{dv^2} = \dfrac{80\,000}{v^3} \gt 0$, so it is a minimum. $C = 4000 + 4000 = 8000$.
The cheapest speed is $10$ km/h, and the trip costs $\$8000$.

Your turn

A farmer has $200$ m of fencing to make a rectangular paddock against a straight river. No fence is needed along the river. Find the largest possible area.

Show the working

Let the two sides perpendicular to the river be $x$. The side parallel is $200 - 2x$, so $A = x(200 - 2x) = 200x - 2x^2$ for $0 \lt x \lt 100$. $A' = 200 - 4x = 0$ at $x = 50$, and $A'' = -4 \lt 0$, so it is a maximum. $A = 50 \times 100 = 5000$ m².

Practice
  1. Find the maximum value of $P = x(20 - x)$.

  2. Squares of side $x$ are cut from the corners of a $30$ cm square sheet to make an open box. Which $x$ gives the greatest volume?

  3. Find that greatest volume, in cm³.

  4. After finding where $V' = 0$, why must you test the point?

  5. Two positive numbers add to $12$. Find the largest possible value of the square of one times the other.

  6. A boat costs $4v^2 + 400$ dollars per hour at $v$ km/h. Find the speed, in km/h, that minimises the cost of a $100$ km trip.

  7. Find the minimum cost of that trip, in dollars.

  8. A closed can holds $500$ cm³. Find, to two decimal places, the radius in cm that minimises the surface area.

  9. Exam style: a rectangular yard of area $400$ m² is fenced on three sides, with a wall on the fourth. Find the least length of fencing needed, to two decimal places.

  10. Exam style: $240$ m of fencing makes a rectangular paddock against a river (no fence on the river side). Find the largest area in m².

Formula sheet