Cylinder is in the sphere. Radius of sphere is r. What is the biggest volume of cylinder then ?

Hello, totalnewbie!
Cylinder is inscribed in a sphere of radius.
What is the biggest volume of cylinder then?Code:* * * * - - - - - * * | | * * | | * | | * | | * * | * | * * | : \ | * | h: \R | * | : \ | * * | : r \| * * - - + - - * * * *
The radius of the cylinder is.
The height of the cylinder is.
The volume of the cylinder is: .[1]
In the diagram, we see that: .[2]
Substitute [2] into [1]: .
Therefore, we must maximize: .
. . Go for it!