How would you prove the first law of thermodynamics?