# Density and pressure relationship

I am not a physics person and came across this

diff (density)/diff (time) = (1/speed of sound^^2) diff (pressure)/diff (time)

I want to know what are conditions of application of this? I was advised that the equation assumes thermal equilibrium as density is a function of temperature and pressure. I want to be sure before going any further.

Many thanks