Computing Growth Factors

hmf provides a number of different methods for computing the cosmological growth factor. This document outlines the relationship between these approaches, and provides a handy reference for their derivation (and derivation of various corollarys, such as the growth rate). This is not meant so much to be a tutorial on how to use the different growth factor classes, but rather a reference that gathers the different approaches together and outlines their assumptions and limitations.

Notation

Much of my own confusion in understanding the growth factor came from the fact that different sources use different notation, and sometimes this notation is not specified. In particular, whether :Omega_m refers to the matter density at a given redshift, or the matter density today, is not always clear. In this document, we will use the following notation: density parameters (\(\Omega_m\), \(\Omega_\Lambda\), etc.) will always refer to the density parameters at z=0, while the density parameter at a given redshift will be denoted by \(\Omega_m(z)\).

Throughout, we will write the “normalized” hubble parameter as \(E(z) = H(z)/H_0\). This is a common notation in the literature, and is also the notation used by the astropy.cosmology module. Since this quantity will appear frequently in the equations for the growth factor, we will often use the notation \(E\) without an explicit argument to refer to \(E(z)\).

The scale factor will be denoted by \(a \equiv 1/(1+z)\), and the growth factor will be denoted by \(D_+(a)\). Unless otherwise noted, primes will denote derivatives with respect to scale factor (e.g. \(D'(a)\)), while dots will denote derivatives with respect to time (e.g. \(\dot{D}\)).

Definitions

The growth factor, D+(z), is defined as the ratio of a density perturbation on a given scale to its initial value: \(\delta(a)/\delta_0\).

On sub-horizon scales, in an FLRW cosmological background and under the Newtonian approximation, the growth factor satisfies the following second-order differential equation [Heath77]:

\[\ddot{D} + 2 H \dot{D} - 4 \pi G \rho_m D = 0\]

where rho_m is the matter density.

In terms of the scale factor, this can be rewritten as [Haude22]:

\[D''(a) + \left(\frac{3}{a} + \frac{E'(a)}{E(a)}\right) D'(a) - \frac{3}{2} \frac{\Omega_m}{a^5 E(a)^2} D(a) = 0\]

This equation is the most general form of the growth factor that we will consider in this document. hmf therefore doesn’t support non-FLRW cosmologies, nor scale-dependent growth factors at this time.

A closely related quantity is what we shall call the “growth function”, which is is simply defined as \(G \equiv D(a)/a\). This is a convenient quantity to work with, since it is constant in a matter-dominated universe (as we shall see later). In terms of the growth function, the growth factor equation can be rewritten as:

\[G''(a) + \left(\frac{5}{a} + \frac{E'(a)}{E(a)}\right) G'(a) + \left(\frac{3}{a^2} + \frac{E'(a)}{aE(a)} - \frac{3}{2} \frac{\Omega_m}{a^5 E(a)^2}\right) G(a) = 0\]

A final related quantity is the “growth rate”, which is defined as

\[f \equiv d\ln D / d\ln a.\]

Note that \(f\) does not depend on the normalization of the growth factor, since it is a logarithmic derivative.

Normalization

Since the growth factor is a second-order differential equation, it has two independent solutions. The “growing mode” solution is the one that we are interested in, and is typically denoted by \(D_+(a)\). In this document we will simply use \(D(a)\) to refer to the growing mode solution, since it is the only solution that we will be interested in.

Second-order ODE’s require two boundary conditions (or initial conditions) to specify a unique solution. One such condition will define the overall normalization of \(D(a)\). Most commonly in the literature, the growth factor is normalized such that \(D(a) \to a\) as \(a \to 0\) (or, \(G \to 1\) as \(a \to 0\)). When computing halo mass functions and related quantities, we generally first compute the power spectrum at z=0, and then use the growth factor to scale it back to higher redshifts. In this case, it is convenient to use the normalization \(D(a=1) = 1\), so that we simpy have \(P(k, z) = D(z)^2 P(k, z=0)\). Thus, in hmf, when you call growth_factor(z) you will get the growth factor normalized such that \(D(a=1) = 1\). However, under the hood, most of the growth factor models are specified such that \(D(a) \to a\) as \(a \to 0\), and then the growth factor is normalized at the end by dividing by \(D(a=1)\). In any case, none of this matters too much – the important thing is that whatever normalization that is chosen is used consistently.

The second boundary condition is less obvious (at least to me). We choose the condition such that \(G'(a) \to 0\) as \(a \to 0\). It is not clear to me that this is a either necessary choice, nor whether the choice is trivial. However, it is certainly the choice made in all approximations and limiting cases that I have seen in the literature, and so it probably makes sense to also make this choice when solving the growth factor equation numerically.

Limiting Cases and Assumptions

The solutions to the growth factor equation depend critically on the form of \(E(a)\), which in turn depends on the cosmological parameters and the assumptions that are made about the contents of the universe. For all of the possible cosmologies we will actually consider, \(E(a)\) is most generally given by the following formula:

\[E^2(a) = \Omega_m a^{-3} + \Omega_r a^{-4} + \Omega_\Lambda a^{-3(1+w(a))} + \Omega_k a^{-2}\]

where \(\Omega_m\), \(\Omega_r\), \(\Omega_\Lambda\), and \(\Omega_k\) are the matter, radiation, dark energy, and curvature density parameters at z=0, respectively.

No solution to the growth factor equation is known in closed form for the general case, but there are a number of limiting cases and approximations that are commonly used in the literature (generally when one or more of the terms in the above equation can be neglected).

Negligible Radiation with a Cosmological Constant

The most general solution that is known is the case in which radiation can be neglected (i.e. at late times), and where the dark energy is a cosmological constant (i.e. \(w=-1\)). In this case, a solution is given by the following integral [Heath77]:

\[D(a) = C_1 E(a) \int_0^a \frac{da'}{(a'^3 E(a')^3)}.\]

Typically the coefficient \(C_1\) is chosen such that \(D(a) \to a\) as \(a \to 0\), which gives \(C_1 = 5/2 \Omega_m\).

Note

Note that I did not derive this solution here. I actually don’t know how it was derived, and if I have time I would like to find out, because I think there must be a choice made at some point that effectively sets the second boundary condition (i.e. \(G'(a) \to 0\) as \(a \to 0\)), and I would like to understand how that choice is made.

We can verify that this solution satisfies the growth factor equation by plugging it in and differentiating (taking \(C_1 = 1\) for simplicity and without loss of generality):

\[D'(a) = \left[ E' D / E + \frac{1}{a^3 E^2} \right]\]
\[D''(a) = \left[ \frac{E'' D }{ E a} + E' D' / E - E'^2 D / E^2 - \frac{3}{a^4 E^2} - \frac{2 E'}{a^3 E^3} \right]\]

Plugging into the growth factor equation and collecting terms gives:

\[D \left( E''/E - E'^2 / E^2 - \frac{3\Omega_m}{2a^5 E^2}\right) + D' \left(2 E'/E + 3/a\right) - \frac{1}{a^3 E^2} \left(3/a + 2 E'/E \right) = 0\]
\[D \left( E''/E - E'^2 / E^2 - \frac{3\Omega_m}{2a^5 E^2}\right) + \left(2 E'/E + 3/a\right) \left( E'D/E + \frac{1}{a^3 E^2} - \frac{1}{a^3 E^2} \right) = 0\]
\[D \left( E''/E + E'^2/E^2 + 3E'/(aE) - \frac{3\Omega_m}{2a^5 E^2} \right) = 0\]

Which choices of \(E(a)\) will cause the term in parentheses to be zero, and thus give a solution to the growth factor equation? We know that \(E(a)\) must have the form of a square root of some function. Let’s say that \(E^2 = Q\). Thus:

\[E' = \frac{1}{2E} Q'\]
\[E'' = -\frac{E'^2}{E} + \frac{1}{2E} Q''.\]

Plugging these back into the term in parentheses gives:

\[-\frac{E'^2}{E^2} + \frac{1}{2E^2} Q'' + \frac{E'^2}{E^2} + 3E'/(aE) - \frac{3\Omega_m}{2a^5 E^2}\]
\[\frac{1}{2E^2} Q'' + 3Q'/(2aE) - \frac{3\Omega_m}{2a^5 E^2}\]
\[\frac{1}{2E^2} \left(Q'' + \frac{3}{a} Q' - \frac{3\Omega_m}{a^5} \right)\]

Now we need only solve the much simpler ODE defined by setting the term in parentheses to zero. Mathematica gives the following solution for Q:

\[Q = \Omega_m a^{-3} + C_1 a^{-2} + C_2.\]

Thus, this solution is only valid for cosmologies in which \(E^2\) has the form of a linear combination of \(a^{-3}\), \(a^{-2}\), and a constant. This corresponds to cosmologies with matter, curvature, and a cosmological constant, but no radiation or other forms of dark energy.

Growth Rate

The growth rate, \(f\), can be calculated from the growth factor analytically in the case of negligible radiation and a cosmological constant (i.e. by using the integral formula above for the growth factor). In this case, we can simply plug the integral formula into the definition of the growth rate and differentiate. This gives:

\[f = \frac{d\ln D}{d\ln a} = \frac{a D'}{D} = \frac{a E'}{E} + \frac{C_1}{a^2 E^2 D}.\]

Note that in the “further simplification” cases below, the growth rate can use this formula as well, since they are all special cases of the integral formula.

Further Simplification: Flat Cosmology

If we further assume that the universe is flat (i.e. \(\Omega_k = 0\) and \(\Omega_\Lambda = 1 - \Omega_m\)), then there exists a closed-form solution for the growth factor, as derived in [Eisenstein97]. In this case, the growth factor is given by the following formula (their Eqs. 8-10):

\[D(a) = a \times d\left(\frac{1}{a} \sqrt{\frac{\Omega_m}{1 - \Omega_m}} \right)\]

where

\[d(v) = \frac{5}{3} v \left\{ \sqrt{4}{3} \sqrt{1 + v^3} \left[ E(\beta, \sin^2 75^\circ) - \frac{1}{3 + \sqrt{3}} F(\beta, \sin^2 75^\circ)\right] + \frac{1 - (\sqrt{3} + 1)v^2}{v + 1 + \sqrt{3}} \right\}\]

and

\[\beta = \arccos \left( \frac{1 + v - \sqrt{3}}{1 + v + \sqrt{3}} \right)\]

and \(E\) and \(F\) are the elliptic integrals of the second and first kind, respectively (in the convention of numpy, which is not to square the second argument).

This solution is normalized in the standard way, i.e. \(D(a) \to a\) as \(a \to 0\). For computational purposes, [Eisenstein97] also provides an asymptotic expansion for the growth factor at high redshift:

\[d(a) \approx 1 - \frac{2}{11} v^{-3} + (16/187)v^{-6} + O(v^{-9}).\]

Further Simplification: No Cosmological Constant

If we further assume that the cosmological constant is negligible (i.e. \(\Omega_\Lambda = 0\)), then [Heath77] provides a closed-form solution for the growth factor:

\[D(z) = \frac{6\Omega_m z + 2\Omega_m + 1}{|\Omega_m - 1|} - \frac{3\Omega_m \theta (\Omega_m z + 1)(1 + z)^2}{2|\Omega_m - 1|^{3/2}},\]

where

\[\begin{split}\theta = \begin{cases} \arccos(x) & \text{if } \Omega_m < 1 \\ \text{arccosh}(x) & \text{if } \Omega_m > 1 \end{cases}\end{split}\]

and

\[x = 1 - \frac{a}{2}\frac{1 - \Omega_m}{\Omega_m}.\]

Further Simplification: Einstein-de Sitter

Finally, if we further assume that the universe is matter-dominated (i.e. \(\Omega_m = 1\) and \(\Omega_\Lambda = 0\)), then the growth factor is simply given by \(D(a) = a\).

This can be proven simply by plugging \(D(a) = a\) into the growth factor equation and noting that \(E(a) = \Omega_m a^{-3/2}\) in this case, which gives:

\[D''(a) + \left(\frac{3}{a} + \frac{E'(a)}{E(a)}\right) D'(a) - \frac{3}{2} \frac{\Omega_m}{a^5 E(a)^2} D(a) = 0\]
\[0 + \left(\frac{3}{a} - \frac{3}{2a} \right) - \frac{3}{2} \frac{1}{a^5 \Omega_m a^{-3}} a = 0\]
\[\frac{3}{2a} - \frac{3}{2a} = 0.\]

Matter-Radiation Domination

At early times, radiation cannot be neglected, and the growth factor is not given by the integral formula above.

At the very earliest times, the universe is radiation-dominated, and the growth factor is given by

\[D(a) = C_1 J(0, \sqrt{6x}) + C_2 Y(0, \sqrt{6x})\]

where \(x = \Omega_m a / \Omega_r\) (i.e. the scale factor as a ratio to the scale factor at radiation-matter equality) and \(J\) and \(Y\) are the Bessel functions of the first and second kind, respectively.

The Bessel function of the second kind diverges as \(x \to 0\), so we choose \(C_2 = 0\) to get the growing mode solution.

The Bessel function of the first kind approaches unity as \(x \to 0\). Thus, the growth factor approaches a constant as \(a \to 0\) in the radiation-dominated era.

This is in contrast to the matter-dominated case, where the growth factor approaches zero as \(a \to 0\). Thus, the growth factor grows more slowly in the radiation-dominated era than in the matter-dominated era.

This also helps us set an appropriate initial condition for the growth factor when solving the growth factor equation numerically. Before getting to that though, we first solve the growth factor equation in the era when only matter and radiation are important (i.e. when the cosmological constant and curvature can be neglected). This can be solved with Mathematica, as long as you give it reasonable initial conditions – here we simply assert that the growth factor approaches a constant as \(a \to 0\) and get:

\[D(a) = a + 2a_{\rm eq}/3.\]

Note that one of the ODE coefficients has implicitly been chosen so that we asymptote to a constant to enable this form, the second is the overall normalization, which we choose here such that during matter domination (i.e. late times in this scenario) we have \(D(a) \to a\). This can help us connect this solution to the full solution at late times.

Note also that if the universe is flat and has no dark energy, this is the full equation.

Growth Rate at z=0 for Cosmological Constant

The growth factor at z=0 is always normalized to 1. However, the Growth Rate is not dependent on this normalization, and therefore can change with cosmological parameters.

Assuming that radiation can be neglected (very likely to be a good approximation at z=0), [Hamilton01] provides an exact solution for the growth rate in both flat and non-flat universes. Unfortunately, I think the formula itself probably takes as much time to evaluate as the ODE, so I do not include it in hmf at this time.

However, it is worth noting that, since we are ignoring radiation and assuming a cosmological constant, the integral formula above applies. In this case, the growth rate has a simple form (already state above), and is even simpler again, given by Eq. 4 of [Hamilton01]:

\[f(z=0) = \frac{E'}{E} + \frac{C_1}{E^2 D} = \frac{-3/2\Omega_m - (1 - \Omega_m - \Omega_\Lambda) + C_1/D}{\Omega_m + (1 - \Omega_m - \Omega_\Lambda) + \Omega_\Lambda}\]
\[= -3/2\Omega_m - 1 + \Omega_m + \Omega_\Lambda + C_1/D\]
\[= -1 + \frac{-\Omega_m}{2} + \Omega_\Lambda + C_1/D\]

Dark Energy with w != -1 in a Flat Universe

In [SW94] they give a solution for the growth factor in a flat universe with a dark energy component with constant equation of state w. This solution is given in more modern notation in [VT20] as:

\[D(a) = a \times {}_2F_1\left(-\frac{1}{3w}, \frac{w-1}{2w}, 1 - \frac{5}{6w}, a^{-3w}\left(1 - \frac{1}{\Omega_m}\right)\right)\]

where \(w\) is the equation of state parameter for the dark energy component, and \({}_2F_1\) is the hypergeometric function.

Unfortuantely, the case \(w=-1\) is not a special case of this solution.

Solving the ODE

The full ODE (without any assumptions/approximations on \(E(a)\)) does not admit closed-form solutions. However, it can be solved numerically. A convenient way to setup the problem is as an initial value problem for a coupled system of first-order ODEs, which can be solved with standard ODE solvers. In this case, the relevant system is (see :ref:label-definitions`):

\[\begin{split}\begin{cases} x_1' = x_2 \\ x_2' = = -\left(\frac{3}{a} + \frac{E'}{E}\right) x_1' + \frac{3}{2} \frac{\Omega_m}{a^5 E^2} x_1 \end{cases}\end{split}\]

The only question is how to properly set the initial conditions for this system. It is natural to set the initial conditions in the early universe, but it is common to find initial conditions actually set in the matter-dominated era, where \(D(a) \to a\) and \(D'(a) \to 1\). However, choosing such initial conditions restricts the range of redshifts in the solution to begin in matter-domination—probably enough for most applications but still a needless restriction. Furthermore, it is also a little arbitrary, since one must decide on which redshift is best representative of matter domination for the particular cosmology on hand. A more natural choice is to set the initial conditions in the radiation-dominated era, where we can start at arbitrarily high redshift and use the solution for the growth factor in the radiation-dominated era to set the initial conditions. In this case, we have \(D(a) \approx 2 a_{\rm eq}/3\) and \(D'(a) \approx 0\) as \(a \to 0\) (see label-radiation-dom), which is the choice that we make in hmf.

Approximations

Beyond the limiting cases and simplifying assumptions laid out in the previous section, there exist some commonly used approximations. Most popular is the approximation of [Lahav91], which gives the following formula for the growth rate at \(z=0\):

\[f(z=0) \approx \Omega_m^{0.6} + \frac{1}{70} \Omega_\Lambda \left(1 + \frac{\Omega_m}{2}\right).\]

They argue that the growth rate should be largely dependent on the matter density at any particular epoch, and give the formula

\[f(z) \approx \Omega_m(z)^{0.6}\]

which is a good approximation for any \(\Lambda\) and \(\Omega_m\), and also a similar formula as a function of redshift which is an even better approximation in a flat universe:

\[f(z) \approx \Omega_m(z)^{0.6} + \frac{1}{70} \left(1 - \frac{\Omega_m(z)}{2}(1 + \Omega_m(z))\right).\]

It is also very common to use the approximation \(f(z) \approx \Omega_m(z)^\gamma\), where \(\gamma\) is a free parameter that can be fit to simulations. This is a convenient formula, since it allows for a simple way to parametrize deviations from the standard growth rate in modified gravity theories, and is commonly used in the literature for this purpose. For a flat universe with a cosmological constant, \(\gamma \approx 0.55\) gives a good fit to the growth rate at z=0.

Since the growth rate approximation is a good approximation for any redshift (not including when radiation becomes important), we can use the analytic formula for the growth rate in the “integral” case above to get a similar approximation for the growth factor itself [Carroll92]:

\[D(a) \approx \frac{5}{2} \Omega_m(a) \left[ \Omega_m(a)^{4/7} - \Omega_\Lambda(a) + \left(1 + \frac{\Omega_m(a)}{2}\right)\left(1 + \frac{\Omega_\Lambda(a)}{70}\right) \right]^{-1}.\]

References

[Heath77] (1,2,3)

Heath, D. J. ‘The Growth of Density Perturbations in Zero Pressure Friedmann-Lemaître Universes.’ Monthly Notices of the Royal Astronomical Society 179 (May 1977): 351–58. https://doi.org/10.1093/mnras/179.3.351.

[Haude22]

Haude, Sophia, Shabnam Salehi, Sofía Vidal, Matteo Maturi, and Matthias Bartelmann. ‘Model-Independent Determination of the Cosmic Growth Factor’. SciPost Astronomy 2, no. 1 (2022): 001. https://doi.org/10.21468/SciPostAstro.2.1.001.

[Eisenstein97] (1,2)

Eisenstein, Daniel J. ‘An Analytic Expression for the Growth Function in a Flat Universe with a Cosmological Constant’. arXiv:astro-Ph/9709054. Preprint, arXiv, 12 September 1997. https://doi.org/10.48550/arXiv.astro-ph/9709054.

[Hamilton01] (1,2)

Hamilton, A. J. S. ‘Formulae for Growth Factors In Expanding Universes Containing Matter and a Cosmological Constant’. Monthly Notices of the Royal Astronomical Society 322, no. 2 (2001): 419–25. https://doi.org/10.1046/j.1365-8711.2001.04137.x.

[Lahav91]

Lahav, Ofer, Per B. Lilje, Joel R. Primack, and Martin J. Rees. ‘Dynamical Effects of the Cosmological Constant’. Monthly Notices of the Royal Astronomical Society 251, no. 1 (1991): 128–36. https://doi.org/10.1093/mnras/251.1.128.

[Carroll92]

Carroll, Sean M., William H. Press, and Edwin L. Turner. ‘The Cosmological Constant.’ Annual Review of Astronomy and Astrophysics 30 (January 1992): 499–542. https://doi.org/10.1146/annurev.aa.30.090192.002435.

[SW94]

Silveira, V., I. Waga’, de Brasilia, and de Fisica. Decaying A Cosmologies and Power Spectrum. 1994.

[VT20]

Velasquez-Toribio, A. M., and Júlio C. Fabris. ‘The Growth Factor Parametrization versus Numerical Solutions in Flat and Non-Flat Dark Energy Models’. The European Physical Journal C 80, no. 12 (2020): 1210. https://doi.org/10.1140/epjc/s10052-020-08785-z.