The diagram of the cylinder inside the cone is as the following
cylinder in a cone
where
m and
m are the base radius and height of the cone.
The two right riangles in the diagram are similar, so we have the following ratios:
Now we know that the volume of the cylinder is the area of the base times height i.e.
To maximize the volume we need to find the critical points of
. We use the power rule to get
Using the quadratic formula (or factoring) gives
. For
the volume becomes 0, so the maximum must be attained at
, and hence
, therefore,
Note that in general, we need to check the endpoints for
or
, where in this example make the volume equal to 0.
The dimension of the cylinder is therefore
.