Thermodynamics is the branch of physics that studies the relationship between heat, work, and energy.