add differential form for first and second law of thermodynamics