Let x cm length is cut from one corner,
Length after cutting
=45−x−x=45−2x
Width after cutting
=24−x−x=24−2x
Height of the box =x
Volume of the box is
V=(45−2x)(24−2x)x
⇒V=2x(2x−45)(x−12)
⇒V=2x(2x2−69x+540)
⇒V=2x(2x3−69x2+540x)
Differntiating w.r.t x
dVdx=2(6x2−138x+540)
⇒dVdx=12(x2−23x+90)
⇒dVdx=12(x−5)(x−18)
Putting dVdx=0
12(x−5)(x−18)=0
⇒x=5,18
These are the critical points.
Again, Differentiating w.r.t x
d2Vdx2=12(2x−23)
At x=5, we get
d2Vdx2=12(−13)<0
At x=18, we get
d2Vdx2=12(13)>0
For maxima, d2Vdx2<0
Hence, 5 cm should be cut off from the side of the square so that the volume of the box is maximum.