show the relation that decreases in free energy of system is equal to the useful work obtained at constant temperature and pressure