I'm having a hard time with this problem, i have some ideas, but i don't know how to continue. Here is the exercise:

"Consider the solid $S$ bounded by the walls of the superior cone whose equation is $z = \sqrt{3}\sqrt{x^2+y^2} $ and inside the sphere of equation $x^2+y^2+(z-2)^2=4$ whose density at a point $P$ is given by $\delta (x,y,z) =z$. Write (without calculating!) the mass of $S$ as triple iterated integral in both cylindrical and spherical coordinates. (Hint: in spheric coordinates, $dV = \rho^2 sin(\phi) d\rho d\theta d\phi$)."

First of all, i noticed that that $(z-2)^2$ would give me a headache to write in spherical coordinates, so i did the linear variable substitution: $$u = x$$ $$ v = y$$ $$ w = z -2$$

So, the cone equation became $w+2 = \sqrt{3}\sqrt{u^2+v^2}$ and the sphere $u^2+v^2+w^2 = 4$. Now, there are 2 problems:

1) I can't visualize the limits of integration. (this is more general, it happens in a LOT of problems that i have to change from rectangular to polar/cylindrical/spherical coordinates, so any tips here are welcome). Also, this is the biggest problem of this exercise, for me.

2) How can i make just one integral for the mass? I mean, in the 1st octant that will be okay, because all of the variables are positive. But, for example, in the 5º octant, wouldn't the volume (then the mass) be negative? When i did some problems calculating mass in spherical/cylindrical coordinates, i always "broke" the sphere into 8 parts (when the density was symmetric with respect to the origin) but in this case, i must write it all in just 1 integral.

Any help would be great. Thanks!


Solution 1:

This is not a complete answer, but at least a hint to get you started:

The trick here is not to change to $w=z-2$, but to directly go to ordinary spherical coordinates centered at the origin. The equation for the sphere can be written as $x^2+y^2+z^2=4z$, which in spherical coordinates becomes $r^2 = 4 r \cos\phi$, where $\phi$ is the angle from the $z$ axis (which seems to be the convention that you're using).

In other words, the sphere is described by the equation $r=4\cos \phi$. (We may cancel $r$, since $r>0$ except at the origin, which is included in the equation $r=4\cos\phi$ anyway.)

Regarding the density, the sphere lies wholly in the upper half space $z \ge 0$ (since it's centered at $(0,0,2)$ and has radius $2$), so you are only integrating over points where the density $\delta(x,y,z)=z$ is nonnegative.