The first law of thermodynamics is that heat transfer is a form of energy transfer and that energy does not vanish ( law of conservation of energy ) .
This is the law of conservation of energy .