# 15. Pressure and Energy Density Evolution

- Page ID
- 5928

There is a sense in which energy is conserved in general relativity. We say it is *locally* conserved, which effectively means that in a sufficiently small region of spacetime, the change in energy is equal to the flux of energy across the boundary of the region, including that via any work being done on the region. From this principle, or from the Einstein equations themselves, someone with some skill in general relativity can derive for a homogeneous expanding universe that:

\[dE = -P\,dV \label{eq1}\]

where \(E\) is the energy in some volume \(V\). This *looks* a lot like conservation of energy as we are used to seeing it. Indeed it is the first law of thermodynamics, in the special case of no heat flow across the boundary. If you have a gas in a volume \(V\) and you squeeze it down by \(dV\), the work you do (\(-PdV\)), increases the kinetic energy (and hence total energy) of the gas particles by

\[dE=-P\,dV. \label{eq2}\]

Since \(dV\) is negative, this is an increase in energy, assuming \(P > 0\).

But the simplicity of the result is deceptive. As soon as one starts to ask some obvious questions about it, things can become confusing. In a homogeneous expanding universe, how is the work being done? There are no pressure gradients to push things around. Then is it somehow being done by gravitational potential energy? That is a reasonable guess, since the expansion of space is a gravitational effect.

These questions though are not helpful. They assume energy is conserved, when in fact it is not. We can, however, use our Newtonian intuition to guide us about how the gas will behave given that the region it occupies is expanding. If the volume slowly increases that is containing a gas (with \(P>0\)), then the energy of that gas will decrease no matter if it's because of the expansion of space or the expansion of the walls that contain the gas.

From \(dE=-PdV\) we can derive how energy density evolves as the scale factor evolves. Gas comoving with the expansion and in a region with comoving volume \(V_c\), occupies a physical volume of \(a^3 V_c\). The energy content of this homogeneous gas is \(\rho c^2 a^3V_c\). Thus Equation \ref{eq1} leads to

\[a^3 c^2 d\rho + 3\rho c^2 a^2 da = -3Pa^2 da\]

or

\[a\frac{d\rho}{da} = -3(P/c^2+\rho)\]

Box \(\PageIndex{1}\)

**Exercise 15.1.1:** Use the above equation to find \(P(\rho)\) for non-relativistic matter, given that \(\rho \propto a^{-3}\).

**Exercise 15.1.2:** Use the above equation to find \(P(\rho)\) for relativistic matter, given that \(\rho \propto a^{-4}\).

**Exercise 15.1.3**: Use the above equation to find \(P(\rho)\) for a cosmological constant, given that \(\rho \propto a^0\).

For Exercise 15.1.1 you should find that \(P=0\). This might be surprising since non-relativistic matter in general has non-zero pressure. Remember though that our \(\rho \propto a^{-3}\) result came from neglecting all kinetic energy of the gas, because it was so small compared to the kinetic energy. Of course it is not exactly zero so the pressure is also not exactly zero. For 15.1.2 you should find \(P(\rho) = \frac{1}{3} \rho c^2\).

Perhaps most surprisingly, for 15.1.3 you should find that the pressure is *negative*. More precisely, you should find that \(P(\rho) = - \rho c^2\). How can this be? What does it mean to have negative pressure? We will explore these questions in a homework problem.

We now have a closed set of equations that we can use to solve for the evolution of the scale factor. Given the mass-energy density of all the components of the universe at one time and their equations of state \(P(\rho)\), and given the expansion rate at that same time, we can find how these densities evolve and how the scale factor does as well. We summarize the key equations here, as well as writing them out with explicit sums over components for the first time.

\[H^2 \equiv \left(\frac{\dot a}{a}\right)^2 = \frac{8\pi g \Sigma_i \rho_i}{3} - k/a^2\]

and

\[a\frac{d\rho_i}{da} = -3(P_i/c^2+\rho_i)\]

where the subscript \(i\) enumerates the different contributors to the energy density.

#### Homework (under construction)

15.1: Imagine you have a box of volume V full of a substance with energy density \(\rho c^2\). Outside the box the energy density is zero. Imagine that if you expanded the box by some amount \(dV\) that the energy density inside would not drop, but would stay constant.

A) By how much would the energy inside the box increase if this expansion occurred?

B) Imagine you are pulling on the walls of the box to make this increase in volume happen. Would it be hard to do? Would it require work? How much work? Articulate why ascribing \(P < 0\) to the material inside the box makes sense.