the maximum theroretical work obtainable from an overall system consisting of a system and the environment as the system comes to equilibrium with the environment, is called