According to the question, the tank must hold a given quantity of water, so the volume of water can be assumed to be fixed. Let its value be denoted as
C cubic units, a real constant.
The base of the tank is square, so, let the length of its side be a units and the depth of the tank be x units (a variable quantity whose value in terms of a is to be determined).
The volume of the tank is clearly area of base times depth =a2x=C(fixed).
Since the tank is open at the top, its surface area is: (bottom area + 4 walls)
a2+4ax square units.
If the cost of sheet metal material per square meter is p (fixed), then the cost of building the tank is:
p(a2+4ax)
So, the problem is to minimize p(a2+4ax) subject to the constraint a2x=C.
⇒a=√Cx
⇒p(a2+4ax)=p(Cx+4√Cx)
Differentiating the above expression with respect to x and equating to zero to find the minimum, we get:
p(−Cx2+2√C√x)=0⇒x=3√C4⇒a=3√2C
Clearly, we can see from the above that x=a2
So, the cost of material is minimized when the depth is half of the width.