The first law

In this chapter we will introduce the relation between work and energy and the concept of heat via the first law of thermodynamics. Let us consider a system in one particular state 1, characterised by specific values of $V, P$ and $T$. We can change the state of the system, say to state 2, by performing work on it, for example by passing an electrical current (Fig. [*], right) or, it if is a fluid, by stirring it (Fig. [*], left). Experimental evidence tells us that if the system is thermally isolated from its surroundings, the amount of work to change the state of the system from 1 to 2 is always the same, regardless of the type of work. An alternative point of view is to say that the system is thermally isolated if the above condition is satisfied. We can therefore define a function of state variable $E$ which only depends on the state of the system and not on how that state has been reached, and the change of $E$ as the system goes from state 1 to state 2 is equal to work done on the system. This is expressed by:

$\displaystyle % requires amsmath; align* for no eq. number
\Delta E = E_2 - E_1 = W,$ (2.1)

where $E_1$ and $E_2$ are the energies of the system in state 1 and 2, respectively, and $W$ is the amount of work performed on the system. A change of this type is called adiabatic. Note that in principle work done on the system may change its state of motion, for example a fluid may be set in circular motion by a stirring paddle, or change its potential energy by changing its position in a gravitational field. These changes are accounted for by the laws of mechanics and are not of interest here. Our discussion will therefore be restricted to cases in which the only energy change is internal, or in other words the quantity $W$ in [*] does not include a possible term that changes the overall mechanical energy of the system. For example, in the Joule experiment one usually uses more than one set of paddles, moving in opposite directions, so that they do not cause any macroscopic movement in the fluid and all the work done on the fluid increases its internal energy.

An other example of work is that of compression, which relates the pressure to the change of internal energy due to the change of volume. In the previous chapter we defined the pressure acting on a fluid confined in a box by a movable piston of area $A$ as $P = F/A$, where $F$ is the force exerted on the piston. If the piston position is lowered by an amount $dx$, then the work done on the system is $W = -P A dx = -P dV$ and the minus sign is there because we have defined as positive work done on the system, which involves a decrease of volume. If the system is isolated from the environment we have $dE = - P dV$, which we write as

$\displaystyle % requires amsmath; align* for no eq. number
P = - \frac{dE}{dV} = -\left (\frac{\partial E}{\partial V}\right )_{adiabatic},$ (2.2)

with the suffix $adiabatic$ indicating that there is no heat transfer in the process2.1

Figure: Conversion of mechanical (left) and electric (right) work to heat.
Image joule Image electric

We can now imagine to obtain the same change from 1 to 2, but this time without keeping the system thermally isolated. In this case the work is not, in general, equal to the change of internal energy $\Delta E$ and we define the deficit

$\displaystyle % requires amsmath; align* for no eq. number
Q = \Delta E - W$ (2.3)

as the heat supplied to the system. A positive $Q$ increases $\Delta E$ over the increase caused by $W$. Eq. [*] is the first law of thermodynamics, which basically expresses conservation of energy and establishes the equivalence between work and heat as two forms of energy flow. From the above discussion it is clear that the same energy change $\Delta E$ can be obtained in different ways, i.e. with different combinations of $Q$ and $W$, depending on the experimental conditions. Therefore, although we can identify a state of the system with its internal energy ($E_1$ or $E_2$ in the above examples), it is not possible to assign equivalent values for heat of the system or work of the system. The relation [*] can be written for infinitesimal changes 2.2 and takes the form:

$\displaystyle % requires amsmath; align* for no eq. number
{\mathchar'26\mkern-12mu d}Q = d E - {\mathchar'26\mkern-12mu d}W,$ (2.4)

