To get the mass, we integrate the density function over the given region.
In cylindrical coordinates, the sphere has equation

The region of interest lies below the top half of the sphere, so that
.
At the lower end, the cone has equation, and hence
has lower limit,

The upper hemisphere and cone meet when

Then the mass of the given solid is

Integrate by parts.


Substitute
and
.

Putting it all together, the mass is
