Thermodynamic Function Changes in Phase Transitions