were we have used the notation ${\mathchar'26\mkern-12mu d}$ to indicate that these are differentials of non-conserved quantities (inexact differentials). The sum ${\mathchar'26\mkern-12mu d}Q + {\mathchar'26\mkern-12mu d}W$ is of course an exact differential, as it is equal to $dE$.

As we mentioned above, the work $W$ can be performed in a variety of ways, but without loss of generality we will mostly restrict ourselves to work performed on a fluid by changing its volume, so that we have in differential form:

$\displaystyle {\mathchar'26\mkern-12mu d}W = - PdV.$ (2.5)

A natural question at this point is what is the pressure $P$ in Eq. [*], as in order to produce a change of volume there must be an imbalance between the internal and the external pressure. If the imbalance is large (i.e. not infinitesimal) there are other issues that come into play, such as the speed of the movement of the physical parameters that cause the change and how these affect the pressure distribution in the fluid. For this sort of situation we should presumably write:

$\displaystyle {\mathchar'26\mkern-12mu d}W > - PdV,$ (2.6)

because the work performed on the system is ${\mathchar'26\mkern-12mu d}W = - P_{ext}dV$ and if the external pressure $P_{ext}$ is larger than the internal one $P$ to cause a compression then $-P_{ext}dV > -P dV$. Similarly, if there is an expansion we have $P_{ext} < P$ which also implies $-P_{ext}dV > -P dV$. However, note that in such a change the internal pressure would not be uniform, and so it is not entirely clear what is the meaning of $P$ in Eq. [*]. For this reason a change of the type expressed by Eq. [*] is often referred to as irreversible: it cannot be broken down into a series of steps, each of which with well defined values of macroscopic variables such as pressure, volume or temperature, and as such it cannot be discussed within the framework of equilibrium thermodynamics.

For the most part, we shall deal with reversible changes, i.e. changes for which the system remains in a state of equilibrium during the change, so that its pressure $P$ is well defined and the difference in internal and external pressures is infinitesimal. In this case Eq. [*] applies. However, we will also discuss an exception: the free expansion of a perfect gas. This will help us to understand how an irreversible (non equilibrium) transformation can be related to a reversible one.

We mentioned earlier that heat transfer is only possible between two systems that are at different temperature. This is therefore another example of a non equilibrium situation, which would involve non-equilibrium thermodynamics to be described properly. We can imagine, however, that the temperature difference between the two bodies is infinitesimal and so the transfer of heat happens during an infinitely long time with the two systems being, effectively, in equilibrium. In practice one would obtain this situation by realising small temperature differences and allowing the two systems to come in thermal equilibrium before changing the temperature again. If the temperature steps are small enough one can realise a situation of quasi-equilibrium for which the laws of equilibrium thermodynamics are a close approximation. In such a situation, the amount of heat transfer is proportional to the (infinitesimal) temperature difference $dT$, with the constant of proportionality depending on the size and the physical properties of the body. This constant of proportionality is called heat capacity of the body and we write:

$\displaystyle {\mathchar'26\mkern-12mu d}Q = C dT.$ (2.7)

We know from the first law that heat can be transferred while work is simultaneously performed. If we consider the case in which the only work performed on the system is of the type $-P dV$, and we restrict ourselves to the case in which the volume is kept constant $dV = 0$ (and so no work is performed), then we have:

$\displaystyle {\mathchar'26\mkern-12mu d}Q = d E = C_V dT ,$ (2.8)

which defines the constant volume heat capacity:

$\displaystyle C_V = \left ( \frac{\partial E}{\partial T} \right )_V.$ (2.9)

Alternatively, we may want to keep the pressure constant (which is easier in an experimental situation) and after expressing:

$\displaystyle dV = \left ( \frac{\partial V}{\partial T} \right )_P dT + \left ( \frac{\partial V}{\partial P} \right )_T dP,$ (2.10)

and

$\displaystyle dE = \left ( \frac{\partial E}{\partial T} \right )_P dT + \left ( \frac{\partial E}{\partial P} \right )_T dP,$ (2.11)

we have:

$\displaystyle {\mathchar'26\mkern-12mu d}Q = dE + PdV = \left [\left ( \frac{\p...
...} \right )_P + P \left ( \frac{\partial V}{\partial T} \right )_P \right ] dT +$    
$\displaystyle \left [\left ( \frac{\partial E}{\partial P} \right )_T + P \left ( \frac{\partial V}{\partial P} \right )_T \right ] dP,$ (2.12)

which gives:

$\displaystyle C_P =\left ( \frac{\partial E}{\partial T} \right )_P + P \left ( \frac{\partial V}{\partial T} \right )_P.$ (2.13)

An equivalent form is obtained by expressing

$\displaystyle dE = \left ( \frac{\partial E}{\partial T} \right )_V dT + \left ( \frac{\partial E}{\partial V} \right )_T dV,$ (2.14)

which together with Eq. [*] gives:

$\displaystyle {\mathchar'26\mkern-12mu d}Q = \left \{\left ( \frac{\partial E}{...
..._T + P \right ] \left ( \frac{\partial V}{\partial T} \right )_P \right \} dT +$    
$\displaystyle \left [\left ( \frac{\partial E}{\partial V} \right )_T \left ( \...
... P} \right )_T + P \left ( \frac{\partial V}{\partial P} \right )_T \right ] dP$ (2.15)

and therefore:

$\displaystyle C_P = \left ( \frac{\partial E}{\partial T} \right )_V + \left [ ...
...ial V} \right )_T + P \right ] \left ( \frac{\partial V}{\partial T} \right )_P$ (2.16)

and using Eq. [*] we also obtain:

$\displaystyle C_P - C_V = \left [ \left( \frac{\partial E}{\partial V} \right )_T + P \right ] \left ( \frac{\partial V}{\partial T} \right )_P.$ (2.17)

This quantity can be calculated analytically for a perfect gas. For this system the internal energy only depends on temperature, $E = E(T)$, as the particles are assumed not interact amongst themselves and so their distance cannot matter. We therefore have, for a mole of gas:

$\displaystyle C_P - C_{\mathcal{V}} = P \left ( \frac{\partial \mathcal{V}}{\partial T} \right )_P = R.$ (2.18)