We all are very well aware about the law of conservation of energy, according to which energy can neither be…