This set practises Chapter 3 of Ignacio Ferreras's Fundamentals of Dark Matter (UCL Press, 2025, CC BY-NC 4.0): the lessons Dark matter halos (Sections 3.1 and 3.2) and Cores or cusps? (its part on adiabatic contraction, Section 3.3), with spherical collapse and the virial theorem from 8.902. It uses all five of the chapter's numbered exercises, 3.1 to 3.5, in the book's order. The exercises are rewritten in our own words; the book prints no solutions, so the hints, solutions and answer boxes are ours. Where the book leaves a number or a convention open, we choose one and say so ("our choice", "our reading"); parts beyond the book's are marked "(our addition)".
Two exercises refer to other material. Exercise 3.1 starts from a result of the author's earlier book on galaxy dynamics; that book is not used here, and the result (a halo's mean density is about 180 times the background density when it collapses) is the one in the lesson and in the 8.902 spherical collapse page. Exercise 3.5 asks the reader to compare with a figure in the book; we do not reproduce the figure, and the comparison here is between our own computed curves. Exercise 3.3 is already worked in the lesson Dark matter halos (the worked example "Mass and rotation curve of an NFW halo"): it stays in the set, and a part of our own follows it.
How to answer#
Work each exercise on paper first (Exercises 3.2, 3.3 and 3.5 also need a small numerical calculation: a calculator with a root finder, a spreadsheet or a few lines of Python will do). Then type your result in the answer box and press Check. A number box accepts any value within the tolerance written next to it; type decimals, for example 0.25 or 1.2e5, in the unit the box names. A formula box takes an expression in the letters it names, for example a*b/c or sqrt(a)/b^2; type ^ for powers.
The book gives no points: the points are ours, 100 in all (20, 20, 15, 20 and 25 for the five exercises), and so is every split between parts. Parts that ask you to show or discuss something have no box: open the solution and mark yourself. If you are stuck, open the hints one at a time. Each part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Your score is kept in this browser only.
The notation is that of the lessons. is the distance from the centre of a halo, its scale radius, , the halo radius, the concentration, the density and its logarithmic slope, the mass inside radius and the circular velocity. is the gravitational constant.
Constants and cosmology (our choice where the book leaves it open): m³ kg⁻¹ s⁻² (CODATA 2018), the solar mass kg (from the IAU 2015 nominal value of , Resolution B3, divided by ), 1 Mpc m, and the values the book uses in this chapter: km/s/Mpc and .
Exercise 3.1#
How far does a Milky Way halo extend?
A dark matter halo of hosts a galaxy like the Milky Way. Use the result of spherical collapse that the mean density inside the halo is about 180 times the mean (background) matter density of the universe at the time the halo collapsed. Estimate the halo's radius, compare it with the size of the luminous part of our Galaxy, and discuss what you assumed about the cosmological model and the redshift of collapse (book, Exercise 3.1, p. 52).
(A)8 points
Suppose the halo collapsed today, at redshift (our choice). What is its radius , in kpc (tolerance 2%)?
Hint
The mean matter density today is times the critical density . Working in solar masses and Mpc keeps the numbers small.
Hint
The halo is a sphere of mass whose mean density is 180 times that background: solve for .
Solution
The idea. The halo's mass and mean density fix its volume, and the mean density is a fixed multiple of the background density.
The background density
km/s/Mpc gives the critical density per Mpc³, so the mean matter density today is per Mpc³.
The radius
In words
capital R equals ( 3 capital M over the quantity 4 pi times 180 rho nought bar the quantity 1 plus z sub c, all cubed, ) to the power one third
For : Mpc Mpc kpc.
Check
The lesson's worked example has a halo at 200 times today's mean density and finds about 0.21 Mpc (0.206 Mpc before rounding). Our halo is 3.33 times heavier and sits at 180 rather than 200 times the background: kpc kpc, the same.
(B)8 points
Now suppose the halo collapsed earlier, at (our choice). What is its radius in kpc (tolerance 2%)? And (our addition) at what collapse redshift would its radius be 200 kpc, the upper end of the range the book gives for the Milky Way's halo (tolerance 2%)?
Hint
The mean matter density grows as into the past. How does scale with at fixed mass?
Solution
The idea. At fixed mass, : a halo that collapsed when the universe was half its present size is half as large.
Collapse at
kpc.
The collapse redshift for 200 kpc
, so , about 0.6.
Check
At the background matter density is per Mpc³, and Mpc Mpc, as above.
(C)4 points
Compare these radii with the extent of the Milky Way's luminous disc (about 10 to 20 kpc, as the book says on p. 52), and discuss the assumptions: the collapse redshift, the cosmological model, and the factor 180 itself. Mark yourself against the solution.
Solution
The idea. The estimate is robust to a factor of about two; whatever the details, the halo is ten or more times larger than the disc.
Halo against disc
Between and the radius runs from 319 to 160 kpc, the same scale as the book's 100 to 200 kpc for the Milky Way's halo (an earlier collapse fits that range better). The luminous disc reaches 10 to 20 kpc: the halo is roughly 10 to 30 times larger in radius (, ), and thousands of times larger in volume. That is the picture of the chapter: gas cooled and sank to the centre of a much larger dark halo.
The collapse redshift
, so the redshift matters most. A halo has no single moment of collapse: it grows by mergers and accretion, so "the" collapse redshift is a convention (for example, when half the present mass was in place). Halos that collapsed earlier are denser and smaller, as the lesson says.
The cosmological model
Only the background matter density enters, , and it depends on , not on the cosmological constant. In an Einstein–de Sitter universe (, same ), the background today is times denser and is times smaller: 214 kpc for . The cosmological model enters in two more places. It sets when a halo of this mass typically collapses (with a cosmological constant, structure growth slows at late times). And the factor 180 is the Einstein–de Sitter result of spherical collapse (); with a cosmological constant, the same calculation gives a larger factor for halos collapsing at late times, which makes them somewhat smaller (our remark; changes only as the cube root of that factor). The lesson also notes that other conventions (200 times the critical density, for example) give different radii.
Exercise 3.2#
The logarithmic slope of the Einasto profile
The Einasto profile is
In words
rho (x; alpha ) equals rho sub S exp ( minus 2 over alpha, times the quantity x superscript alpha minus 1, ), x equals r over r sub S
and the logarithmic slope of a density profile is
In words
gamma (r) equals d log rho over the quantity d log r
which is at every radius for the isothermal sphere. Show that the Einasto profile reaches this isothermal slope at the scale radius for any , and check numerically that its slope behaves like that of the NFW profile, , for near 0.2 (book, Exercise 3.2, p. 56).
(A)8 points
Find the logarithmic slope of the Einasto profile as a function of , and show that it equals at for every . (The lesson quotes the result; derive it.)
Hint
Since , you need . Take the logarithm of first.
Solution
The idea. For an exponential profile the logarithm is simple, and the slope is one derivative of it.
The slope
, and , so
In words
gamma equals d log rho over the quantity d log x, equals minus 2 over alpha, times alpha x superscript alpha equals minus 2 x superscript alpha
At , and for any , so : the isothermal value.
Check
The exponent of the profile was built for this: the factor in front is what makes the slope at equal to whatever is. As the slope goes to 0 (a flat centre, unlike the NFW cusp), and it steepens without limit as grows.
(B)12 points
Find the logarithmic slope of the NFW profile. Then (our choice of comparison) find the value of for which the Einasto slope equals the NFW slope at , and the value for which they are equal at (tolerance 1% each). Is "" a fair summary?
Hint
For NFW, . Differentiate with respect to .
Hint
Setting equal to a number at a given gives .
Solution
The idea. Both profiles have slope at by construction; the question is how fast they move away from it on either side.
The NFW slope
of gives
In words
gamma N F W equals minus 1 minus 2 x over the quantity 1 plus x, equals minus the quantity 1 plus 3 x, all over the quantity 1 plus x
It runs from at the centre to far out, and is at .
Matching at and
At : , and gives .
At : , and gives .
Is fair?
Over the two decades from to , where halos are best measured, the matching lies between 0.15 and 0.23: "comparable for " is a fair summary, as the book says. With exactly, the Einasto slope is at (NFW ) and at (NFW ). Far from the two differ in kind: NFW tends to the fixed slopes and , while the Einasto slope keeps changing (0 at the centre, steeper and steeper outside). The lesson's graph of the slopes lets you move and see this.
Exercise 3.3#
Enclosed mass and characteristic radii of the NFW and Hernquist profiles
In the double power law with (book, Eq. 3.2, p. 55), the NFW profile has and the Hernquist profile . Show that the enclosed mass of the NFW profile diverges logarithmically at large radius, while that of the Hernquist profile tends to a finite total mass, and find in both cases the radius where the circular velocity peaks (book, Exercise 3.3, p. 56). The book's exercise (part A here) is worked in the lesson Dark matter halos, worked example "Mass and rotation curve of an NFW halo".
(A)5 points
Do the book's exercise, then give for the NFW profile (tolerance 0.5%) and for the Hernquist profile (tolerance 1%).
Hint
; with the integrand becomes . The circular velocity peaks where does.
Solution
The idea. The outer slope decides: puts the same mass in every factor of (a logarithm), puts less and less (a finite total).
The enclosed masses
With :
In words
capital M N F W (x) equals capital M nought the quantity log of the quantity 1 plus x, minus x over the quantity 1 plus x, capital M sub H (x) equals capital M nought over 2, times x squared over the quantity 1 plus x, all squared
As the NFW bracket grows like : without limit, but slowly. The Hernquist mass tends to .
The peaks
. For NFW, of vanishes where , at (by a root finder). For Hernquist, , whose derivative vanishes at : exactly.
Check
Differentiating gives back , which is in these units; likewise . At the NFW bracket is 0.4677 and the bracket over is 0.2162, larger than at (0.2160) or (0.2154).
(B)10 points
(Our addition.) The book also defines the effective radius , the radius inside which half the mass lies. Find for the Hernquist profile (half its total mass; tolerance 0.5%). The NFW profile has no total mass, so take a halo truncated at with (the concentration of Exercise 3.5) and find for half the mass inside (tolerance 1%).
Hint
For Hernquist, is a quadratic in disguise: take the square root first.
Hint
For NFW, solve with a root finder (or bisection by hand), between and .
Solution
The idea. Set the enclosed mass equal to half the total (or half the mass inside the truncation radius) and solve for .
Hernquist
gives .
NFW truncated at
The mass inside is ; half of it is , reached at , so .
Check
Hernquist: . NFW: the NFW for is close to its ; that is a coincidence of this concentration, since does not depend on but does (a more concentrated halo, truncated further out in units of , has its half-mass radius further out too). The NFW half-mass radius depends on where the halo is cut, the Hernquist one does not: another face of the logarithmic divergence.
Exercise 3.4#
How fast does a halo with spin parameter λ rotate?
The spin parameter of a halo of angular momentum , energy and mass is
In words
lambda equals the quantity L the absolute value of capital E to the power one half, all over the quantity capital G capital M to the power five halves
Model a halo as a uniform sphere of mass and radius , rotating rigidly with angular velocity . Find the ratio of to the angular velocity it would have if it were fully supported by rotation, and compare that ratio with (book, Exercise 3.4, p. 62).
(A)6 points
Our reading of "fully supported by rotation": at the equator, the centrifugal acceleration balances gravity. Find in terms of , and .
Hint
At the surface, gravity gives the acceleration towards the centre. A point on the equator moving in a circle of radius with angular velocity needs which centripetal acceleration?
Solution
The idea. The equator of a body rotating at its break-up rate is in circular orbit.
The balance
, so
In words
omega nought equals the square root of capital G capital M over capital R cubed, end of root
Check
Inside a uniform sphere gravity grows in proportion to the distance from the centre, , so holds at every distance in the equatorial plane, not only at the surface: rigid rotation at supports the whole equatorial plane. Away from that plane, the centrifugal force points away from the rotation axis and not away from the centre, so the sphere could never be supported by rotation alone everywhere. The units: = 1/s.
(B)10 points
Our reading of : the halo is in equilibrium, so by the virial theorem its total energy is half its potential energy. Show that is then a fixed number times , and give (tolerance 1%). For the typical simulated halo, (book, p. 62): what is (tolerance 1%)?
Hint
A uniform sphere has the moment of inertia and the potential energy (stated by us).
Hint
Put and into the definition, and collect .
Solution
The idea. Every quantity in is a power of , and times ; the powers combine into .
The spin parameter of the sphere
and . Then
In words
lambda equals the quantity two fifths capital M capital R squared omega the square root of three tenths capital G to the power one half, end of power, capital M capital R to the power minus one half, all over the quantity capital G capital M to the power five halves, equals two fifths the square root of three tenths omega the square root of capital R cubed over the quantity capital G capital M, end of root, equals two fifths the square root of three tenths omega over omega nought
so .
A typical halo
: the halo turns at less than a fifth of its break-up rate.
Check
is dimensionless, and so is , so a pure number had to come out. Had we used the potential energy itself for (not the virial total), would be and : the conclusion, a slowly turning halo, does not depend on that choice.
(C)4 points
Compare: what does of a fully rotation-supported sphere come out as in this model, and how does that compare with the book's remark that rotation-supported systems have ? Then (our addition) find the fraction of the halo's kinetic energy that is in rotation when , as a decimal (tolerance 1%). By the virial theorem the total kinetic energy is .
Hint
The rotational kinetic energy of a rigid body is . Write as .
Solution
The idea. is roughly the ratio of the actual rotation to the rotation needed for support, up to a factor of order one that depends on the shape and the mass distribution.
Full support
With , in this model. That is "of order one" in the loose sense the book means: it is about 5.5 times the typical halo's 0.04 and a factor of about 4.6 below 1, and the ratio is the meaningful comparison. (A rotating disc, in which all the mass is on circular orbits, needs a larger than a uniform sphere for full support; our model is the book's simple one.)
The energy in rotation
. Divided by the total kinetic energy :
In words
K rotational over K equals two thirds ( omega over omega nought ) squared equals two thirds ( lambda over capital C ) squared
For : , and , about 2%.
Check
Even at the share is only : the rest of the kinetic energy must be random motion, because rigid rotation supports only the equatorial plane (part A). For a typical halo about 98% of the kinetic energy is random motion: halos are "hot", pressure-supported systems, as the lesson says.
Exercise 3.5#
Adiabatic contraction of an NFW halo around a Hernquist galaxy
When baryons sink slowly to the centre of a halo, each spherical shell of dark matter keeps fixed (circular orbits, no shell crossing). The standard prescription compares the initial and final states:
In words
r sub i capital M sub i ( r sub i ) equals r sub f the quantity capital M sub g ( r sub f ) plus capital M sub d m ( r sub f ), capital M sub d m ( r sub f ) equals the quantity 1 minus f sub d, capital M sub i ( r sub i )
where is the initial enclosed mass (dark matter and baryons mixed), and the final enclosed masses of the galaxy and the dark matter, and the fraction of dissipative (baryonic) mass. Apply it to an NFW halo of unit mass and concentration , with a galaxy that follows a Hernquist profile with the same scale radius, and . Solve the equation numerically and compare the rotation curves before and after contraction (book, Exercise 3.5, p. 64).
Our reading of the units and the galaxy: , , and the initial mass inside is 1, so and
In words
capital M sub i (r) equals the quantity log of the quantity 1 plus r over r sub S, minus the quantity r over r sub S, all over the quantity 1 plus r over r sub S, all over the quantity log of the quantity 1 plus c, minus c over the quantity 1 plus c
All the baryons end up in the galaxy, whose total mass is : , with (our choice of normalisation). Circular velocities are then , in units of (1 at before contraction).
(A)15 points
A dark matter shell starts at . Where does it end up, (tolerance 1%)? Then find the ratio of the final to the initial circular velocity, , at the radius (tolerance 0.5%) and at (tolerance 0.5%). Describe how contraction changes the rotation curve.
Hint
For a given , Eq. (3.7) is one equation for one unknown, : . It has a root between 0 and when the shell contracts. A fixed-point iteration also converges here: put a guess for into , compute as the next guess, and repeat.
Hint
To find the final velocity at a given radius , solve the same equation for the whose shell lands at . Then the final mass inside is .
Solution
The idea. The galaxy is more concentrated than the baryons were when they were mixed with the halo, so inner shells feel more mass and move in; stays fixed, so rises where shells move in.
The shell from 0.1
. Solving gives : the shell shrinks by about 4%.
The rotation curve
The shell that lands at started at ; the final mass inside 0.05 is , and against : a ratio of 1.071. At the shell started at , slightly inside: it has moved out, and .
What changes
The inner rotation curve rises more steeply (7% faster at , 2% at ), and the outer curve drops a little. The peak moves in, from (the NFW of Exercise 3.3) to about , with almost the same height. The outer shells move out because the Hernquist galaxy, with total mass , puts part of its mass beyond (only , or 69%, of it lies inside ), so the outer shells enclose less mass than before. With this normalisation the effect is mild: the galaxy, with , is not much more concentrated than the baryons were. The size of the effect depends on how compact the galaxy is (part B) and on how the "unit mass" is normalised, which the book does not spell out; do not expect our numbers to match the book's figure.
Check
Put back in: . Far out, as grows, and near , and up to the few percent caused by the galaxy mass outside .
(B)10 points
(Our addition.) Repeat with a galaxy five times more compact: a Hernquist scale , still with total mass . Where does the shell from end up now (tolerance 1%)? At what radius does the final rotation curve peak (tolerance 3%), and what is the peak velocity in the units above (tolerance 1%)?
Hint
Only changes. For the peak, compute on a grid of radii between 0.02 and 0.3 and refine around the largest value.
Solution
The idea. A compact galaxy deepens the central potential much more, so the inner shells fall in further.
The shell from 0.1
Solving gives : the shell shrinks by 30%, against 4% in part (A).
The new rotation curve
The final curve now peaks at , with , against the initial peak of 1.062 at : a rotation curve that rises fast and then falls, like the curves of many disc galaxies with a dense central bulge. At , .
Check
The peak velocity can be checked against a rough bound: without any contraction, the halo plus this galaxy at would have , with , so . Contraction adds dark matter inside that radius and raises it to 1.249. The halo's own dark matter is pulled in too: after contraction, the dark matter alone gives 65% of at the peak, the galaxy 35%.