Title: The thermodynamics of star formation