Isothermal expansion

The gas is allowed to expand slowly at constant temperature.

Heat flows from the surroundings. The temperature of the gas (internal energy) remains the same.