Cone and inscribed cylinder - part 1

A rotation cylinder with radius r and height h is to be inscribed in a cone with radius R and height H. Find the dimensions of the cylinder when the volume is maximum. Exercise Move point P in Graphics 3D. Have a look at the cone by using View towards xOz plane to find the additional conditions.
Andreas Lindner