The first law of thermodynamics is concerned with the conservation of energy. The main point in this law is that the change in internal energy is equivalent to the heat, which flows into the system minus the work is done. This is the same as considering that if one applies heat to the system, then the system may accumulate it as internal energy or use it to do the work.