It is now time to introduce entropy, the quantity that accounts for the fundamental asymmetry of certain macroscopic thermodynamic processes, which occur spontaneously in one direction but never in the other. Since this lesson is the most demanding of the course, we offer it in two versions, a simplified version (this one) and a full version, accessible through the buttons above. Novice readers are encouraged to work through the simplified version first.
1. Reversibility and irreversibility
1.1. Irreversibility
To illustrate this, let us return to the Joule–Gay-Lussac expansion, already introduced in Lesson 5. It is the expansion into a vacuum of a gas initially confined to a region of volume inside a vessel that is otherwise empty, rigid, and adiabatic. When the partition holding it back is removed, the gas spreads spontaneously into the rest of the vessel. A new equilibrium is established, and the gas finally occupies all the available space.

The energy balance of this process is trivial: the vacuum does no work on the gas, and the adiabatic walls forbid any heat exchange, hence , , and . This balance allows the reverse process just as well, and yet we never see the air in a room spontaneously gather in one corner. Likewise, heat flows spontaneously from hot bodies to cold ones, never the other way around.
These experiments reveal a particular, preferred direction in the thermodynamic evolution of a system, which the first law alone does not capture. To arrive at the second law of the theory, let us first ask whether the reverse process is feasible. When the reverse process is possible, the original process is called reversible; otherwise, it is called irreversible. This requires a clear understanding of what is meant by “reverse process”.
In the case of the Joule–Gay-Lussac expansion, the reverse process might be understood as returning the gas to its initial state. This is always possible: we need only compress the gas back to volume , return it to its initial temperature by placing it in contact with a suitable thermal reservoir, and finally put the partition back in place. It is crucial, however, to understand that in doing so, we have reversed the process from the system's point of view alone, and that this procedure does not constitute the reverse of the expansion for the whole “Universe”, that is, the system and its surroundings.
Indeed, to compress the gas, the surroundings must supply work to it. If the compression is isothermal, the internal energy of the ideal gas does not change, and the work supplied is entirely released as heat; see Figure 2. The gas does recover its initial state, but the surroundings have lost work and received heat in compensation: restoring the system has changed their state.

The distinction is subtle but essential. The system itself has lost the memory of having undergone the process , since it has returned to state , but the surroundings retain a trace of it. Schematically:
with . This is what characterizes an irreversible process: the system can always be restored, but the surroundings retain a trace of the original process, and any attempt to erase this trace merely shifts it to an even larger system, encompassing the system and its surroundings.
1.2. Reversible processes
The simplest way to leave no trace is to traverse the process in exactly the reverse direction. Hence the definition:
If the forward process passes through a succession of equilibrium states of the system and its surroundings, the reverse process follows the same succession in the other direction, with every exchange changing sign: it is “the film played backwards”. This is the usual definition [5,6,7]. A reversible process therefore leaves no trace: traversed in reverse, it returns both the system and its surroundings to their initial states.
1.3. Conditions for reversibility
What physical conditions allow a reversible process to be carried out? Let us first see what is not enough. Slowness is one such thing. Heat transfer can indeed be made as slow as desired by inserting a very poorly conducting wall between two bodies, but as long as their temperatures differ by a finite amount, the heat transfer remains irreversible, since the spontaneous reverse process is never observed.
Slowness is in any case too vague a criterion. Being quasi-static is more precise. By definition, it is necessary for reversibility, but it is not sufficient either. To show this, consider, for example, a gas compressed very slowly by a piston subject to friction. The gas may remain arbitrarily close to mechanical equilibrium at every instant. Yet part of the work supplied is converted into heat by friction. When the gas is subsequently returned to its initial state, this heat remains somewhere in the surroundings: the process has left a trace.
Friction is only one of many causes of irreversibility. This is why it is usually accepted that the following conditions allow a reversible process to be constructed:
- the system is required to pass through a succession of equilibrium states;
- the process must be driven by infinitesimal differences in pressure, temperature or chemical potential;
- and it must take place without friction, viscosity or hysteresis.
One then speaks of a “quasi-static process without dissipation”, where the word dissipation is to be understood in a broad sense. Once again, these conditions are conditions for realization, not the definition of reversibility. In practice, they can never be met: reversible processes are idealizations. A real process can approach them as closely as experimental devices allow, but any finite difference in pressure, temperature or chemical potential, as well as any dissipative phenomenon, produces residual irreversibility.
Conversely, the definition of reversibility imposes some of these conditions. A finite difference in temperature or pressure between the system and its surroundings fixes the direction of the exchange, which an infinitesimal change in the constraints would leave unchanged. Likewise, solid friction imposes a finite threshold that must be overcome to reverse a motion. A reversible process therefore requires these quantities to be equal up to an infinitesimal, and the absence of friction.

