# Centroid density function

1. Nov 18, 2005

### Benny

Hi, I am having trouble with the following question. Can someone help me out?

a) Find the volume of the solid that lies above the cone $$\phi = \frac{\pi }{3}$$ and below the sphere $$\rho = 4\cos \phi$$.

b) Find the centroid of the solid in part (a).

For the volume I got 10pi which I am fairly sure is correct. I don't know how to find the centroid. There doesn't appear to be a density function. I need it because for instance to find the z coordinate of the centroid I need to calculate $$\mathop z\limits^\_ = \frac{{M_{xy} }}{m}$$ where $$m = \int\limits_{}^{} {\int\limits_{}^{} {\int\limits_E^{} {\rho \left( {x,y,z} \right)} } } dV$$ and $$M_{xy} = \int\limits_{}^{} {\int\limits_{}^{} {\int\limits_E^{} {z\rho \left( {x,y,z} \right)} } } dV$$.

I know that if the density function is constant then its value doesn't matter since it cancels in the calculations but this question doesn't mention anything about the density being constant.

The solution says: By the symmetry of the problem M_(xz) = M_(yz) = 0. Then $$M_{xy} = \int_0^{2\pi } {\int_0^{\frac{\pi }{3}} {\int_0^{4\cos \theta } {\rho ^3 \cos \phi \sin \phi d\rho d\phi d\theta } } = ... = 21\pi }$$. Hence $$\left( {\mathop x\limits^\_ ,\mathop y\limits^\_ ,\mathop z\limits^\_ } \right) = \left( {0,0,2.1} \right)$$.

2. Nov 19, 2005

### vsage

The value will "cancel out" due to symmetry arguments in the X-Y plane because there's the same mass distribution evenly around the Z axis. Pick any point (x, y, z) on the graph within the limitations and you will see that there is a point at (-x, -y, z) that counterbalances it. This is established by the cone $$\phi = \frac{\pi}{3}$$.

Your prof should have derived for you the volume integral in spherical coordinates and transformations from x, y, z into $$\rho , \theta, \phi$$:

x = $$\rho cos(\theta)sin(\phi)$$
y = $$\rho sin(\theta)sin(\phi)$$
z = $$\rho cos(\phi)$$

So plug all that stuff into $$M_{xy} = \int\limits_{}^{} {\int\limits_{}^{} {\int\limits_E^{} {z\rho \left( {x,y,z} \right)} } } dV$$ where $$\rho (x, y, z)$$ is assumed to be 1 by lack of an explicit density function.

where $$dV = \rho ^2 sin(\phi)d\rho d\theta d\phi$$ in spherical coords. You probably aleady know all this but it really is just "plug and chug"

Last edited by a moderator: Nov 19, 2005
3. Nov 19, 2005

### Benny

Hmm...it's probably because I don't understand the symmetry all that well. Anyway, could you please explain what a volume integral is? My book gives me a whole bunch of different multiple integrals and usually, the most that is required is a change of coordinates. I'm doing this as self-study so that explains why I'm a bit lacking in the understanding at the moment. But yeah, this is mainly plug and chug.

Edit: I have the coordinate 'transformation' relations for cylindrical and spherical coordinates.

Last edited: Nov 19, 2005
4. Nov 19, 2005

### vsage

I'll try to choose my words a bit more carefully. By a volume integral I simply meant an integrating tiny increments of volume across 3 directions, be them x, y and z or $$\rho , \theta , \phi$$.

Symmetry is a big time saver in solving center of mass (centroid) questions. Try to visualize the solid in this question. You can see that it is a cone whose apex lies at the origin and extends in the positive z direction at an angle of $$\frac{\pi}{3}$$ with respect to the z axis, with its end being sort of bulging toward positive z like an icecream cone. Can you convince yourself that no matter what x and y coordinate you choose at a constant z that there is a point that is symmetric about the z axis (point -x, -y) that will counterbalance the mass contained at x, y?

Consider two equal point masses, one at x = 1 and one at x = -1. What would the center of mass be? It would lie at x = 0 by symmetry arguments, just like the center of mass lies at x = 0 and y = 0 by symmetry arguments in this question.

Last edited by a moderator: Nov 19, 2005
5. Nov 20, 2005

### Benny

I can see that the x and y coordinates of the centroid would be zero - I've seen situations like this before. What I'm not entirely sure about is how the mass is evenly distributed through the solid. If I am not mistaken then mass = density * volume. The problem seems to be that there is no given density function nor is there any mention of the density being constant. Has constant density just been assumed or is there a way around not having the density function?

6. Nov 20, 2005

### HallsofIvy

Staff Emeritus
Benny, this problem asks for the centroid. That is entirely a mathematical concept, not physics. The centroid is the geometrical center. There is no "density" and no "mass"!
It is true that you can find the centroid by treating the problem as finding "center of mass" for an object with constant density. What that constant is doesn't matter because, as vsage pointed out, that constant occurs in both the numerator and denominator of a fraction and cancels. If (variable) density is $\rho(x,y,z)$, then the x-coordinate of the center of mass is given by $\left(\int\int\int \rho(x,y,z)dxdydz\right)X= \int\int\int x\rho(x,y,z)dxdydz$ in particular, if $\rho$ is a constant, then
$$X= \frac{\rho\int\int\int xdxdydz}{\rho\int\int\int dxdydz}$$
which is the same as
$$X= \frac{\int\int\int xdxdydz}{\int\int\int dxdydz}$$. Since that constant cancels anyway, just take it to be 1.
(Be careful not to confuse the "$\rho(x,y,z)$" representing the density function with the "$\rho$" meaning the distance from the origin in spherical coordinates!)
In this particular problem, you are asking for the centroid of the solid lying between the cone $\phi = \frac{\pi }{3}$ (a cone with vertex at (0,0,0) opening upwards) and the sphere $\rho = 4\cos \phi$, a sphere with radius 4 and center at (0,0,2) so it is tangent to the xy-plane. The region you are looking for looks something like an icecream cone: a cone that goes upward until it gets to that sphere.
Okay- that means that, for each $\phi$, $\rho$ goes from 0 up to $4\cos\phi$. Clearly $\theta$ goes from 0 to $2\pi$ and $\phi$ goes from 0 to $\frac{\pi}{3}$. That is, the volume is given by
$$\int_{\phi=0}^{\frac{\pi}{3}}int_{\theta=0}^{2\pi}\int_{\rho= 0}^{4\cos(\phi)} \rho\sin^2(\phi)d\rhod\thetad\phi$$
Since $z= \rho cos(\phi)$, the numerator of the fraction will be $$\int_{\phi=0}^{\frac{\pi}{3}}\int_{\theta=0}^{2\pi}\int_{\rho= 0}^{4\cos(\phi)} \rho^2 sin^2(\phi)cos(\rho)d\rhod\thetad\phi$$

7. Nov 20, 2005

### Benny

Oh ok, I'll need to go over the definitions. My book doesn't seem to have the formulae for the centroid. My other book should, I'll check it out some time. Thanks for the clarification.

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook