Mass of a Sphere with varying Density

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 6K views
johnaaronrose
Messages
4
Reaction score
0
What is the mass of a sphere of radius a*R where the density at any point distance x*R from the sphere's centre is f(x) where f(x) is an algebraic function of x? R is the radius of a sphere with a common centre to this one but of larger or equal radius and a thus takes a value between 0 & 1.

My solution:
Consider sphere made up of infinite number of spherical shells. Assume that a spherical shell is at distance x*R from centre with infinitesimal thickness dx.
Volume of spherical shell = its surface area * its thickness = 4Pi((x*R)^2) * d(x*R)
Mass of spherical shell = mass of spherical shell * density of spherical shell
= 4Pi((x*R)^2) * d(x*R) * f(x) = 4Pi(R^3)(x^2)f(x)dx
Mass of sphere = Integral from a to 0 of 4Pi(R^3)(x^2)f(x)dx = 4Pi(R^3) * Integral from a to 0 of (x^2)f(x)dx

The reason I ask this is that Brian Cox & Jeff Forshaw in the footnote on p235 of their book "The Quantum Universe: everything that can happen does happen" state:
g(a) = 4Pi(R^3)p * Integral from a to 0 of (x^2)f(x)dx
where g(a) is the fraction of a star's mass lying in a sphere of radius aR (e.g. a=0.5 means that this sphere has half the radius of the star), R is the radius of the spherical star, p is the average density of the star, f(x) is the density of the star at a point distance x*R from the star's centre.

My view is that:
g(a) = 4Pi(R^3) * Integral from a to 0 of (x^2)f(x)dx / ((4Pi(R^3)/3) * p)
= Integral from a to 0 of (x^2)f(x)dx / (1/3) * p)

Am I correct in this result?

PS apologies for not using the mathematical symbols for Integral, Pi etc: I haven't figured out how to get them into this webpage.
 
Last edited:
Physics news on Phys.org
I approached the problem as a triple integral in spherical coordinates and got $$\int_0^{aR} \int_0^{2\pi} \int_0^{\pi} f(\frac{r}{R})r^2 \sin (\phi) d\phi d\theta dr$$
Doing a simple substitution of ##x= \frac{r}{R}## and doing the two inner integrals gives the same result as you: $$4\pi R^3 \int_0^a f(x)x^2 dx$$

Your second assertion about the fraction of the star's mass seems quite reasonable, but I would probably need to look at the book (which I do not own) to be 100% certain that you interpreted it correctly.

Good Luck!
 
johnaaronrose said:
What is the mass of a sphere of radius a*R where the density at any point distance x*R from the sphere's centre is f(x) where f(x) is an algebraic function of x? R is the radius of a sphere with a common centre to this one but of larger or equal radius and a thus takes a value between 0 & 1.

My solution:
Consider sphere made up of infinite number of spherical shells. Assume that a spherical shell is at distance x*R from centre with infinitesimal thickness dx.
Volume of spherical shell = its surface area * its thickness = 4Pi((x*R)^2) * d(x*R)
Mass of spherical shell = mass of spherical shell * density of spherical shell
= 4Pi((x*R)^2) * d(x*R) * f(x) = 4Pi(R^3)(x^2)f(x)dx
Mass of sphere = Integral from a to 0 of 4Pi(R^3)(x^2)f(x)dx = 4Pi(R^3) * Integral from a to 0 of (x^2)f(x)dx

This is the right idea. For a spherically symmetric star of radius R with density [itex]\rho(r)[/itex] varying with distance from the centre, the star's mass will be
[tex]M = 4\pi \int_0^R r^2\rho(r)\,\mathrm{d}r.[/tex]

If we set [itex]x = r/R[/itex] and [itex]\rho(r) = f(x)[/itex] then we obtain
[tex]M = 4\pi R^3 \int_0^1 x^2 f(x)\,\mathrm{d}x.[/tex]

I suppose, having non-dimensionalised distance it would be strange not to non-dimensionalise density as well, so we should have set [itex]\rho(r) = \rho_0 f(x)[/itex] for some reference density [itex]\rho_0[/itex]. Doing that we obtain
[tex]M = 4\pi \rho_0 R^3 \int_0^1 x^2 f(x)\,\mathrm{d}x.[/tex]

The reason I ask this is that Brian Cox & Jeff Forshaw in the footnote on p235 of their book "The Quantum Universe: everything that can happen does happen" state:
[tex]g(a) = 4\pi R^3 p \int_0^a x^2f(x)\,\mathrm{d}x[/tex]
where g(a) is the fraction of a star's mass lying in a sphere of radius aR (e.g. a=0.5 means that this sphere has half the radius of the star), R is the radius of the spherical star, p is the average density of the star, f(x) is the density of the star at a point distance x*R from the star's centre.

"The fraction of a star's mass lying in a sphere of radius [itex]aR[/itex]" is (taking [itex]\rho_0 = p[/itex])
[tex] \frac{1}{M} 4\pi \int_0^{aR} \rho(r)r^2\,\mathrm{d}r<br /> = \frac{4\pi p R^3}{M} \int_0^a x^2f(x)\,\mathrm{d}x<br /> = 3 \int_0^a x^2f(x)\,\mathrm{d}x[/tex]
using the fact that [itex]M = (4\pi p R^3)/3[/itex], which, allowing for the fact that I rescaled f, is what you obtained.

Why, then, do Cox and Forshaw obtain a different result? I think there are some inaccuracies in the quoted passage: firstly they seem to be taking [itex]\rho(r) = pf(x)[/itex], which as explained above is reasonable, and secondly [itex]g(a)[/itex] appears to be the total mass within the distance [itex]aR[/itex] of the origin, rather than the fraction of the star's mass within that distance. Making those changes, we find
[tex]4\pi \int_0^{aR} \rho(r)r^2\,\mathrm{d}r<br /> = 4\pi pR^3 \int_0^a x^2f(x)\,\mathrm{d}x[/tex]
which is the given g(a).