and what about superposition?
Here is the problem:
Find the center of mass of a solid with constant density (D) located in the upper semispace ($z\geq0$) and between the two spheres $x^{2}+y^{2}+z^{2}=1$ and $x^{2}+y^{2}+z^{2}=9$
My first instinct was to use spherical coordinates and set up the triple integral
$\int_{\phi=0}^{\pi/2} \int_{\theta=0}^{2\pi} \int_{\rho=1}^{3} \rho^{2}sin({\phi}) D {d\rho} {d\theta} {d\phi}$
(Sorry, that's the best I can do with my limited Latex knowledge).
I'm wondering if I have this setup right. Or do I need to create a double integral instead? I always get confused with triple integrals because the boundaries are not the actual volume of the shape, but rather the domain of some function f(x,y,z) where the triple integral is asking us to find sum.