using the Pythagorean Theorem.
Note that h refers to half of the total height of the cylinder.I chose to use h instead of h2 to simplify things later on.
To find the volume of our cylinder,we need to multiply the area of the top by the total height of the cylinder.In other words;
V=π(radiusofcylinder)2∗(heightofcylinder)
V=π(√r2−h2)2(2h)
V=2πh(r2−h2)
This is our volume function.Next we take the derivative of the volume function and set it equal to zero.If we move the h inside the parenthesis,we only need to use the power rule to the derivative.
V=2π(r2h−h3)
ddxV(h)=2π(r2−3h2)=0
The 2π divides out and we are left with;
(r2−3h2)=0
After some rearranging;
h2=r23
Take the square root of both sides.
h=r√3
This is our optimized height.To find the optimized volume,we need to plug this into the volume function.
V=2πh(r2−h2)=2π(r√3)(r2−(r√3)2)
V=2πr√3(r2−r23)
V=2πr√3(3r2−r23)
V=2πr√3(2r23)
V=4πr33√3
V=4√3πr39
This is the optimized volume for the cylinder.Its a good check to notice that V is in terms of r3 since volume should have cubic units.In other words,if our radius was given in term of meters,our volume units would be m3.