The total change in entropy, however, does depend on how the expansion takes place. For any process the energy lost as heat from the system is acquired by the surroundings, so dqsur =− dq. For a reversible change we use the expression in Example 3.1 (qrev =nRTln(Vf/Vi)); consequently, from eqn 3.3b