2. The second law
2.1. The Clausius statement
The common observation is that heat flows spontaneously from hot to cold, never the other way around. Clausius turned this observation into an operational principle: not only does the reverse never occur, but we cannot “hack nature” by inserting between hot and cold an intermediate machine whose sole effect would be to reverse the spontaneous flow of heat in this way:
The words cyclic and sole effect are essential here. What is regarded as impossible is a net flow of heat from cold to hot, all else being equal. This imposes two conditions. First, the system, that is, the intermediate machine, must return to its initial state at the end of the process: it therefore operates in a cycle. Second, the surroundings must be affected by nothing other than this transfer from cold to hot. In particular, the surroundings supply no work to the machine.
This point is essential, since a refrigerator is precisely a cyclic machine that uses work received from its surroundings to cool the cold body and heat the hot one. What the principle forbids is therefore a refrigerator that would operate without receiving external work and without any other external effect.
Kelvin proposed an equivalent formulation: it is impossible to carry out a cyclic process whose sole effect is to extract heat from a single thermal reservoir and convert it entirely into work. This is the Kelvin statement, which forbids the perfect air conditioner of the first lesson.
Historically, it is from this statement, laid down as a principle, that the existence of entropy is deduced, through a chain of reasoning that passes through heat engines and Carnot's theorems. Here we follow a more direct route, inspired by Callen's book [10]: we postulate the existence of entropy and its properties, and the Clausius statement becomes a consequence of them (Section 3.2).
2.2. The postulates of entropy
- Extensivity and additivity. Entropy is an extensive quantity, expressed in joules per kelvin (JK). The entropy of a composite system is the sum of the entropies of its parts.
- Link with heat. During an infinitesimal reversible process of a closed system receiving the heat at the absolute temperature (Lesson 2),
(1)
- Evolution. Between two equilibrium states, the entropy of an isolated system cannot decrease:
(2)
The third postulate is already enough to settle the question of reversibility. Consider an isolated system, for example the system of interest together with its surroundings. If a reversible process takes it from to , the film played backwards brings it back from to . The postulate requires on the way there and on the way back, hence . By contraposition, a process that increases entropy, , is irreversible: any return to the initial state would decrease the entropy. A single scalar state function, governed by a sign rule, thus accounts for the existence of reversible and irreversible processes. We will go into this in detail in Section 3.1.
Famous as it is, the third postulate may seem odd, since an isolated system already at equilibrium does not evolve spontaneously: nothing happens, and therefore . In fact, the statement becomes fully meaningful when the initial state is a constrained equilibrium, maintained, for example, by a partition that is removed at the initial instant, or by an adiabatic partition that is made diathermal, and so on. The system then evolves toward a new equilibrium whose entropy is greater than or equal to that of the initial state. Joule expansion into a vacuum is a classic example.
The first postulate amounts, as for energy in Lesson 4, to neglecting the interactions between the parts of the system.
The second postulate makes it possible to calculate entropy. Between two equilibrium states and joined by a reversible path, it gives
The heat is that of the chosen reversible path, not the heat exchanged during the actual process.
3. Consequences of the second law
3.1. Total entropy and reversibility
If, now, the system under study is not isolated, let us include all the bodies and devices involved in the process , so as to obtain an isolated whole once again. By additivity, the postulates then give:
If the process is reversible, . If , the process is irreversible, and no return process can restore both the system and its surroundings to their initial states.
Proof.
We thus recover the idea of a trace from Section 1.1: if the system is subsequently returned to its initial state, the surroundings cannot fully recover theirs.
Two kinds of surroundings come up constantly. When the surroundings are a thermal reservoir at temperature receiving the heat , its final state depends only on , and this heat can be supplied to it reversibly at its own temperature. The second postulate therefore gives
An ideal work source, such as a weight being raised or lowered, exchanges no heat and evolves reversibly: its entropy does not change.
3.2. The Clausius statement revisited
The Clausius statement follows from the postulates. Consider a cyclic machine that extracts heat from a cold reservoir at temperature and delivers it to a hot reservoir at temperature , without receiving work or producing any other effect. At the end of a cycle, the machine recovers its initial state and its entropy does not change. The cold reservoir receives the heat and the hot reservoir the heat . By (5), the entropy of the isolated combination formed by the machine and the two reservoirs changes by
which the second law forbids.
Spontaneous transfer from hot to cold, by contrast, has : it is allowed, and irreversible. The same reasoning applies to a cyclic machine that would extract heat from a single reservoir at temperature and convert it entirely into work: . We recover the Kelvin statement.
3.3. The maximum efficiency of engines
Like Carnot, we consider in this section two-reservoir machines, operating between two thermal reservoirs, one hot and one cold, at and respectively, with . Their operation as an engine is shown schematically in Figure 4. To compare how effectively these engines operate, let us introduce their efficiency.

