Let r be the radius of the sphere, x be the side of the cube and S be the sum of the surface area of both. Then,
...(1)
Sum of volumes, V=
V = [From eq. (1)]
For the minimum or maximum values of V, we must have
...(2)
Now,
So, volume is minimum when x = 2r.