First of all, let us concentrate on the nature of work a system can do. We will consider only mechanical work i.e., pressure-volume work.

For understanding pressure-volume work, let us consider a cylinder which contains one mole of an ideal gas fitted with a frictionless piston. Total volume of the gas is V* _{i}* and pressure of the gas inside is

*p*.

If external pressure is *p*_{ex} which is greater than *p*, piston is moved inward till the pressure inside becomes equal to *p*_{ex}.

Let this change be achieved in a single step and the final volume be *V** _{f}* .

During this compression, suppose piston moves a distance, *l* and is cross-sectional area of the piston is A

then, volume change = *l* × A = *V *= (*V*_{f}* *–* V** _{i}* )

we also know pressure = (force/area)

Therefore, force on the piston = *p*_{ex} . A

If w is the work done on the system by movement of the piston then

w = force × distance = *p** _{ex}* . A .

*l*=

*p*

*. (–*

_{ex}*V*) = –

*p*

_{ex}

*V*= –

*p*

_{ex}(

*V*

*–*

_{f}*V*

*)*

_{i}The negative sign of this expression is required to obtain conventional sign for w, which will be positive. It indicates that in case of compression work is done on the system. Here (*V** _{f}* –

*V*

*) will be negative and negative multiplied by negative will be positive.*

_{i}Hence the sign obtained for the work will be positive. If the pressure is not constant at every stage of compression, but changes in number of finite steps, work done on the gas will be summed over all the steps and will be equal to − ∑ *p* *V*

If the pressure is not constant but changes during the process such that it is always infinitesimally greater than the pressure of the gas, then, at each stage of compression, the volume decreases by an infinitesimal amount, *dV*.

In such a case we can calculate the work done on the gas by the relation

Here, *p** _{ex}* at each stage is equal to (

*p*

*+*

_{in}*dp*) in case of compression [Fig. 6.5(c)]. In an

expansion process under similar conditions, the external pressure is always less than the pressure of the system i.e., *p** _{ex}* = (

*p*

_{in}*– dp*). In general case we can write,

*p*

*= (*

_{ex}*p*

_{in}__+__

*dp*). Such processes are called reversible processes.

A process or change is said to be reversible, if a change is brought out in such a way that the process could, at any moment, be reversed by an infinitesimal change.

A reversible process proceeds infinitely slowly by a series of equilibrium states such that system and the surroundings are always in near equilibrium with each other. Processes other than reversible processes are known as irreversible processes.

In chemistry, we face problems that can be solved if we relate the work term to the internal pressure of the system. We can relate work to internal pressure of the system under reversible conditions by writing equation as follows:

Now, the pressure of the gas (*p** _{in}* which we can write as

*p*now) can be expressed in terms of its volume through gas equation. For

*n*mol of an ideal gas i.e.,

*pV*=

*n*R

*T*

**Free expansion**: Expansion of a gas in vacuum (pex = 0) is called free expansion. No work is done during free expansion of an ideal gas whether the process is reversible or irreversible.

Now, we can write equation in number of ways depending on the type of processes.