Astronomy and Space Exploration ES

Higher Education / Galactic dynamics

Galactic potentials: Poisson, Plummer, Hernquist, isothermal and NFW

From Poisson's equation to the potential–density pairs used to model clusters, bulges and dark-matter halos, with their enclosed masses and rotation curves.

⏱ 180 min Poisson's equationGauss's theoremimproper integralsasymptotic seriesfinite differences revision

By the end you will be able to:
  • Derive Poisson's equation and Newton's theorems for spherical distributions.
  • Obtain, for the Plummer, Hernquist, singular isothermal and NFW models, the density, the enclosed mass, the potential and the circular velocity, verifying Poisson's equation in each case.
  • Relate the density profile to the shape of the rotation curve and to the total potential energy.
  • Implement the models numerically and check Poisson's equation with finite differences.

1. Motivation: the gravity of 10¹¹ stars

Illustration: Motivation: the gravity of 10¹¹ stars

A galaxy contains on the order of 101110^{11} stars, but none of them “feels” its neighbors one by one: as we will see in lesson 3, the time it would take binary encounters to deflect an orbit exceeds the age of the universe by many orders of magnitude. Each star moves, to an excellent approximation, in the mean field Φ(x)\Phi(\mathbf x) created by the smooth mass distribution ρ(x)\rho(\mathbf x). All of galactic dynamics therefore rests on one question: given ρ\rho, what is Φ\Phi? And on its converse, the one dark matter answers: given the kinematics (and hence Φ\Phi), what is ρ\rho?

In this lesson we build the mathematical tool, Poisson’s equation, and apply it to the four spherical models that appear again and again in the literature: the Plummer model (globular clusters), the Hernquist model (bulges and ellipticals), the isothermal sphere (flat rotation curves) and the Navarro–Frenk–White profile (dark-matter halos in cosmological simulations).

2. Poisson’s equation

2.1 From the field of a point mass to that of a continuous distribution

Let ρ(x′)\rho(\mathbf x') be the mass density. The force per unit mass at x\mathbf x is the sum of the Newtonian contributions of each element ρ(x′) d3x′\rho(\mathbf x')\,d^3x':

