With constant heat capacities , a reversible heat engine taking two bodies to a common temperature has . The maximum work is . heat isolation does not prohibit transferring work to a store included in the total isolated system.
To obtain the maximum work from two finite heat reservoirs, operate a reversible heat engine between the bodies until their temperatures coincide. Include the work store in the isolated total system: no heat enters from outside, while the bodies can transfer energy to that store. With the stated constant heat capacities, reversibility requires
Numerically, . The decrease of the bodies' internal energy is
Direct thermal equilibration without an engine would instead reach the arithmetic heat-capacity-weighted temperature and deliver no work. entropy production can only raise the final common temperature above the value for zero entropy production and reduce extractable work.