Energy Conservation and Entropy Analysis in Phase Transitions