Sets density derivative using the differential equation to ensure force balance, instead of relying on numerical differentiation.