I am reading through An Introduction to Fluid Dynamics by G.K. Batchelor.
Question background:
Batchelor states that if a fluid is in equilibrium, then everywhere in the fluid we have $$ \rho\mathbf{F} = \nabla p$$ where $\rho = \rho(\mathbf{x},t)$, $\mathbf{F}=\mathbf{F}(\mathbf{x},t)$, and $p=p(\mathbf{x},t)$. In the case of a conservative field $\mathbf{F}=-\nabla\Psi$, the condition for equilibrium is $$-\rho\nabla\Psi=\nabla p$$ and taking the curl of both sides yields $$\nabla \rho \times \nabla \Psi = 0 $$
Question:
Batchelor then concludes that the level-surfaces of $\rho$ and $\Psi$ must coincide, and that these same level surfaces are the level surfaces of $p$ (everything makes sense up to this point) and we can write $$ dp/d\Psi = -\rho(\Psi)$$
What does it mean to take the derivative of $p$ with respect to $\Psi$? The pressure is a function of space and time, so how can it be written in terms of $\Psi$ for taking a derivative? Can someone help me understand the mathematics and, if possible, the physical meaning behind this relationship?