A square piece of tin of side 18 cm is to made into a box without top, by cutting a square from each corner and folding up the flaps to form the box. What should be the side of the square to be cut off so that the volume of the box is the maximum possible?
Let the side of the square to be cut off be x cm. Then, the length and the breadth of the box will be (18 − 2x) cm each and the height of the box is x cm.
Therefore, the volume V(x) of the box is given by,
$V(x)=x(18-2 x)^{2}$
$\begin{aligned} \therefore V^{\prime}(x) &=(18-2 x)^{2}-4 x(18-2 x) \\ &=(18-2 x)[18-2 x-4 x] \\ &=(18-2 x)(18-6 x) \\ &=6 \times 2(9-x)(3-x) \\ &=12(9-x)(3-x) \end{aligned}$
And, $V^{\prime \prime}(x)=12[-(9-x)-(3-x)]$
$=-12(9-x+3-x)$
$=-12(12-2 x)$
$=-24(6-x)$
Now, $V^{\prime}(x)=0 \Rightarrow x=9$ or $x=3$
If x = 9, then the length and the breadth will become 0.
x ≠ 9.
$\Rightarrow x=3$
By second derivative test, x = 3 is the point of maxima of V.
Hence, if we remove a square of side 3 cm from each corner of the square tin and make a box from the remaining sheet, then the volume of the box obtained is the largest possible.