rewrite 2nd derivatives wrt to volume/density