[Math] Cylinder inside of a sphere optimization problem

calculus

I have a question that I have no idea how to proceed in. Could use some insight:

A right circular cylinder is inscribed in a sphere of radius r. Find the largest possible volume of such a cylinder.

My hint is to:

Draw the appropriate right triangle and the Pythagorean Theorem will connect all of the variables.

So the Area of a cylinder is $\pi \cdot r^2 \cdot h$. What next?

Does the right triangle have the sides of $h$, $r$, and then $\sqrt{h^2 + r^2}$ as the hypotenuse? But where does that get us in terms of finding the Volume of the cylinder in one variable and then taking the derivative?

Best Answer

More than a hint...If $R$ is the radius of the sphere and $r$ is the radius of the cylinder, with $h$ the height of the cylinder, then by Pythagoras we have $$\frac{h^2}{4}=R^2-r^2$$

The volume of the cylinder is then $$V=2\pi r^2\sqrt{R^2-r^2}$$ $$\implies V^2=4\pi^2(r^4R^2-r^6)$$

You can differentiate this to get $$2VV'=4\pi^2(4r^3R^2-6r^5)=0$$ So the maximum $V$ which is when $r=R\sqrt{\frac 23},$ and $$V_{max}=\frac{4\pi R^3}{3\sqrt{3}}$$