Thermal expansion and work