2. If it has two variables, use a constraint to eliminate one
3. Differentiate and set the derivative to zero
4. Solve, and reject any answer that makes no physical sense
5. Confirm it is a maximum or minimum with the second derivative
6. Answer the question that was asked, with units
A farmer has $60$ m of fencing to make a rectangular pen against a long straight wall, using the wall as one side. Find the dimensions giving the greatest area.
A window is a rectangle of width $2r$ and height $h$, topped by a semicircle of radius $r$. The total perimeter is $8$ m. Find $r$ for the greatest area.
An open box is made from a $24$ cm square of card by cutting a square of side $x$ cm from each corner and folding up the flaps. Find the value of $x$ giving the greatest volume.
A closed rectangular box has a square base of side $x$ cm and a volume of $500$ cmยณ. Find the dimensions that minimise the surface area.
A company's profit, in pounds, from selling $n$ hundred items is $P = 180n - 3n^2 - 500$, valid for $0 \leqslant n \leqslant 60$. Find the production level giving the greatest profit.
Compare the stationary value with the values at both ends.
Find the greatest value of $y = x^3 - 3x$ for $0 \leqslant x \leqslant 3$.
Objective
Write a formula for what is being optimised.
Constraint
Use it to get down to one variable.
Then differentiate
Set the derivative to zero and solve.
Expand first
Multiply out any brackets before differentiating.
Reject nonsense
Negative lengths, zero bases โ and say why.
Confirm
Second derivative: $<0$ max, $>0$ min.
Endpoints
On a closed interval, test them as well.
Answer fully
Give the dimensions and the optimal value.
Units
Always, and check what the variable counts.
Sense check
Is the answer physically plausible?
Find the minimum value of $y = x^2 - 10x + 3$.
โถ Show solution
$2x - 10 = 0$, so $x = 5$.
$y = 25 - 50 + 3 = -22$
$\dfrac{\mathrm{d}^2y}{\mathrm{d}x^2} = 2 > 0$, so the minimum value is $-22$.
A rectangle has perimeter $40$ cm. Show that its greatest area is $100$ cmยฒ.
โถ Show solution
Let the sides be $x$ and $y$, with $2x + 2y = 40$, so $y = 20 - x$.
$A = x(20-x) = 20x - x^2$
$\dfrac{\mathrm{d}A}{\mathrm{d}x} = 20 - 2x = 0$, so $x = 10$.
$\dfrac{\mathrm{d}^2A}{\mathrm{d}x^2} = -2 < 0$, a maximum.
$A = 10 \times 10 = 100$ cmยฒ โ the rectangle is a square.
Two numbers add to $20$. Find the numbers whose product is greatest.
โถ Show solution
Let them be $x$ and $20 - x$. Then $P = 20x - x^2$.
$\dfrac{\mathrm{d}P}{\mathrm{d}x} = 20 - 2x = 0$, so $x = 10$.
The numbers are both $10$, with product $100$.
A stone is thrown so its height is $h = 20t - 5t^2$ metres. Find the greatest height.
โถ Show solution
$\dfrac{\mathrm{d}h}{\mathrm{d}t} = 20 - 10t = 0$, so $t = 2$ s.
$\dfrac{\mathrm{d}^2h}{\mathrm{d}t^2} = -10 < 0$, a maximum.
$h = 40 - 20 = 20$ m.
An open box is made from a $12$ cm square of card with squares of side $x$ cut from each corner. Find $x$ for maximum volume.
โถ Show solution
$V = x(12-2x)^2 = x\left(144 - 48x + 4x^2\right) = 144x - 48x^2 + 4x^3$
$\dfrac{\mathrm{d}V}{\mathrm{d}x} = 144 - 96x + 12x^2 = 12\left(x^2 - 8x + 12\right) = 12(x-2)(x-6)$
$x = 2$ or $x = 6$. Reject $x = 6$, since the base would be zero.
$\dfrac{\mathrm{d}^2V}{\mathrm{d}x^2} = -96 + 24x$; at $x = 2$ this is $-48 < 0$, a maximum.
$x = 2$ cm, giving $V = 2 \times 64 = 128$ cmยณ.
A farmer has $100$ m of fencing for a rectangular pen against a wall (wall as one side). Find the maximum area.
โถ Show solution
$2x + y = 100$, so $y = 100 - 2x$ and $A = 100x - 2x^2$.
$\dfrac{\mathrm{d}A}{\mathrm{d}x} = 100 - 4x = 0$, so $x = 25$.
$y = 50$, and $A = 25 \times 50 = 1250$ mยฒ.
Find the greatest value of $y = 12x - x^3$ for $0 \leqslant x \leqslant 3$.
โถ Show solution
$\dfrac{\mathrm{d}y}{\mathrm{d}x} = 12 - 3x^2 = 0$, so $x^2 = 4$ and $x = 2$ (in range).
$\dfrac{\mathrm{d}^2y}{\mathrm{d}x^2} = -6x = -12 < 0$, a maximum.
$y = 24 - 8 = 16$.
Endpoints: $y(0) = 0$ and $y(3) = 36 - 27 = 9$, both less than $16$.
Greatest value $16$, at $x = 2$.
A profit function is $P = 60n - n^2 - 200$ for $0 \leqslant n \leqslant 25$. Find the maximum profit.
โถ Show solution
$\dfrac{\mathrm{d}P}{\mathrm{d}n} = 60 - 2n = 0$ gives $n = 30$ โ which is outside the range.
So the maximum must be at an endpoint. Since $P$ is increasing for $n < 30$, the largest value in range is at $n = 25$:
$P = 1500 - 625 - 200 = 675$
Maximum profit ยฃ$675$ at $n = 25$.
A rectangle is inscribed under the curve $y = 9 - x^2$, with its base on the $x$-axis and two corners on the curve at $x = \pm t$. Find $t$ for the greatest area.
โถ Show solution
The width is $2t$ and the height is $9 - t^2$.
$A = 2t\left(9 - t^2\right) = 18t - 2t^3$
$\dfrac{\mathrm{d}A}{\mathrm{d}t} = 18 - 6t^2 = 0$, so $t^2 = 3$ and $t = \sqrt3$ (taking $t > 0$).
$\dfrac{\mathrm{d}^2A}{\mathrm{d}t^2} = -12t < 0$ for $t > 0$, a maximum.
$A = 18\sqrt3 - 2\left(3\sqrt3\right) = 12\sqrt3 = 20.8$ (3 s.f.)
A closed cylindrical tin has radius $r$ cm and height $h$ cm. Its total surface area is fixed at $600\pi$ cmยฒ.
(a) Show that $h = \dfrac{300 - r^2}{r}$. (b) Show that the volume is $V = \pi\left(300r - r^3\right)$. (c) Find the value of $r$ giving the greatest volume, and confirm it is a maximum. (d) Find that greatest volume, and the corresponding height. Comment on the shape.
โถ Show solution
(a) A closed cylinder has two circular ends and a curved side:
$S = 2\pi r^2 + 2\pi r h = 600\pi$
Divide through by $2\pi$: $r^2 + rh = 300$
$rh = 300 - r^2$, so $h = \dfrac{300 - r^2}{r}$ as required.
(b) $V = \pi r^2 h = \pi r^2 \times \dfrac{300-r^2}{r}$
$= \pi r\left(300 - r^2\right) = \pi\left(300r - r^3\right)$ as required.
Note this is now a polynomial in $r$, so the standard differentiation rule applies.
(c) $\dfrac{\mathrm{d}V}{\mathrm{d}r} = \pi\left(300 - 3r^2\right) = 0$
$r^2 = 100$, so $r = 10$ (rejecting $r = -10$, as a radius cannot be negative).
$\dfrac{\mathrm{d}^2V}{\mathrm{d}r^2} = \pi(-6r) = -60\pi < 0$ at $r = 10$, so this is a maximum.
(d) $V = \pi\left(3000 - 1000\right) = 2000\pi = 6280$ cmยณ (3 s.f.)
$h = \dfrac{300 - 100}{10} = 20$ cm.
Comment: the height $20$ cm is exactly twice the radius $10$ cm, so $h = 2r$ โ the tin's height equals its diameter.
This is the classic result: for a fixed surface area, the cylinder of greatest volume is as tall as it is wide, the shape closest to a sphere that a cylinder can manage. It is why tins of food are roughly this proportion, though in practice manufacturing and stacking costs pull the shape a little off the mathematical optimum.