Above, the second equality follows from the first law: during one cycle, the engine receives heat and from the hot and cold reservoirs, and receives work from its surroundings. We therefore have , that is, .
with equality if is reversible, and strict inequality if its operation increases the total entropy.
Proof.
that is, the Clausius inequality:
Since , it can be written , hence . Equality corresponds to , which is the case for a reversible engine (Theorem 1). If , the inequality is strict.
This result contains what are known as Carnot's theorems: all reversible two-reservoir engines operating between the same reservoirs have the same efficiency, whatever their working fluid and cycle, and no engine does better.
3.4. The entropy balance
Let us return to an arbitrary closed system, evolving between two equilibrium states and and receiving during the process the elementary heat at the external temperature . We idealize these exchanges by a continuous family of reservoirs: the reservoir at temperature receives the heat , and its entropy changes by . Together with the work source, whose entropy does not change, the whole is isolated, and the second law gives
This inequality leads us to distinguish two contributions to the entropy change of the system.
and the produced entropy is the quantity . The entropy change of the system then decomposes as
If the entropy of the system is defined at every instant, the balance takes the differential form
Inequality (9) directly gives . With these ideal surroundings, the produced entropy is moreover the total entropy produced: . For a reversible process, the temperature of the system equals up to an infinitesimal, and the second postulate gives , that is, .
Note that is the differential of a state function, whereas and depend on the process followed, hence the notation .
A common mistake is to think that the entropy of a system always increases. But the second law requires this only of an isolated system. A non-isolated system can see its entropy decrease: it suffices that it release heat to its surroundings, and that the entropy thus released exceed the entropy it produces. Symmetrically, a closed system can perfectly well see its entropy increase in a reversible process. To judge irreversibility, what counts is the total entropy change of the system and its surroundings.
4. Some examples of entropy calculations
For an actual process, inequality (9) does not allow to be calculated. Thermodynamics gets around the problem with a fundamental trick, which consists in imagining a reversible path joining the same states. Since is a state function, the integral (3) of along this fictitious path gives the entropy change sought.
Finally, entropy additivity is used to calculate the complete balance , with (5) when the surroundings are a thermal reservoir. Since the complete system is isolated, it exchanges no entropy with the outside, and the total entropy change is therefore equal to the total produced entropy. If the latter is strictly positive, the process is irreversible.
4.1. The Joule–Gay-Lussac expansion
Let us apply this method to expansion into a vacuum. The ideal gas goes from volume to volume at constant internal energy: its initial and final temperatures are therefore equal. These two states can then be joined by a reversible isothermal expansion, along which and the first law gives
and integrating along this path gives
In the actual expansion, the gas receives no heat: , and the entire entropy change is produced:
Since the vessel is rigid and isolated, the surroundings do not change state, and their entropy, a state function, does not change. We therefore have , and the expansion is irreversible (Theorem 1).
4.2. Thermal contact between two bodies
Consider two bodies and with the same heat capacity , assumed constant, for example two bodies of the same mass and made of the same material, of specific heat capacity . Their volumes are fixed and their initial temperatures are . They are brought into contact, the whole being isolated. No work is exchanged, and the first law, , gives the common final temperature
This formula is specific to the case of two equal heat capacities assumed here. More generally, is the average of and weighted by the heat capacities (see the exercise “Mixing two masses of water”). To calculate the entropy changes, let us imagine another path: the hot body is cooled and the cold body warmed up to , each in contact with a succession of thermal reservoirs at temperatures infinitely close to its own. These processes are reversible. At fixed volume, each body receives , hence
By additivity,
where the sign follows from the identity , which shows that . Thermal contact between two bodies at different temperatures is therefore irreversible, in agreement with the Clausius statement.
4.3. The entropy of an ideal gas
Consider moles of an ideal gas with molar heat capacity , assumed constant, and let us calculate its entropy change between two equilibrium states and . Along a reversible path, the gas is in internal equilibrium at every instant: its internal energy changes by , it receives the work , and the first law gives
with . Integrating between and gives
Since is a state function, this formula holds for any process between and , reversible or not. It recovers the result found for the Joule–Gay-Lussac expansion: with and , we find again.
4.4. Reversible adiabats
Along a reversible adiabatic process, the second postulate gives at every instant: the process is isentropic. In terms of the balance, the system exchanges no heat, , and produces no entropy, .
The converse is false: an isentropic process can be irreversible, since the exchanged entropy can offset the produced entropy. A resistor carrying a current and held at constant temperature by a thermal reservoir provides an example. Its state remains the same, so , whereas Joule heating produces entropy, , which the resistor releases to the reservoir along with the heat, .
For an ideal gas, with , formula (14) can also be written
A reversible adiabat of an ideal gas therefore conserves : this is Laplace's law from Lesson 5, whose derivation in fact integrated the relation , that is, .
4.5. The Carnot cycle of an ideal gas
A simple case of a reversible engine is the cycle of an ideal gas consisting of two isothermal processes joined by two adiabatic processes, and traversed reversibly throughout. It is called the ideal Carnot cycle; see Figure 5.
Let us calculate the heat exchanged. During the isothermal expansion , the internal energy of the ideal gas does not change, and the first law gives
During the isothermal compression , we similarly obtain
Let us now use the second law. On each isotherm, the temperature of the gas is constant, and the second postulate gives and . The reversible adiabats are isentropic (Section 4.4). Finally, since entropy is a state function, its change over the complete cycle is zero:
The two isotherms therefore have the same volume ratio. This purely geometric result follows here from a single line of calculation, whereas in Lesson 5 it required combining Laplace's laws for the two adiabats. We deduce
which is indeed the Carnot efficiency, as Theorem 2 announced for a reversible engine. For the details of the exchanges along each branch, see also the exercise “Carnot cycle: energy and entropy along each branch”.
5. Summary
- A process is reversible when it can be traversed in exactly the reverse direction, exchanges with the surroundings included. It requires a quasi-static evolution without dissipation, and remains an idealization.
- The second law postulates a state function, entropy, extensive and additive, such that along a reversible path, and which cannot decrease for an isolated system.
- For a system and its surroundings, , with for a reversible process. A process that increases the total entropy is irreversible.
- A thermal reservoir at temperature receiving the heat undergoes an entropy change . From this follow the Clausius statement and the Carnot bound , attained by reversible engines.
- For a closed system, , with and .
6. Going further
6.1. The statistical interpretation of irreversibility
The laws of mechanics are time-reversible: if all the particle velocities were reversed exactly at the end of an evolution, the particles would pass through the same positions in reverse order. This is micro-reversibility. The film of an evolution played backwards therefore also describes an allowed evolution. Yet the observed evolution is irreversible. How can reversible laws produce behavior that is not? This is the question posed by Loschmidt's paradox.
To answer it, let us distinguish the macrostate of a system, described by a few thermodynamic quantities, from its microstate, which describes all the microscopic details of the particles (see Lesson 4, Section “Micro- and macrostates”). The same macrostate is compatible with an immense number of microstates, indistinguishable on our scale.
This distinction provides a first element of the answer. Macroscopic operations performed on a system, such as replacing a partition or acting on the external pressure, control only a few macroscopic quantities, not the microstate itself. This is why bringing the system back to its initial macrostate does not bring back its initial microstate, and does not produce the reverse evolution. This answer nevertheless leaves open the following question: why does a system left to itself never return spontaneously to its initial state?
To address it, let us count microstates. Statistical physics postulates that the entropy of a macrostate measures the number of microstates compatible with it. This is Boltzmann's formula:
where is Boltzmann's constant, in joules per kelvin. The entropy reconstructed in this way is a quantity of the macrostate, insensitive to the actual microstate the system is in. This is referred to as coarse-graining of the description.
Let us apply this formula to the free expansion of an ideal gas. The particles are first confined to the left half of the vessel. After the partition is removed, each particle has access to twice the volume. The energy of the gas remains unchanged, so that only the volume matters: the number of positions accessible to each particle doubles, and the number of compatible microstates is multiplied by for the gas as a whole. The entropy change is
since , where is the number of moles. This is result (13) for an expansion from to .
The irreversibility of the expansion then rests on three ingredients.
The first is the coarse-graining described above. After the partition is removed, the macrostate in which the gas fills the whole vessel contains almost all the microstates, whereas the one in which it remains confined to the left contains only a fraction of them. The entropy difference between these two situations is not in itself dynamical but kinematic, and stems from this counting.
The second is the dynamics. It is not enough for the microstates in which the gas fills the whole volume of the vessel to be very numerous. The internal dynamics of the gas must also lead there almost surely. One expects that, for the vast majority of microstates compatible with the initial preparation, the gas evolves toward equilibrium, then spends most of its time there, up to fluctuations. This point is subtle, and the advanced part of the book will justify it.
The third is the initial condition. The gas was prepared in a macrostate confined by the partition, which, once the partition is removed, is a tiny minority: it comprises only a fraction of the accessible microstates. This starting point sets the direction of the evolution: the dynamics takes the gas toward macrostates of increasing entropy.
The spontaneous return of all the particles to the left half is therefore possible, contrary to what thermodynamics asserts, but highly improbable. At equilibrium, each particle has probability of being in this half. Since the particles of an ideal gas are independent, the probability that they are all there at a given instant is
For one mole of gas, and . This probability is astronomically small, and can be regarded as zero in practice. Irreversibility is therefore probabilistic in nature: evolutions in which entropy decreases exist, but they are extraordinarily improbable.
Counting alone does not, however, fully resolve Loschmidt's paradox, since it does not distinguish past from future. Consider the gas at the instant the partition has just been removed. Its macrostate depends only on the positions, and it is unchanged if all the velocities are reversed. Its microstates therefore almost all evolve toward equilibrium in both directions of time: without further information, one would predict a higher entropy in the past as well. For a gas that had always remained isolated under the same constraints, this prediction would be correct: the confined gas would result from a large fluctuation, and the entropy would pass through a minimum at that instant. For our gas, it is wrong, and what breaks the symmetry is precisely the third ingredient. Before that instant, the partition imposed other constraints, under which the confined gas was at equilibrium. The low entropy of the initial state, due to its preparation, is the cause of the temporal asymmetry. Each preparation of this kind in turn presupposes an earlier low-entropy state, and so on. In the interpretation most widely held today, the origin of the arrow of time is thus attributed to an initial condition of very low entropy of the Universe as a whole, known as the past hypothesis.
7. References
- Leonard Mlodinow and Todd A. Brun, Relation between the psychological and thermodynamic arrows of time, Physical Review E 89, 052102 (2014).
- David H. Wolpert and Jens Kipper, Memory Systems, the Epistemic Arrow of Time, and the Second Law, arXiv:2309.10927 (2023).
- Jerzy Gołosz, Does the Thermodynamic Arrow Explain the Psychological Arrow of Time?, Minds and Machines 35, 48 (2025).
- Ilya Prigogine, Time, Structure, and Fluctuations, Nobel Lecture, 8 December 1977; published in Science 201, 777–785 (1978). See p. 778, Entropy Production.
- Y. A. Çengel and M. A. Boles, Thermodynamics: An Engineering Approach, 8th ed., McGraw-Hill (2015), chap. 6, Reversible and Irreversible Processes.
- P. Atkins and J. de Paula, Atkins' Physical Chemistry, 9th ed., Oxford University Press (2010), chap. 2, The First Law.
- Wikipedia, Reversible process (thermodynamics), English edition, accessed November 2026.
- Z. S. Spakovszky, Thermodynamics and Propulsion, 16.Unified Engineering course notes, MIT, sec. 5.2.5, Reversible Processes.
- E. H. Lieb and J. Yngvason, The Physics and Mathematics of the Second Law of Thermodynamics, Physics Reports 310, 1–96 (1999).
- H. B. Callen, Thermodynamics and an Introduction to Thermostatistics, 2nd ed., Wiley (1985)