g(x)=G∫ρ(x′) x′−x∣x′−x∣3 d3x′=−∇Φ(x),Φ(x)≡−G∫ρ(x′)∣x′−x∣ d3x′,\mathbf g(\mathbf x) = G\int \rho(\mathbf x')\,\frac{\mathbf x'-\mathbf x}{|\mathbf x'-\mathbf x|^3}\,d^3x' = -\nabla\Phi(\mathbf x), \qquad \Phi(\mathbf x) \equiv -G\int\frac{\rho(\mathbf x')}{|\mathbf x'-\mathbf x|}\,d^3x',

where GG is the gravitational constant and Φ\Phi the gravitational potential (potential energy per unit mass). To obtain a local equation we take the divergence:

∇⋅g=G∫ρ(x′) ∇x⋅ ⁣(x′−x∣x′−x∣3)d3x′.\nabla\cdot\mathbf g = G\int\rho(\mathbf x')\,\nabla_{\mathbf x}\cdot\!\left(\frac{\mathbf x'-\mathbf x}{|\mathbf x'-\mathbf x|^3}\right)d^3x'.

The integrand vanishes for x≠x′\mathbf x\neq\mathbf x' (check it: it is the divergence of a radial field ∝1/r2\propto 1/r^2) and is singular at x=x′\mathbf x = \mathbf x'. Integrating over a ball BϵB_\epsilon of radius ϵ\epsilon around x\mathbf x and applying the divergence theorem,

∫Bϵ∇x⋅ ⁣(x′−x∣x′−x∣3)d3x=−∮∂Bϵn^⋅r^ϵ2 dS=−4π,\int_{B_\epsilon}\nabla_{\mathbf x}\cdot\!\left(\frac{\mathbf x'-\mathbf x}{|\mathbf x'-\mathbf x|^3}\right)d^3x = -\oint_{\partial B_\epsilon}\frac{\hat{\mathbf n}\cdot\hat{\mathbf r}}{\epsilon^2}\,dS = -4\pi,

so that the divergence equals −4π δ3(x−x′)-4\pi\,\delta^3(\mathbf x-\mathbf x') and

  ∇2Φ=4πGρ  \boxed{\;\nabla^2\Phi = 4\pi G\rho\;}

This is Poisson’s equation. In empty regions it reduces to Laplace’s equation ∇2Φ=0\nabla^2\Phi = 0. Integrated over a volume VV it gives the gravitational Gauss’s theorem:

∮∂V∇Φ⋅dS=4πG MV.\oint_{\partial V}\nabla\Phi\cdot d\mathbf S = 4\pi G\,M_V .

2.2 Spherical symmetry: Newton’s theorems

If ρ=ρ(r)\rho = \rho(r), the Laplacian reduces to its radial part and Poisson’s equation becomes

1r2ddr ⁣(r2dΦdr)=4πGρ(r).\frac{1}{r^2}\frac{d}{dr}\!\left(r^2\frac{d\Phi}{dr}\right) = 4\pi G\rho(r).

Applying Gauss to a sphere of radius rr: 4πr2 Φ′(r)=4πGM(r)4\pi r^2\,\Phi'(r) = 4\pi G M(r), with M(r)=4π∫0rρ(r′)r′2dr′M(r) = 4\pi\int_0^r\rho(r')r'^2dr' the enclosed mass. Thus:

dΦdr=GM(r)r2,vc2(r)≡rdΦdr=GM(r)r,\frac{d\Phi}{dr} = \frac{GM(r)}{r^2}, \qquad v_c^2(r) \equiv r\frac{d\Phi}{dr} = \frac{GM(r)}{r},

where vcv_c is the circular velocity: that of a circular orbit of radius rr (centripetal force vc2/rv_c^2/r equal to the attraction GM(r)/r2GM(r)/r^2). This is Newton’s first theorem (the field at rr depends only on the interior mass) and his second (the exterior mass exerts no net force). Integrating from infinity with Φ(∞)=0\Phi(\infty) = 0 and splitting the integral into interior and exterior shells,

Φ(r)=−GM(r)r−4πG∫r∞ρ(r′) r′ dr′.\Phi(r) = -\frac{GM(r)}{r} - 4\pi G\int_r^\infty\rho(r')\,r'\,dr' .

The second term is the contribution of the exterior shells: they exert no force, but they do contribute to the potential (a constant for each shell).

2.3 Total potential energy

With W=12∫ρ Φ d3xW = \tfrac12\int\rho\,\Phi\,d^3x and an integration by parts one arrives at the useful form

W=−4πG∫0∞ρ(r) M(r) r dr=−∫0∞GM(r)r dM.W = -4\pi G\int_0^\infty \rho(r)\,M(r)\,r\,dr = -\int_0^\infty\frac{GM(r)}{r}\,dM .

WW is the energy required to disperse the system to infinity, and it will appear in the virial theorem (lesson 3).

3. Four potential–density pairs

Illustration: Four potential–density pairs

We demand the same of each model: given Φ\Phi, compute ρ\rho via Poisson (or the reverse), obtain M(r)M(r) and vc(r)v_c(r), and understand the asymptotic behavior. All the formulas are implemented in src/lib/math/galaxias.ts, whose test numerically checks ∇2Φ=4πGρ\nabla^2\Phi = 4\pi G\rho in each case.

3.1 Plummer (1911)

Plummer proposed for globular clusters the potential of a point mass “softened” on a scale bb:

ΦP(r)=−GMr2+b2.\Phi_P(r) = -\frac{GM}{\sqrt{r^2+b^2}} .

Differentiating, Φ′=GMr/(r2+b2)3/2\Phi' = GMr/(r^2+b^2)^{3/2}, hence r2Φ′=GMr3(r2+b2)−3/2r^2\Phi' = GMr^3(r^2+b^2)^{-3/2} and

ddr ⁣(r2Φ′)=GM[3r2(r2+b2)3/2−3r4(r2+b2)5/2]=3GMr2b2(r2+b2)5/2.\frac{d}{dr}\!\left(r^2\Phi'\right) = GM\left[\frac{3r^2}{(r^2+b^2)^{3/2}} - \frac{3r^4}{(r^2+b^2)^{5/2}}\right] = \frac{3GMr^2b^2}{(r^2+b^2)^{5/2}} .

Dividing by 4πGr24\pi Gr^2:

ρP(r)=3M4πb3(1+r2b2)−5/2,MP(r)=Mr3(r2+b2)3/2,vc2=GMr2(r2+b2)3/2.\rho_P(r) = \frac{3M}{4\pi b^3}\left(1+\frac{r^2}{b^2}\right)^{-5/2}, \qquad M_P(r) = \frac{Mr^3}{(r^2+b^2)^{3/2}}, \qquad v_c^2 = \frac{GMr^2}{(r^2+b^2)^{3/2}} .

The density is finite at the center (ρ0=3M/4πb3\rho_0 = 3M/4\pi b^3) and falls off as r−5r^{-5}: the total mass converges to MM. The half-mass radius satisfies rh3/(rh2+b2)3/2=12r_h^3/(r_h^2+b^2)^{3/2} = \tfrac12, that is, rh=b/22/3−1≈1.305 br_h = b/\sqrt{2^{2/3}-1} \approx 1.305\,b. The circular velocity grows linearly near the center (solid body), reaches its maximum at r=2 br = \sqrt2\,b and decays as Keplerian (r−1/2r^{-1/2}) at large distance. The potential energy is W=−3πGM2/(32 b)W = -3\pi GM^2/(32\,b) (problem 2).

Example. A globular cluster with M=5×105 M⊙M = 5\times10^5\,M_\odot and b=3 pcb = 3\ \text{pc} has ρ0=4.4×103 M⊙ pc−3\rho_0 = 4.4\times10^3\ M_\odot\,\text{pc}^{-3} and vc,max⁡=16.6 km/sv_{c,\max} = 16.6\ \text{km/s} at r=4.2 pcr = 4.2\ \text{pc} (computed with densidadPlummer and velocidadCircularPlummer).

3.2 Hernquist (1990)

For ellipticals and bulges, whose light follows de Vaucouleurs’s R1/4R^{1/4} law, Hernquist found a model with all of its dynamics in closed form:

ΦH(r)=−GMr+a,ρH(r)=M2π ar (r+a)3,MH(r)=Mr2(r+a)2,vc2=GMr(r+a)2.\Phi_H(r) = -\frac{GM}{r+a}, \qquad \rho_H(r) = \frac{M}{2\pi}\,\frac{a}{r\,(r+a)^3}, \qquad M_H(r) = \frac{Mr^2}{(r+a)^2}, \qquad v_c^2 = \frac{GMr}{(r+a)^2} .

Derivation. Φ′=GM/(r+a)2\Phi' = GM/(r+a)^2, hence r2Φ′=GMr2/(r+a)2r^2\Phi' = GMr^2/(r+a)^2 and ddr[r2Φ′]=GM[2r(r+a)2−2r2(r+a)3]=2GMra(r+a)3\frac{d}{dr}[r^2\Phi'] = GM\left[\frac{2r}{(r+a)^2}-\frac{2r^2}{(r+a)^3}\right] = \frac{2GMra}{(r+a)^3}; dividing by 4πGr24\pi Gr^2 one obtains ρH\rho_H. The enclosed mass follows from M(r)=r2Φ′/GM(r) = r^2\Phi'/G. □\square

The density diverges as r−1r^{-1} at the center (a cusp, integrable: M(r)∝r2M(r)\propto r^2) and falls off as r−4r^{-4} outside. The half-mass radius is rh=(1+2) ar_h = (1+\sqrt2)\,a; the maximum circular velocity, vc2(a)=GM/4av_c^2(a) = GM/4a, is reached at r=ar = a; and W=−GM2/6aW = -GM^2/6a.

Example. A bulge with M=1010 M⊙M = 10^{10}\,M_\odot and a=0.7 kpca = 0.7\ \text{kpc} has vc,max⁡=124 km/sv_{c,\max} = 124\ \text{km/s} at r=0.7 kpcr = 0.7\ \text{kpc} and contributes only 67 km/s67\ \text{km/s} at r=8 kpcr = 8\ \text{kpc}: the bulge does not sustain the rotation curve at the Sun.

3.3 The singular isothermal sphere

If the velocity distribution is Maxwellian with one-dimensional dispersion σ\sigma (the same at every radius, hence “isothermal”), the Jeans equation (lesson 3) gives ρ∝exp⁡(−Φ/σ2)\rho \propto \exp(-\Phi/\sigma^2) and Poisson’s equation becomes a nonlinear (Emden) equation with no elementary solution. It does have a singular power-law solution, which is checked by substitution:

ρiso(r)=σ22πGr2,Miso(r)=2σ2rG,vc=2 σ=const,Φiso(r)=2σ2ln⁡rr0.\rho_{\rm iso}(r) = \frac{\sigma^2}{2\pi Gr^2}, \qquad M_{\rm iso}(r) = \frac{2\sigma^2r}{G}, \qquad v_c = \sqrt2\,\sigma = \text{const}, \qquad \Phi_{\rm iso}(r) = 2\sigma^2\ln\frac{r}{r_0} .

Verification. M(r)=4π∫0rσ22πGdr′=2σ2r/GM(r) = 4\pi\int_0^r\frac{\sigma^2}{2\pi G}dr' = 2\sigma^2 r/G; vc2=GM/r=2σ2v_c^2 = GM/r = 2\sigma^2; Φ′=vc2/r=2σ2/r\Phi' = v_c^2/r = 2\sigma^2/r. And 1r2ddr(r2⋅2σ2/r)=2σ2/r2=4πGρ\frac{1}{r^2}\frac{d}{dr}(r^2\cdot 2\sigma^2/r) = 2\sigma^2/r^2 = 4\pi G\rho. □\square

It is the simplest model of a flat rotation curve, but the mass diverges linearly: any real halo must be truncated. What the isothermal sphere teaches is the correspondence vc=const  ⟺  ρ∝r−2v_c = \text{const} \iff \rho\propto r^{-2}.

3.4 Navarro, Frenk and White (1996, 1997)

In N-body simulations of cold dark matter, Navarro, Frenk and White found that halos in equilibrium, from the scales of dwarf galaxies up to clusters, are fitted by the same two-slope profile:

ρNFW(r)=ρ0x (1+x)2,x≡rrs,\rho_{\rm NFW}(r) = \frac{\rho_0}{x\,(1+x)^2}, \qquad x \equiv \frac{r}{r_s},

with rsr_s the scale radius and ρ0\rho_0 a characteristic density. Like Hernquist, it has an r−1r^{-1} cusp, but it decays only as r−3r^{-3}: the mass diverges logarithmically and one must truncate at the virial radius RvirR_{\rm vir}. The enclosed mass is integrated with the substitution u=1+xu = 1+x:

MNFW(r)=4πρ0rs3∫0xx′ dx′(1+x′)2=4πρ0rs3[ln⁡(1+x)−x1+x]≡4πρ0rs3 g(x).M_{\rm NFW}(r) = 4\pi\rho_0r_s^3\int_0^{x}\frac{x'\,dx'}{(1+x')^2} = 4\pi\rho_0r_s^3\left[\ln(1+x) - \frac{x}{1+x}\right] \equiv 4\pi\rho_0 r_s^3\,g(x).

The potential follows from the general formula of §2.2; with ∫r∞ρ r′ dr′=ρ0rs2/(1+x)\int_r^\infty\rho\,r'\,dr' = \rho_0 r_s^2/(1+x):

ΦNFW(r)=−GM(r)r−4πGρ0rs21+x=−4πGρ0rs3 ln⁡(1+x)r,\Phi_{\rm NFW}(r) = -\frac{GM(r)}{r} - \frac{4\pi G\rho_0r_s^2}{1+x} = -4\pi G\rho_0r_s^3\,\frac{\ln(1+x)}{r},

where the simplification uses x1+x⋅1x=11+x\frac{x}{1+x}\cdot\frac{1}{x} = \frac{1}{1+x}. The circular velocity, vc2=4πGρ0rs2 g(x)/xv_c^2 = 4\pi G\rho_0r_s^2\,g(x)/x, reaches its maximum where d[g(x)/x]/dx=0d[g(x)/x]/dx = 0, that is, at xmax⁡=2.16258x_{\max} = 2.16258 (root of ln⁡(1+x)=x(1+2x)/(1+x)2\ln(1+x) = x(1+2x)/(1+x)^2, problem 4). Halos are parametrized by MvirM_{\rm vir} and the concentration c≡Rvir/rsc \equiv R_{\rm vir}/r_s, with

ρ0=Mvir4πrs3 g(c).\rho_0 = \frac{M_{\rm vir}}{4\pi r_s^3\,g(c)} .

Example with real data. Eilers et al. (2019, ApJ 871, 120) fit to the rotation curve of the Milky Way an NFW halo with Mvir=(7.25±0.26)×1011 M⊙M_{\rm vir} = (7.25\pm0.26)\times10^{11}\,M_\odot, c=12.8±0.3c = 12.8\pm0.3 and Rvir=189.3±2.2 kpcR_{\rm vir} = 189.3\pm2.2\ \text{kpc}. Then rs=14.8 kpcr_s = 14.8\ \text{kpc}, ρ0=1.05×107 M⊙ kpc−3\rho_0 = 1.05\times10^7\ M_\odot\,\text{kpc}^{-3} (the paper gives 1.06±0.091.06\pm0.09) and, at the solar radius R⊙=8.122 kpcR_\odot = 8.122\ \text{kpc}, the dark-matter density is ρdm(R⊙)=0.30 GeV cm−3\rho_{\rm dm}(R_\odot) = 0.30\ \text{GeV}\,\text{cm}^{-3}, exactly the value they publish (0.30±0.030.30\pm0.03). The halo contributes vc,halo(R⊙)=137 km/sv_{c,\rm halo}(R_\odot) = 137\ \text{km/s}, which added in quadrature to the stellar components reproduces the measured 229 km/s229\ \text{km/s} (lesson 2). The test galaxias.test.ts verifies these three numbers.

3.5 Comparative summary

ModelCentral ρ\rhoOuter ρ\rhoM(∞)M(\infty)Outer vcv_cTypical use
Plummerfiniter−5r^{-5}finiteKeplerianglobular clusters, softening in N-body
Hernquistr−1r^{-1}r−4r^{-4}finiteKeplerianbulges, ellipticals
Singular isothermalr−2r^{-2}r−2r^{-2}diverges ∝r\propto rflatlocal fit of flat curves
NFWr−1r^{-1}r−3r^{-3}diverges ∝ln⁡r\propto\ln rdecays slowlydark-matter halos

The shape of vc(r)v_c(r) is the fingerprint of the profile: vc∝rv_c\propto r if ρ\rho is constant, vc=v_c = const if ρ∝r−2\rho\propto r^{-2} and vc∝r−1/2v_c\propto r^{-1/2} outside all the mass. This is the bridge to the next lesson.

4. Numerical analysis: checking Poisson with finite differences

Illustration: Numerical analysis: checking Poisson with finite differences

The function laplacianoRadial(Phi, r, h) in galaxias.ts evaluates 1r2ddr(r2Φ′)\frac{1}{r^2}\frac{d}{dr}(r^2\Phi') with nested centered differences. Each centered derivative has truncation error O(h2)O(h^2), but the round-off error grows as ϵm∣Φ∣/h2\epsilon_{\rm m}|\Phi|/h^2 when two derivatives are nested. The total error, E(h)≈C1h2+C2ϵm∣Φ∣/h2E(h)\approx C_1h^2 + C_2\epsilon_{\rm m}|\Phi|/h^2, is minimized at hopt∝ϵm1/4rh_{\rm opt}\propto\epsilon_{\rm m}^{1/4}r: in double precision (ϵm≈2×10−16\epsilon_{\rm m}\approx 2\times10^{-16}), h/r∼10−4h/r\sim10^{-4}, which is the default value. The test demands agreement with 4πGρ4\pi G\rho to five figures; with h/r=10−2h/r = 10^{-2} truncation dominates and with h/r=10−7h/r = 10^{-7} round-off dominates (problem 6).

For the enclosed mass the test uses Simpson’s rule with n=2000n = 2000 subintervals; its O(h4)O(h^4) error is negligible except for cuspy profiles, where ρr2∝r\rho r^2\propto r near the origin is not smooth at r=0r=0 and it is advisable to shift the lower limit or use the variable u=ln⁡ru = \ln r.

5. Problems

1. Potential of a shell. Prove, from the general formula of §2.2, that a thin spherical shell of mass mm and radius RR produces Φ=−Gm/R\Phi = -Gm/R, constant, in its interior and −Gm/r-Gm/r outside.

Show solution

With ρ=m4πR2δ(r−R)\rho = \frac{m}{4\pi R^2}\delta(r-R): for rr less than RR, M(r)=0M(r) = 0 and 4π∫r∞ρ r′dr′=m/R4\pi\int_r^\infty\rho\,r'dr' = m/R, hence Φ=−Gm/R\Phi = -Gm/R. For rr greater than RR, M(r)=mM(r) = m and the exterior integral vanishes: Φ=−Gm/r\Phi = -Gm/r. This is Newton’s second theorem. ■\blacksquare

2. Potential energy of the Plummer model (proof). Prove that W=−3πGM232 bW = -\dfrac{3\pi GM^2}{32\,b}.

Show solution

With W=−4πG∫0∞ρMr drW = -4\pi G\int_0^\infty\rho M r\,dr and x=r/bx = r/b:

W=−4πG⋅3M4πb3⋅M b2∫0∞x4 dx(1+x2)4=−3GM2b∫0∞x4(1+x2)4dx.W = -4\pi G\cdot\frac{3M}{4\pi b^3}\cdot M\,b^2\int_0^\infty\frac{x^4\,dx}{(1+x^2)^{4}} = -\frac{3GM^2}{b}\int_0^\infty\frac{x^4}{(1+x^2)^4}dx .

With x=tan⁡θx = \tan\theta, dx=sec⁡2θ dθdx = \sec^2\theta\,d\theta and 1+x2=sec⁡2θ1+x^2 = \sec^2\theta, the integral is ∫0π/2sin⁡4θcos⁡2θ dθ=π32\int_0^{\pi/2}\sin^4\theta\cos^2\theta\,d\theta = \frac{\pi}{32} (Wallis’s formula: ∫0π/2sin⁡4cos⁡2=3⋅1⋅16⋅4⋅2⋅π2\int_0^{\pi/2}\sin^4\cos^2 = \frac{3\cdot1\cdot1}{6\cdot4\cdot2}\cdot\frac{\pi}{2}). Hence W=−3πGM2/32bW = -3\pi GM^2/32b. ■\blacksquare

3. Virial velocity dispersion. Using 2K+W=02K + W = 0 with K=32M⟨σ2⟩K = \tfrac32 M\langle\sigma^2\rangle (isotropic), compute ⟨σ2⟩\langle\sigma^2\rangle for the globular cluster of the example in §3.1 (M=5×105 M⊙M = 5\times10^5\,M_\odot, b=3b = 3 pc).

Show solution

⟨σ2⟩=−W/3M=πGM/(32 b)\langle\sigma^2\rangle = -W/3M = \pi GM/(32\,b). With GM⊙=1.327×1020GM_\odot = 1.327\times10^{20} m³/s² and b=9.26×1016b = 9.26\times10^{16} m: ⟨σ2⟩=π⋅6.64×1025/(32⋅9.26×1016)=7.0×107\langle\sigma^2\rangle = \pi\cdot 6.64\times10^{25}/(32\cdot 9.26\times10^{16}) = 7.0\times10^{7} m²/s², that is, σ1D≈8.4 km/s\sigma_{1D}\approx 8.4\ \text{km/s}, of the order observed in globular clusters (the most massive ones, such as ω Centauri, reach 15–20 km/s at the center, with larger MM and bb). ■\blacksquare

4. Maximum of the NFW curve. Prove that the NFW vcv_c is maximal at the root of ln⁡(1+x)=x(1+2x)(1+x)2\ln(1+x) = \dfrac{x(1+2x)}{(1+x)^2} and solve it numerically by Newton–Raphson.

Show solution

vc2∝g(x)/xv_c^2\propto g(x)/x. Differentiating: ddxgx=g′x−gx2\frac{d}{dx}\frac{g}{x} = \frac{g'x - g}{x^2} with g′(x)=11+x−1(1+x)2=x(1+x)2g'(x) = \frac{1}{1+x} - \frac{1}{(1+x)^2} = \frac{x}{(1+x)^2}. The condition g′x=gg'x = g is x2(1+x)2=ln⁡(1+x)−x1+x\frac{x^2}{(1+x)^2} = \ln(1+x) - \frac{x}{1+x}, that is, ln⁡(1+x)=x2+x(1+x)(1+x)2=x(1+2x)(1+x)2\ln(1+x) = \frac{x^2 + x(1+x)}{(1+x)^2} = \frac{x(1+2x)}{(1+x)^2}. Newton’s method on F(x)=ln⁡(1+x)−x(1+2x)/(1+x)2F(x) = \ln(1+x) - x(1+2x)/(1+x)^2 from x0=2x_0 = 2 converges to x=2.16258x = 2.16258 in three iterations. Then vmax⁡2=4πGρ0rs2⋅0.21622v_{\max}^2 = 4\pi G\rho_0r_s^2\cdot 0.21622. ■\blacksquare

5. Mass of an NFW halo. For the halo of Eilers et al. (2019) compute M(r)M(r) at 8.122, 20 and 50 kpc and compare with the total mass vc2R/Gv_c^2R/G implied by vc(R⊙)=229v_c(R_\odot) = 229 km/s.

Show solution

With masaNFW: M(8.122)=3.6×1010M(8.122) = 3.6\times10^{10}, M(20)=1.2×1011M(20) = 1.2\times10^{11}, M(50)=3.0×1011 M⊙M(50) = 3.0\times10^{11}\,M_\odot. The total dynamical mass within R⊙R_\odot is vc2R⊙/G=(2.29×105)2⋅2.506×1020/6.674×10−11=9.9×1010 M⊙v_c^2R_\odot/G = (2.29\times10^5)^2\cdot 2.506\times10^{20}/6.674\times10^{-11} = 9.9\times10^{10}\,M_\odot: within the solar radius the halo is only a third of the mass; the stars dominate. Beyond ∼14\sim14 kpc dark matter dominates (Eilers et al. 2019, §5.3).

6. Computational: error of the discrete Laplacian. For the Hernquist potential with M=1011 M⊙M = 10^{11}\,M_\odot, a=2a = 2 kpc and r=2r = 2 kpc, compute the relative error of laplacianoRadial against 4πGρ4\pi G\rho for h/r=10−1,10−2,…,10−8h/r = 10^{-1}, 10^{-2}, \dots, 10^{-8} and plot log⁡E\log E against log⁡h\log h. Identify the slopes +2+2 (truncation) and −2-2 (round-off) and the optimum.

Show solution
import numpy as np
G=6.6743e-11; Ms=1.98841e30; kpc=3.0857e19
M=1e11*Ms; a=2*kpc; r=2*kpc
Phi=lambda x: -G*M/(x+a)
rho=lambda x: M/(2*np.pi)*a/(x*(x+a)**3)
def lap(r,h):
    d=lambda x:(Phi(x+h)-Phi(x-h))/(2*h)
    f=lambda x:x*x*d(x)
    return (f(r+h)-f(r-h))/(2*h)/r**2
for k in range(1, 9):
    h=r*10.0**-k
    print(k, abs(lap(r,h)/(4*np.pi*G*rho(r))-1))

One observes a decrease ∝h2\propto h^2 down to h/r≈10−4h/r\approx10^{-4} (error ∼10−8\sim10^{-8}) and then an increase ∝h−2\propto h^{-2}: at h/r=10−8h/r = 10^{-8} the error is already of order unity. The optimum coincides with the estimate h/r∼ϵm1/4h/r\sim\epsilon_{\rm m}^{1/4} of §4.

7. Two-component model. Build vc(r)v_c(r) for a Hernquist bulge (1010 M⊙10^{10}\,M_\odot, a=0.7a = 0.7 kpc) plus the NFW halo of Eilers et al. and plot both contributions and their sum in quadrature between 0.1 and 100 kpc. What is missing to reproduce 229 km/s at 8.1 kpc?

Show solution

At 8.1 kpc the bulge gives 67 km/s and the halo 137 km/s: 672+1372=153\sqrt{67^2+137^2} = 153 km/s. About 170 km/s in quadrature are missing: the stellar disk (and the gas), which is not spherical and requires the potential of an exponential disk (Binney & Tremaine §2.6). Lesson 2 incorporates it.

6. Self-assessment

✦ Self-assessment

  1. 1. In spherical symmetry, the gravitational force at radius r depends on…
  2. 2. A flat rotation curve (constant v_c) corresponds to a density that falls off as…
  3. 3. Which of these profiles has finite total mass?
  4. 4. In the NFW profile the circular velocity is maximal at…
  5. 5. The Plummer model is often used as a softening kernel in N-body simulations because…
  6. 6. According to the fit of Eilers et al. (2019), the local dark-matter density is approximately…
Answer all the questions to check.

7. Further reading

  • Binney & Tremaine (2008), Galactic Dynamics, §2.1 (potential theory, Newton’s theorems) and §2.2 (spherical models: Plummer, isochrone, Hernquist, NFW and the two-power family). The tables of chapter 2 collect the formulas of this lesson.
  • Sparke & Gallagher (2007), Galaxies in the Universe, ch. 3, §3.1–3.2.
  • Plummer (1911), MNRAS 71, 460; Hernquist (1990), ApJ 356, 359, doi:10.1086/168845; Navarro, Frenk & White (1996), ApJ 462, 563; (1997), ApJ 490, 493, doi:10.1086/304888.
  • Eilers, Hogg, Rix & Ness (2019), ApJ 871, 120, doi:10.3847/1538-4357/aaf648 (arXiv:1810.09466), §5.3 for the NFW fit used in the examples.
🍎 Teacher guide
Time
2 classes of 90 min + 2 h computational workshop
Learning outcome
On completion, the student derives Poisson's equation and Newton's theorems, obtains the density, enclosed mass and circular velocity of the Plummer, Hernquist, isothermal and NFW models, and numerically verifies Poisson's equation with control of the discretization error.
Evidence of learning
Submission of problems 2 (proof) and 6 (computational, with a log-log plot of the error and discussion of the optimal h), plus the two-component model of problem 7.

Materials

  • Python 3 with NumPy and Matplotlib (or the module src/lib/math/galaxias.ts with Node)
  • Binney & Tremaine, ch. 2
  • The paper by Eilers et al. (2019) for the halo parameters

Suggested sequence

Class 1. Poisson and Newton (90 min). Derive ∇2Φ=4πGρ\nabla^2\Phi = 4\pi G\rho from the divergence of the point field (§2.1); Gauss’s theorem; Newton’s two theorems and the formula for Φ(r)\Phi(r) with the two integrals. Problem 1 in class. Close with the relation between ρ∝r−α\rho\propto r^{-\alpha} and the shape of vcv_c.

Class 2. The four models (90 min). Plummer and Hernquist derived on the board (§3.1–3.2); isothermal by substitution; NFW with the integral of g(x)g(x). Discuss the comparative table. Problems 3 and 4.

Workshop (2 h). Implement the four profiles, reproduce the figures of Eilers et al. (2019) (ρ₀, ρ_dm(R☉), v_halo(R☉)) and carry out the error study of problem 6. Bridge to lesson 2: which component is missing to reach 229 km/s?

Common mistakes

  • Thinking that the exterior shells do not contribute to the potential because they exert no force: they contribute a constant, which is why Φ(r) has two terms.
  • Confusing the characteristic density ρ₀ of NFW with the central density: NFW diverges at r = 0; ρ₀ is a scale parameter.
  • Writing v_c² = GM_total/r instead of GM(r)/r: it only holds outside all the mass.
  • Forgetting that the masses of NFW and of the isothermal sphere diverge and that M_vir depends on the truncation convention (Δ = 200 ρ_crit in Eilers et al.).
  • Taking h too small in the finite differences, believing that "smaller is more precise": round-off dominates below h/r ≈ 10⁻⁴.
Key terms in this lesson (12)

Glossary terms that appear in the text. Each one links to its full entry.

  • Rotation curve A chart of how fast the stars of a galaxy move around its center as a function of their distance from it. It should fall off outward, as in the Solar System, but it stays flat: the main clue to dark matter.
  • Virial theorem A rule that relates the energy of motion of a group of stars to the energy of their gravity. It makes it possible to "weigh" a cluster of galaxies by measuring only the speed of its members.
  • Orbital velocity The speed at which a body travels along its orbit. The Space Station goes around Earth at 7.7 km/s; Earth goes around the Sun at almost 30 km/s.
  • Gravity The force with which a planet pulls everything toward its center. On Earth it makes things fall 9.8 m/s faster every second; on Mars, with less mass and a smaller size, it is only 38 % of Earth's.
  • N-body problem Simulating many bodies that all attract one another: a star cluster, a galaxy, the universe. Since each body feels all the others, the computation grows very quickly with N; the Barnes–Hut trick groups the distant ones together.
  • Dark matter An invisible kind of matter that neither emits nor reflects light, but whose gravity can be felt: it makes galaxies spin faster than expected. There is about five times more dark matter than normal matter, and we still do not know what it is.
  • Galaxy A city of stars: hundreds of billions of them, with gas, dust and dark matter, bound together by gravity. Ours is the Milky Way; the largest neighbor, Andromeda.
  • Derivative How fast something changes at an instant: the derivative of position is velocity, and the derivative of velocity is acceleration. It is the slope of the graph at each point.
  • Orbit The path one body follows around another because of gravity: the Moon around Earth, Earth around the Sun. Almost all are ellipses, slightly flattened ovals.
  • Apparent magnitude A number that says how bright a star looks from Earth. The smaller it is, the brighter the star: Sirius has −1.5, and the faintest stars you can see with the naked eye, 6.
  • Order of magnitude The power of ten closest to a number: saying "the Sun is a million times bigger than Earth" is talking in orders of magnitude. It is used to compare very different things without being exact.
  • Parsec The distance unit astronomers use for stars: one parsec is about 3.26 light-years. It comes from measuring the tiny angle by which a star "moves" as Earth goes around the Sun.

See the whole glossary →

References

  • Binney, J. & Tremaine, S. (2008). Galactic Dynamics, 2nd ed. Princeton University Press, §2.1–2.2 (potential theory; spherical models).
  • Sparke, L. S. & Gallagher, J. S. (2007). Galaxies in the Universe, 2nd ed. Cambridge University Press, ch. 3 (orbits and potentials).
  • Plummer, H. C. (1911). On the problem of distribution in globular star clusters. MNRAS 71, 460–470.
  • Hernquist, L. (1990). An analytical model for spherical galaxies and bulges. ApJ 356, 359–364. doi:10.1086/168845
  • Navarro, J. F., Frenk, C. S. & White, S. D. M. (1997). A universal density profile from hierarchical clustering. ApJ 490, 493–508. doi:10.1086/304888 (arXiv:astro-ph/9611107)
  • Navarro, J. F., Frenk, C. S. & White, S. D. M. (1996). The structure of cold dark matter halos. ApJ 462, 563. doi:10.1086/177173