The Fluid and Acceleration Equations
The first Friedmann equation is only half a cosmology. It fixes the expansion rate from the total energy density at one instant, but says nothing about what happens next — not how that density changes as space grows, nor whether the expansion is winding down or running away. The two equations in this article supply the missing dynamics, and between them they organize every era from the radiation fireball to the dark-energy future. The fluid equation is energy conservation for an expanding universe. As a comoving patch grows, the matter inside does pressure work on its surroundings, and because every neighbour pushes back symmetrically, there is nowhere for energy to flow — yet the total energy in a comoving volume still changes whenever the pressure is nonzero. That is not a paradox but the exact general-relativistic bookkeeping in , and it is what makes radiation dilute faster than dust and vacuum energy not dilute at all. The acceleration equation — the second Friedmann equation — carries one of the deepest surprises in physics: pressure gravitates. Newton let only mass attract; Einstein adds a term, so the source of cosmic gravity is the combination . For matter and radiation this is positive and the expansion decelerates, as intuition demands. But a component with sufficiently negative pressure flips the sign, turning gravity repulsive — the single mechanism behind both primordial inflation and the accelerating expansion measured today. The three equations are not independent: any one follows from the other two, a redundancy that is the cosmological face of the Bianchi identity.
- The fluid (continuity) equation, , is local energy conservation: it couples energy density to pressure through the expansion rate.
- It follows either from the first law applied to a comoving volume, or from the vanishing covariant divergence of the stress-energy tensor, .
- The acceleration equation, , shows that pressure as well as energy density gravitates, so matter and radiation slow the expansion.
- Any component with (so ) makes and drives acceleration; a cosmological constant, , gives exponential de Sitter growth.
- Feeding a constant equation of state into the fluid equation gives : matter as , radiation as , vacuum as constant.
- Only two of the three equations (Friedmann, fluid, acceleration) are independent — a consistency check rooted in the contracted Bianchi identity.
- Key idea: pressure does two jobs in cosmology — it does work in the fluid equation (setting how density dilutes) and it sources gravity in the acceleration equation (with deciding accelerate versus decelerate).
Pressure does two jobs in cosmology: through the fluid equation it does work as the universe expands, altering how energy density dilutes, and through the acceleration equation it acts as a source of gravity, with the combination determining whether the expansion accelerates or decelerates.
Where this lives today
These equations are the working core of every modern cosmological analysis. The Planck cosmic-microwave-background measurement, combined with Type Ia supernova compilations (from the 1998 High-z and Supernova Cosmology Project teams to today's Pantheon+ sample) and baryon acoustic oscillation surveys like DESI, is in essence a precision fit of the Friedmann, fluid and acceleration equations to data, extracting , and the dark-energy equation of state . The headline result — , consistent with a pure cosmological constant — is a direct verdict from the acceleration equation, since it is that the accelerating expansion measures. The live frontier is whether is exactly or drifts with time: DESI's 2024–2025 data hint at evolving dark energy, which would force the fluid equation to be integrated with a time-varying rather than the tidy power law of equation (5). At the other end of cosmic history, the same acceleration equation with underwrites inflation, and the hunt for its imprint — primordial gravitational waves in CMB polarization (BICEP/Keck, Simons Observatory, the future LiteBIRD) — is a search for the era when was hugely negative. Every large code, from CAMB and CLASS to N-body suites, integrates the fluid equation per species and audits with the acceleration equation.
The physical picture
Picture a comoving box of proper volume filled with cosmic fluid. As the universe expands the box grows and the pressure inside pushes outward, doing work on everything around it. Every neighbouring box does exactly the same in return, so the boundary work is perfectly symmetric and no net energy crosses any surface — yet the fluid still loses internal energy, precisely as if it had expanded adiabatically against a piston. That is the entire physical content of the fluid equation, : there is no heat flow in a homogeneous universe, only work. The first figure makes this bookkeeping and its gravitational consequence one picture.
Why should pressure weigh in on gravity at all? In relativity, energy and the flux of momentum both curve spacetime, and pressure is momentum flux — a gas at high pressure streams large momentum across every surface, sourcing gravity in its own right. The factor of three in counts the three spatial directions of that flux (the trace of the pressure tensor). For matter and radiation the sum is positive and gravity halts the expansion; for a cosmological constant, makes , and its "anti-gravity" pushes space apart forever. Which component wins is decided across cosmic history, because each dilutes at its own rate — the punchline of the second figure.
The redundancy among the three equations is a feature: general relativity conserves energy and momentum automatically, so writing down Friedmann plus the fluid equation guarantees the acceleration equation for free. Every numerical cosmology code exploits this, integrating two equations and watching the third as a running consistency check.
The core equations
The fluid equation is the continuity equation for the cosmic energy density. It states that the rate of change of is set by the expansion rate acting on the enthalpy density — density and pressure enter together because both the volume change and the pressure work matter. It is the first law of thermodynamics written for an expanding, homogeneous universe.
where: — total energy density (energy per unit proper volume); — isotropic pressure of the cosmic fluid; — scale factor of the FLRW metric; — Hubble parameter, the fractional expansion rate; — time rate of change of energy density. Reading it: with (dust) the equation says , pure dilution by volume; a positive pressure drains faster, a negative one slower. The acceleration equation — the second Friedmann equation — governs the second derivative of the scale factor. Its content is that the "active gravitational mass" of a relativistic fluid is not but . The minus sign means that ordinary, positive-pressure matter pulls downward: gravity decelerates cosmic expansion.
where: — second time derivative of the scale factor (cosmic acceleration); — Newton's gravitational constant; — speed of light; — the active gravitational combination, positive for matter and radiation. Reading it: acceleration () requires , that is a large enough negative pressure — nothing in Newtonian gravity can produce it. For orientation, the first Friedmann equation is included here as the equation that fixes ; the fluid and acceleration equations are its dynamical companions, and any two of the three imply the third.
where: — Hubble parameter; — curvature constant (, or carrying units of inverse length squared); — scale factor. Reading it: curvature appears here but is absent from equation (2), because it enters as a constant that differentiates away. To close the system one specifies an equation of state relating pressure to density. For the cosmic fluids the simplest and most useful choice is barotropic and linear: a single dimensionless number per component.
where: — dimensionless equation-of-state parameter: for pressureless matter (dust), for radiation, for vacuum energy. Reading it: is the one input the dynamics needs from microphysics; everything else is geometry and conservation. Substituting the equation of state into the fluid equation and integrating gives the master scaling law of cosmology — how each component's density falls as the universe grows.
where: — present-day density of the component; — present-day scale factor (usually set to 1); — equation-of-state parameter (assumed constant). Reading it: (matter), (radiation), (vacuum) — exactly the three slopes of the second figure. To quantify whether the expansion speeds up or slows, one defines the dimensionless deceleration parameter, evaluated today.
where: — present deceleration parameter; means the expansion is slowing, means accelerating; — present density parameter of component ; — its equation-of-state parameter. Reading it: the sign is a weighted vote across the components, each weighted by its density and its . Finally, for a flat universe dominated by a single component the Friedmann and scaling equations integrate to closed-form growth histories — power laws for ordinary fluids and an exponential for vacuum.
where: — cosmic time; — equation-of-state parameter; — the (constant) Hubble rate in the vacuum-dominated case. Reading it: matter gives , radiation , and vacuum the de Sitter exponential that never stops.
The goal of this derivation is to show that the fluid equation is nothing more exotic than energy conservation for an adiabatically expanding gas, dressed in cosmological notation. We take a comoving sphere whose proper volume scales as , insist that no heat crosses its boundary because the universe is homogeneous, and apply the first law . Carrying the derivatives through delivers equation (1) and makes transparent why a nonzero pressure changes how density dilutes.
Step 1. Write the internal energy of the comoving sphere as with proper volume , where is the fixed comoving radius. Why: separating the constant comoving radius from the time-dependent scale factor isolates all the time dependence of the volume into .
Step 2. Impose the first law in adiabatic form, (that is, ), so . Why: in a homogeneous universe every point is equivalent, so there is no temperature gradient and nowhere for heat to flow — the only way to change is the pressure work done as the boundary moves.
Step 3. Differentiate with the product rule to get . Why: both the density and the volume change in time, and both contributions to must be kept before the pressure term is balanced against them.
Step 4. Use (from ) and divide through by to reach . Why: dividing by removes the arbitrary comoving size, leaving a purely local statement about , and the expansion rate — the fluid equation, valid patch by patch everywhere.
Go deeper · Derivation B · 1 minThe acceleration equation from the first two
The aim here is to demonstrate the celebrated redundancy of the cosmological equations by deriving the acceleration equation without any new physics — using only the first Friedmann equation and the fluid equation. We differentiate Friedmann in time, notice the curvature term drops out, and eliminate with the fluid equation. What survives is equation (2), pressure factor of three and all, confirming that only two of the three equations carry independent content.
Step 1. Write the Friedmann equation as and differentiate with respect to time: . Why: the constant curvature term has zero derivative and disappears, which is exactly why spatial curvature never appears in the acceleration equation.
Step 2. Divide through by to isolate the acceleration ratio: . Why: this puts the equation into a form containing a single awkward term , which the fluid equation is tailor-made to replace.
Step 3. Insert the fluid equation in the form , so that . Why: this is the only place new information enters, and it is information we already trust from the thermodynamic derivation above.
Step 4. Combine the terms: . Why: the and collapse to , leaving — the pressure survives tripled, which is the entire physical message that pressure gravitates.
Go deeper · Derivation C · 1 minHow density dilutes for a constant equation of state
This derivation extracts the scaling law that assigns each cosmic component its characteristic fall-off — the engine behind the whole cosmic-budget figure. We assume a constant , substitute into the fluid equation, separate variables and integrate. The one-line result explains why radiation redshifts away faster than matter and why vacuum energy refuses to dilute at all.
Step 1. Put into the fluid equation to get . Why: a single constant collapses density and pressure into one term, turning a coupled statement into an ordinary differential equation for alone.
Step 2. Separate variables using , giving . Why: writing both sides as logarithmic differentials removes time entirely and relates the fractional change in density directly to the fractional change in scale factor.
Step 3. Integrate for constant to obtain . Why: constancy of is what lets the coefficient come outside the integral; a time-varying (as in some dark-energy models) would leave an integral instead.
Step 4. Exponentiate to reach , i.e. for matter, for radiation, for vacuum. Why: the extra factor of for radiation over matter is the photon redshift — each photon's energy falls as on top of the number-density dilution.
Limiting cases
The acceleration equation and the scaling law specialize sharply once an equation of state is chosen. The table collects the four cases that anchor cosmic history.
| Case | Result | Meaning |
|---|---|---|
| Pressureless matter, | , | Dust dilutes purely by volume; total energy is conserved; expansion always decelerates. |
| Radiation, | , | An extra from photon redshift; pressure adds to gravity, so deceleration is stronger than matter at equal density. |
| Cosmological constant, | , | Density never dilutes; drives de Sitter exponential growth and eventually dominates everything. |
| Acceleration threshold, | The coasting boundary; any yields acceleration. This is the operational definition of dark energy. |
Worked examples
1 · Matter–radiation equality (confidence builder)
Radiation dominated the young universe even though matter rules today. Using the Planck values and , find the redshift at which their densities were equal.
Step 1. Use the scalings from equation (5): and . Their ratio is , so radiation, falling one power of faster, must have dominated at small and matter takes over as grows.
Step 2. Equality means , which rearranges to . Numerically .
Step 3. Convert to redshift with : . So , i.e. equality about years after the Big Bang. This crossover — a direct consequence of the two different fluid-equation scalings — sets the size of the largest structures and prints a turnover into the matter power spectrum. (matter and radiation equal), from .
2 · When did cosmic acceleration begin, and how strong is it now?
In the flat CDM model with and , find (a) the redshift at which the expansion switched from decelerating to accelerating, and (b) today's deceleration parameter .
Step 1. Acceleration turns on when . Matter contributes with ; the cosmological constant contributes with . So , which vanishes when .
Step 2. Insert the scalings and (constant). The condition becomes , so .
Step 3. Take the cube root: , so — the universe began accelerating roughly six billion years ago. Note the onset () precedes matter– density equality (): acceleration begins while matter is still the larger density, because it takes only , not .
Step 4. For use equation (6), . Matter has , so it contributes ; the constant has , contributing . Thus .
Step 5. Evaluate: . The negative value is the quantitative statement that the expansion is accelerating today, matching what Type Ia supernova surveys measured. Had there been no dark energy (), the same formula would give — and, via in the flat Friedmann equation, a decelerating matter universe growing as . and : acceleration is real.
Physics of the portrait
The fluid and acceleration equations are usually just called the Friedmann equations, and with good reason: they were first written down by a young Russian mathematician and meteorologist who took Einstein's brand-new field equations more seriously than Einstein himself did.
Origins · 1 minAlexander Friedmann and how this was discovered
Alexander Alexandrovich Friedmann was a St. Petersburg mathematician and geophysicist — he flew reconnaissance and computed bombing tables in the First World War, and set a balloon-altitude record — who in 1922 did what no one else had dared: he solved Einstein's field equations without assuming the universe was static. Where Einstein had inserted a cosmological constant in 1917 specifically to hold the cosmos still, Friedmann treated the scale factor as a genuine dynamical variable and derived the equations that now bear his name, showing that a homogeneous, isotropic universe must in general expand or contract. Einstein's first reaction, in a 1922 note to the Zeitschrift für Physik, was that Friedmann had erred; a year later he retracted the objection and conceded the solutions were correct, though still physically uninteresting to him. Friedmann's 1922 and 1924 papers laid down the full framework — expanding, static and oscillating models — five years before Hubble measured galaxy recession and seven before Lemaître independently tied the mathematics to observation. Friedmann saw none of it: he died of typhoid in 1925 at thirty-seven, having glimpsed the expanding universe purely at the end of a pen. The second of his relations, the acceleration equation, would wait until 1998 to reveal its strangest solution — a universe whose expansion speeds up.
Going further
Texts. Ryden, Introduction to Cosmology, 2nd ed., Ch. 4 (fluid and acceleration equations) · Carroll & Ostlie, An Introduction to Modern Astrophysics, 2nd ed., Ch. 29 · Dodelson, Modern Cosmology, 2nd ed., Ch. 2–3 (tensor treatment) · Mo, van den Bosch & White, Galaxy Formation and Evolution, Ch. 3 · Weinberg, Cosmology (2008), Ch. 1 · Binney & Tremaine, Galactic Dynamics, 2nd ed., cosmology appendix.
Provenance. The thermodynamic derivation follows Ryden Ch. 4 and Carroll & Ostlie Ch. 29; the covariant route follows Dodelson Ch. 3. A verifier should confirm: (1) the fluid equation from with ; (2) the acceleration equation by differentiating and substituting the fluid equation; (3) the scaling by integrating with constant ; (4) from ; (5) from ; (6) from with , . All densities are standard Planck 2018 values.
Builds on: The Friedmann Equations · The FLRW Metric · The Expansion of the Universe and the Scale Factor · Equation of State in Cosmology · The Cosmological Principle. Leads to: Critical Density and Density Parameters · Cosmological Redshift · Spatial Curvature of the Universe.
Ask the tutor: Want to watch flip sign as dark energy overtakes matter, and trace when a universe starts to accelerate?
Is the fluid equation really independent of the acceleration equation?
No — and that is the point. Given the first Friedmann equation and the fluid equation, the acceleration equation follows by pure differentiation, as the boxed derivation shows; equivalently, Friedmann plus acceleration gives the fluid equation. Only two of the three ever carry independent information. This redundancy is the cosmological expression of the contracted Bianchi identity, , which through Einstein's equations forces . In practice cosmologists integrate the two most convenient equations and keep the third as a running numerical check.
How can pressure gravitate? In Newton only mass attracts.
In general relativity the source of gravity is the full stress-energy tensor, not just its energy component. Energy density curves spacetime, but so does the flux of momentum — and pressure is precisely momentum flux across a surface. The acceleration equation packages this as , the factor of three counting the three spatial directions of that flux. For everyday matter , the pressure term is negligible and you recover Newton. It becomes decisive only for relativistic fluids (radiation, ) and exotic negative-pressure components (vacuum, ), where it can flip the sign of gravity.
Why does radiation dilute as a⁻⁴ but matter only as a⁻³?
Both dilute by because the volume grows as — spread the same stuff over more space and the number density falls. Radiation suffers one extra effect: each photon redshifts, its wavelength stretching with and its energy falling as . Multiply the number dilution by the per-photon loss to get . The fluid equation encodes this automatically: with the pressure does positive work on the expanding boundary, and integrating gives exactly .
What exactly is the deceleration parameter q₀, and why the minus sign?
It is a dimensionless measure of how the expansion rate is changing, evaluated today. The minus sign is a historical convention from an era when everyone expected the universe to be slowing under its own gravity: it was defined so that a decelerating universe would have a positive . Nature embarrassed the convention — the measured value is negative, , meaning the expansion is speeding up. Through equation (6), is a density-weighted average of over all components, so it is really the acceleration equation in disguise: negative is the same statement as .
Does the accelerating universe violate energy conservation?
Not any law that applies. Global energy conservation follows, via Noether's theorem, from time-translation symmetry — and an expanding universe has none, since the state of space genuinely differs from epoch to epoch. What holds instead is the local statement , the fluid equation: the energy in a comoving volume changes by exactly the pressure work . For dark energy this is striking — as space grows, more vacuum energy appears (constant density, rising volume), paid for by the negative-pressure work term. Nothing is violated; there is simply no conserved total energy in cosmology.
When did the universe switch from decelerating to accelerating?
Around redshift , roughly six billion years ago. The switch happens when first turns negative, which for CDM means the matter density drops to twice the dark-energy density, . This is earlier than the moment the two densities become simply equal (): acceleration needs only , not , thanks to the factor of three on the dark-energy pressure. Before then matter's positive won; after, dark energy's negative pressure took over.