Density Formula Thermodynamics