This happens because chemotherapy targets all types of cells and since hair follicles are the fasting growing cells in the body, they are obviously targeted. Radiation causes hair loss on the part of the body that is being treated with it.
The concept of workdone in an Isochoric and Isobaric process is applied, the use of the steam table is also applied and the detailed steps and analysis is shown in the attached file.