\(y, x\) be the height and radius of cylinder, respectively and \(h,r\) be the height and radius of cone respectively. Now compare two similar tringles, we get-
\begin{equation*}
\frac{h}{h-y}=\frac{r}{x}
\end{equation*}
Now find points from
\begin{equation*}
\frac{dV}{dx} =0
\end{equation*}
Here \(V\) is volume of cylinder.