Express the volume of the cylinder as a function of .
Formula for the volume of the cylinder is .
Observe the figure:
Apply Pythagorean theorem, .
Substitute in .
.