Richard P. answered 04/01/15
Tutor
4.9
(831)
PhD in Physics with 10+ years tutoring experience in STEM subjects
This is a standard problem of optimization subject to a constraint. Initially the are two free parameters: the height, h, of the container, and the side of the square base, w. The constraint equation: 250 = h w2 can be used to eliminate h in favor of w in the objective function (the cost of surface materials).
h = 250 / w2
The objective function (the cost) is C = 4s h w + 2 (2s) w2
where s is the cost per square inch of side material and 2s is the cost per square inch of top/bottom material. This formula takes into account that there are 4 sides and 2 (top/bottom). Using the constraint equation gives
C = 4 s [ 250/w + w2 ]. This is now a function of just one free parameter (w). The optimum value of w is found by setting the derivative of C with respect to w equal to zero. This results in the equation
0 = - 250/w2 + 2 w rearranging gives 125 = w3 so w = 5.
The constraint equation then gives h = 10