For a uniform object the integration of the above function is very simple. As the
density is a “constant function” it can be factored out of the integral. By the
definition, the remaining integral represents the volume (V) of the cylinder,
which is related to the size of the cylinder (height h and diameter 2r) by a
well-known relation