Mass of a Sphere with varying Density

In summary, we can find the mass of a sphere with a density that varies with distance from the centre by considering an infinite number of infinitesimally thin spherical shells and integrating their masses. We can also find the fraction of the star's mass within a given distance by integrating the density up to that distance and dividing by the total mass. However, there appears to be some confusion in the given passage about the definition of g(a).
  • #1
johnaaronrose
4
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
  • #2
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!
 
  • #3
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
= \frac{4\pi p R^3}{M} \int_0^a x^2f(x)\,\mathrm{d}x
= 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
= 4\pi pR^3 \int_0^a x^2f(x)\,\mathrm{d}x
[/tex]
which is the given g(a).
 

1. What is the formula for calculating the mass of a sphere with varying density?

The formula for calculating the mass of a sphere with varying density is: M = (4/3) * π * r^3 * ρ, where M is the mass, π is the mathematical constant pi, r is the radius of the sphere, and ρ is the density.

2. How do you determine the density of a sphere?

The density of a sphere can be determined by dividing its mass by its volume. In the case of a sphere with varying density, the density can be calculated at different points throughout the sphere and then averaged to find the overall density.

3. Can the mass of a sphere with varying density be negative?

No, the mass of a sphere with varying density cannot be negative. Density is a measure of how much mass is contained within a certain volume, and since mass cannot be negative, the mass of a sphere with varying density will always be positive.

4. How does the density affect the mass of a sphere?

The density of a sphere will directly affect its mass. A higher density means there is more mass per unit volume, resulting in a greater overall mass of the sphere. Conversely, a lower density will result in a lower mass for the same sized sphere.

5. What is the unit of measurement for mass of a sphere with varying density?

The unit of measurement for the mass of a sphere with varying density will depend on the units used for the radius (r) and density (ρ) in the calculation. However, the most common units for mass are grams (g) and kilograms (kg).

Similar threads

  • Calculus and Beyond Homework Help
Replies
9
Views
972
  • Calculus and Beyond Homework Help
Replies
3
Views
563
  • Calculus and Beyond Homework Help
Replies
21
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
843
  • Calculus and Beyond Homework Help
Replies
7
Views
708
  • Calculus and Beyond Homework Help
Replies
1
Views
755
  • Calculus and Beyond Homework Help
Replies
4
Views
958
  • Calculus and Beyond Homework Help
Replies
8
Views
2K
  • Special and General Relativity
Replies
3
Views
105
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
Back
Top