
Qi L. answered 07/14/19
PhD, Machine Learning, FAANG Interview Prep, Stats, Maths, Physics
Suppose the width is x (m), length of the base is 2x (m), the base area is 2x^2 (m^2).
Since the volume is 10 (m^3), the height has to be 10/2x^2 (m) = 5/x^2.
The cost of making such container is
cost of base: 2x^2*15 = 30x^2
cost of sides: (2*2x*5/x^2 + 2*x*5/x^2)*9 = 270/x
The overall cost is hence the sum of the base and the sides: f(x) = 30x^2 + 270/x
The get the minimum,
df(x)/dx = 30*(2x - 9/x^2) = 0
so x = (9/2)^(1/3) = 1.651 (m)
f(x) = 245.31 (dollars)