The scientific discipline that intersects the areas of chemistry and physics is commonly known as physical chemistry, and it is in that area that a thorough study of
thermodynamics takes place. Physics concerns itself heavily with the mechanics of events in nature. Certainly changes in energy -- however measured, whether it be heat, light, work, etc. -- are clearly physical events that also have a chemical nature to them. Thermodynamics is the study of energy changes accompanying physical and chemical changes. The term itself clearly suggests what is happening -- "thermo", from temperature, meaning energy, and "dynamics", which means the change over time.
Heat and
work are both forms of energy. They are also related forms, in that one can be transformed into the other. Heat energy (such as steam engines) can be used to do work (such as pushing a train down the track). Work can be transformed into heat, such as might be experienced by rubbing your hands together to warm them up.