Thermodynamics study the exchange of heat and work between a system and the surroundings, which occurs when the system undergoes a process.