For constant barotropic equation of state , the cosmological perfect-fluid continuity equation gives . In conformal time the flat Friedmann equation becomes , where . Integration, for , gives
Choose the conformal-time origin so that and work on the appropriate expansion branch. Write , so and .
Combining the supplied energy and momentum constraints gives the comoving-gauge density contrast Poisson relation
For this barotropic fluid . Substitute the energy constraint into the pressure equation to obtain
so the bracket vanishes and the coefficient of is .
Because , the Poisson relation gives . Apply the same potential equation to : differentiating gives
Since is a constant multiple of , the constant-equation-of-state comoving density equation is
The primes here denote conformal-time derivatives, corresponding to the overdots in the question. A pure vacuum fluid has zero enthalpy and no independent fluid velocity or nonzero-wave-number density perturbation; its formal equation should be interpreted with that degeneracy in mind.
For pressureless matter, , the constant-equation-of-state comoving density equation reduces to . Substitution of gives . Since ,
In the growing mode, is constant, so the Poisson constraint makes constant for a nonzero Fourier mode. The momentum constraint and the flat Friedmann equation give
This is the growing-mode velocity potential in matter domination, in the question's convention where the peculiar velocity is .