The amount of material removed is the volume of the region within the sphere bounded by the cylinder. Consider a sphere of radius
centered at the origin; this sphere has equation

The given cylinder has equation

The volume of the region of interest
is given by

Converting to cylindrical coordinates, setting



we have

and


where
is the Jacobian of the transformation from
to
. The region
is described by the set

The integral is then

The integral with respect to
is symmetric about
, so we instead compute twice the integral from
to
, and we can immediately compute the integral with respect to
:

Now, let
, so that
:



