First law of thermodynamics

The first law of thermodynamics states that the change in internal energy of a system is the sum of the energy transferred to the system, due to a difference in temperature between the system and its surroundings, and the work done on the system by the surroundings.

The internal energy of a system is defined as the sum of all the energies of molecules in the system. These energies include:

  • Relativistic rest mass energies of electrons and nuclei (i.e. energies attributed to the existence of the molecules)
  • Intramolecular translational, rotational, vibrational and electronic energies
  • Intermolecular forces of interaction

is a thermodynamic property of a system. However, judging from the composition of , it is very difficult to measure  directly. An alternate representation of therefore needs to be established to characterise the internal energy of a system.

According to the theory of conservation of energy, energy can neither be created nor destroyed but can be transformed from one form to another. Energy can also be transferred between thermodynamic systems or from a system to its surroundings.

Consider a closed piston-cylinder system containing a gas (see diagram above). The internal energy of the system increases when thermal energy flows into it, or when a force is applied on the piston, compressing the gas. By the theory of conservation of energy,

where

  • is the change in internal energy of the system
  • (or heat) is the transfer of energy to the system due to a difference in temperature
  • (or work) is work done on the system by the surroundings (transfer of energy to the system not due to a difference in temperature)

Eq24 is known as the first law of thermodynamics. Instead of considering the absolute internal energy of a system when we study processes, we analyse the change in internal energy of the system, which is easily quantified by accounting for the amount of energy transferred to and from the system in the form of and (refer to the next article for quantification of ). From an earlier article, reversible work done on the system is given by . Therefore, for a system undergoing a reversible PV process, eq24 becomes

If the walls of the cylinder and piston are adiabatic, the system is isolated and . Eq24 becomes

which states that work done on an isolated system is exactly equal to the increase in the internal energy of the system.

 

Question

Describe the work-energy theorem and show that it is consistent with eq26 for work done on a monoatomic ideal gas in an adiabatic piston-cylinder system.

Answer

The work-energy theorem states that the net work done on a particle is equal to the change in the kinetic energy of the particle. This can be shown as follows:

Since the internal energy of a monoatomic ideal gas is entirely in the form of the kinetic energy of the gas, the work done on the gas in an adiabatic system is equal to the change in the internal energy of the gas.

 

Suppose the piston is now rendered immovable and the walls of the cylinder are thermally conducting, we have a closed constant volume system. Eq25 becomes

The change in internal energy of the system at constant volume can then be experimentally determined by quantifying the heat transferred to the system.

 

Previous article: Zeroth law of thermodynamics
Next article: Enthalpy
Content page of chemical thermodynamics
Content page of advanced chemistry
Main content page

Zeroth law of thermodynamics

The zeroth law of thermodynamics states that two thermodynamic systems, each in thermal equilibrium with a third, are in thermal equilibrium with each other.

Consider two systems, A and B, in contact with each other via an immovable thermally conducting boundary, achieving thermal equilibrium over time.

B is then brought in contact with a third system, C, via the same type of boundary.

If no net energy and matter transfer is observed between B and C, we can deduce that A is also in thermal equilibrium with C. When this happens, there must be at least one measurable thermodynamic property that is common among the three systems.

We call this common thermodynamic property, temperature, and the above-mentioned principle that allows us to define temperature, the zeroth law of thermodynamics. Temperature is therefore defined as the thermodynamic property that has the same magnitude in two systems that are in thermal equilibrium.

This conceptual framework has a long history. The principle that eventually became the zeroth law of thermodynamics was first mentioned in 1871 by James Maxwell, who said, “bodies whose temperatures are equal to that of the same body have themselves equal temperatures”. A modern version of the zeroth law of thermodynamics utilises the term ‘thermal equilibrium’ and states that

Two thermodynamic systems, each in thermal equilibrium with a third, are in thermal equilibrium with each other.

 

Question

Which of the three systems described above is the thermometer?

Answer

B, as it indicates that A and C have the same temperature. If B contains a substance with relatively high coefficient of thermal expansion, e.g., helium, it can be used to assess A and C at various temperatures by monitoring its volume at constant pressure. Thus, the zeroth law of thermodynamics forms the basis of thermometry.

 

Previous article: Path function
Next article: First law of thermodynamics
Content page of chemical thermodynamics
Content page of advanced chemistry
Main content page

Path function

A path function is a mathematical function that describes thermodynamic processes that are involved in a change of equilibrium states. Unlike a state function, whose output is independent of the path taken to reach it, the output of a path function is path-dependent.

An example of a path function is the work done by an ideal gas. Consider an ideal gas in a piston-cylinder device immersed in a water bath (see diagram below).

       

It is evident from the above PV diagram that there are three different paths for work done in bringing the system from one equilibrium state to another equilibrium state :

Amongst the three paths, A to B to C requires the greatest work, while A to D to C requires the least amount of work. This is because the system is expanding reversibly against a higher constant pressure throughout the process from A to B at , versus that from D to C at . The path from A to C requires intermediate work done as the system is expanding reversibly against a decreasing pressure from to . Relative work done by the three paths can be inspected visually by estimating the areas under the respective PV curves. The precise values are calculated using eq6 and eq7. Since work done has values that are dependent on the path taken from one thermodynamic state to another, it is a path function.

Lastly, the differential form of the reversible isobaric expansion of an ideal gas is

We have used the symbol to emphasise that is a path function but the symbol is also acceptable. Eq23 is called an inexact differential because its integral is not path independent. Even though work has the same units (Joules) as energy, it is misleading to say that work is a form of energy, which if it is, will be described by a thermodynamic function that is path-independent. Work is rather, a process of energy transfer between a system and its surroundings.

 

Question

Show that is an inexact differential, while is an exact differential.

Answer

Comparing the first equation to the general form of a differential equation , we have and . We need to show that for an inexact differential:

and

For , its second cross partial derivatives are and . Therefore is an exact differential.

 

Previous article: State function
Next article: zeroth law of thermodynamics
Content page of chemical thermodynamics
Content page of advanced chemistry
Main content page

State function

A state function is a mathematical function that describes the thermodynamic state of a system at equilibrium.

The ideal gas equation is a state function because it describes the state of a gas at equilibrium with a specific set of values: volume, temperature and pressure. In other words, a state function for a system at equilibrium relates one or more input thermodynamic properties to an output thermodynamic property.

Since a particular state of a system at equilibrium is characterised by a set of numbers, the output value of a state function for that state is independent on the path (i.e. process) taken to reach that value.

 

Question

Show that the output of the state function  is independent on the path taken to reach it.

Answer

The total differential of  is

The second cross partial derivatives of are

and

Eq19 refers to the path where the function V is changed with respect T at constant p, followed by a change with respect to p at constant T, whereas eq20 refers to another path where the function V is changed with respect to p at constant T, followed by a change with respect to T at constant p. If eq19 is equal to eq20, the change of V is independent of the path taken. Substituting in eq19 and eq20 gives for both equations. Therefore, the change of V is path-independent and the differential given by eq18 is called an exact differential.

 

Finally, if the output value of the function of pressure and the output value of the function of volume are path-independent, then the output value of the product of the two functions or the output value of the sum of the two functions are also path-independent.

 

Previous article: Exact and inexact differentials
Next article: Path function
Content page of chemical thermodynamics
Content page of advanced chemistry
Main content page

Exact and inexact differentials

An exact differential is a differential equation , for instance of two variables, of the form , where .

Consider the function , where is a constant. Its total differential is . Comparing with the general form of an exact differential, we have and . Since , is an exact differential. The equality of the mixed partials implies that the change in is independent of the path taken.

Conversely, an inexact differential is a differential equation of the form , where . The change in , in this case, is dependent on the path taken.

 

Question

Show that is an inexact differential.

Answer

We have  and . So, .

 

Another difference between an exact differential and an inexact differential is that an exact differential integrates directly to give the function , whereas an inexact differential does not.

Question

Using the integral criterion, show that is an exact differential, while is an inexact differential.

Answer

The integrated form of the first differential is evidently . The detailed analysis involves two steps. First, integrating with respect to , treating as a constant, yields

The function accounts for terms in involving  or constants, which differentiate to zero when differentiating with respect to . Secondly, integrating with respect to , with as a constant, gives

Comparing eq17a and eq17b, we find , where . In other words, integrates directly from .

For the second differential, integrating with respect to yields , and integrating with respect to gives . Clearly, , for all and , indicating that the second differential does not directly integrate to give a function.

 

The fact that an exact differential integrates directly to give the function but an inexact differential does not, implies that and for a differentiable function must be of the appropriate forms of  and , respectively. In other words, the total differential of a differentiable function must be an exact differential.

 

Previous article: Partial derivatives, the total differential and the multivariable chain rule
Next article: State function
Content page of chemical thermodynamics
Content page of advanced chemistry
Main content page

Partial derivatives, the total differential and the multivariable chain rule

A partial derivative of a multi-variable function is its derivative with respect to one of those variables, with the other variables held constant. For example, the partial derivatives of with respect to and are defined as

respectively, where the symbol means that the variable is held constant (the symbol may be omitted for simplicity).

If , then .

The total differential of a multi-variable function is its change with respect to the changes in all the independent variables. For example, the total differential of the function is

 

Question

How is eq14 derived?

Answer

The total change in is , which is equivalent to

Multiplying the 1st and 2nd terms on the RHS of the above equation by and the 3rd and 4th terms by ,

Taking the limits and

Since the 1st term on the RHS of the above equation is with respect to a change in , is a constant with  and

Substituting eq12 and eq13 in the above equation, we have eq14.

 

In general, the total differential of the function is

If the variables themselves depend on another variable , i.e. and , we divide eq14a throughout by to give

Since  and as , if we take the limit , we have

Eq14b is known as the multivariable chain rule, which is also known as the total derivative of .

Next, we shall derive some of useful identities. With respect to eq14, if is a constant, , which when divided throughout by  gives or

If is a constant, eq14 becomes , which when divided by gives . Using the reciprocal identity of eq15, we have

If in eq14b, we have the chain rule:

Finally, the second partial derivative of is defined as .

 

Previous article: Irreversible work
Next article: Exact and inexact differentials
Content page of chemical thermodynamics
Content page of advanced chemistry
Main content page

Irreversible work

Irreversible PV work falls under non-equilibrium thermodynamics, which is hard or sometimes impossible to calculate using simple equations. This is due to the difficulty of defining the properties of the system during the process. For example, during an irreversible expansion of a gas against a piston, the piston accelerates away from the system, resulting in regions of varying pressures in the system. To overcome this problem, broad assumptions are made to expresss irreversible PV work mathematically.

Consider the irreversible expansion of a system consisting of a gas in an isolated vertical cylinder. The frictionless piston, which is part of the surroundings, has mass and is held stationary with catches (see diagram above).

If the force exerted by the gas on the bottom surface of the piston is greater than the weight of the piston, the gas expands and pushes the piston up when the catches are removed. The piston moves over a distance , until the force exerted by the expanded gas on the bottom surface of the piston equals to the weight of the piston. This implies that the gas is expanding against a constant force , which is due to the weight of the piston.

The change in energy of the surroundings is

where is acceleration due to gravity and is the kinetic energy of the piston.

Since the initial and final  are both zero, and eq8 becomes

Noting that energy in the universe is conserved, where , and that , eq9 becomes

Since the system is isolated, there is no transfer of heat. The change in energy of the system, according to the first law of thermodynamics, is therefore the change in work done on the system:

The integral form is:

If , the gas expands freely into the vacuum. In this case, and therefore . In general, irreversible PV work against constant pressure is estimated using eq11.

         

Expansion work by a system on its surroundings is always greater when the process is carried out reversibly than irreversibly. This can be seen by plotting eq6 from the previous article and eq11 on the same PV graph (see upper diagram above), where the area under AC (reversible) is greater than the area under BC (irreversible). for the irreversible process is made equal to the final pressure at when the piston stops, similar to our piston illustration above.

Conversely, compression work by the surroundings on the system is always greater when the process is carried out irreversibly (BA) than reversibly (CA, see lower diagram above). for the irreversible process is now made equal to the final pressure at when the piston stops.

It is important to remember that the above is a crude attempt to associate an irreversible process with an equation.

 

Previous article: Reversible isochoric process
Next article: Partial derivatives, the total differential and the multivariable chain rule
Content page of chemical thermodynamics
Content page of advanced chemistry
Main content page

 

Reversible isochoric process

A reversible isochoric process is a reversible thermodynamic process that occurs at constant volume. Consider an ideal gas in a piston-cylinder device immersed in a water bath. The piston is soldered to the cylinder walls and is immovable.

       

AD and BC in the above diagram are reversible isochoric processes. According to the ideal gas law, a system undergoing a reversible isochoric process from A to D requires the ratio of to be constant as the pressure of the system decreases. This is, in practice, carried out by continuously decreasing the temperature of the water bath by infinitesimal amounts. Since , work done for a reversible isochoric process is zero (see eq5). Many chemical reactions that take place in a bomb calorimeter are carried out under isochoric conditions.

 

Previous article: Reversible isobaric process
Next article: Irreversible work
Content page of chemical thermodynamics
Content page of advanced chemistry
Main content page

 

Reversible isobaric process

A reversible isobaric process is a reversible thermodynamic process that occurs at constant pressure.

       

Specifically, a reversible isobaric process that follows the path of either A to B or D to C is a reversible isobaric expansion, while one that goes from either B to A or C to D is a reversible isobaric compression. We shall use the same setup of a piston-cylinder device immersed in a water bath as the one described in the previous article to illustrate reversible isobaric processes.

With reference to the ideal gas law, an isobaric expansion of a gas requires the ratio of to be constant as the volume of the system increases. Theoretically, for a reversible isobaric expansion to occur, the system has to be in contact with an infinite sequence of temperature baths, with one bath having a temperature that is infinitesimally higher than the next one. In practice, to achieve a result that is close to reversibility, the temperature of the water bath is continuously increased by infinitesimal amounts to maintain a temperature gradient across the cylinder walls so as to supply the system with energy for the expansion at constant pressure.

Since the pressure of the system remains constant and equals to that of the external pressure throughout the process, eq5 becomes

For a reversible isobaric compression, the temperature of the water bath is continuously decreased by infinitesimal amounts to maintain a constant pressure in the system. Many chemical reactions that involve phase changes are conducted under isobaric conditions, e.g. .

 

Question

The change in work done is sometimes represented by . How does this relate to eq6 and eq7?

Answer

The expression or by convention is the general differential equation for work. If the change in pressure is infinitesimal, , then the expression reduces to . If the process is a reversible isothermal process, we substitute the ideal gas law in to give , which is the differential form of eq6. If the process is isobaric, , and again reduces to , which is the differential form of eq7.

 

Previous article: Reversible isothermal process
Next article: Reversible isochoric process
Content page of chemical thermodynamics
Content page of advanced chemistry
Main content page

Reversible isothermal process

A reversible isothermal process is a reversible thermodynamic process that occurs at constant temperature.

       

A reversible isothermal expansion process for an ideal gas follows the path from A to C, while a reversible isothermal compression moves from C to A (see diagram above). The curve that describes an isothermal process is called an isotherm. We can express work done for a reversible isothermal process, which involves the change in pressure and volume of the system, by substituting the ideal gas law in eq5 to give:

To determine the work done on a system undergoing reversible isothermal expansion or compression, we immerse the piston-cylinder device in a constant temperature water bath. For a reversible isothermal compression, the external force balances the force exerted by the gas on the underside of the piston before the system is compressed. At the start of the compression, the external force is increased infinitesimally causing the piston to move down over an infinitesimal distance.

Consequently, infinitesimal energy is transferred via work to the system, leading to an infinitesimal increase in the kinetic energy of the gas and hence, an increase in the system’s temperature. The infinitesimal difference in temperature between the system and the water bath results in the flow of energy from the system through the thermally conducting cylinder walls to the temperature controlled water bath. Hence, constant temperature of the system is maintained throughout the process. This compression process is repeated stepwise with further infinitesimal increases in the external force until the desired final volume of the system is achieved. Work done is then calculated using eq6. If the external force is now decreased infinitesimally in a stepwise manner, we have a reversible isothermal expansion of the gas. Many chemical reactions involving the determination of rates of reactions are carried out isothermally.

 

Question

Does the temperature of the water bath increase if energy is continuously transferred from the system to the water bath in the compression process?

Answer

Theoretically, the constant temperature water bath is infinitely large. This means that transfer of energy from the system to the layer of water in the vicinity of the system (due to a temperature difference between the two) is the first of infinite steps of transfer, with the second step being the transfer of energy from the body of water in the vicinity of the system to a layer of water further away from the system and so on. In practice, the temperature of the water bath is controlled by a computer and adjusted throughout the process to maintain constant temperature for the system.

 

Previous article: Reversible work in thermodynamics
Next article: Reversible isobaric process
Content page of chemical thermodynamics
Content page of advanced chemistry
Main content page
Mono Quiz