Next Article in Journal
Autoencoder-Enhanced Hierarchical Mondrian Anonymization via Latent Representations
Previous Article in Journal
The Pattern Dynamics of Propagation Models in Complex Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Universal Foundations of Thermodynamics: Entropy and Energy Beyond Equilibrium and Without Extensivity

by
Gian Paolo Beretta
Department of Mechanical and Industrial Engineering, University of Brescia, 25123 Brescia, Italy
Entropy 2026, 28(4), 371; https://doi.org/10.3390/e28040371
Submission received: 9 February 2026 / Revised: 4 March 2026 / Accepted: 17 March 2026 / Published: 25 March 2026
(This article belongs to the Section Non-equilibrium Phenomena)

Abstract

Thermodynamics is commonly presented as a theory of macroscopic systems in stable equilibrium, built upon assumptions of extensivity and scaling with system size. In this paper, we present a universal formulation of the elementary foundations of thermodynamics, in which entropy and energy are defined and employed beyond equilibrium and without assuming extensivity. The formulation applies to all systems—large and small, with many or few particles—and to all states, whether equilibrium or nonequilibrium, by relying on carefully stated operational definitions and existence principles rather than macroscopic idealizations. Key thermodynamic concepts, including adiabatic availability and available energy, are developed and illustrated using the energy–entropy diagram representation of nonequilibrium states, which provides geometric insight into irreversibility and the limits of work extraction for systems of any size. A substantial part of the paper is devoted to the analysis of entropy transfer in non-work interactions, leading to precise definitions of heat interactions and heat-and-diffusion interactions of central importance in mesoscopic continuum theories of nonequilibrium behavior in simple and complex solids and fluids. As a direct consequence of this analysis, Clausius inequalities and the Clausius statement of the second law are derived in forms explicitly extended to nonequilibrium processes. The resulting framework presents thermodynamics as a universal theory whose concepts apply uniformly to all systems, large and small, and provides a coherent foundation for both teaching and modern applications.

Graphical Abstract

1. Introduction

Thermodynamics is one of the most mature and successful theories in physical science. Its principles govern phenomena across an extraordinary range of systems and scales, from macroscopic energy conversion devices and chemical reactors to multicomponent transport, biological processes, and, increasingly, nanoscale and quantum technologies. Yet, despite more than two centuries of development and application, the elementary foundations of thermodynamics continue to invite scrutiny, reinterpretation, and reformulation.
This sustained foundational activity is not accidental. Classical thermodynamics was historically shaped to describe macroscopic systems in stable equilibrium, guided by phenomenological observations and practical engineering needs [1,2,3,4]. As a result, many traditional formulations incorporate, often implicitly, assumptions of extensivity and scale separation that are valid only for systems with many particles. While these assumptions are extraordinarily effective in their domain of applicability, they are not intrinsic to thermodynamics itself and become increasingly restrictive as the theory is extended to nonequilibrium phenomena, multicomponent systems, and systems of arbitrary size.
Among the fundamental concepts of thermodynamics, entropy occupies a uniquely central position. It appears as a property of state, a criterion of equilibrium, a measure of irreversibility, and a generator of transport laws and variational principles. At the same time, its definition, operational meaning, and domain of validity are often taken for granted—particularly outside the realm of stable equilibrium. As a consequence, entropy is frequently invoked with different meanings in different contexts, sometimes without explicit acknowledgment of the modeling assumptions involved.
The present paper provides a modern exposition of the elementary foundations of thermodynamics, with particular emphasis on the definition and role of entropy for nonequilibrium states. The objective is not to replace existing formulations, but to clarify their logical structure, identify minimal assumptions, and articulate a coherent conceptual framework in which all thermodynamic concepts apply uniformly to systems of arbitrary size, particle number, and degree of disequilibrium, without reliance on extensivity or macroscopic idealizations.
  • Conceptual motivations and historical background
In many traditional expositions, thermodynamics is introduced through the distinction between heat and work, often motivated by mechanical analogies or heuristic pictures of microscopic motion. Classic examples include the description of heat as energy associated with random molecular motion [5,6] or as that part of an energy change not attributable to work [7]. While intuitively appealing, such descriptions conceal fundamental conceptual difficulties.
First, neither heat nor work is a property stored in a system; each is a mode of energy transfer between systems. Second, and more fundamentally, the very distinction between heat and work cannot be justified within mechanics alone. As emphasized by Hatsopoulos and Keenan [8], without the second law of thermodynamics and the existence of entropy as a property of matter, heat and work would be indistinguishable. Any formulation that treats heat as a primitive concept therefore encounters logical circularities when entropy is later defined in terms of heat and temperature.
Several refinements of the traditional approach have been proposed. Heat has been defined as energy transfer driven by a temperature difference [9], or as that part of an energy exchange not accounted for by mechanical work [10]. These definitions are operationally effective in restricted settings, but they implicitly assume the existence of subsystems in stable equilibrium at the interfaces between interacting systems. As a result, they restrict the domain of validity of entropy from the outset, effectively confining it to equilibrium or local-equilibrium states.
This limitation becomes particularly problematic when thermodynamics is applied to nonequilibrium processes, multicomponent transport, or systems that depart significantly from macroscopic idealizations. In such contexts, the initial intuitive appeal of heat-based definitions gives way to ambiguity, and thermodynamics is sometimes perceived—incorrectly—as intrinsically vague or logically inconsistent.
  • Entropy as a fundamental property
An alternative route to the foundations of thermodynamics has been developed over several decades within the Keenan–Hatsopoulos tradition and further elaborated by Gyftopoulos, Beretta, and collaborators [8,11,12,13]. In this approach, thermodynamics is formulated as an autonomous physical theory, complementary to mechanics, based on carefully worded operational definitions of all the basic concepts, starting from system, state, property, and process.
Within this framework, energy is introduced as a consequence of the first law expressed as a postulate asserting the adiabatic interconnectability of all pair of states with fixed composition and constraints. From this postulate follows the principle of energy conservation and the additivity of energy. Entropy is introduced independently of heat, empirical temperature, and calorimetric constructions. The second law is expressed as a postulate asserting that any given state of a system with fixed composition and constraints and an admissible value of the energy can be adiabatically and reversibly interconnected to a stable equilibrium state. From this postulate follow, as consequences rather than assumptions, the principle of entropy nondecrease and the additivity of entropy.
A central conceptual shift inherent in this formulation is that entropy is a property of all states, not merely of stable equilibrium states. Stable equilibrium states are not the foundation of thermodynamics, but rather a distinguished subset of states characterized by extremal properties. Only for such states does entropy admit a fundamental equation whose derivatives define potentials such as temperature, pressure, and chemical potentials. Nonequilibrium states, by contrast, possess well-defined entropy values but no associated potentials—a distinction essential for both logical clarity and physical interpretation.
This perspective aligns with, while remaining distinct from, other axiomatic developments, including Carathéodory’s formulation [14] and the order-theoretic approach of Lieb and Yngvason [15,16,17,18]. Across these approaches, a common insight emerges: entropy must be defined independently of heat if thermodynamics is to achieve full logical coherence and generality.
  • Structure of the present exposition
The first part of this paper is devoted to the careful formulation of operational definitions and fundamental postulates. These definitions are deliberately chosen so as not to rely on extensivity, macroscopic homogeneity, or large-system limits, and are therefore applicable without modification to systems with few particles as well as to macroscopic systems.
Building on this foundation, several key thermodynamic concepts—most notably adiabatic availability and available energy—are developed and illustrated using the energy–entropy diagram representation of nonequilibrium states introduced by our school of thermodynamics. This geometric representation treats equilibrium and nonequilibrium states on equal footing and provides direct insight into irreversibility, dissipation, and the limits of work extraction, independently of system size.
A substantial portion of the latter part of the paper is devoted to the analysis of entropy transfer in non-work interactions. This analysis leads to precise operational definitions of heat interactions and of more general heat-and-diffusion interactions, concepts that are essential for mesoscopic continuum theories of nonequilibrium behavior in simple and complex solids and fluids, including systems with internal structure and nonlocal effects. The formulation emphasizes entropy balance relations that remain valid beyond equilibrium and beyond macroscopic idealizations.
An important byproduct of this analysis is the derivation of Clausius inequalities and of the Clausius statement of the second law in forms explicitly extended to nonequilibrium processes.
  • Nonequilibrium states, small systems, and nanothermodynamics
A central point emphasized throughout this paper is not merely the applicability of thermodynamic concepts to small systems, but their universality: all concepts defined and employed here apply to all systems, independently of size, particle number, or degree of extensivity. No assumption of extensiveness is made at the foundational level. Properties such as entropy and energy are defined operationally for individual systems in individual states, rather than inferred from scaling arguments or ensemble limits. We purposely avoid to discuss here any instance or assumption of extensivity, because extensivity is not a prerequisite for thermodynamic reasoning, but a contingent feature of certain classes of systems and states that, using the terminology introduced in [11] (Ch. 16), can be modeled under the “simple-system model” approximation, also known as macroscopic limit. This emphasis is increasingly relevant in the context of what is often termed nanothermodynamics [19,20,21,22,23], where traditional macroscopic idealizations may fail, yet many thermodynamic results remain valid and indispensable.
The approach adopted here does not rely on statistical ensembles or fluctuation arguments. Instead, it emphasizes operational definitions and existence principles that hold for systems of arbitrary size, provided the states under consideration are appropriately defined (for example, as separable and uncorrelated). In this sense, the present treatment clarifies the thermodynamic content that underlies—and constrains—statistical and microscopic descriptions, rather than replacing them, as illustrated in the last part of the paper (from Section 51 on).
This perspective also provides a coherent conceptual foundation for near-equilibrium theories, such as Onsager’s reciprocal relations and entropy production principles, as well as for ongoing efforts to extend thermodynamics to far-from-equilibrium phenomena.
  • Role of thermal reservoirs
Unlike some earlier developments—including our own work aimed at eliminating the notion of thermal reservoirs from the operational definition of entropy [24]—the present exposition does make explicit use of the concept of a thermal reservoir, carefully defined and employed within a clearly delimited scope.
This choice is motivated by considerations of simplicity, transparency, and pedagogical effectiveness. When rigorously defined, thermal reservoirs provide an efficient operational tool for relating entropy changes to measurable energy exchanges in a broad class of processes. Their use in this paper represents a deliberate modeling choice rather than a claim of fundamental necessity, and its assumptions and limitations are made explicit throughout.
  • Relation to teaching and applications
This paper also serves an explicitly pedagogical purpose. It is intended as a written companion to a graduate-level course on advanced thermodynamics developed over many years and recently made available through MIT OpenCourseWare [25]. That course emphasizes precise thermodynamic language, explicit modeling assumptions, and a logically coherent progression from elementary definitions to advanced nonequilibrium and small-systems applications.
Accordingly, the exposition is structured so that subsets of the material can support instruction at different levels, while remaining fully consistent with applications in energy systems, environmental and climate engineering, separation processes, and coupled energy–mass–charge transport phenomena.
  • Perspective and scope
The guiding philosophy of this work is that many of the conceptual difficulties traditionally associated with thermodynamics are not intrinsic to the theory itself, but stem from historical choices in the order and manner in which its basic concepts are introduced. By revisiting these foundations with explicit attention to logical structure, operational meaning, and domain of validity, thermodynamics emerges as a coherent and universal physical theory—applicable without qualification to equilibrium and nonequilibrium states, to macroscopic and few-particle systems alike.
By formulating thermodynamics without assuming extensivity and by treating nonequilibrium states on the same conceptual footing as equilibrium states, the present work aims to clarify what is essential, what is contingent, and what is universal in the foundations of the theory.
  • Proofs are omitted
In this paper, several results are stated without explicit proofs. Unless otherwise indicated, complete proofs are available in Ref. [11]. Expressions such as it follows that… or it can be proved that… are used, without explicitly presenting the proof is a deliberate expedient intended to streamline the exposition, allowing emphasis on the structure of the arguments, the precise formulation of the concepts involved, and their range of applicability. The same choice has also proven effective in instructional settings, where it facilitates concentration on the essential conceptual content.
The logical rigor of the presentation rests on the existence of complete and detailed proofs supporting each assertion. Their availability ensures that the foundational framework employed here is sound, unambiguous, and applicable whenever the stated modeling assumptions and definitions are satisfied.

2. What Is Thermodynamics?

Thermodynamics has survived all major scientific revolutions and advances in physics, chemistry, and engineering. Far from being an obsolete discipline, it has experienced a renewed centrality in recent decades, driven in particular by the study of nonequilibrium phenomena and systems with few degrees of freedom. This resurgence stands in contrast with a period, not so long ago, during which thermodynamics was sometimes regarded as a closed or exhausted subject. Yet, despite its longevity and pervasive influence, a precise and universally accepted answer to the seemingly simple question—what is thermodynamics about?—remains surprisingly elusive. Even experts in the field often hold distinct, and evolving, personal definitions, and may find it difficult to articulate them unambiguously or to reconcile them with alternative viewpoints.
Nonetheless, it is useful to attempt a clear statement of perspective. From the present point of view, applied thermodynamics may be regarded as the art of modeling the kinematics and dynamics of physical systems by selecting an appropriate level of description for a given application of interest, and by enforcing the general principles, rules, and constraints that such models must satisfy in order to provide a faithful representation of physical reality. The application of interest may arise in engineering, chemistry, physics, biology, or cosmology; the same logical structure can, in principle, be extended to other domains—such as economics or social systems—whenever a well-defined “plane of perceptions” in the sense of Margenau [26] can be identified.
Foundational thermodynamics, by contrast, is concerned with the inverse problem: the extraction, distillation, and identification of the most general and unifying principles from the successes and failures of diverse modeling efforts aimed at rationalizing experimental observations. Its objective is not the construction of specific models, but the clarification of the structural constraints (such as the great conservation principles [27]) that any admissible model of physical systems must satisfy, independently of scale, composition, or degree of disequilibrium.
In this sense, thermodynamics may be described as the science that studies the instantaneous condition of material systems and the evolution in time of such conditions, whether the evolution occurs spontaneously or as a result of interactions with other systems. Viewed from this perspective, thermodynamics constitutes a genuine extension—indeed, a generalization—of mechanics. The meaning and implications of this statement will become progressively clearer as the exposition unfolds, and will eventually acquire a direct geometric interpretation through the energy–entropy diagram representation introduced in Section 33 and thereafter.
Given the breadth and generality of its scope, thermodynamics requires the unequivocal definition of a number of basic concepts upon which the theory is founded. Some of these concepts are inherited from mechanics and will be assumed known. Others—such as system, property, state, process, equilibrium, stable equilibrium, energy, entropy, temperature, and pressure—must be defined with particular care. In the present work, following [11], these concepts are redefined not only to eliminate ambiguity, but also to extend their validity and operational meaning beyond the traditional confines of macroscopic, extensive systems and stable equilibrium.

3. The Loaded Meaning of the Word “System”

Matter is composed of particles, either free or bound together to form nuclei, atoms, molecules, ions, and other structures, as well as the electromagnetic field. Depending on the phenomenon to be described, it is appropriate to identify a model of reality that is as simple as possible, which limits itself to a level of simplified description that completely ignores aspects (of subatomic or submolecular structure, nuclear reactions, chemical reactions, radioactive decay, etc.) that, although potentially active in principle, have negligible effects on the study of the phenomenon of interest.
For example, if the effects of chemical reactions are not relevant, we can study the properties of water by assuming that the H 2 O molecules are indivisible, or the properties of oxygen by assuming that the O 2 molecules are indivisible. The choice of the appropriate level of description and of the “indivisible constituents” are the first steps in defining what we call a “system.” However, in thermodynamics, in order to talk about a system, a precise condition regarding the forces acting on these indivisible constituents must also be satisfied. The condition is that none of the forces acting on the set of constituents of interest depends on the coordinates of other constituents external to the object of study and that none of the outcomes of measurements performed on the set of constituents of interest should be statistically correlated to the outcomes of measurements performed on external constituents. However, these forces can depend on geometric parameters (such as the shape of a container limiting the available space) or on fields generated by “static” sets of external constituents or control devices.
A “system” is, therefore, a set of constituents that is “separable” and “uncorrelated” from “external” constituents, defined by the following specifications: (a) the type or types of “constituents”, for example, water molecules, or a mixture of oxygen molecules and nitrogen molecules; (b) the “parameters” that characterize all external forces, i.e., constraints and forces exerted from the outside on the constituents, for example, specifications describing the geometric shape of a sealed container or the volume of the container itself, or an electric, magnetic, or gravitational field; (c) the nature of the “internal forces” between the constituents that are to be considered in the model, such as intermolecular forces or the condition that some or all chemical reactions within the system are inhibited; and (d) the nature of any “internal constraints” that characterize the interconnections between separate parts and define the internal structure of the model, such as a fixed or mobile wall that divides the volume available to the constituents into two partitions. Again, “external” constituents are those not included in the set under examination; “separable” refers to the condition that none of the external forces depends on the coordinates of external constituents; “uncorrelated” refers to the condition that no measurement done on the constituents of interest is statistically dependent on measurements done on external constituents. Anything external to the system and therefore excluded from it is called the “system’s environment” or simply the “environment.” In principle, the environment should represent a model of the “rest of the universe”; in practice, however, it is sufficient to adopt a simplified model that includes only those external constituents that effectively constrain and interact with the system’s constituents over the time interval of interest.
For a system consisting of r different types of constituents, we indicate their amounts using the variables n 1 , n 2 , , n r where n i stands for the number of units (molecules, atoms, or particles) of the i-th constituent.1
The unit of measurement in the International System for the amount of a constituent is the “mole,” indicated by the symbol “mol” (sometimes also called the “gram-mole” and indicated by the symbol “gmol”), defined as the number of units (molecules, atoms, or particles) equal to Avogadro’s number, N Av = 6.02214076 × 10 23 , and thus 1 mol (= 1 gmol) = N Av particles. Of course, the International System prefixes for multiples are applicable. For example, for the kilomole, 1 kmol = 10 3 mol.
The ratio M i between the mass m i and the amount n i of the i-th constituent, M i = m i / n i , is called the “molecular (or atomic) mass,” and is normally expressed in g/mol or kg/kmol.
Internal forces can be of various types. For example, a system that is typically studied in detail in introductory engineering courses consists only of H 2 O molecules subject only to intermolecular internal forces and external forces that confine them to a region of space with volume V. Another standard example of a system consists of three species, H 2 , O 2 , and H 2 O , subject, in addition to the intermolecular forces between all three types of molecules, to internal forces that control the chemical reaction mechanism H 2 + 1 2 O 2 = H 2 O .
For a system with constraints and external forces dependent on s parameters, we indicate the parameters with the symbols β 1 , β 2 , , β s .2 For example, the parameters can be the sides 1 , 2 , 3 , and the volume V = 1 2 3 of a parallelepiped-shaped region enclosed by walls (understood as impenetrable barriers) of a container that separates the constituents of the system from others that are external and therefore do not belong to it.
Other parameters can be provided by external force fields, such as the gravitational field G e , electric field E e , and magnetic field H e generated by stationary distributions of mass density ρ , charge density ρ e , and current density j outside the region of space occupied by the constituents of the system. Here, G e , E e , and H e represent the values of the fields that these distributions ρ , ρ e , j would generate in the region of space of the system in the absence of its constituents, with the understanding that outside this region, the distributions of electric and magnetic dipole or multipole moments are zero.
The principles we state in this paper and the results that follow are valid for both “macroscopic systems,” composed of large amounts of constituents (such as 1 kg of H 2 O or an entire thermal power plant), and “microscopic systems,” composed of small amounts of constituents (such as a single molecule of H 2 or a structureless point particle confined in a box). It is important to note that this observation is rarely acknowledged in thermodynamics textbooks, which immediately restrict their treatment to the simple-system model, in our opinion missing the opportunity to expose the universal aspects of thermodynamic theory and clarify its relations with mechanics.
It is worth noting that the given definition of a system, which generally coincides with the one adopted (although often only implicitly) in physics, is made rather restrictive by the conditions of statistical independence of measurement results and independence of external forces from coordinates of external objects. Therefore, not always does a material object or, better, a model of a material object constitute a well-defined system.
In particular, separability requires that the forces acting on the system’s constituents must all be either internal or external. For example, an electron can constitute a system if it is free or if it is immersed in an external electrostatic field but not if it is subject to interaction with other electrons in the bonding of a molecule or with the nucleus of an atom. The restriction is significant, and it will be well to keep it in mind because the principles we will state and the results that follow are only valid for well-defined systems, defined in the manner just described.3
In the case of constituents immersed in a gravitational field G e , electric field E e , or magnetic field H e , the independence of external forces from the coordinates of external objects, necessary for the system to be well-defined, is guaranteed only if these fields are generated by stationary distributions, i.e., time-invariant ones, of mass density ρ , charge density ρ e , and current density j that generate them, and if outside the volume of the system, the electric and magnetic dipole or multipole moments are zero.

4. The Loaded Meaning of the Word “Property”

The experimental method involves studying the behavior of a system subjected to “measurement procedures.” Each measurement procedure is associated with a “physical observable” representing the system’s response to the procedure. Each procedure leads to the determination of a result, generally expressible in numerical terms: the “value of the physical observable.”
An important subclass of physical observables is properties. A “property” P is defined by a measurement procedure that, when applied to a system at time t, provides a numerical result P ( t ) , the value of the property at that instant, which must be independent of details of the measurement devices, other systems in the environment, and instants of time different from t.
This definition is quite restrictive, and there are numerous examples of measurement procedures that do not satisfy it and therefore, while defining physical observables, do not define properties. For example, the distance traveled by a particular molecule in a given finite interval of time divided by the interval itself is not a property because the measurement procedure for its value necessarily depends on the results of two position measurements at different times. However, if the time interval is made to tend to zero, then the limit value depends only on the initial time, and the procedure defines a property well known in mechanics: velocity. Examples of procedures that satisfy the definition of a property just given are well-known measurement procedures in mechanics that define instantaneous position, instantaneous velocity, and instantaneous acceleration of a particular molecule of a constituent.
The procedure for counting the number of particles, atoms, or molecules of the i-th type present in the system at time t, defining the amount n i , satisfies the definition of a property and provides the value n i ( t ) . The same applies to the measurement procedure for the volume available to the constituents of the system at time t, defining the parameter V of external forces, which satisfies the definition of a property and provides the value V ( t ) . The same holds for the other parameters of external forces.

5. What Exactly Do We Mean by “State” of a System?

To completely characterize a system at a given instant of time t, one must specify how it responds to all possible measurement procedures it can undergo. Therefore, in particular, it is necessary to specify the values of all amounts of constituents, all parameters of external forces, and all other properties. This set of values, which is generally an infinite list of numbers, defines the “state” of the system at that instant,
A ( t ) = { n 1 ( t ) , , n r ( t ) , β 1 ( t ) , , β s ( t ) , P 1 ( t ) , P 2 ( t ) , } ,
where A ( t ) denotes the state of system A at time t, and P 1 ( t ) , P 2 ( t ) , … represent the values at time t of various properties. To say that the state of the system is known means that the values of all properties, amounts, and parameters are known.4
The definition of a state does not impose any restrictions on the number of properties that contribute to defining it. In general, this number is infinite even for the most elementary systems. For example, for a single material point confined to a given region of space, it is known from quantum mechanics that at least one property is defined for each geometric point in the space available: the probability that the material point is in that position following a position measurement. This infinite set of numerical values (one per point), which contributes to defining the state, can be represented, for a particular subclass of states, by the so-called “wave function.”
The fact that the list of values defining the state of a system at a given instant of time is infinite means that a given system admits a vast multitude of possible states. Two identical systems are in two different states if the values of at least one property are different for the two systems: the two infinite lists of values defining the states of the two identical systems differ in at least one of the corresponding values.
This great variety of states is rarely mentioned in thermodynamics textbooks, which immediately restrict their treatment to stable equilibrium states, thereby also missing the opportunity to clarify the relations between mechanics and thermodynamics and to extend the treatment to nonequilibrium states, which are by far the most numerous and also the most interesting in terms of applications, as we will see.
  • Representations of states across nonequilibrium thermodynamic frameworks
As noted in the Introduction, the profound significance of the laws of thermodynamics lies in their universal applicability across any level or framework of description chosen to model empirical reality. This holds provided the model possesses a fundamental mathematical structure and satisfies certain reasonable conditions—ensuring, for instance, that concepts like separability and statistical independence between the system and its surroundings are precisely defined.
Throughout two centuries of thermodynamic history, numerous frameworks have successfully modeled nonequilibrium phenomena. While these approaches vary significantly in their choice of independent properties defining the state space (in the sense of Equation (1)), most share common geometrical features within their mathematical structures, as captured for example by the different iterations of the GENERIC (General Equation for the Non-Equilibrium Reversible-Irreversible Coupling) construction [28,29,30] or variational formulations [31,32].
The choice of independent properties used to define a “state” is not merely a matter of mathematical convenience; it reflects the physical scale, the degree of rarefaction, and the distance from equilibrium under consideration. Although these frameworks differ significantly in their mathematical formalisms, a common thread emerges: most modern approaches represent the state through various forms of probability distributions. Whether describing the likelihood of microstates in phase space, the distribution of internal mesoscopic configurations, or the statistical populations and coherences encoded in a density operator, these probabilistic representations provide a bridge between microscopic fluctuations and macroscopic observables.
The following list provides a minimal summary of the typical sets of independent properties adopted for state description in several prominent frameworks. The comparison highlights how different theories prioritize either a finite set of macroscopic fields or a more elaborate distribution function in order to capture the relevant physics. To ground these abstract descriptions in a concrete application, Section 51 presents an explicit example of a state formulation within the framework of quantum thermodynamics, illustrating how these principles manifest at the interface between information and energy.
  • Classical Statistical Mechanics [7,33]: Probability distributions (densities) over classical phase space, representing the possible microstates defined by the positions and momenta of all particles.
  • Quantum Statistical Mechanics [34,35]: Probability distributions over a set of pure quantum states, typically expressed in terms of the eigenvectors of the system’s Hamiltonian operator.
  • Information-Theoretic Thermodynamics [36,37]: Probability distributions over a discrete or continuous set of microstates or events, representing the observer’s uncertainty or informational description.
  • Stochastic Thermodynamics [38,39,40]: Probability distributions over fluctuating trajectories and path-dependent variables (such as stochastic work and heat) that characterize the energetics of individual realizations.
  • Macroscopic Nonequilibrium Thermodynamics (CIT) [41,42,43]: Local-equilibrium field variables—functions of position and time—representing the macroscopic properties of continuum parcels assumed to be in locally stable equilibrium states.
  • Gradient (Non-local) Thermodynamics [44,45,46,47]: A set of local field variables augmented by their spatial gradients, representing the state of non-uniform systems where the local energy density depends on the neighboring environment, such as in the description of diffuse interfaces and phase separation.
  • Continuum Mechanics [48,49,50]: A finite set of local field variables, such as displacement, deformation gradient, and mass, momentum, and total energy densities, representing the macroscopic properties of continuum parcels under the local-equilibrium hypothesis.
  • Internal Variable Theories [32,51]: A finite set of local field variables supplemented by hidden or internal variables that describe the microstructural state of a material (e.g., in thermoelasticity), often derived via variational principles to ensure thermodynamic consistency.
  • Extended Nonequilibrium Thermodynamics (EIT) [52]: A finite set of local field variables that includes classical densities augmented by dissipative fluxes (e.g., heat flux, viscous stress) treated as independent state variables in order to account for memory effects and finite signal propagation speeds away from equilibrium.
  • Mesoscopic Nonequilibrium Thermodynamics [53,54,55]: Probability distributions over a set of local mesovariables describing internal configurations, such as the position of a Brownian particle, molecular orientation, cluster size, or degree of protein folding.
  • Rational Extended Thermodynamics (RET) [56,57]: A finite set of local fields representing moments of the velocity distribution function, such as mass, momentum, and energy densities, as well as higher-order moments including heat flux and momentum flux.
  • Small-Scale and Rarefied Gas Dynamics [58,59]: The local particle velocity distribution function, representing the probability of finding a molecule with a specified velocity at a given position and time, typically governed by the Boltzmann equation.
  • Chemical Kinetics [60,61,62]: A set of bulk or local macroscopic variables, such as species concentrations and reaction coordinates, sufficient to describe the chemical evolution of a reactive mixture toward stable equilibrium.
  • Quantum Thermodynamics [63,64,65]: The density operator, serving as a generalized probability distribution that represents both classical populations (probabilities) and quantum coherences.
  • Nanothermodynamics [19,20,21,22,23]: Statistical distributions over a large number of independent, small-scale replicas of a system, where the state is defined by finite-size parameters and internal degrees of freedom that account for non-extensive energy contributions and fluctuations.
While connecting these ideas to the extensive literature on nonequilibrium thermodynamics is valuable, acknowledging the many pioneers of the various approaches—and summarizing the different attempts at unification, construction—would require a level of discussion beyond the scope of this paper. Rather than claiming exhaustiveness, the preceding list is intended to illustrate the broad range of state representations to which the general thermodynamic concepts developed in this work may apply.
This diverse landscape of state representations illustrates the remarkable versatility of nonequilibrium thermodynamics across different physical scales and modeling priorities. It is important to emphasize that the foundational approach presented in this work is intended to be compatible with, and applicable within, any of these specific frameworks. By providing a rigorous set of operational definitions—grounded in the first and second laws as they apply to well-defined (separable and uncorrelated) systems—our construction establishes a self-consistent logical basis that helps clarify the limits of applicability of the assumptions underlying any chosen set of state variables. In particular, this grounding makes explicit the conditions of separability and absence of correlations required for the valid application of the energy balance and the principle of entropy non-decrease, thereby reducing the risk of conceptual misinterpretations when analyzing complex or interacting composite systems whose components become correlated during interaction.

6. Time Evolution, Interactions, and the Concept of “Process”

The state of a system can evolve spontaneously, driven by its internal dynamics, or as a result of interactions with its environment. An isolated system, one that cannot interact with the environment and hence cannot cause any change in the environment’s state, can only undergo spontaneous evolutions. Non-isolated systems interact in various ways, resulting in the flow (or transfer or exchange) of certain properties from one system to another. This involves a decrease in the value of a property in one system, accompanied by a simultaneous increase in the same value in the other system. For example, during the interaction between two systems undergoing an elastic collision, there is a transfer of momentum and kinetic energy from one system to the other.
The equation that describes the evolution of the state of a system over time is called the equation of motion of the system. To illustrate this, we can say that it will have a structure similar to
d A ( t ) d t = f ( A ( t ) , internal forces ( t ) , external forces ( t ) )
where the function f depends on the nature of the system’s constituents. Given the function f and the state A ( t 0 ) of system A at time t 0 , integration of the equation of motion allows us to calculate the state A ( t ) of the system at any other instant in time, whether earlier (past) or later (future) than t 0 .5
This problem, as formulated, poses an enormous mathematical complexity due, on the one hand, to the fact that the state A ( t ) is a mathematical object representing an infinity of numbers, and on the other hand, to the fact that for many systems and for the most important states in thermodynamics, the general equation of motion is still a subject of research. Thus, the chosen approach is necessarily different. We limit ourselves to verifying that the temporal evolution of the system’s state is consistent with the two main implications of the equation of motion, recognized as universally valid and therefore to be respected by all systems. These implications are initially expressed in a non-mathematical form as the statements of the first law and the second law of thermodynamics and are then translated into two relations that must always be satisfied: the energy and entropy balance equations. In practice, we give up the possibility of determining how the state changes over time by solving the system’s equation of motion and instead limit ourselves to determining how only the values of some main properties, defined for all states of all systems (amounts of constituents, energy, entropy), change over time.
In other words, the temporal evolution is characterized (in an incomplete way) by the following: (a) the description of the initial state A ( t 1 ) and the final state A ( t 2 ) of the system; (b) the description of the interactions that occur during the change of state, which cause the flow or exchange of certain properties between the system and its environment; and (c) verification that the change is compatible with the first law and the second law of thermodynamics, or with the main implications of the general equation of motion, including the principles of energy conservation and entropy non-decrease.
For simplicity, in the following, we use the notation A 1 to represent the state of system A at time t 1 instead of A ( t 1 ) .
The first law and the second law of thermodynamics are stated as laws or principles, i.e., as unprovable postulates. However, as we have seen, in an approach that postulates a general equation of motion valid for all systems, these principles would emerge as theorems, consequences of the equation of motion. Therefore, it remains a fact that the laws (the principles) of thermodynamics express general consequences of the equation of motion, i.e., of the dynamics of all (well-defined) systems.
The descriptions of the initial state, the final state, and the effects caused by the interactions on the values of the main properties (amounts of constituents, energy, entropy) related to a given temporal evolution specify a process (Figure 1). Processes can be classified based on the effects they have on the system’s surroundings, i.e., changes in state induced by interactions with its environment. For example, a process is called spontaneous if it is not accompanied by any external effects. As previously seen in Section 6, an isolated system can only undergo spontaneous processes since it cannot induce changes in the state of other systems or be affected by them.
The notion of a process is also compatible with a time evolution in which the separation between the constituents of the system and those of the environment is temporarily broken, provided that both the separation and the statistical independence are reestablished at the end of the evolution. In other words, it suffices that the system and the environment must be well defined—i.e., separable and independent—at both the initial and final instants of time.6

7. Weight Processes and Adiabatic Accessibility

A process in which interactions result in the only external effect being a change in the elevation of a weight (or another equivalent mechanical effect) is called a weight process (Figure 2). Weight processes are conceptually important in developing the foundations of thermodynamics because, as we will see, they provide a clear presentation as an extension of mechanics. Two states that may be interconnected via a weight process are said to be adiabatically accessible.7

8. Reversible vs. Irreversible Processes

Another important classification of processes is based on the possibility of reversing their effects. Thus, a process is called reversible if there exists, i.e., if it is physically conceivable,8 a way to return both the system and its environment to their respective initial states (Figure 3), i.e., if all the effects of the process (including those external to the system) are reversible. Otherwise, the process is irreversible, meaning that there is no physically conceivable way to return the system and its environment to their respective initial states.
In the particular case of an isolated system, the reversibility of a process implies the existence of a reverse process capable of returning the system to its initial state. The reverse process need not retrace, in reverse order, the same sequence of states traversed by the forward process.
Directly verifying, based on the definition given, whether a process is reversible or not is impractical, as it would require testing all conceivable ways to return the system to its initial state and, for each one, checking whether the environment also returns to its initial state. Nevertheless, the given definition is valid and allows, as we will see, an indirect criterion (necessary and sufficient condition for the reversibility of a process) based on the simple balance of the property entropy, which we will define.

9. Statement of the First Law

The first law of thermodynamics consists of two assertions: the first is that any pair of states A 1 and A 2 with compatible values of the amounts of constituents and the parameters of a (well-defined) system A can always be interconnected by means of a weight process. Indicating with z 2 z 1 the change in height produced by the weight process on a mass m in a uniform gravitational field with acceleration g, the second assertion is that the product m g ( z 2 z 1 ) assumes the same value for all weight processes that connect the two given states A 1 and A 2 .

10. Energy: Definition, Additivity, Conservation, Exchangeability

The main consequence of the first law is that for every system A in any of its states A 1 , a property called energy is defined, indicated by the symbol E 1 . The energy  E 1 of system A in state A 1 is defined by the following measurement procedure: an auxiliary weight process is realized that connects state A 1 to a reference state A 0 (of the same system A) chosen once and for all, to which a reference value E 0 is assigned. It is then stated that
E 1 = E 0 m g ( z 1 z 0 )
where m is the mass of the weight, g is the gravitational acceleration, and z 1 z 0 is the change in height of the weight, which is the only external effect in the weight process.
Due to the dimensional homogeneity of Equation (3), E 1 and E 0 must have the same dimensions as m g z , i.e., energy. Therefore, the dimensions of E are [mass] × [length]2 × [time]−2, and the unit of measurement in the International System is the joule, J.
The first law guarantees that the measurement procedure described defines E as a property of system A. In fact, it follows from the first law’s statement that the weight process connecting states A 1 and A 0 exists.9 and that the value of m g ( z 1 z 0 ) and therefore E 1 is as follows: (a) independent of the instruments used for measurement, i.e., of the details of the interaction between system A and the weight; (b) independent of other systems in the environment, i.e., of the weight’s details, which is the only other system affected by the weight process; and (c) independent of measurements made at other instants of time, i.e., of the details of the changes in A during the process. It is important to note that the measurement procedure does not imply any restrictions on the nature of state A 1 and system A. Thus, energy is property, defined for all states of all systems.10
The definition given extends what was already seen in mechanics to states that are not covered by mechanics. This will become clearer as we proceed. One fact, already known from mechanics, remains valid in general: for given values of n and β , the value of a system’s energy is bounded from below, i.e.,
E E min ( n , β )
Since E is a property, it contributes to defining the state of the system, together with the values of all the other properties. If the state of the system is known, then the value of energy is also known. The change E 2 E 1 corresponding to a given change in state from A 1 to A 2 depends only on states A 1 and A 2 and therefore not on the interaction methods with other systems, nor on the forces that induced it. The same change in state from A 1 to A 2 can be achieved by many (infinite) different processes, each with the same value of E 2 E 1 .
From the first law, it also follows that energy is an additive property in the following sense. With the help of Figure 4, consider two systems A and B in states A 1 and B 1 , respectively, and consider the composite system C formed by the set of the two systems, C = A B , of which the state is indicated by the symbol C 11 , where the double index refers to the respective states of the two subsystems ( C 11 = A 1 B 1 ). Applying the procedure that defines energy for systems A, B, and C, after choosing the respective reference states A 0 , B 0 , and C 00 once and for all (this is the state of C in which subsystem A is in state A 0 and subsystem B is in state B 0 ) and the respective reference values E 0 A , E 0 B , and E 00 C , the respective values of energy in states A 1 , B 1 , and C 11 are indicated by E 1 A , E 1 B , and E 11 C . Recalling the second assertion of the first law,11
E 1 A E 0 A + E 1 B E 0 B = E 11 C E 00 C
and therefore that if the reference value for the composite system C is chosen as the sum of the reference values of the subsystems that compose it, i.e., if E 00 C = E 0 A + E 0 B , then
E 11 C = E 1 A + E 1 B
Finally, the first law also implies that the value of the energy is conserved every time the system undergoes a process without net external effects, such as a spontaneous process, for example. The conservation of energy is of fundamental theoretical and practical importance.12 This importance derives from the additivity of energy (or rather of energy differences) and from the fact that any process can always be considered part of a process without net external effects of a larger system that includes all interacting systems, for which energy—the sum of the energies of the subsystems—remains unchanged.

11. Notation for Energy Exchange and the Energy Balance Equation

From the conservation and additivity of energy, it follows that energy can be transferred (exchanged) between interacting systems. Using Figure 5 as an example, consider a system C composed of subsystems A and B and a spontaneous process (without external effects) in which the state of A changes from A 1 to A 2 and that of B changes from B 1 to B 2 . Since there are no external effects on C, the value of C’s energy remains unchanged, i.e., E 22 C = E 11 C . Due to the additivity of energy differences, this means that E 2 A E 1 A + E 2 B E 1 B = 0 , or in other words, E 2 A E 1 A = ( E 2 B E 1 B ) . The change in energy of A is equal and opposite to that of B. This justifies the notion of energy exchange, such that if the energy of B increases, we say that B receives energy from A, and consequently, the energy of A decreases by an equal amount.
The notion of energy transferred from A to B is of practical importance, and it is convenient to adopt special notation to indicate it. The symbol used is
E 12 A B
where the subscript 12 indicates that it is the quantity of energy transferred between time t 1 and time t 2 during the process in which the state of system A changes from A 1 to A 2 of A and that of its environment B from B 1 to B 2 . Thus, we have
E 2 A E 1 A = ( E 2 B E 1 B ) = E 12 A B
Equivalently, we can indicate the quantity of energy transferred from B to A using the symbol E 12 A B , which leads to
E 2 A E 1 A = ( E 2 B E 1 B ) = E 12 A B
Therefore, the two introduced symbols are not independent, and we have
E 12 A B = E 12 A B
If we consider that B is the environment of A, we can simplify the notation by omitting the subscript B.13
E 12 A = E 12 A
The relations just seen can be written in the form of the energy balance equation (Figure 6)
E 2 A E 1 A = E 12 A or , equivalently , E 2 A E 1 A = E 12 A
This important consequence of energy additivity and conservation states that the change in energy E 2 A E 1 A of system A following a process from A 1 to A 2 must be equal to the (net) amount of energy E 12 A transferred into system A due to interactions with its environment.14
Figure 6. Energy balance for system A for a process in which the state of A changes from A 1 at time t 1 to A 2 at time t 2 , and the net effect of the interaction between A and its environment includes an energy transfer E 12 A (positive if in the direction of the arrows, i.e., if received by A, negative if in the opposite direction).
Figure 6. Energy balance for system A for a process in which the state of A changes from A 1 at time t 1 to A 2 at time t 2 , and the net effect of the interaction between A and its environment includes an energy transfer E 12 A (positive if in the direction of the arrows, i.e., if received by A, negative if in the opposite direction).
Entropy 28 00371 g006
It is useful to remember that the energy balance equation, like the first law itself from which it derives, is an expression of the laws of dynamics. The time variable does not appear explicitly, but it is strongly present: recall that A 1 indicates the state of system A at time t 1 and A 2 at time t 2 . To make the dynamic nature of the equation more explicit, we can express it in the following alternative form:
d E A / d t = E ˙ A
This form is obtained when t 1 = t and t 2 = t + d t , with d E A = E t + d t A E t A , and E ˙ A = δ E t , t + d t A / d t (energy per unit of time, power, transferred into A from its environment). We adopt the convention of using the prefix δ rather than d for infinitesimal quantities of observables that are not properties. For example, the energy transferred in the time interval t , t + d t is not a property because it depends on two instants of time, t and t + d t . Therefore, it is indicated with δ E t , t + d t A .
To apply the energy balance equation, we will develop various concepts necessary to express, on one hand, the change in energy E 2 A E 1 A as a function of the composition of system A and the nature of states A 1 and A 2 , and on the other hand, the quantity of energy exchanged E 12 A as a function of the types of interactions experienced by system A in the process from A 1 to A 2 .
For instance, later on, we will see that the interaction between a system A and a weight in a weight process corresponds to an example of what we will call work interaction. The energy exchanged in an interaction of this type will be called work and denoted by the symbol W A instead of the generic E A , so that for a weight process, we will write the energy balance as
E 2 A E 1 A = W A or , equivalently , E 2 A E 1 A = W A

12. Steady vs. Unsteady States and Equilibrium vs. Nonequilibrium States

Since the number of independent properties of a system is very large—even for a single particle—and since many properties can vary over an infinite range of values, the number of possible states of a system is infinite. The classification of states based on the type of temporal evolution of each state highlights some important aspects of thermodynamics. States of a system can be classified into four types: unsteady, steady, nonequilibrium, and equilibrium states. Equilibrium states can be further classified into three subtypes: unstable, metastable, and stable.
If a system is subject to interactions with other systems that have non-zero effects, its state usually changes over time, and it is called a unsteady state. However, in practical engineering, interactions with other systems are often regulated and balanced in such a way that their net effects on the state of the system are zero. In this case, the state is called steady or, sometimes, stationary.
Another important way to classify states is based on the behavior dictated solely by the internal dynamics of the system, i.e., the behavior the system would exhibit if all interactions of the system with other systems were “turned off” or “frozen,” and only the internal dynamics remained active. If the state changes over time due to the internal dynamics alone, i.e., spontaneously, it is called nonequilibrium. If it does not change, it is called equilibrium.
There are various types of equilibrium states. An unstable equilibrium is a state that can be induced to spontaneously evolve toward different often distant) state by some vanishingly small and brief interaction—an infinitesimal perturbation. Such a perturbation has only a temporary, negligible effect on the environment, leaving no permanent net external change. In contrast, a metastable equilibrium state is stable under small perturbations, but can be changed without leaving permanent effects on the environment by means of larger perturbations.

13. Stable Equilibrium States

Lastly, a stable equilibrium state (abbreviated SES) is an equilibrium state that can only be modified through interactions that leave nonzero net effects on the environment of the system. In other words, a stable equilibrium state cannot be altered without leaving net effects in the system’s environment, i.e., without changing the state of the environment.
We will see that starting from a non-stable equilibrium state (i.e., either a nonequilibrium state or an unstable or metastable equilibrium state), it is always possible for the system to evolve by means of a weight process that results in the lifting of a weight and does not leave any other changes in the state of the environment.

14. Statement of the Second Law

We shall adopt as statement of the second law a refinement of the one due to Hatsopoulos and Keenan [8] because from this statement we can derive all other traditional statements, namely, those by Kelvin-Planck, Clausius, and Carathéodory.
We have already seen that the number of possible states of a system is infinite. Among all these states, consider the subset of all the states that share a given set of values of amounts of constituents n 1 , n 2 , , n r , parameters β 1 , β 2 , , β s , and energy E. Also, the number of states in this subset is usually infinite. The second law of thermodynamics consists of two assertions: the first is that in the subset of states of a system compatible with given values of n and β, there is always one and only one stable equilibrium state for each value of the energy E.15
It is important to contrast this assertion with its analogous in the domain of mechanics: for given values of n and β , the set of states considered in mechanics contains only one stable equilibrium state, which is the one with the minimum energy, E min ( n , β ) . By contrast, for given values of n and β , thermodynamics considers a much broader set of states, where there is one (and only one) stable equilibrium state for each value of energy E.16 It is in this sense that thermodynamics is an extension of mechanics.17
The second assertion of the statement of the second law is that starting from any initial state of the system, it is always possible, through a reversible weight process, to reach a stable equilibrium state with values of n and β arbitrarily fixed among those compatible with the initial state.

15. Proof of the Kelvin–Planck Statement of Impossibility of a Perpetual Motion Machine of the Second Kind

The first important consequence of the second law is that, in general, not all of a system’s energy can be transferred to a weight through a weight process, i.e., not all states of a system can reach via a weight process a state with the minimum energy for the same or compatible values of n and β . In particular, if a system is in a stable equilibrium state, it cannot transfer energy to a weight through a weight process that does not alter the set of compatible values of n and β . This statement is also known as the impossibility of perpetual motion of the second kind (Figure 7) and is referred to as the Kelvin–Planck statement of the second law of thermodynamics (1897).18
Since the impossibility of perpetual motion of the second kind leads to a fundamental inequality for all that follows, it is worth outlining the proof. We proceed by contradiction; suppose that a perpetual motion machine of the second kind is possible: it would be a system A (Figure 7) initially in a stable equilibrium state A S that can lift a weight as a result of a weight process. After the energy is transferred to the weight, the system A would end up in a state A 2 with lower energy than the initial state. Now, suppose that the system A is made up of at least two parts;19 Then, it is possible to create a second process in which the weight returns all the energy it received to system A, causing the two parts of A to move relative to each other. The new state A 3 of system A, thus determined, is certainly different from the initial state A S because the two parts of A are in relative motion. We therefore succeeded in changing the state of system A from A S to A 3 A S while leaving no net effects in the environment. Since this contradicts the definition of stable equilibrium, we conclude that the assumption is absurd and, therefore, a perpetual motion machine of the second kind is impossible.
From what has been proven, it follows that when a system A is initially in a stable equilibrium state with energy E S A , in a weight process it can only reach states with higher energy E 2 A . Using the notation introduced earlier,
E 2 A E S A = W A > 0

16. Adiabatic Availability: Definition

The historical formulations of the principles of thermodynamics originated from a careful examination of the technical question that, with the terminology we have developed so far, can be formulated as follows: “How much of the energy E 1 of a system A in a given state A 1 can be transferred to a weight through a weight process?”
The answer identifies, for each system A and any state A 1 , a property called adiabatic availability, denoted by the symbol Ψ . It consists of evaluating, for system A in state A 1 , the maximum amount of energy W max A G , denoted as Ψ 1 , that can be transferred to a weight in a weight process without altering the (set of compatible) values of n and β .
The measurement procedure that defines it is sketched in Figure 8. It can be proven that W max A G obtains when the weight process for A is reversible and changes state A 1 into a stable equilibrium state A S 1 with values of n and β compatible with state A 1 . The existence of such process is guaranteed directly by the second law (second assertion). It is also proven that state A S 1 is uniquely determined by A 1 , being the only stable equilibrium state with the compatible values of amounts and parameters that can be reached from A 1 through a reversible weight process.
From the energy balance, we have
Ψ 1 = E 1 E S 1
Clearly, adiabatic availability has the same dimensions as energy and is measured in joules, J, in the International System of Units.
From the impossibility of perpetual motion of the second kind (Equation (15)), it immediately follows that for any stable equilibrium state, the adiabatic availability is zero. If the state is not stable equilibrium, the adiabatic availability is nonzero and certainly positive.
Adiabatic availability Ψ has another important utility: it provides an operational criterion to ascertain the reversibility of a weight process. In fact, it is shown that a given weight process for system A from state A 1 to state A 2 is reversible if and only if
E 2 Ψ 2 = E 1 Ψ 1
while it is irreversible if and only if
E 2 Ψ 2 > E 1 Ψ 1
These results determine the direction in which the weight process is possible. If
E 2 Ψ 2 < E 1 Ψ 1
then the weight process in the direction from A 1 to A 2 is impossible. In this case, the first law guarantees that the process is possible in the opposite direction.
From these results, the important connection between irreversibility and the loss of the ability to produce useful effects emerges. It can be seen that for weight processes, the irreversibility of the process increases the value of E Ψ , which is the difference between energy and adiabatic availability. This is the portion of energy in the system that is not adiabatically available, meaning it cannot be transferred to a weight in a weight process. The fact that E Ψ cannot decrease in any weight process leads to the conclusion that the unavailable portion of a system’s energy cannot decrease in a weight process: it remains unchanged if the process is reversible and increases if the process is irreversible.
Although adiabatic availability allows for such general and important conclusions and provides an operational and quantitative criterion to verify the reversibility of weight processes, it has a “defect” that makes it unsuitable for practical use: it is not an additive property. This can be easily seen from a simple example, which we will consider after introducing the notion of mutual equilibrium.

17. Mutual Stable Equilibrium: Definition

Two systems are said to be in mutual stable equilibrium (MSE), or simply in mutual equilibrium, if their respective states are such that the composite system is in a stable equilibrium state.20
Now, consider two systems, A and B, that are not in mutual equilibrium, even though each is in a stable equilibrium state. Taken individually, each of the two systems has zero adiabatic availability. However, the composite system, not being in a stable equilibrium state, has nonzero adiabatic availability. Therefore, the adiabatic availability of the composite system is not equal to the sum of the adiabatic availabilities of the subsystems.
It is possible, however, to define, for each system, a monotonic function of E Ψ in a way that the new property resulting from it is additive. We will call this important property entropy and denote it by the symbol S.21 In order to arrive at a clear and explicit operational definition of entropy, next, we introduce the notion of thermal reservoirs and a measurement procedure that characterizes them by direct comparison.

18. Thermal Reservoir: Definition

We call a system R that approximately satisfies the following limiting condition a thermal reservoir or simply a reservoir: In any of its stable equilibrium states with given values of amounts of constituents and parameters it is in mutual stable equilibrium with a given system C in a fixed given state C R .
A “practical” reservoir can be easily created in any laboratory, as illustrated in Figure 9, by placing H 2 O in a container under conditions (referred to as the “triple point”) such that some is in the solid phase (ice), some is in the liquid phase (water), and some is in the vapor phase. In the range of stable equilibrium states in which the three phases (solid, liquid, and vapor) are all present in finite and not microscopic amounts, this system behaves as a reservoir.
The concept of a thermal reservoir is an idealized limiting abstraction, providing a pedagogical framework that simplifies both practical modeling and theoretical development. But it is important to note that its defining condition provides only an approximate description of physical reality, that holds with good accuracy for systems containing a large number of particles (exceedingly good for very large numbers, such as the triple-point model), but fails for systems with few particles.22 Moreover, its strict validity would constitute a violation of the second law.23

19. Available Energy with Respect to a Thermal Reservoir

The second assertion of the second law guarantees that starting from any initial state A 1 of any system A that can interact with a reservoir R initially in state R 1 , it is always possible, through a reversible weight process for the composite system A R (see Figure 10), to reach a stable equilibrium state for A R with values of n and β arbitrarily fixed among those compatible with the initial states. In the final state of A R , the system and the reservoir are in mutual equilibrium. The final state A R of system A is uniquely determined by the chosen reservoir R and the chosen values of n and β . The final state R 2 rev of R is uniquely determined by the chosen initial states A 1 and R 1 and the chosen values of n and β .
Note that the energy transferred to the weight in this process, W rev A R G , corresponds to the adiabatic availability Ψ 11 A R of the composite system A R in state A 1 R 1 . It can be shown that it is independent of the initial state R 1 of the reservoir, i.e., it depends only the state A 1 of system A and the chosen reservoir R.
Therefore, we can view the process just described (Figure 10) as the measurement procedure that, with respect to a chosen reservoir R, defines a property of system A that we call available energy with respect to thermal reservoir R, denoted by the symbol Ω R . For state A 1 of system A and the chosen reservoir R, regardless of the initial state R 1 , we denote its value by ( Ω R ) 1 A = Ψ 11 A R or simply Ω 1 R . Like adiabatic availability, it has the same dimensions as energy and is measured in joules, J, in the International System of Units.
Unlike adiabatic availability, however, the conditions that define thermal reservoirs make Ω R an additive property (with respect to a fixed R), in the sense that ( Ω R ) 1 A B = ( Ω R ) 1 A + ( Ω R ) 1 B for all states A 1 and B 1 of all systems A and B. From the results already seen for adiabatic availability, it follows that the available energy with respect to reservoir R takes nonzero and positive values for all states of system A except for the stable equilibrium state A R in which system A is in mutual equilibrium with reservoir R, in which case it is zero, i.e., ( Ω R ) R A = 0 .
Like adiabatic availability, available energy also gives rise to a quantitative criterion to determine whether a given weight process is reversible or not: the weight process for system A from state A 1 to state A 2 is reversible if and only if
E 2 A ( Ω R ) 2 A = E 1 A ( Ω R ) 1 A
while it is irreversible if and only if
E 2 A ( Ω R ) 2 A > E 1 A ( Ω R ) 1 A
and this holds for any choice of the reservoir R used to measure Ω R [as long as, of course, the same R is used for ( Ω R ) 1 A and ( Ω R ) 2 A ].
Like the adiabatically unavailable energy, E Ψ , the unavailable energy with respect to reservoir R, E Ω R , is conserved, meaning it remains constant over time, in reversible weight processes; it increases if the weight process is irreversible.
Like energy and adiabatic availability, available energy is a property defined for all states of a system, including stationary and non-stationary states, and equilibrium and nonequilibrium states, not just for stable equilibrium states.
In Section 9, we saw that energy E is an additive property that can be transferred between systems through interactions. These characteristics make it ideal for the analysis of processes in complex systems, as the system can be schematized as composed of various subsystems, and energy is the sum of the energies of the subsystems. Adiabatic availability Ψ is not suitable for this purpose because it is not additive. Available energy Ω R is additive, but it depends on the choice of a specific reservoir, so it does not measure a property of the system itself but of the composite system, system-reservoir. The next step will be to define a characteristic of reservoirs that will finally allow us to define the property of entropy, which, as we will see, is additive and independent of the reservoir chosen to measure it.
A direct consequence of the results stated in this section is that starting from any initial state A 1 of any system A that can interact with a reservoir R (initially in stable equilibrium state R 1 ), it is always possible, through a reversible weight process for the composite system A R (see Figure 11), to reach a final state for A R with values of n and β arbitrarily fixed among those compatible with the initial states and with system A in an arbitrarily chosen final state A 2 . In this case, in general, the system and the reservoir do not reach mutual equilibrium. The final state R 2 rev of R is uniquely determined by the chosen initial and final states A 1 and A 2 of the system, the initial state R 1 , and the chosen values of n and β .
It is easy to show that the energy W A 1 A 2 rev A R G transferred to the weight in this process is equal to the difference ( Ω R ) 1 A ( Ω R ) 2 A in the adiabatic availabilities of the composite system A R , i.e., of the available energies of system A with respect to reservoir R. Therefore, the energy balance for system A R ,
E 2 A R E 1 A R = W A 1 A 2 rev A R G
using energy additivity, can be rewritten as
( E 2 rev R E 1 R ) + ( E 2 A E 1 A ) = ( Ω R ) 1 A + ( Ω R ) 2 A
or, equivalently, adding subscripts summarizing the process details described in Figure 11,
( E 2 rev R E 1 R ) A 1 R 1 w , rev A 2 R 2 rev = [ E 1 A ( Ω R ) 1 A ] [ E 2 A ( Ω R ) 2 A ]
The setup of Figure 11 is important because it supports the measurement procedures that we discuss next and that lead to the general operational definition of entropy.

20. Temperature of a Thermal Reservoir: Definition

We define the temperature of a reservoir, denoted as T R , through the following measurement procedure, sketched in Figure 12.
First, choose a reference reservoir R 0 , an arbitrary stable equilibrium state R 1 0 , an arbitrary auxiliary system A, and two arbitrary states A 1 and A 2 . Consider a reversible weight process for A R 0 in which A goes from A 1 to A 2 , and measure the change in energy of R 0 , ( E 2 rev R 0 E 1 R 0 ) A 1 R 1 0 w , rev A 2 R 2 rev 0 . Then, take the reservoir R to be measured in an arbitrary stable equilibrium state R 1 and consider a reversible weight process for A R in which A goes from A 1 to A 2 , and measure the change in energy of R, ( E 2 rev R E 1 R ) A 1 R 1 w , rev A 2 R 2 rev . Finally, calculate
T R = T R 0 ( E 2 rev R E 1 R ) A 1 R 1 w , rev A 2 R 2 rev ( E 2 rev R 0 E 1 R 0 ) A 1 R 1 0 w , rev A 2 R 2 rev 0
where T R 0 is an arbitrarily assigned reference value for the reference reservoir R 0 .
It should be noted that T R 0 is chosen once and for all. The reservoir realized with water at the triple point (Figure 9) can be chosen as the reference reservoir R 0 to be used in the measurement procedure just defined. It is a secondary standard reservoir easily realized in all laboratories, to which the reference value T R 0 = 273.16 K is conventionally assigned, where K stands for the kelvin, the unit of temperature in the International System. Note that the measurement procedure defining T R implies a comparison between reservoir R and a reference reservoir R 0 , and therefore, T R is a fundamental property that cannot be expressed in terms of other fundamental properties of mechanics (length, time, and mass) or electromagnetism (current).
It can be shown that the value T R defined in this way is independent of the choice of the auxiliary system A and of its states A 1 and A 2 , i.e., the role of system A in the procedure is purely auxiliary. Moreover, T R is constant for a given reservoir. This means that the measurement procedure defined here always results in the same value, regardless of the initial stable equilibrium state R 1 of reservoir R, and the initial stable equilibrium state R 1 0 of the reference reservoir R 0 . Finally, it can be shown that two reservoirs R and R in mutual equilibrium have the same temperature, T R = T R .
Equation (27) can be rewritten using Equation (26) as
T R = T R 0 [ E 1 A ( Ω R ) 1 A ] [ E 2 A ( Ω R ) 2 A ] [ E 1 A ( Ω R 0 ) 1 A ] [ E 2 A ( Ω R 0 ) 2 A ]
which shows that, once the auxiliary system A and the two states A 1 and A 2 are chosen, an alternative to the direct measurement procedure outlined in Figure 12 is to use the measurement procedures previously defined for energy and for available energy with respect to R and substitute the results in Equation (28).
It is important to note that what we gave in this section is not the definition of temperature for systems that are not reservoirs. That will be performed later (Section 29) and is entirely different from the one just described, although when applied to a reservoir, it, of course, will provide the same value as T R defined above.
We have finally defined everything we need to define entropy.

21. Entropy: Definition (Valid Also for Nonequilibrium States)

The entropy S 1 of any system A in state A 1 is defined by the following measurement procedure, sketched in Figure 13.
First, choose a reference state A 0 (of system A) to which you assign the reference value S 0 . Measure the energy E 0 of this state using the corresponding procedure. Second, select a thermal reservoir R and measure its temperature T R using the procedure discussed earlier. Consider a reversible weight process for A R in which A goes from A 1 to A 0 , and measure the change in energy of R, ( E 0 rev R E 1 R ) A 1 R 1 w , rev A 0 R 2 rev . Finally, calculate
S 1 = S 0 + ( E 0 rev R E 1 R ) A 1 R 1 w , rev A 0 R 2 rev T R
The dimensions of S 1 and S 0 are the same as those of E / T R , which are [energy]/[temperature], and the International System unit of measurement for entropy is the joule per kelvin, J/K.
Equation (29) can be rewritten using Equation (26) as
S 1 = S 0 + ( E 1 Ω 1 R ) ( E 0 Ω 0 R ) T R
which shows that, once the auxiliary reservoir R has been chosen and its temperature T R measured, an alternative to the direct measurement procedure outlined in Figure 13 is to use the measurement procedures previously defined for energy and for available energy with respect to R and substitute the results in Equation (30).
It can be shown24 The entropy value S 1 resulting from this definition is independent of the choice of the reservoir R, which plays a purely auxiliary role in the measurement procedure. This implies that entropy S, like energy E, is a property of system A in and of itself. In particular, it does not depend on the reservoir R chosen for measurement.
It is important to note that since the properties E and Ω R are defined for all states of all (well defined) systems, including nonequilibrium states and small systems, the given definition of property S is valid for any state and any system.25

22. Practical Meaning of Entropy

To emphasize the physical and technical significance of entropy, it is interesting to note from Equation (30) that, apart from the constants S 0 , E 0 , and Ω 0 R related to the choice of reference state A 0 , entropy S is proportional to the “unavailable” energy with respect to reservoir R, E Ω R . For example, the change in unavailable energy with respect to R is equal to the change in entropy of the system multiplied by the temperature of reservoir R,
( E 2 Ω 2 R ) ( E 1 Ω 1 R ) = T R ( S 2 S 1 )
In this sense, the thermal reservoir can be viewed to play the role of an “entropymeter.”
From what has been discussed, we can also derive the expression that allows us to calculate the available energy with respect to a reservoir R. We have already observed that the state A R , in which system A is in mutual equilibrium with reservoir R, has available energy with respect to R equal to zero, ( Ω R ) R A = 0 . From Equation (32) with state A R replacing state A 2 , we can derive the two equivalent expressions
Ω 1 R = E 1 E R T R ( S 1 S R )
S 1 = E 1 Ω 1 R T R + S R E R T R
where E R and S R are the energy and entropy of system A in the stable equilibrium state A R of mutual equilibrium with R. As we will demonstrate in Section 29, the temperature T R A of the stable equilibrium state A R is equal to the temperature T R of the reservoir.
Equation (34) provides an explicit interpretation of the practical (engineering) meaning of entropy. Apart from the constant combination S R E R / T R , which is independent of state A 1 , the entropy is proportional to E 1 Ω 1 R , the unavailable energy with respect to reservoir R, the constant of proportionality being the inverse of the reservoir’s temperature.
Since E and S are properties, the differences E 2 E 1 and S 2 S 1 corresponding to a given change in state from A 1 to A 2 depend only on these states and not on the mode of interaction with other systems or the type of process or the forces or reactions that induced the change. The same change in state, from A 1 to A 2 , can be obtained with many (infinite) modes of interaction, but they all yield the same values for E 2 E 1 and S 2 S 1 .

23. Principle of Entropy Non-Decrease in Weight Processes

The criteria for reversibility of a weight process that we have derived in terms of adiabatic availability, Equations (17) and (18), and in terms of available energy, Equations (22) and (23), can be reformulated in terms of entropy. The weight process that takes system A from state A 1 to state A 2 is reversible if and only if
S 2 = S 1
while it is irreversible if and only if
S 2 > S 1
Equations (35) and (36) are known as the principle of non-decrease of entropy in weight processes. These equations can be rewritten in a single form, valid only for weight processes
( S 2 S 1 ) A 1 w A 2 = ( S irr ) 12 ( S irr ) 12 0
with the condition that ( S irr ) 12 = 0 if the weight process is reversible and ( S irr ) 12 > 0 if the weight process is irreversible. During an irreversible weight process, the system loses some of its ability to transfer energy to a weight, and the entropy of the system increases. This increase, ( S irr ) 12 , is called entropy produced (or generated or created) in the system due to irreversibility or simply entropy production (or generation or creation).
While energy is conserved in weight processes without net external effects, entropy is conserved in reversible weight processes. For example, for an isolated system, energy always remains constant, while entropy remains constant if the process is reversible and increases if the process is irreversible.

24. Entropy: Additivity, Non-Decrease, Exchangeability

Like energy E and available energy Ω R , entropy S is also an additive property.26
From the principle of non-decrease in weight processes and the additivity of entropy, it follows that entropy can be transferred (exchanged) between interacting systems. Using Figure 14, consider a system C composed of subsystems A and B and a reversible weight process in which the state of A changes from A 1 to A 2 and that of B changes from B 1 to B 2 . Since the process for C is reversible, the value of the entropy of C remains unchanged. In fact, Equation (37) for system C yields S 22 C S 11 C = ( S irr ) 12 C = 0 . Due to the additivity of differences in entropy, this means that ( S 2 A S 1 A ) + ( S 2 B S 1 B ) = 0 , or in other words, ( S 2 A S 1 A ) = ( S 2 B S 1 B ) . The change in entropy of A is equal and opposite to that of B. This justifies the notion of entropy transfer or exchange, meaning that if the entropy of B increases, we say that B receives entropy from A, as the entropy of A decreases by an equal amount.

25. Notation for Entropy Exchange and the Entropy (Im)Balance Equation

For the quantity of entropy transferred from A to B, we use the symbol
S 12 A B
and, consequently, for a reversible weight process for the composite system C = A B ,
S 2 A S 1 A = ( S 2 B S 1 B ) = S 12 A B
Equivalently, we can indicate the quantity of entropy transferred from B to A using the symbol S 12 A B , which leads to
S 2 A S 1 A = ( S 2 B S 1 B ) = S 12 A B
Therefore, the two introduced symbols are not independent, and we have
S 12 A B = S 12 A B
If we consider B as the environment of A, we can simplify the notation by omitting the subscript B.27
S A = S A
for the quantity of entropy transferred between environment B and system A as a result of all interactions in the process that changes the state of A from A 1 to A 2 .
These relations, valid if the process is reversible, can be written in the form
S 2 A S 1 A = S A or , equivalently , S 2 A S 1 A = S A
This important consequence of entropy additivity and the principle of entropy conservation in reversible processes can be generalized using the principle of non-decrease of entropy in weight processes. In this case, for system C, S 22 C S 11 C = ( S irr ) 12 C > 0 , and due to entropy additivity, we can write ( S 2 A S 1 A ) + ( S 2 B S 1 B ) = ( S irr ) 12 A + ( S irr ) 12 B , where we have decomposed the entropy created due to irreversibility in system C into two non-negative contributions, one from each subsystem. It is important to distinguish between the entropy transferred S 12 A B and the entropy produced due to irreversibility, as follows:
S 2 A S 1 A = S 12 A B + ( S irr ) 12 A ( S irr ) 12 A 0
S 2 B S 1 B = S 12 A B + ( S irr ) 12 B ( S irr ) 12 B 0
These relations generalize the entropy balance to processes, even non-weight ones, characterized by entropy exchange between A and B, as well as entropy generation by irreversibility in both subsystems.
With a focus on system A (Figure 15), the entropy balance equation,28 (also named by some authors the “imbalance equation”).
S 2 A S 1 A = S 12 A + ( S irr ) 12 A ( S irr ) 12 A 0
imposes that the change in entropy S 2 A S 1 A resulting from a process for A from A 1 to A 2 is greater (if the process is irreversible) or equal (if the process is reversible) to the net quantity of entropy S 12 A transferred to system A as a result of interactions with its environment.
As with the energy balance equation, it is important to remember that the entropy balance equation, as well as the first and second principles from which it derives, is an expression of the laws of dynamics. The variable time does not appear explicitly but is strongly present: recall that A 1 denotes the state of system A at time t 1 and A 2 at time t 2 . To make the dynamic nature of the equation more explicit, it can be expressed in the following alternative form, which is useful for the analysis of continuous processes
d S A / d t = S ˙ A + ( S ˙ irr ) A
This form is obtained when t 1 = t and t 2 = t + d t , leading to d S A = S t + d t A S t A , S ˙ A = δ S { t } { t + d t } A / d t (entropy per unit time transferred to A from its environment), and ( S ˙ irr ) A = δ ( S irr ) { t } { t + d t } A / d t (entropy per unit time generated in system A due to irreversibility).
As we have seen, assessing changes in entropy is important, as they are directly related to changes in the unavailable energy with respect to a reservoir (Equation (32)) and, i.e., dissipation of available energy due to irreversibility.
Stable equilibrium states play a special role in the statement of the second law of thermodynamics and derive from it formal characteristics that make them are easier to study than other states of a system. In Section 26, Section 27, Section 28, Section 29, Section 30, Section 31 and Section 32, we outline the main features of this subset of states of a system.

26. Maximum Entropy and Minimum Energy Principles

From the definition of a stable equilibrium state, as well as from the statement of the second law, another important result follows: the entropy of every stable equilibrium state is greater (strictly greater) than the entropy of any other state with the same value of E and compatible values of n , and β . This result is known as the “maximum entropy principle.”29
It is useful to sketch the proof of this ‘principle’ because it allows us to invoke various fundamental principles and definitions. Consider any system C and the stable equilibrium state C 0 with energy E 0 C , amounts n 0 C , and parameters β 0 C . Then, consider any other state, C 1 , different from C 0 , but with the same value of the energy, E 0 C , and amounts and parameters compatible with n 0 C and β 0 C . The first law guarantees that there exists a weight process for C that interconnects the two states C 0 and C 1 , but it does not specify the direction. Since the two states have the same energy, this weight process has no net external effect. It follows that the direction cannot be from C 0 to C 1 because, by definition, C 0 , being a stable equilibrium state, cannot be altered without leaving external effects. Therefore, the weight process is in the direction from C 1 to C 0 and is irreversible.30 From the principle of entropy non-decrease in weight processes (Relation (37)), it follows that
S 0 > S 1
which is what we wanted to prove. Among all the states with given values of E, n , and β , the stable equilibrium state has the maximum entropy, and all other states have lower entropy.

27. State Principle

From the statement of the second law of thermodynamics, in particular from the assertion that the values of E, n , and β uniquely determine one and only one stable equilibrium state for any system, it directly follows that every stable equilibrium state of a system is uniquely determined by the values of E, n , and β . But if the state is determined, by the definition of “state,” the values of all the properties of the system are determined.
This one-to-on connection between the values of E, n , β , and the value of any other property P at stable equilibrium is equivalent to the existence of the mathematical relation
P = P ( E , n 1 , n 2 , , n r , β 1 , β 2 , , β s )
This result, valid for all properties but only for stable equilibrium states, is known as the “state principle,”31 and it expresses a general characteristic of the stable equilibrium states of all systems: it implies the existence of interrelations between the properties of this family of states. For all other states, those that are not stable equilibrium, Equation (51) is not valid, and such interrelations do not generally exist.

28. Fundamental Stable Equilibrium State Relation

Applying Relation (51) to the property entropy, S, we obtain that for the stable equilibrium states of any (well-defined) system, there exists the relation
S = S ( E , n 1 , n 2 , , n r , β 1 , β 2 , , β s )
which implies specific interrelations among the values of S, E, n , and β . This relation is characteristic of the system, meaning that its functional form varies from system to system and is known as the “fundamental stable equilibrium relation of the system in entropy form” or simply as the “fundamental relation of the system” or “fundamental relation in entropy form.”
In general, Relation (52) has partial derivatives of all orders,32 so any difference between the entropies of two stable equilibrium states can always be expressed in the form of a Taylor series in terms of the differences in their values of E, n , and β .
For example, considering two stable equilibrium states with identical values for all amounts of constituents and parameters but different energy values, E 1 and E 0 , we can write
S 0 = S ( E 0 , n , β ) S 1 = S ( E 1 , n , β ) = S ( E 0 + ( E 1 E 0 ) , n , β )
                = S 0 + S ( E , n , β ) E 0 ( E 1 E 0 ) + 1 2 2 S ( E , n , β ) E 2 0 ( E 1 E 0 ) 2 +
where the symbol | 0 indicates that the partial derivative must be evaluated at the values E 0 , n , β , as it is in the vicinity of these values that the series expansion of the fundamental relation with respect to the variable E has been performed.
We call normal systems those for which energy values have no upper bound, such as when they consist of constituents with translational degrees of freedom, i.e., the great majority of practical systems relevant to engineering.33 For normal systems, the fundamental relation (52) is strictly monotonic in the variable S and, therefore, it can be inverted by expressing E as a function of S, n , and β , thus obtaining the relation
E = E ( S , n 1 , n 2 , , n r , β 1 , β 2 , , β s )
called the “fundamental stable equilibrium relation in energy form” or simply the “fundamental relation in energy form.”
  • Notation for partial derivatives and differentials
A peculiar tradition in thermodynamics is to indicate partial derivatives in the following way. Given the relation z = z ( x , y ) , the symbol is introduced as
z x y = z ( x , y ) x
which is sometimes (inelegantly) read as the derivative of z with respect to x “at constant y.” The utility of this notation lies in the fact that the symbol of the partial derivative contains all the information about which variables are the independent variables of the function subject to the derivative. For example, if we have the functions z = z ( x , y ) and z = z ( x , w ) , the symbol z / x is ambiguous because it is not clear which of the two functions is the subject of the derivative, whereas the symbols z / x y and z / x w leave no room for ambiguity.
If the relation z = z ( x , y ) can be “solved” with respect to either variable y, yielding the relation y = y ( x , z ) , or with respect to variable x, yielding the relation x = x ( y , z ) , it is obvious that the three obtained relations represent the same surface in the x-y-z space. For each of them, the differential evaluated at a given “point” (x,y,z) represents the tangent plane to that surface, for which we have the three equivalent expressions
d z = z x y   d x + z y x   d y
d y = y x z   d x + y z x   d z
d x = x y z   d y + x z y   d z
Since these expressions represent the same tangent plane, the various partial derivatives that appear in them are not independent of each other. For example, by solving expression (59) for d y , we obtain
d y = 1 x / y z   d x x / z y x / y z   d z
and by comparing Equation (60) with Equation (58), we deduce the relations
y x z = 1 / x y z and y z x = x / z y x / y z
which can be rewritten in the following forms, the first of which is called “cyclic relation,”
x y z z x y y z x = 1 or x y z = x z y z y x
For example, the fundamental relation in energy form, E = E ( S , n , β ) , (Equation (55)), is obtained from the fundamental relation in entropy form, S = S ( E , n , β ) , (Equation (52)). Both represent the same surface in the E-S- n - β space. Therefore, Relation (61) implies that
S E n , β = 1 / E S n , β
Finally, writing the fundamental Relation (52) in the compact form S = S ( x ) , with x = ( E , n , β ) , we can approximate the difference in its values between two neighboring stable equilibrium states with values x and x ± d x by the Taylor series
S ( x ± d x ) S ( x ) = ± d S | x + 1 2 d 2 S | x +
where | x means that the first and second-order differentials are “evaluated at state x ,” i.e.,
d S | x = S x x · d x and d 2 S | x = d x · 2 S x x x · d x

29. Temperature, Total Potentials, Pressure

Each of the first-order derivatives of the fundamental relation in entropy form, S ( E , n , β ) , or of the one in energy form, E ( S , n , β ) , defines a property of the family of stable equilibrium states of the system.
The absolute temperature, or simply temperature T, is defined as
T = E S n , β = 1 / S E n , β
where we used Equation (63). For dimensional consistency, temperature has units of [energy]/[entropy], and in the International System of Units, it is measured in kelvin, K.
The total potential of the i-th constituent, denoted as μ i , is defined as
μ i = E n i S , n , β = T S n i E , n , β
For dimensional consistency, it has units of [energy]/[amount of constituent], and in SI, it is measured in joule/mole, J/mol.
The generalized force conjugate to the j-th parameter, denoted as f j , is defined as
f j = E β j S , n , β = T S β j E , n , β
When the volume V is a parameter, the generalized force conjugate to V, with a sign change, is called pressure p, and it is given by
p = E V S , n , β = T S V E , n , β
For dimensional consistency, pressure has units of [energy]/[volume], and in SI, it is measured in joule/m3 = newton/m2 = pascal, Pa.
These derivatives are defined and measurable for stable equilibrium states and are, therefore, properties. They play an important role in determining the conditions for mutual equilibrium between systems and the spontaneous tendency for systems in stable equilibrium but not in mutual equilibrium to exchange energy, entropy, amounts of constituents, and additive parameters. It is evident that each of these properties is defined only for the stable equilibrium states of the system: for other states, the fundamental relation does not exist, and, consequently, its derivatives do not exist either.
  • Necessary conditions for mutual equilibrium
It can be shown (see below) that the equality of temperatures of two systems is a necessary condition for the two systems that can exchange energy to be in mutual equilibrium. The practical importance of this result arises from the fact that it allows for the indirect measurement of the temperature of a system A (a partial derivative of its fundamental relation) by measuring the temperature of another system B in mutual equilibrium with A. A thermometer is a system for which the temperature is easily measurable and the result readily displayed. By placing a thermometer B in contact with system A and waiting for mutual equilibrium to be reached, the temperature reading of the thermometer also provides the measurement of the temperature of A.34
Similarly, the other equalities (total potentials and pressures) necessary for mutual equilibrium between systems can be proven.
The equality of the total potentials of a common constituent in two systems is a necessary condition for the mutual equilibrium of the two systems if they can exchange that constituent, for example, through a semipermeable membrane or simply through an opening or conduit that connects them. Pressure equality is a necessary condition for the mutual equilibrium of two systems when they can exchange volume, for example, if they are separated by a movable partition.
  • Proof of temperature and potential equality at mutual equilibrium
We provide this proof here to show how the necessary conditions for mutual equilibrium can be derived from the maximum entropy principle. With the help of Figure 16, consider the two states C 1 and C 0 of the composite system C = A B defined as follows. In state C 0 = A 0 B 0 , systems A and B are in mutual equilibrium; hence, C 0 is a stable equilibrium state. Assume, for simplicity, that A and B have volume as the only parameter of the external forces, so that all variables x = ( E , n , V ) are additive, i.e., for any state C 1 = A 1 B 1 , x 1 C = x 1 A + x 1 B . State C 1 is chosen so that A 1 is the stable equilibrium state with values x 1 A = x 0 A + d x and B 1 is the stable equilibrium state with values x 1 B = x 0 B d x . As a result, x 1 C = x 0 C and clearly C 1 C 0 ; therefore, the maximum entropy principle implies that S 1 C < S 0 C . Using the additivity of entropy, we can write this condition as
S 1 C S 0 C = ( S 1 A + S 1 B ) ( S 0 A + S 0 B ) = ( S 1 A S 0 A ) + ( S 1 B S 0 B ) < 0
Since A 0 and A 1 are stable equilibrium states, the fundamental relation for A yields S 0 A = S A ( x 0 A ) and S 1 A = S A ( x 0 A + d x ) , and similarly for B, S 0 B = S B ( x 0 B ) and S 1 B = S B ( x 0 B d x ) . Substituting in Relation (70) and using Equation (64), yields the condition
S 1 C S 0 C = d S A | x 0 A d S B | x 0 B + 1 2 d 2 S A | x 0 A + 1 2 d 2 S B | x 0 B + < 0
which, using Equation (65), becomes
S A x x 0 A S B x x 0 B · d x + 1 2 d 2 S A | x 0 A + 1 2 d 2 S B | x 0 B + < 0
This inequality must hold for all choices of d x compatible with the allowed interactions between systems A and B. For example, if A and B can exchange energy, but not constituents nor volume, i.e., the rigid partition in Figure 16 is impermeable and fixed, than the only compatible choices are d x = ( d E , 0 , 0 ) so that the first term in the lhs of Relation (72) reduces to [ ( 1 / T 0 A ) ( 1 / T 0 B ) ]   d E . Then, the inequality can be satisfied for arbitrary values (positive and negative) of d E only if the term in brackets is zero, i.e., if T 0 A = T 0 B : temperature equality. If A and B can exchange energy and the i-th constituent, but not the other constituents nor volume, i.e., the rigid partition in Figure 16 is semi-permeable (only to constituent i) and fixed, than the only compatible choices are d x = ( d E , d n i , 0 , 0 ) and the first term in the lhs of Relation (72) reduces to [ ( 1 / T 0 A ) ( 1 / T 0 B ) ] d E [ ( μ i 0 A / T 0 A ) ( μ i 0 B / T 0 B ) ] d n i . Then, the inequality can be satisfied for arbitrary values (positive and negative) of d E and d n i only if the terms in the brackets are zero, i.e., if T 0 A = T 0 B and μ i 0 A = μ i 0 B : equality of temperature and i-th total potential. Again, if A and B can exchange also volume (movable partition) then mutual equilibrium requires also pressure equality.

30. Concavity of the Fundamental Relation

Since the first-order term in the lhs of Relation (72) is necessarily zero, the strict inequality stems from second order terms or, if they vanish (e.g., for thermal reservoirs), from higher order terms in the Taylor expansion. Consider the particular case in which systems A and B are identical and are allowed to exchange energy, all constituents, and volume. Then, when they are in mutual equilibrium, they share the same temperature, total potentials, and pressure. Relation (72) reduces to d 2 S A + < 0 , which implies that in general, for any system in any stable equilibrium state, d 2 S 0 , i.e., the fundamental relation is concave in all its variables. In other words, recalling Equation (65), the Hessian of the fundamental relation, 2 S / x x , is a negative semi-definite matrix.
In particular, for any system,35
2 S E 2 n , V = ( 1 / T ) E n , V = 1 T 2 T E n , V 0
where we used Equation (66). This shows that the temperature T and the negative of its inverse, 1 / T , are increasing functions of the energy.
Since it can be shown that, except where 1 / T = 0 , i.e., for finite temperatures,
2 E S 2 n , V = T 3 2 S E 2 n , V
it also follows that for a normal system the fundamental relation in energy form, E = E ( S , n , V ) , is convex with respect to the variable S.36

31. Gibbs Relation

By differentiating the fundamental relation in energy form, E = E ( S , n , β ) , and using the definitions of T, p, μ i , and f j as just described, we can express the interrelations between differences in energy, d E , entropy, d S , and volume.37   d V , other parameters, d β 2 , d β 3 , …, d β s , and amounts of constituents, d n 1 , d n 2 , …, d n r between neighboring stable equilibrium states as follows
d E = T   d S p   d V + i = 1 r μ i   d n i + j = 2 s f j   d β j
This relation, known as the Gibbs relation, expresses the condition that must be satisfied if by varying the values of E, S, V, the n i ’s, and the β j ’s we want the state of the system to shift along the stable-equilibrium-states manifold. The Gibbs relation represents the tangent plane to the stable-equilibrium-states manifold.

32. Pressure and Force per Unit Area

As an application of the Gibbs relation, it is useful to prove why the pressure p, defined at stable equilibrium by Equation (69) for a system with volume V as one of the external parameters, is equal to the force per unit area exerted by the constituents of the system on the walls that confine them in the container of volume V. As shown in Figure 17, we replace any segment of the wall with a small piston of area δ a , which is mobile but sealed. We apply a force δ F = g δ M to it using a mass δ M that is exactly needed to keep the piston in the same position as the replaced wall segment when the system is in a stable equilibrium state with values T, p, μ , S, E, V, n , β . Now consider the reversible weight process ( d S = 0 , Equation (37)) that brings the system to an adjacent stable equilibrium state with values S, E + d E , V + d V , n , β , having as its only external effect the displacement d z of the piston on which the mass rests. From the energy balance (14), we have
d E = δ W = g δ M   d z = δ F   d z
while from the Gibbs relation (75) with d S = 0 , d n = 0 , d β = 0 , we have
d E = p   d V
Comparing (76) with (77), it follows that δ F   d z = p   d V . In other words, since d V = δ a   d z ,
g δ M δ a = δ F δ a = p
The force per unit area required to maintain the piston in position by counterbalancing the action of the system’s constituents in a stable equilibrium state with pressure p is equal to the pressure itself. Such force per unit area is exerted at every point on the surface confining the system’s constituents.38

33. Energy vs. Entropy Diagrams to Represent Nonequilibrium States and Visually Illustrate Processes and Summarize Basic Principles

In this section, we introduce the ES diagram representation, which is very useful to visualize states and processes of a system. We use it to visually illustrate and summarize the basic concepts and principles discussed so far. It is important to note that this representation is different from the state diagrams used in traditional expositions of thermodynamics to represent the properties of the stable equilibrium states under the simple-system model. In contrast, the ES diagram represents not only stable equilibrium states but all other states, most of which are nonequilibrium. Moreover, the representation is valid for all systems, large and small, with many or few particles, even for a single quantum particle. This diagram is particularly effective for graphically depicting the relations between energy and entropy, and adiabatic availability and available energy.
  • Construction of the  E S  diagram
Recall (Section 5) that the state A 1 = A ( t 1 ) of a system at time t 1 is defined by the values of the amounts of constituents n , of the parameters β .39 The properties P 1 , P 2 , …exist at time t 1 . States can, in principle, be represented as points in a multidimensional geometric space with an axis for each amount of constituents, parameter, and independent property. However, such a presentation would not be particularly useful because the number of independent properties in a complete set is almost always infinite. Nevertheless, useful information can be obtained by intersecting this multidimensional geometric space with a plane (hyperplane) corresponding to fixed values of amounts of constituents and parameters. Subsequently, we can project this subspace onto the two-dimensional energy–entropy plane. For a system with volume V as the only parameter, these states are projected inside the shaded area in Figure 18, bounded on the left by the vertical line of zero entropy states (mechanical states) and on the right by the curve defined by the restriction of stable-equilibrium-state manifold to the given set of values of n and β . For simplicity, but without loss of generality, we proceed by assuming that volume V is the only external parameter.
A point located within the shaded area or on the vertical line S = 0 generally represents the projection of an infinite number of states. All these states have the same values of amounts n , parameters V, energy E, and entropy S but different values of other properties. They can be of any type, but not stable equilibrium state. By contrast, a point on the convex curve of stable equilibrium states represents a single state, not a multiplicity of states. For each of the points (states) on this curve, the values of all properties are uniquely determined (state principle) by the values of n , V, and E.
  • Maximum entropy and minimum energy principles
Every stable equilibrium state is the state of maximum entropy among all those with the same values of E, n , and V. It is also the state of minimum energy among all those with the same values of S, n , and V.
Figure 18, shows that the set of states with values E 1 , n , and V projects onto a horizontal segment between S = 0 and S E 1 = S ( E 1 , n , V ) . The point at the far right of this segment (constrained-maximum entropy) represents the state A E 1 , the unique stable equilibrium state with values E 1 , n , and V. There are no states to the right of A E 1 with energy E = E 1 and the same values of n and V. Moreover, as demonstrated in Section 26, no other state (of any kind) with the same values of E 1 , n , V projects onto this point.
In an isolated system (system-environment interactions cannot affect their respective states), every state A 1 on the E = E 1 segment, if not a metastable or unstable equilibrium, is pushed by internal (so-called dissipative) dynamics toward states with increasing entropy until it reaches the stable equilibrium state A E 1 . This spontaneous process is irreversible because, in the absence of effects of interactions with the environment, the increase in entropy can only be generated internally by the dissipative dynamics of the system. By definition, it is impossible to return from the stable equilibrium state A E 1 back to the state A 1 without leaving effects in the environment.
  • Zero-entropy subspace: mechanical states
Figure 18 refers to a normal system (no upper bound in the energy) with non-degenerate ground-energy levels and shows that the set of states with values S 1 , n , and V projects onto a vertical half-line with the lower endpoint at E S 1 = E ( S 1 , n , V ) . The point at this endpoint (minimum energy) represents the state A S 1 , which for a normal system is the unique stable equilibrium state with values S 1 , n , and V. There are no states below A S 1 with entropy S = S 1 and the same values of n and V.
If we consider the set of states with values S = 0 , n , and V (mechanical states), the half-line has an endpoint at E = E ( 0 , n , V ) = E min ( n , V ) corresponding to the absolute minimum value that energy can take for the given values of n and V. The point at this endpoint represents the state A E min . For systems with non-degenerate ground-energy levels, this is the unique stable equilibrium state with values S = 0 , n , and V, and the only equilibrium state (with values n and V) considered in mechanics.
The zero-entropy line represents all the states considered in mechanics (classical or quantum). As previously observed, the energy–entropy diagram clearly shows how mechanics emerges in this general presentation as a particular branch of thermodynamics, namely, its restriction to the zero-entropy states.
  • Maximum-entropy subspace: thermodynamic equilibrium states
Similarly, the thermodynamics of equilibrium states (so-called thermostatics), which considers only stable equilibrium states (so-called thermodynamic equilibrium states) and processes that occur exclusively through sequences of stable equilibrium states (so-called quasi-static processes), emerges as another particular branch of thermodynamics, namely, its restriction to the (constrained)-maximum-entropy states.
  • Fundamental relation and temperature
The stable-equilibrium-state curve on the E-S diagram represents, for fixed values of n and volume V, the fundamental relation S = S ( E , n , V ) in entropy form or, equivalently, the positive-temperature branch of its inversion into the energy form, E = E ( S , n , V ) (the only branch for a normal system). The slope of the tangent line to this curve, E / S n , V = 1 / S / E n , V , coincides (Equation (66)) with the temperature T of the stable equilibrium state represented by the point where the line is tangent. Temperature is not defined for states that are not stable equilibrium states because the fundamental relation does not hold for them, and in general, E depends on more variables than just S, n , and V.
  • Third law: Zero-temperature at ground-energy stable equilibrium states
For a normal system (not behaving as a thermal reservoir), the fundamental relation in energy form, E = E ( S , n , V ) , is convex in the variable S (Equations (73) and (74)), 2 E / S 2 n , V > 0 . The temperature is positive except for the ground-energy stable equilibrium states, i.e., those with minimal energy E min ( n , V ) for the given values of n and V. The assertion that the temperature of the ground-energy stable equilibrium state is zero is known as the third law of thermodynamics. It is not a consequence of the first and the second laws, and we cover it here only marginally.40
As already seen, the states considered in mechanics all have zero entropy, and for systems with non-degenerate ground-energy levels, the state of minimum energy is a stable equilibrium state, as depicted in Figure 18. Due to the convexity of the fundamental relation, temperature is an increasing function of energy, so the stable equilibrium state of minimum energy also has the minimum temperature for the given values of n and β .
However, convexity and the statements of the first and second laws of thermodynamics do not exclude that the value of T E min be finite. That it is zero emerges within the formulations of quantum and statistical models. To avoid resorting to such formalisms, in introductory expositions it suffices to assume an additional law, the third law of thermodynamics, by asserting that all the ground-energy stable equilibrium states have zero temperature.
This statement is also compatible with the possibility, considered in the context of quantum theory, that the stable equilibrium state of minimum energy has nonzero entropy, as depicted in Figure 19, with an entropy value given by
S ( E min , n , V ) = k B ln g 1 ( n , V ) ,
where k B is the Boltzmann constant, and g 1 ( n , V ) is the multiplicity of the minimum energy states for the given values of n and V. For such systems, the minimum-energy states in mechanics, those with zero entropy, are not stable equilibrium states. However, if viewed from a restricted perspective that only considers states of mechanics, subject to a non-dissipative equation of motion valid only in this restricted domain of states, they typically appear as ‘partially’ stable equilibrium states. They are considered ‘partially’ stable because they are stable only with respect to perturbations that keep entropy equal to zero.
  • Adiabatic availability
In a weight process, every state A 1 at the intersection of the S = S 1 segment with the E = E 1 segment in Figure 20, if not a metastable or unstable equilibrium, is pushed by internal dynamics toward states with increasing entropy. It can also be subject to interactions that result in energy exchange (with the external weight). In such a process, there is a competition between the internal dynamics, whose dissipative part tends to generate entropy with a characteristic timescale, and the interactions with the external weight designed, for example, to extract as much energy as possible from the system. Since the characteristic timescale of irreversible part of the system’s internal dynamics typically that depends on the system’s structure construction details, the designer will be able to extract more energy from the system the faster the action of the interactions with the external weight. This ensures that energy is extracted so rapidly that the internal dynamics have the least possible time to generate entropy. In the limit, if the weight process is reversible, the entropy will remain unchanged, and the state will move along the S = S 1 segment. In this case, it is possible to bring the system to the state of minimum energy A S 1 , and therefore, the extracted energy will be equal to E 1 E S 1 , which is the adiabatic availability of the system in the state A 1 (Equation (16)), Ψ 1 = E 1 E S 1 .
  • Available energy with respect to a thermal reservoir
The ES diagram for a reservoir R is shown in Figure 21. The stable equilibrium state curve is a simple straight line with a slope equal to T R .41
E 2 R E 1 R = T R ( S 2 R S 1 R )
Now, consider the available energy of a system A in state A 1 with respect to reservoir R and recall Equation (33),
Ω 1 R = E 1 E R T R ( S 1 S R )
where E 1 and S 1 are the energy and entropy of state A 1 of A, E R and S R are the energy and entropy of A in the stable equilibrium state A R with temperature T R , i.e., the state in which A is in mutual equilibrium with reservoir R. Figure 22 shows the graphical representation of Ω 1 R on the ES diagram for system A. The two terms E 1 E R and T R ( S R S 1 ) are represented separately. Remember that available energy is the energy transferred to the weight in a reversible weight process for the composite system A R in which the state of A changes from state A 1 to state A R . Therefore, the change in entropy of A, S R S 1 , must be accompanied by an equal and opposite change in the entropy of R, S 2 R S 1 R = ( S R S 1 ) which, as visualized in Figure 21, requires a change in reservoir energy of E 2 R E 1 R = T R ( S 2 R S 1 R ) = T R ( S R S 1 ) . This change is essential in the energy balance for the composite system A R and ensures that the overall energy transferred to the weight is indeed ( E 1 E R ) + T R ( S R S 1 ) . The two contributions are visualized in Figure 22.
  • Pressure and chemical potentials
Figure 23 hints at constructing a three-dimensional graph by adding an axis corresponding to the volume V. For simplicity, only the stable-equilibrium-state curves corresponding to two values V and V are drawn. Geometrically, in this ESV diagram, the stable equilibrium states fall on a surface obtained by projecting the points representing states onto a multidimensional geometric space with one axis for each amount of constituents, parameter, and independent property, restricted to those lying on a subspace corresponding to fixed values of the amounts (and other parameters, if any, excluding volume).
Two states, A 1 and A 1 , with equal energy ( E 1 = E 1 ) and entropy ( S 1 = S 1 ) but different volumes, are represented. It is noted that the adiabatic availability of the two states is also different, as E 1 E S 1 E 1 E S 1 .
The slope of the tangent plane to stable-equilibrium-state ESV surface in the direction of constant S, E / V S , n , coincides with the negative of the pressure, p , of the stable equilibrium state where the plane is tangent.
A similar three-dimensional diagram can be constructed by adding an axis corresponding not to volume but to the amount n i of one of the constituents. This results in the ES n i diagram, in which the slope of the tangent plane to the stable-equilibrium-state ES n i surface in the direction of constant S, E / n i S , n , V , coincides with the chemical potential μ i (or total potential if there are other parameters besides volume) of the i-th constituent in the stable equilibrium state where the plane is tangent.
  • Special systems: Negative temperatures
Almost all systems of practical interest are characterized by the ability to accommodate unlimited amounts of energy, which can be distributed among translational, rotational, vibrational, and electronic degrees of freedom of the molecules and/or atoms that constitute them. For all these systems, the ES diagram is as shown in Figure 18: the fundamental relation S = S ( E , n , β ) is monotonically increasing in energy, and therefore, its inversion with respect to E yields the energy function E = E ( S , n , β ) , a single-valued function with a convex shape, 2 E / S 2 n , β > 0 ; the temperature E / S n , β is a non-negative function increasing with energy (starting from zero for the minimum energy state).
However, there are some special systems of quantum interest whose models require the existence of both a minimum and a maximum energy value for fixed amounts and parameters. For example, the model of an electron’s spin in a magnetic field, the three-level atom model used to understand the operation of some lasers, and many others are systems characterized by a finite range of energy values existence between a lower and upper limit for energy values (levels).
Such special systems, like all others, still adhere to the laws of thermodynamics we have described. However, the fundamental relation S = S ( E , n , β ) is not monotonically increasing in energy, and therefore, its inversion with respect to E does not yield a single-valued function of ( S , n , β ) . Figure 24 shows the ES diagram for a special system. The fundamental relation S = S ( E , n , β ) maintains a concave shape, 2 S / E 2 n , β < 0 . The negative of the inverse temperature 1 / T = S / E n , β is an increasing function with respect to energy, ranging from for the minimum energy state to + for the maximum energy state, passing through zero at the state with the maximum entropy S max ( n , β ) . Therefore, in addition to ‘normal’ equilibrium states with positive temperatures ( 1 / T between and zero), the system allows for ‘special’ stable equilibrium states with negative temperatures for energies greater than the value E S max (where 1 / T = 0 ), up to the stable equilibrium state with maximum energy (maximum for the given values of n and β ), where 1 / T = + and hence the temperature is again zero. It is noteworthy that 1 / T is well-defined for all stable equilibrium states and changes smoothly from to + passing through zero. By contrast the temperature T has a discontinuity at the stable equilibrium state with E S max where it jumps from + to . This state is not the hottest stable equilibrium state of the system for the given n and β . Later, in Section 38, we define what we mean by “hot” and “cold,” and show that the stable equilibrium states with negative temperature are all hotter than the positive-temperature stable equilibrium states.
  • Energy–Entropy constraints on energy conversion: The role of entropy sinks
Figure 25 illustrates a fundamental constraint on energy extraction from systems initially in stable equilibrium, expressed most transparently with the help of the ES diagram. Consider a system A initially in a stable equilibrium state A S 1 with energy E S 1 A , entropy S S 1 A , and temperature T S 1 A .
A transition to a lower-energy state A S 2 cannot occur without a simultaneous decrease in entropy. In particular, the extraction of an energy amount E 12 A = E S 1 A E S 2 A requires the extraction of at least an entropy amount S 12 A satisfying
S 12 A = S S 1 A S S 2 A + S irr A > E S 1 A E S 2 A T S 1 A + S irr A = E 12 A T S 1 A + S irr A
where we used the entropy balance equation for A and the inequality is illustrated in Figure 25(Left). A purely vertical downward displacement in the ES diagram—corresponding to energy extraction without entropy extraction—is impossible, as it would violate the second law and amount to a perpetual motion machine of the second kind.
The necessary entropy extraction requires the presence in the environment of A of an auxiliary system B capable of accepting entropy. In practical energy conversion applications, this role is typically played by an external system such as a river, a lake, the atmosphere, the sea.42 Such systems function as “entropy sinks.”
Assume the auxiliary system B is initially in a stable equilibrium state B S 1 with energy E S 1 B , entropy S S 1 B , and temperature T S 1 B . A transition to a higher-entropy state B S 2 cannot occur without a simultaneous increase in energy. Therefore, no entropy can be transferred to system B without an accompanying transfer of energy. To accept an entropy amount S 12 B , system B must also receive at least an energy amount satisfying
E 12 B = E S 2 E S 1 > ( S S 2 S S 1 ) T S 1 B = ( S 12 B + S irr B ) T S 1 B
where the inequality is illustrated in Figure 25(Right). This energy transfer to the environment of A is often described, misleadingly, as wasted energy. In fact, it performs an essential thermodynamic function: it enables the disposal of entropy required for useful energy extraction from the system of interest. The presence of an entropy sink is therefore not a source of inefficiency, but a necessary condition for the operation of any energy-conversion device.
The true sources of inefficiency in practical energy systems arise instead from internal irreversibilities within system A and B, as well as the machinery X used to accomplish the energy and entropy transfers and the energy conversion, i.e., from S irr A + S irr X + S irr B . Combining Equations (82) and (83), assuming the machinery X undergoes a cyclic process, i.e., X 2 = X 1 , so that S 12 B = S 12 A + S irr X , yields
E 12 B > T S 1 B T S 1 A E 12 A + ( S irr A + S irr X + S irr B ) T S 1 B that is E 12 B min > T S 1 B T S 1 A E 12 A
This result can be expressed also by saying that of the energy E 12 A extracted from A, only the energy amount E 12 A E 12 B is available for performing useful tasks, because the energy E 12 B must be used to accomplish the disposal into system B of the entropy that must be removed from system A in order to achieve the energy extraction; therefore, at best (i.e., even in the absence of irreversibility), the fraction of extracted energy that remains available for useful tasks is bounded by43
E 12 A E 12 B E 12 A < 1 T S 1 B T S 1 A
Figure 25 thus provides a direct geometric interpretation of the need for entropy sinks which rules the design of energy conversion devices.

34. Modes of Interaction Between Systems

The foregoing discussion has progressed substantially—including the definition of entropy and several other key results—without invoking the notion of heat. In doing so, we have developed all the conceptual and analytical tools required to introduce a rigorous definition of heat and to generalize it to heat-and-diffusion. This is the subject of the next several sections, which are devoted to characterizing the various modes of interaction between systems.
Because our modeling approach almost invariably begins with balances of energy, entropy, amounts of constituents, and volume, particular attention is devoted to the exchanges of these quantities across the frontiers separating interacting systems. The nature of these exchanges provides the basis for a precise classification of interactions.
Interactions that involve exchanges of energy and volume only, without any exchange of entropy or constituents, are termed work interactions. A paradigmatic example is the interaction between a system and a weight in a weight process.
Other interactions involve exchanges of both energy and entropy, with or without exchanges of constituents and volume. These are termed non-work interactions. As will be shown, heat and heat-and-diffusion interactions are special subclasses of non-work interactions, for which explicit relations can be established between the exchanged amounts of energy, entropy, constituents, and volume.
Interactions generally drive the interacting systems into nonequilibrium states. If the interaction is momentary, these nonequilibrium states subsequently evolve spontaneously toward stable equilibrium, thereby inducing further changes in nonconserved properties. In particular, the spontaneous and irreversible evolution from a nonequilibrium state toward stable equilibrium entails the spontaneous generation of entropy within the system. Accordingly, interactions may change the entropy of a system both directly, through entropy exchange with other systems, and indirectly, through entropy generation associated with irreversible internal dynamics.
Distinguishing between changes in properties due to exchanges with other systems and those due to spontaneous internal generation is essential for both understanding and engineering processes. For example, in an energy-conversion device, minimizing the spontaneous generation of entropy within its boundaries is a primary objective in improving efficiency. Conversely, in compact heat-transfer devices, maximizing the ratio of transferred energy to device volume may require accepting high rates of spontaneous entropy generation within the device.
In general, when two systems begin to interact, they temporarily lose their separability and therefore, according to the present definitions, cease to be systems in their own right. Their individual energies are no longer defined, and only the energy of the composite system can be meaningfully specified. Part of this energy is associated directly with the interaction itself and cannot be unambiguously attributed to either collection of constituents. A simple illustration is provided by the collision of two molecules: as they approach, electrostatic interactions build up, temporarily storing energy in the interaction field; when the molecules separate again, this contribution vanishes. Once separated, the molecules return to being well-defined systems only if the internal dynamics has eliminated the correlations generated during the interaction.
An important exception arises when the interaction is produced by a controlled variation of an external parameter common to both systems. In a weight process, for example, a rigid coupling can be engineered between a system parameter and the elevation of a weight in a gravitational field. Since the weight has a single independent property, no elastic or field-mediated energy storage external to the systems is involved. As a result, the system and the weight remain continuously separable and uncorrelated, and thus qualify as bona fide systems throughout the process.
In the modeling of complex energy systems, it is essential to identify subsystems in a manner that allows the contributions of each to the overall entropy generation by irreversibility to be clearly identified. This analysis is carried out through energy and entropy balances, which require explicit specification of the types of interactions through which subsystems exchange energy and entropy. The classification of interactions into categories such as work, heat, diffusion, heat-and-diffusion, and radiative interactions is therefore instrumental and can be achieved only through precise and restrictive definitions.
In particular, the concepts of work and heat provide a quantitative means to distinguish entropy generated by irreversibility from entropy exchanged through interaction. As will be shown, these concepts enable the precise identification of opportunities to reduce entropy generation and thereby improve the energy performance of thermodynamic systems.

35. Work Interactions

Work interactions involve exchanges of energy and volume only, without any exchange of entropy or constituents. The energy transferred between system A and B by means of a work interaction is called work and denoted with the symbol W A B , which assumes positive values if the energy is transferred from A to B and negative if the transfer is in the opposite direction. We use the symbol δ W A B when the amount of energy transferred is infinitesimal and W ˙ A B for the rate of transfer in a continuous process. When the context allows it, and the focus is on system A (and B is its environment), the symbols may be simplified to W A , δ W A , and W ˙ A or even W , δ W , and W ˙ . Notice the identity W A B = W A B , i.e., reversing the arrow on the symbol is equivalent to changing its sign: a negative value of W A B means that the transfer is from A to B, opposite to the direction of the arrow.
A process in which a system undergoes only work-type interactions is called an adiabatic process. If system A changes from state A 1 to state A 2 in an adiabatic process, the energy exchange E A is equal to the opposite of the work done on the environment W A , and the entropy exchange S A = 0 . Denoting the entropy generated within system A by S irr A , the energy and entropy balances for an adiabatic process take the alternative forms
E 2 A E 1 A = W A       S 2 A S 1 A = S irr A
d E A = δ W A       d S A = δ S irr A
d E A / d t = W ˙ A       d S A / d t = S ˙ irr A
The ES diagram allows a graphical illustration of these ideas. Consider first the example of a system A consisting of a battery and an ideal electric motor on whose shaft a weight B hangs as shown in Figure 26. At time t 1 , the battery is charged and the state is A 1 . Between t 1 and t 2 , the motor, connected to the battery terminals, is activated, the weight is raised and the system reaches state A 2 . Between t 2 and t 3 the battery is disconnected from the engine and system A remains perfectly isolated. However, the battery discharges internally and the system reaches the state A 3 in which the battery is completely discharged. It is clear that the mechanism that causes the internal discharge of the battery is always active. If its speed is much lower than the speed with which the lifting of the weight occurs, then the sequence of states is the broken one that passes through state A 2 . If instead the internal discharge and the weight lifting occur at comparable speeds and therefore proceed simultaneously, then the states between A 1 and A 3 follow a curved path, as shown in Figure 26.
Consider a work interaction between two identical systems A and B with identical values of the amounts of constituents and parameters (volume, etc.). With this particular choice, the stable equilibrium state curves of the two systems are identical and we can superpose their ES diagrams on a single plot. Assume (Figure 27) that states A 1 and A 2 have the same entropy, S 2 A = S 1 A , and the same holds for states B 1 and B 2 , S 2 B = S 1 B . The entropy balances, S A = S irr A 0 for system A and S B = S irr B 0 for system B, imply that, if A and B interact only with each other and not with other systems so that S B = S A = S A , then S B = S A = 0 , i.e., the exchange of energy between the two systems is not accompanied by any exchange of entropy. It is a work interaction, with W A B = E A = E B . Graphically, the work is represented by the equal length of the vertical segments A 1 A 2 and B 1 B 2 on the diagram in Figure 27. If the final states are A 2 and B 2 (as in Figure 27(Left)), the entropy balances also imply that the process is reversible (for both systems, S = 0 and S 2 = S 1 imply S irr = 0 ).
However, since A 2 and B 2 are not stable equilibrium states, they will evolve spontaneously towards stable equilibrium thus causing an irreversible generation of entropy. For example, in Figure 27(Center), the spontaneous evolutions start after the work interaction has ended, as the nonequilibrium states A 2 and B 2 relax towards the stable equilibrium states A 3 and B 3 , respectively. But the change of state from A 1 to A 3 can occur in many other ways, represented by different paths on these diagrams. The curved paths A 1 A 3 and B 1 B 3 in Figure 27(Right) show the possible paths when the spontaneous relaxations towards stable equilibrium occur in both systems simultaneously to the energy exchange by work interaction.
We already noted that all weight processes are also adiabatic, since a weight has zero entropy and cannot accomodate any entropy transfer. Not all adiabatic processes, however, are weight processes. For example, if system A has a work interaction with system B, as a result of which entropy is generated within B, the process for system A is adiabatic but not a weight process, since the effects external to A are not only mechanical. However, it can be shown that given any non-mechanical adiabatic process there always exists a weight process with the same initial and final states.

36. Non-Work Interactions

To begin the discussion of non-work interactions, let us introduce the symbol W to denote non-work, i.e., the energy transferred by means of a non-work interaction, and recall that we call non-work any interaction in which in addition to energy transfer there is also an entropy transfer. The balance equations for system A if it experiences a non-adiabatic process with both work and non-work interactions, become
E 2 A E 1 A = W A M A       S 2 A S 1 A = S A + S irr A
d E A = δ W A δ M A       d S A = δ S A + δ S irr A
d E A / d t = W ˙ A M ˙ A       d S A / d t = S ˙ A + S ˙ irr A
In the next subsections, we show that in non-work interactions the initial states of the interacting systems determine the range of values of the entropy transfer that allow a given energy transfer. Notice that for a cyclic process ( E 2 E 1 = 0 and S 2 S 1 = 0 ) we have W A = W A and S A = S irr A . Similarly, at steady state ( d E A / d t = 0 and d S A / d t = 0 ) we have W ˙ A = W ˙ A and S ˙ A = S ˙ irr A . In these special cases, the conditions S irr A 0 and S ˙ irr A 0 imply that
S A | cyclic process 0 S ˙ A | steady state 0
These relations are general forms of the so-called Clausius inequality (we will see its traditional forms in Section 42).

37. Entropy Transfer Bounds in Non-Work Interactions

Before proceeding with the precise definition of heat interactions, let us clarify an important point by considering two systems, A and B (Figure 28(Top)), initially at different temperatures T 1 A and T 1 B , which interact with each other directly (or are made to interact indirectly through some cyclic machinery X, but without leaving net effects external to A B ) in such a way as to exchange an amount of energy equal to δ E A B .
For systems A and B, the energy and entropy balances are
d E A = δ E A B d S A = δ S A B + δ S irr A δ S irr A 1 A 0
d E B = δ E A B d S B = δ S A B + δ S irr B δ S irr B 1 B 0
Moreover, the maximum entropy principle implies the inequalities44
d S A 2 A d E A T 1 A + 1 2 2 S SES E 2 n , V 1 A ( d E A ) 2 3 A d E A T 1 A
d S B 2 B d E B T 1 B + 1 2 2 S SES E 2 n , V 1 B ( d E B ) 2 3 B d E B T 1 B
Combining these relations (by eliminating d E A , d S A , d E B , d S B ), yields
δ S A B + δ S irr A 2 A , 3 A δ E A B / T 1 A and δ S A B + δ S irr B 2 B , 3 B δ E A B / T 1 B
and, solving for δ S A B , we obtain the following important train of inequalities.45
δ E A B T 1 A 2 A , 3 A δ S A B δ S irr A 1 A δ S A B 1 B δ S A B + δ S irr B 2 B , 3 B δ E A B T 1 B
from which it is observed that, short of additional conditions, there is no unique relationship between the exchanged entropy δ S A B , the exchanged energy δ E A B , and the initial temperatures T 1 A and T 1 B . In other words, δ S A B can range from δ E A B / T 1 A to δ E A B / T 1 B .
The ES diagrams in Figure 28 provide a graphical illustration of the various elements of the above derivation. The dashed lines represent the range of possible final states A 2 and B 2 , respectively, while the dotted paths (from A 1 to A 2 and from B 1 to B 2 ) represent one particular realization, compatible with Rel. (98), in which the systems, simultaneously to their energy and entropy exchange, relax toward stable equilibrium but at time t 2 have not reached yet the stable equilibrium state.
It is important to note that in the very special limiting cases in which the initial temperatures of A and B are very close, i.e., for T 1 A T 1 B , the range of possible values of δ S A B defined by Rel. (98) shrinks to a single value. Furthermore, in order for all equality signs to hold in this limit, it is necessary for both A and B to end up in stable equilibrium states, and δ S irr A = δ S irr B = 0 . In Section 40 we will prove that this limiting situation is important and is precisely what characterizes a heat interaction, because then and only then the non-work interaction is entirely distinguishable from work. But before that, we discuss other important results that follow from Relation (98).
For example, if δ E A B is negative, using the identities δ E A B = δ E A B and δ S A B = δ S A B Rel. (98) is more conveniently rewritten in the equivalent form
δ E A B T 1 A 2 A , 3 A δ S A B + δ S irr A 1 A δ S A B 1 B δ S A B δ S irr B 2 B , 3 B δ E A B T 1 B
The direct reading of either Rel. (98) or (99) yields the following general conclusion (theorem): two systems initially in stable equilibrium states with different temperatures that interact with each other and nothing else cannot exchange energy without a simultaneous exchange of entropy, unless their temperatures have opposite signs. For positive temperatures, say T 1 A > T 1 B > 0 , to accomplish a given energy transfer δ E A B the interaction must produce also an entropy transfer δ S A B , at least equal δ E A B / T 1 A but not more than δ E A B / T 1 B . Said differently, a work interaction ( δ S A B = 0 ) between A and B under these conditions is impossible for temperatures of the same sign, whereas for initial temperatures of opposite signs can occur only if the work is in the direction from the system with higher value of 1 / T into the one with lower value.

38. Clausius Statement of the Second Law (Proof)

The train of inequalities in Rel. (98) provides, among other things, the ‘proof’.46 of Clausius’ statement (1850) of the second law of thermodynamics, which states that a process that has as its only effect the transfer of energy from a system in a stable equilibrium state with positive temperature to another at a higher temperature is not possible, not even if the energy transfer is infinitesimal.
The proof follows directly from Rel. (98) or the equivalent (99). By focusing on the extreme sides of these inequalities and collecting δ E A B , we obtain
1 T 1 A 1 T 1 B δ E A B 0 o r 1 T 1 A 1 T 1 B δ E A B 0
From this follows that the interaction with δ E A B > 0 is possible only if the temperatures are such that 1 / T 1 A 1 / T 1 B , i.e., only if either T 1 A T 1 B 0 (both A and B are normal systems, i.e., their stable equilibrium states have positive temperatures) or T 1 A T 1 B 0 (both A and B are special systems and are both in stable equilibrium states with negative temperatures) or T 1 A 0 and T 1 B 0 (A is a special system in a negative-temperature stable equilibrium state, while B is in a positive-temperature stable equilibrium state).
For positive temperatures, which is the only possibility for almost all practical systems of engineering interest, these inequalities simplify to
( T 1 A T 1 B ) δ E A B 0 o r ( T 1 B T 1 A ) δ E A B 0
from which it is easier to see that δ E A B can be positive, and thus the flow of energy can be in the direction from system A to system B only if T 1 A T 1 B , i.e., if A is “warmer” than B. From this result, it emerges that, in the realm of normal systems, temperature measures the tendency of a system in a stable equilibrium state to give up energy.47
The ES diagrams in Figure 28 provide a graphical illustration of the reasons why the Clausius’ statement holds true. The dashed lines in the diagrams show the range of possible final states A 2 and B 2 . For δ E A B > 0 , i.e., to transfer energy out of system A, we must transfer out of A (and therefore into B) also at least δ E A B / T 1 A of entropy. But the maximum entropy that B can accomodate is δ E A B / T 1 B .
Similar limitations, but more restrictive, apply in general if the energy transfer is to be finite, E A B . The ES diagrams in Figure 29 show the graphical constraints, which depend on the fundamental relations of the two systems. In fact, to transfer energy out of system A, we must transfer out of A (and therefore into B) also at least the amount of entropy needed to reduce its entropy at or below the maximum value possible for its final energy E 2 A = E 1 A E A B . At most, system B can accomodate the amount of entropy needed to end in the stable equilibrium state with its final energy E 2 B = E 1 B + E A B . Therefore, the ranges of possible final states are as shown by the dashed lines in the Figure. The generalization of Relation (98) to this case is (dropping superscripts on n and V for compactness)
S SES A ( E 1 A , V , n ) S SES A ( E 1 A E A B , V , n ) S A B S SES B ( E 1 B + E A B , V , n ) S SES B ( E 1 B , V , n )
which entails, albeit implicitly through the fundamental relations of the two interacting systems, a restriction on how much energy E A B the two systems can exchange for the given initial stable equilibrium states as well as the lower and upper bounds on the entropy S A B that must and can be transferred for a given energy transfer E A B . Note that for a normal system both entropy bounds have the same sign as E A B and, therefore, also S A B has the same sign, meaning that the entropy transfer is in the same direction as the energy transfer.

39. Clausius Statement of the Second Law Extended to Nonequilibrium

The foregoing result allows us to extend Clausius’ statement of the second law to a process that has as its only effect the transfer of energy and entropy between subsystems A and B that start in nonequilibrium states A 1 and B 1 . Repeating the same procedure we used to derive Relation (102), it is easy to show that for a finite transfer of energy E A B we end up again with the same inequalities
S 1 A S SES A ( E 1 A E A B , V A , n A ) S A B S SES B ( E 1 B + E A B , V B , n B ) S 1 B
where, however, the left hand side can be negative, and therefore, the direction of net entropy transfer may be zero or even opposite to that of the energy transfer. This may occur when the state of the system that yields energy to the other is sufficiently far from stable equilibrium. More precisely, for E A B > 0 , this occurs when
D 1 A S SES A ( E 1 A , V A , n A ) S SES A ( E 1 A E A B , V A , n A )
or, for E A B < 0 , when
D 1 B S SES B ( E 1 B , V B , n B ) S SES B ( E 1 B + E A B , V A , n A )
where D 1 A and D 1 B denote the (nonnegative) “distances from stable equilibrium” of the initial nonequilibrium states A 1 and B 1 , respectively defined by
D 1 A = S SES A ( E 1 A , V A , n A ) S 1 A and D 1 B = S SES B ( E 1 B , V B , n B ) S 1 B
Clearly, if the net entropy transfer may be zero, it means that the energy exchange E A B can be done by means of a work interaction.
If the transfer of energy is infinitesimal, Rel. (103) becomes
δ E A B T SES A ( E 1 A , V A , n A ) D 1 A S A B δ E A B T SES B ( E 1 B , V B , n B ) + D 1 B
which of course, reduces to Rel. (98) if the initial states are stable equilibrium ( D 1 A = D 1 B = 0 ). But in general, if the distances from stable equilibrium are finite, the infinitesimal terms on the rhs and lhs can be neglected, leaving
D 1 A S A B D 1 B
which involves no approximation if the energy transfer is exactly zero and means that in principle it is possible to achieve “pure entropy transfer interactions” ranging from the two extremes whereby on the one end A is placed in a stable equilibrium state by receiving from B an amount S A B = D 1 A , and on the other end B is placed in a stable equilibrium state by receiving from A an amount S A B = D 1 B .
Similar conclusions can be drawn from Rel. (103) for finite values of E A B . Focusing on the extreme sides of those inequalities, we obtain (dropping the dependence on n and V for compactness)
S 1 A S SES A ( E 1 A E A B ) S SES B ( E 1 B + E A B ) S 1 B
or equivalently, in terms of D 1 A and D 1 B ,
S SES A ( E 1 A ) S SES A ( E 1 A E A B ) D 1 A S SES B ( E 1 B + E A B ) S SES B ( E 1 B ) + D 1 B
This represents the extension of Clausius’ statement of the second law to nonequilibrium states. Indirectly, through the fundamental stable-equilibrium-state relations of the two systems, it entails a bound on the amount of energy that can be transferred from A to B for the given initial nonequilibrium states A 1 and B 1 .

40. Heat Interactions: Definition

A special limiting class of non-work interactions between two systems that are initially in stable equilibrium states is one that can be completely distinguished from a work interaction. Here, we will define precisely what we mean by this and prove that it may happen only in the limiting situation in which the difference in the initial temperatures of the interacting systems vanishes. In this limit, the ratio of the exchanged energy to the exchanged entropy equals the initial temperature of either system. This is called a heat interaction, and the resulting energy exchanged is called heat.
To do this, consider again the interaction between A and B sketched in Figure 28 and suppose that we operate it as the result of the sequence of two separate processes with the assistance of a stationary or cyclic machine48 X interposed between A and B as sketched in Figure 30.49 In the first process, machine X receives from A the amounts of energy δ E A X and entropy δ S A X respectively equal to the amounts δ E A B and δ S A B that in Figure 28 pass directly from A to B. Machine X uses them to attempt to separate part of the energy received from A and to store it temporarily by lifting a weight G. System A ends up in the same state A 2 as in Figure 28, while system B ends up in a different state B 2 . In the second process (Figure 31), the weight transfers to B the energy it received from the machine, and B ends up in the same state B 2 as in Figure 28. In the end, the sequence of two processes has the same net effects and, therefore, is equivalent to the direct exchange process in Figure 28. However, if the initial conditions of A and B are such that the amount of energy passed to the weight G is non-negligible, we must conclude that a finite fraction of the energy received by B (specifically, the energy it receives from the weight in the second process in Figure 31) is clearly identifiable as work. In this case, the non-work interaction between A and B is not heat.
To calculate what fraction of the energy δ E A X the machine X can transfer to the weight G, we write the energy balance for X and the entropy balance for the composite system A X B in the process of Figure 30, recalling that by definition d S X = 0 ,
0 = δ E A X δ W X G δ E X B d S A + d S B = δ S irr A X B 0
The energy balances for system A and system B (before receiving the work δ W G B ) are
d E A = δ E A X and d E B = δ E X B
Furthermore, as previously seen, the principle of maximum entropy and the fact that initially A and B are is stable equilibrium states requires that
d S A d E A T 1 A and d S B d E B T 1 B
where the strict equalities hold only if they also end in stable equilibrium states. Combining these relations, we obtain
δ W X G 1 T 1 B T 1 A δ E A X T 1 B δ S irr A X B
where the equality sign holds only if both A and B end in stable equilibrium states. In the best-case scenario, namely, if the machine X operates reversibly ( δ S irr A X B = 0 ) and both A and B end in stable equilibrium states, the fraction of the energy that X receives from A manages to send to G is equal to
δ W max X G δ E A X = 1 T 1 B T 1 A
This result is interesting in itself, because it proves the famous Carnot expression for the maximum work. But here, its importance is in showing that if T 1 A T 1 B , this fraction assumes finite values and therefore we conclude that a finite fraction of the exchanged energy δ E A B can be separated as work.
However, in the limit as T 1 A T 1 B , we have
lim T 1 A T 1 B δ W max X G δ E A B = 0
In this limit, i.e., in practical terms, when the temperatures T 1 A and T 1 B differ by at most an infinitesimal amount, ( T 1 A T 1 B ) T 1 B , machine X, even under the best conditions, cannot possibly spit the energy transferred between A and B so that a finite fraction is work. These are the limiting conditions that define a “heat interaction,” i.e., a non-work interaction entirely distinguishable from work, in which the interacting systems exchange energy and entropy, but no constituents nor volume. The extension of this same logic and definition to interactions that in addition to energy and entropy exchange also volume and constituents is discussed in the following sections.
Rel. (98) implies that in the limit as T 1 A T Q and T 1 B T Q the difference between the upper and lower bounds to allowed values of δ S A B for a given value of δ E A B becomes vanishing; therefore, the range of possible values of δ S A B squeezes to a single value
δ E A B T Q = lim T 1 A T Q δ E A B T 1 A δ S A B lim T 1 B T Q δ E A B T 1 B = δ E A B T Q
In this limit, the relationship between the energy and entropy exchanged from A to B is uniquely determined by the temperature T Q at which the heat interaction occurs, where T Q denotes the nearly common value of the initial temperatures T 1 A and T 1 B of the two interacting systems. The exchanged energy is called “heat” and is traditionally denoted by the symbol Q instead of E , i.e., δ Q A B instead of δ E A B , so that Rel. (117) reduces to the famous relation
δ S A B = δ Q A B T Q
The ratio of the energy and entropy exchanged in a heat interaction is equal to the temperature at which the interaction occurs.
Often, in practical applications, as sketched in Figure 32, a system A may not be in a stable equilibrium state but can be modeled as the composition of multiple subsystems, one of which, A , is in (or near) a stable equilibrium state at temperature T Q . Similarly, also system B may consist of multiple subsystems, one of which, B , is in (or near) a stable equilibrium state at a temperature that differs from T Q by an infinitesimal amount, T Q ± d T . If the two subsystems A and B undergo a heat interaction at temperature T Q then we generalize the definition given above and say that systems A and B undergo a heat interaction at temperature T Q across their contact through their respective subsystems A and B , even if A and B do not start in stable equilibrium states.

41. The Role of Heat Interactions in Heat Transfer Modeling

Among the conditions that identify heat interactions, the most restrictive one appears to be the requirement that the temperature difference between the interacting systems be infinitesimal. In fact, the common notion of heat seems in contradiction with this idea, since in everyday language we always refers to heat as the energy exchanged between systems at different temperatures. However, when two bodies at different temperatures come into contact, the phenomenology is quite complex because the contact brings them into nonequilibrium states. The discipline that studies this ubiquitous phenomenon is traditionally called heat transfer.
These nonequilibrium states are usually modeled by making the continuum, local quasi-equilibrium, and simple-system assumptions. We do not discuss these assumptions here in any detail, but it is well known that they allow to represent the two interacting bodies as composite systems made up of many small (infinitesimal volume) subsystems (fluid parcels, in fluid mechanics; material points, in solid mechanics), each in a nonequilibrium state not too far from stable equilibrium so that, even if they are nonequilibrium states, some of their properties can be approximated with those of the unique stable equilibrium state with the same energy and compatible amounts of constituents, that each small volume would spontaneously reach if it were isolated from the adjacent volumes. Among these “local” properties is the temperature and as a result the model defines a generally continuous field of temperature that may vary with time. The interaction between adjacent small volumes through their surface of contact is well approximated by a heat interaction. Indeed, by continuity the temperatures assigned to adjacent infinitesimal elements of the continuum may differ only infinitesimally, thus fulfilling the very restrictive limiting condition that defines a heat interaction.
For simplicity, consider the one-dimensional case as schematized in Figure 33, and the small volume between the surfaces at x and x + d x , where the assigned local temperatures are T and T + d T , respectively. Assuming only heat interactions, the small volume receives energy δ Q ˙ x and entropy δ Q ˙ x / T x through the contact interface at temperature T x and gives away energy δ Q ˙ x + d x and entropy δ Q ˙ x + d x / T x + d x through the one at T x + d x . The energy and entropy balances for the small volume are
d ( δ E ) d t = δ Q ˙ x δ Q ˙ x + d x d ( δ S ) d t = δ Q ˙ x T x δ Q ˙ x + d x T x + d x + δ S ˙ irr
For example, if it is in a steady-state, i.e., its energy δ E and δ S remain constant in time, the energy balance implies δ Q ˙ x + d x = δ Q ˙ x and the entropy balance may be rewritten as
δ S ˙ irr = δ Q ˙ x 1 T x + d x 1 T x = δ Q ˙ x d ( 1 / T x ) d x d x = δ Q ˙ x 1 T x 2 d T x d x d x
where we used the continuity of the temperature field to write T x + d x = T x + ( d T x / d x ) d x . The condition δ S ˙ irr 0 must of course be always satisfied. In fact, Fourier’s law of heat conduction assumes δ ˙ Q ˙ x = k A d T x / d x , with k positive and representing thermal conductivity and A the surface area of the contact interfaces at x and x + d x where the heat interactions occur. Dividing by A   d x and denoting the entropy production per unit volume by σ = δ S ˙ irr / ( A   d x ) and the x-component of the heat flux vector by q x = δ Q ˙ x / A , the entropy production density takes the well-known equivalent forms
σ = q x d ( 1 / T x ) d x = q x 1 T x 2 d T x d x = k 1 T x 2 d T x d x 2 = ( q x ) 2 k T x 2
At steady state, the small volume maintains its entropy constant by releasing through the contact interface at x + d x exactly the sum of the entropy it generates by irreversibility and the entropy it receives from the contact interface at x. The small volume generates entropy due to irreversibility because its state is steady-state but nonequilibrium, near but not coinciding with the stable equilibrium state at temperature T x . Therefore, maintaining it at steady state requires to balance the competition between its internal dynamics, which would spontaneously push it towards equilibrium, and the heat interactions with adjacent small volumes, which keep it in disequilibrium.

42. Energy and Entropy Balances and Clausius Inequalities for Closed Systems

A system subjected only to interactions that do not transfer amounts of constituents is called a closed system. If the modes of interaction are only work and heat, the energy and entropy balances take the forms
E 2 A E 1 A = i W i A j Q j A S 2 A S 1 A = j Q j A / T Q j + S irr A
d E A = i δ W i A j δ Q j A d S A = j δ Q j A / T Q j + δ S irr A
d E A / d t = i W ˙ i A j Q ˙ j A d S A / d t = j Q ˙ j A / T Q j + S ˙ irr A
For a cyclic process ( E 2 E 1 = 0 and S 2 S 1 = 0 ) or at steady state ( d E A / d t = 0 and d S A / d t = 0 ) they entail the following special forms of Clausius inequalities (92)
j Q j A T Q j cyclic process 0 j Q ˙ j A T Q j steady state 0
As another special case, for historical rather than practical reasons, consider a temporal sequence of processes for system A that takes it from state A 1 at time t 1 to state A 2 at time t 2 . At each step of the sequence, i.e., in the interval from t to t + d t , the system experiences only work interactions of magnitudes i δ W i A = i W ˙ i A ( t ) d t and heat interactions of magnitude j δ Q j A = j Q ˙ j A ( t ) d t at temperatures T Q j ( t ) which may all vary with time. By integrating the energy and entropy balances from time t 1 to time t 2 , we obtain
E 2 E 1 = t 1 t 2 i W ˙ i A ( t ) d t t 1 t 2 j Q ˙ j A ( t ) d t
S 2 S 1 = t 1 t 2 j Q ˙ j A ( t ) T Q j ( t ) d t + t 1 t 2 S ˙ irr ( t ) d t
If the process is cyclic, i.e., the final state A 2 coincides with the initial state A 1 , then E 2 E 1 = 0 and S 2 S 1 = 0 . The energy balance yields j Q ˙ j A ( t ) d t = i W ˙ i A ( t ) d t and the entropy balance, using the condition S ˙ irr ( t ) 0 , yields the relation known as the Clausius inequality
t 1 t 2 j Q ˙ j A ( t ) T Q j ( t ) d t 0
where the symbol ∮ serves as reminder that the relation is valid only if the process is cyclic.

43. Non-Work Interactions with Exchanges of Volume

In this section, we consider two systems, A and B (Figure 34), initially in stable equilibrium states with different temperatures T 1 A and T 1 B , and different pressures p 1 A and p 1 B . They interact with each other (and nothing else) in such a way as to exchange an amount of energy equal to δ E A B but, differently from the cases considered this far, they can also exchange volume through a sliding piston that remains rigid and (except for position) returns to its initial state.
To the energy and entropy balances, we must add the volume balance
d E A = δ E A B d V A = δ V A B d S A = δ S A B + δ S irr A δ S irr A 0
d E B = δ E A B d V B = δ V A B d S B = δ S A B + δ S irr B δ S irr B 0
Moreover, the maximum entropy principle together with the Taylor series expansion of the fundamental relation imply, for either system, the inequalities
d S ( d E + p 1 d V ) / T 1 + d E , V 2 S SES / 2 + ( d E + p 1 d V ) / T 1
because the second differentials of the fundamental relations are non-positive by the conditions on stability,
d E , V 2 S SES = 2 S SES E 2 E 1 , V 1 ( d E ) 2 + 2 2 S SES E V E 1 , V 1 d E d V + 2 S SES V 2 E 1 , V 1 ( d V ) 2 0
The first strict equality in Rel. (131) holds when the system ends in a stable equilibrium state, and the second when the second differential is zero, e.g., for thermal reservoirs with variable amounts of constituents, for which temperature and pressure have the same values for all stable equilibrium states.
Combining these relations, by eliminating d E A , d V A , d S A , d E B , d V B , d S B , and using δ S irr A 0 , δ S irr B 0 , yields
δ S A B ( δ E A B + p 1 A δ V A B ) / T 1 A δ S A B ( δ E A B + p 1 B δ V A B ) / T 1 B
which together become
δ E A B + p 1 A δ V A B T 1 A δ S A B δ E A B + p 1 B δ V A B T 1 B
Again, for the new set of conditions, these inequalities set lower and upper bounds to the range of values that the entropy transfer must and can take for given transfers of energy and volume.
Also here, in the limiting case where A and B start almost in mutual equilibrium ( T 1 A T 1 B and p 1 A p 1 B ) such range of values shrinks to a single value
δ S A B = δ E A B + p 1 δ V A B T 1
In the particular case of an adiabatic piston, whereby δ S A B = 0 , so the interaction is work, denoting the energy transfer by δ W A B instead of δ E A B and using the identity δ V A B = δ V A B the relation becomes
δ W A B = p 1 δ V A B
But, under these conditions, a work interaction ( δ S A B = 0 ) between A and B is also possible if p 1 A p 1 B provided the energy and volume transfers obey the conditions
δ W A B + p 1 A δ V A B T 1 A 0 δ W A B + p 1 B δ V A B T 1 B
For positive temperatures, these imply p 1 B δ V A B δ W A B p 1 A δ V A B so that δ V A B 0 (the piston in Figure 34 moves to the right) requires p 1 A p 1 B ,
p 1 B δ W A B δ V A B p 1 A
For example, consider the setup sketched in Figure 35, where a weight G of mass m G = ( p 1 A p 1 B ) a / g is attached to the piston (of surface area a) so as to balance exactly the different pressures exerted on its two sides. When δ V A B > 0 , the piston moves to the right and lifts the weight. The above relations do not hold at this stage because the assumption that systems A and B interact directly without other effects is not satisfied. In fact, it is a weight process for the composite system A B and the work done is δ W A B G = ( p 1 A p 1 B ) δ V A B .
But if we return the weight to its initial height by giving its energy back to A B by means of fixed-piston weight processes for A and B, then the assumption is fulfilled and the net final effect is a work interaction between A and B (with no net external effects) accomplished via the piston and the weight. If we denote by α the fraction of δ W A B G given to B ( 0 α 1 ) and 1 α that given to A, the net works for A and B are δ W A = p 1 A δ V A B ( 1 α ) δ W A B G = δ W B = p 1 B δ V A B + α δ W A B G or, equivalently, δ W A B = α p 1 A + ( 1 α ) p 1 B , which upon varying α fills the entire range of values allowed by Relation (138). Of course, the work interactions with the weight leave A and B in nonequilibrium states, and therefore, the systems will spontaneously relax toward stable equilibrium, thus generating entropy.

44. Non-Work Interactions with Exchanges of Constituents

In this section, we consider two systems, A and B (Figure 36), initially in stable equilibrium states with different temperatures T 1 A and T 1 B , and different chemical potentials { μ i } 1 A and { μ i } 1 B , where { μ i } 1 A is shorthand for μ 1 | 1 A , μ 2 | 1 A ,…, μ r | 1 A and similarly for { μ i } 1 B . They interact with each other (and nothing else) in such a way that the overall exchange of energy is δ E A B , and in addition, there are also exchanges of amounts of constituents, { δ n i A B } , through one or more apertures that open when the interaction begins and close immediately after, leaving the volumes unchanged.
To the energy and entropy balances we must add a balance for each type of constituent,
d E A = δ E A B d n i A = δ n i A B d S A = δ S A B + δ S irr A δ S irr A 0
d E B = δ E A B d n i B = δ n i A B d S B = δ S A B + δ S irr B δ S irr B 0
The maximum entropy principle together with the Taylor series expansion of the fundamental relation imply, for either system, the inequalities
d S ( d E i μ i | 1 d n i ) / T 1 + d E , n 2 S SES / 2 + ( d E i μ i | 1 d n i ) / T 1
because all second differentials of the fundamental relations are non-positive by the conditions on stability. The first strict equality holds when the system ends in a stable equilibrium state, and the second when the second differential is zero, e.g., for thermal reservoirs with variable amounts of constituents, for which temperature and chemical potentials have the same values for all stable equilibrium states.
Combining these relations by eliminating d E A , d n i A , d S A , d E B , d n i B , d S B , using δ S irr A 0 , δ S irr B 0 , and proceeding like in the previous sections, yields
δ E A B i μ i | 1 A δ n i A B T 1 A δ S A B δ E A B i μ i | 1 B δ n i A B T 1 B
Again, for the new set of conditions, these inequalities set lower and upper bounds to the range of values that the entropy transfer can take for given transfers of energy and constituents. Also here, in the limiting case where A and B start almost in mutual equilibrium ( T 1 A T 1 B and { μ i } 1 A { μ i } 1 B ), such range of values shrinks to the single value
δ S A B = δ E A B i μ i | 1 δ n i A B T 1

45. Non-Work Interactions with Exchanges of Volume and Constituents

If volume is also exchanged, as sketched in Figure 37, the interaction is possible when
δ E A B + p 1 A δ V A B i μ i | 1 A δ n i A B T 1 A δ S A B δ E A B + p 1 B δ V A B i μ i | 1 B δ n i A B T 1 B
In the limiting case where A and B start almost in mutual equilibrium ( T 1 A T 1 B , p 1 A p 1 B , and { μ i } 1 A { μ i } 1 B ), such range of values reduces to the single value
δ S A B = δ E A B + p 1 δ V A B i μ i | 1 δ n i A B T 1
Figure 37. Systems A and B start in stable equilibrium states and interact directly without other effects by exchanging energy, entropy, amounts of constituents, and volume. Such an interaction can occur only if Rel. (144) is satisfied.
Figure 37. Systems A and B start in stable equilibrium states and interact directly without other effects by exchanging energy, entropy, amounts of constituents, and volume. Such an interaction can occur only if Rel. (144) is satisfied.
Entropy 28 00371 g037

46. Heat-And-Diffusion Interactions: Definition

The above results lead to the following important definition of another special limiting class of non-work interactions between systems initially in stable equilibrium states. Since it can be viewed as a generalized form of heat interaction combined with the diffusion of constituents, we call it heat-and-diffusion interaction. As for heat, the conceptual and practical definition of heat-and-diffusion hinges on its complete distinguishability from work. The procedure is a simple extension of the discussion in Section 40, so we can skip most details and go directly to the results.
Consider first the case of Figure 36 (no volume exchange). Let us interpose a cyclic machine X between interacting systems A and B with the purpose to intercept the energy, constituents, and entropy they exchange and attempt to channel as much energy as possible into lifting a weight G, as sketched in Figure 38. If the machine is successful, the subsequent step, like in Figure 31, is a weight process in which system B receives the energy temporarily stored by lifting the weight, so that the end final effect is the same as in Figure 36, but we can say that part of the energy transferred from A to B is clearly identifiable as work.
By writing balances of energy, entropy, and constituents, and using the maximum entropy principle, like we have done above to obtain Rels. (114) and (115), we can easily show that the maximum work that machine X can transfer to the weight is
δ W max X G = 1 T 1 B T 1 A δ E A X + i μ i | 1 A T 1 B T 1 A μ i | 1 B δ n i A B
This result is interesting in itself, because it generalizes the famous Carnot expression for the maximum work. But here, its importance is in showing that it is only in the limit as T 1 A T 1 B and { μ i } 1 A { μ i } 1 B for every i that the maximum work vanishes. This limit defines the heat-and-diffusion mode of interaction. We have already proved that in this limit the exchanges of energy, entropy, and constituent are uniquely related by Equation (143),
δ S A B = δ E A B i μ i | 1 δ n i A B T 1
which of course may be viewed as a generalization of the famous relation δ S A B = δ E A B / T 1 (Equation (118)) which holds for simple heat interactions.
However, it would be misleading to think of the entire energy transfer as “heat.” In fact only part of δ E A B and part of δ S A B can be interpreted as associated to heat. To this end, let us note that, in general, the chemical potentials may be written as μ i = h i T s i where h i = H / n i T , p , n and s i = S / n i T , p , n are the partial enthalpy and partial entropy of constituent i.50 Therefore, Equation (147) may be rewritten as
δ Q A B δ E A B i h i | 1 δ n i A B = δ S A B i s i | 1 δ n i A B T 1
where the first equality defines what is called measurable heat [42] (Par.III.3). Equivalently, we may write this as the generalization of Equation (118),
δ S A B i s i | 1 δ n i A B = δ Q A B T 1 = δ E A B i h i | 1 δ n i A B T 1
which shows that the temperature T 1 at which the heat-and-diffusion interaction occurs is not equal to the ratio δ E A B / δ S A B of the entire energy transfer to the entire entropy transfer, but it is equal to the ratio δ E A B i h i | 1 δ n i A B / δ S A B i s i | 1 δ n i A B of only the portions of energy and entropy transfers not directly associated with the diffusion of constituents. In other words, the measurable heat δ Q A B in a heat-and-diffusion interaction is the difference between the overall energy transfer δ E A B and the enthalpy transfer i h i | 1 δ n i A B , which in turn can be viewed as the energy transfer due in part to the internal energy carried by the diffused constituents and in part to the pulsion work needed to move them against their local partial pressures.51
Similarly to Equation (143), for the case of Figure 37 in which also volume is exchanged, we may use the identity μ i = h i T s i in Equation (145) and define the measurable heat δ Q A B so that the energy and entropy transfers can be written as follows
δ E A B = δ Q A B + i h i | 1 δ n i A B + p 1 δ V A B
δ S A B = δ Q A B T 1 + i s i | 1 δ n i A B

47. Availabilities with Respect to Various Kinds of Thermal Reservoirs

We now return to the concept of available energy, previously introduced in the context of a system A interacting with a thermal reservoir R through a weight process for A R . In that setting, the maximum amount of energy that can be transferred to a weight is achieved when the process is reversible, and when the system ends in a state of mutual stable equilibrium with the reservoir. The reservoir’s role as source or sink of entropy is indispensable to achieve reversibility of the weight process for A R . More generally, one may prescribe two arbitrary states of the system, say A 1 and A 2 , as sketched in Figure 39 and ask a different question: given access to interaction with a specified thermal reservoir, what is the maximum mechanical work that can be extracted during the transition from A 1 to A 2 , or, if work must be supplied, what is the minimum amount required? Questions of this kind are answered systematically by combining energy and entropy balances for the composite system with the fundamental relation of the reservoir.
In the simplest case, the thermal reservoir is characterized by fixed volume and composition. Its fundamental relation (Equation (80)) is linear, expressing proportionality between its energy and entropy changes, and a fixed temperature T R . In practical applications, however, the class of systems that can effectively play the role of thermal reservoirs is broader. Large portions of the environment—such as the atmosphere, oceans, lakes, or rivers—may exchange not only energy and entropy but also volume and matter with the system of interest. When the exchanged amounts are small compared to the size of the reservoir, such systems may still be idealized as thermal reservoirs, albeit with different sets of constrained and unconstrained variables. Each choice leads to a distinct fundamental relation for the reservoir and, correspondingly, to a distinct definition of available energy.
The notion of thermal reservoir may be conveniently generalized by relaxing the conditions of fixed volume and fixed amounts of constituents while maintaining the defining condition that in any of its stable equilibrium states it is in mutual equilibrium with a given system C in a fixed given state C R , provided that in addition to energy and entropy systems C and R can exchange also volume (if variable for R) and the amounts of constituents that are variable for R, if any. With this definition, the maximum entropy principle implies (recall Figure 16) that not only the temperature T R is the same for all the stable equilibrium states of the reservoir, but also the pressure p R (if it has variable volume) and the chemical potential μ i R of every constituent with variable amount.
In this section, we first review the classical case of available energy with respect to a thermal reservoir with fixed volume and fixed amounts of constituents. We then extend the analysis to four relevant classes of reservoirs, distinguished by whether volume and/or constituents may be exchanged between the system A and the reservoir R: (i) fixed V and fixed n ; (ii) variable V and fixed n ; (iii) fixed V, variable n i , and fixed n ; and (iv) variable V and variable n . In each case, we identify and define a corresponding “availability function” whose difference between states A 1 and A 2 provides a precise measure of the maximum work that can be obtained, or the minimum work that must be supplied, for the prescribed change of state, independently of whether A 1 and A 2 are equilibrium states or not. This availability function possesses an absolute minimum at the state of mutual equilibrium between the system and the reservoir, a feature that has important consequences for stability, concavity of fundamental relations, and response to perturbations.
  • Reservoir with fixed volume and amounts: Helmholtz availability function vs. Helmholtz free energy
With reference to Figure 39, assume that the thermal reservoir has fixed volume and amounts. Before imposing the reversibility of the weight process for A R , the energy and entropy balances are
( E 2 A E 1 A ) + ( E 2 R E 1 R ) = W 12 A ( S 2 A S 1 A ) + ( S 2 R S 1 R ) = S gen
Using the fundamental relation of R, E 2 R E 1 R = T R ( S 2 R S 1 R ) , to eliminate ( E 2 R E 1 R ) and ( S 2 R S 1 R ) from Equation (152) yields
W 12 A = E 1 A E 2 A T R ( S 1 A S 2 A ) T R S gen = W 12 rev A T R S gen
where we note that by defining the “Helmholtz availability function” Γ and recalling the definition of the available energy Ω R
Γ A = E A T R S A ( Ω R ) A = E A E R A T R ( S A S R A ) = Γ A Γ R A
we can express the optimal work as
W 12 rev A = ( Ω R ) 1 A ( Ω R ) 2 A = Γ 1 A Γ 2 A
Figure 40 gives a geometrical representation of the Helmholtz availability function Γ on the ES diagram of system A. It also shows graphically that Γ possesses an absolute minimum at state A R , where A and R are in mutual equilibrium, and hence, T R A = T R .
We finally note that in state A R , Γ R A = F R A where F = E T S is the Helmholtz free energy.52 But it is important to note that for all the other stable equilibrium states, Γ F , and while the Helmholtz availability function Γ is defined also for nonequilibrium states, the Helmholtz free energy F is not.53
The observation that Γ has an absolute minimum at state A R can be expressed by writing that
Γ 1 A Γ R A > 0 for every state A 1 A R with the same V and n s
From this, we can derive useful stability conditions, equivalent to those we already derived from the maximum entropy principle to prove the concavity of the fundamental relation. For example, choose A 1 to be the stable equilibrium state with the same values of V and n as state A R but with entropy S 1 A = S R A + d S . Then, Rel. (156) together with the Taylor expansion of fundamental relation for A, E 1 A = E A ( S 1 A , V , n ) , imply the general condition
Γ 1 A Γ R A = E A ( S R A + d S , V , n ) T R ( S R A + d S ) ( E R A T R S R A ) = 1 2 d 2 E A | V , n + > 0
which in turn implies the stability condition d 2 E A | V , n 0 .
  • Reservoir with variable volume and fixed amounts: Gibbs availability function vs. Gibbs free energy
Again with reference to Figure 39, assume now that the thermal reservoir has variable volume and fixed amounts and that A and R can exchange volume but no constituents. Before imposing the reversibility of the weight process for A R , the energy, entropy, and volume balance equations and the reservoir’s fundamental relation are
( E 2 A E 1 A ) + ( E 2 R E 1 R ) = W 12 A ( S 2 A S 1 A ) + ( S 2 R S 1 R ) = S gen
( V 2 A V 1 A ) + ( V 2 R V 1 R ) = 0 E 2 R E 1 R = T R ( S 2 R S 1 R ) p R ( V 2 R V 1 R )
Eliminating ( V 2 R V 1 R ) , ( E 2 R E 1 R ) and ( S 2 R S 1 R ) from these equations yields
W 12 A = E 1 A E 2 A T R ( S 1 A S 2 A ) + p R ( V 1 A V 2 A ) T R S gen = W 12 rev A T R S gen
and by defining the “Gibbs availability function” Φ and the available energy Ω R V
Φ A = E A T R S A + p R V A
( Ω R V ) A = E A E R A T R ( S A S R A ) + p R ( V A V R A ) = Φ A Φ R A
we can express the optimal work as
W 12 rev A = ( Ω R V ) 1 A ( Ω R V ) 2 A = Φ 1 A Φ 2 A
Also, Φ possesses an absolute minimum at state A R , where A and R are in mutual equilibrium and hence T R A = T R and p R A = p R . Moreover, in state A R , Φ R A = G R A where G = E T S + p V is the Gibbs free energy.54 But it is important to note that for all the other stable equilibrium states, Φ G , and while the Gibbs availability function Φ is defined also for nonequilibrium states, the Gibbs free energy G is not.
The stability condition that follows from the observation that Γ has an absolute minimum at state A R is
Φ 1 A Φ R A > 0 for every state A 1 A R with the same n s
  • Reservoir with fixed volume and variable amount for one constituent only: Osmotic availability function vs. osmotic free energy
Assume now that the thermal reservoir has fixed volume and variable amount constituent i only and that A and R can exchange constituents of type i (through a semi-permeable rigid membrane) but no other type of constituents nor volume. Before imposing the reversibility of the weight process for A R , the energy, entropy, and constituent i balance equations and the reservoir’s fundamental relation are
( E 2 A E 1 A ) + ( E 2 R E 1 R ) = W 12 A ( S 2 A S 1 A ) + ( S 2 R S 1 R ) = S gen
( n i 2 A n i 1 A ) + ( n i 2 R n i 1 R ) = 0 E 2 R E 1 R = T R ( S 2 R S 1 R ) + μ i R ( n i 2 R n i 1 R )
Eliminating ( n i 2 R n i 1 R ) , ( E 2 R E 1 R ) and ( S 2 R S 1 R ) from these equations yields
W 12 A = E 1 A E 2 A T R ( S 1 A S 2 A ) + μ i R ( n i 1 A n i 2 A ) T R S gen = W 12 rev A T R S gen
and by defining the “osmotic availability function” Φ and the available energy Ω R n i
Υ = E T R S μ i R n i
( Ω R n i ) A = E A E R A T R ( S A S R A ) + μ i R ( n i A n i R A ) = Υ A Υ R A
we can express the optimal work as
W 12 rev A = ( Ω R n i ) 1 A ( Ω R n i ) 2 A = Υ 1 A Υ 2 A
Also Υ possesses an absolute minimum at state A R , where A and R are in mutual equilibrium and hence T R A = T R and μ i R A = μ i R . Moreover, in state A R , Υ R A = E u R i A where
E u i = E T S μ i n i
is the osmotic free energy.55 But it is important to note that for all the other stable equilibrium states, Υ E u i , and while the osmotic availability function Υ is defined also for nonequilibrium states, the osmotic free energy E u i is not.
The stability condition that follows from the observation that Υ has an absolute minimum at state A R is
Υ 1 A Υ R A > 0 for every state A 1 A R with the same V and n s
  • Reservoir with variable volume and variable amounts for all constituents: Hill availability function vs. Hill (Euler) free energy
Finally, assume that the thermal reservoir has variable volume and variable amounts for all constituents and that A and R can exchange volume as well as all types of constituents. Before imposing the reversibility of the weight process for A R , the energy, entropy, volume and constituent balance equations and the reservoir’s fundamental relation are
( E 2 A E 1 A ) + ( E 2 R E 1 R ) = W 12 A ( S 2 A S 1 A ) + ( S 2 R S 1 R ) = S gen
( V 2 A V 1 A ) + ( V 2 R V 1 R ) = 0 ( n i 2 A n i 1 A ) + ( n i 2 R n i 1 R ) = 0 i
E 2 R E 1 R = T R ( S 2 R S 1 R ) p R ( V 2 R V 1 R ) + i μ i R ( n i 2 R n i 1 R )
Eliminating ( V 2 R V 1 R ) , ( E 2 R E 1 R ) , ( S 2 R S 1 R ) and all ( n i 2 R n i 1 R ) ’s yields
W 12 A = E 1 A E 2 A T R ( S 1 A S 2 A ) + p R ( V 1 A V 2 A ) + i μ i R ( n i 1 A n i 2 A ) T R S gen
and by defining the “Hill availability function” Ξ and the available energy Ω R V , n
Ξ = E T R S + p R V i μ i R n i
( Ω R V , n ) A = E A E R A T R ( S A S R A ) + p R ( V A V R A ) i μ i R ( n i A n i R A )
we can express the optimal work as
W 12 rev A = ( Ω R V , n ) 1 A ( Ω R V , n ) 2 A = Ξ 1 A Ξ 2 A
Also Ξ possesses an absolute minimum at state A R , where A and R are in mutual equilibrium and hence T R A = T R , p R A = p R , μ i R A = μ i R i . Moreover, in state A R , Ξ R A = E u R A where
E u = E T S + p V μ · n
is the Hill free energy.56 57 But it is important to note that for all the other stable equilibrium states, Ξ E u , and while the Hill availability function Ξ is defined also for nonequilibrium states, the Hill free energy E u is not. It is also worth noting that setting E u = 0 yields the Euler relation, E = T S p V + μ · n , which, however, does not hold in general but only within the simple-system model approximation (large amounts of constituents, macroscopic limit). In particular, for few-particle systems (nanothermodynamics), the Hill free energy E u does not vanish. It plays an important role in determining how specific properties depend on the amounts of constituents (lack of extensivity) (see Section 49), and it is related to the minimum work of partitioning and the maximum work that can be obtained by removing partitions (see Section 48).
The stability condition that follows from the observation that Ξ has an absolute minimum at state A R is
Ξ 1 A Ξ R A > 0 for every state A 1 A R

48. Work of Partitioning, Hill (Euler) Free Energy, and Subdivision Potential

The partitioning of a system into subsystems is a fundamental operation that clarifies the distinction between additivity and extensivity. Macroscopic and mesoscopic treatments often take for granted the “simple-system model approximation” [11,72], whereby a system in a stable equilibrium state can be subdivided into a composite of smaller subsystems without energetic or entropic cost. This approximation is a cornerstone of the continuum hypothesis required to define spatial fields in many nonequilibrium frameworks; it amounts to neglecting wall rarefaction, surface effects, finite-size constraints, and changes in the spectrum of accessible states introduced by physical partitions.
For systems with few particles, however, this approximation fails. Such effects introduce non-negligible energetic and entropic contributions associated with the subdivision of a system into subsystems. Here, it is vital to emphasize that “subsystems” refer to well-defined systems (separable and uncorrelated)—a fundamental condition for their individual energies and entropies to be formally defined.
As part of our rigorous operational construction, which remains valid for both few- and many-particle systems, we must explicitly account for the work required to establish the boundaries that define a partition. As we shall see, the Hill (Euler) free energy quantifies precisely this contribution and is therefore referred to as the subdivision potential. Its appearance in our derivation highlights that a thermodynamic description applicable to systems of arbitrary scale must account for deviations from extensivity rather than assuming them away from the outset—a necessity made even more explicit in the following section.
We consider a system initially in a stable equilibrium state and examine the thermodynamic cost of partitioning it into λ compartments. Each compartment is required to contain equal amounts of cconstituents, equal volume, and equal entropy, so that the partitioned system as a whole is again in a stable equilibrium state. Since the overall energy and entropy of the system are conserved in a reversible weight process, the transition from the unpartitioned to the partitioned configuration can, in principle, be carried out reversibly, and therefore admits a well-defined minimum work requirement.
The energy–entropy representation in Figure 41 provides a clear geometric interpretation of the many ways this process can be realized. Introducing partitions changes the definition of the system and, with it, the locus of stable equilibrium states. Immediately after the partitions are removed, the λ -compartment system A λ initially in the stable equilibrium A a a λ with energy E a and entropy S a finds itself transformed into a new single-compartment system A 1 in a nonequilibrium state, A a a 1 , even though its energy and entropy are unchanged. If left to itself, the state of A 1 would evolve spontaneously at constant energy E a toward the new stable equilibrium state A a b 1 with entropy S b , generating entropy by irreversibility S irr λ 1 = S b S a . Conversely, if the partitions are removed or introduced through a sufficiently rapid and controlled reversible weight process, it is possible to extract or supply the corresponding adiabatic availability, following a path of constant entropy.
From this viewpoint, the minimum work required to introduce λ partitions is equal to the maximum work that can be extracted when the λ compartments are reversibly merged into a single-compartment system. This work is given by the difference between the energy E b of the partitioned configuration with entropy S b and the energy E a of the unpartitioned system evaluated at the same entropy, volume, and amounts of constituents. By examining how this work changes when the number of compartments is varied by one unit, we identify a quantity naturally interpreted as the work associated with adding or removing a single partition. As shown below, this quantity coincides with the Hill (or Euler) free energy of each compartment of the partitioned system, thereby providing a direct physical interpretation of Hill’s free energy as the energetic cost of subdivision in systems with few particles.
It is noteworthy that, in general, the concavity of the fundamental relation S = S 1 ( E , V , n ) in all its variables (and the convexity of its positive-temperature energy form E = E 1 ( S , V , n ) ) implies its subadditivity, i.e., the following inequalities, which justify the relative positioning of the stable-equilibrium-state curves in Figure 41,
S λ = λ S 1 E λ , V λ , n λ < S 1 ( E , V , n ) E λ = λ E 1 S λ , V λ , n λ > E 1 ( S , V , n )
The minimum work of partitioning into λ identical compartments in identical stable equilibrium states is equal to the maximum work that can be obtained by removing the partitions. They obtain in reversible weight processes that connect states A a b 1 and A b b λ in one or the other direction,
W min 1 λ = W max λ 1 = E b b λ E a b 1 = λ E 1 S b λ , V λ , n λ E 1 ( S b , V , n ) > 0
It is interesting to compute the minimum work to increment λ by one and the maximum work to decrement λ by one
W min λ λ + 1 = W min 1 λ + 1 W min 1 λ ( λ + 1 ) λ and W max λ λ 1 = W max 1 λ W max 1 λ 1 λ ( λ 1 )
For λ sufficiently large, we can approximate these incremental ratios by
W min λ λ + 1 W min 1 λ λ and W max λ λ 1 W max λ 1 λ
where the partial derivatives of Equation (183) (for S b = S ) are given by
W min 1 λ λ = W max λ 1 λ = E 1 S λ , V λ , n λ + λ T 1 S λ , V λ , n λ S λ 2 λ p 1 S λ , V λ , n λ V λ 2 + λ μ 1 S λ , V λ , n λ · n λ 2 = E 1 S λ , V λ , n λ S λ T 1 S λ , V λ , n λ + V λ p 1 S λ , V λ , n λ μ 1 S λ , V λ , n λ · n λ = E u 1 S λ , V λ , n λ
Thus, we see that the Hill (Euler) free energy E u = E T S + p V μ · n for one of the λ compartments equals (for large λ ) the optimal work to increase or decrease λ by one.

49. Stable Equilibrium Properties in the Absence of Extensivity

For positive-temperature stable equilibrium states the following relations hold in general regardless of the system’s size
s = S n = 1 n S ( n u , n v , n y ) = s ( u , v , y , n ) s n u , v , y = 1 n 2 E u T
e = E n = 1 n E ( n s , n v , n y ) = e ( s , v , y , n ) e n s , v , y = 1 n 2 E u
f = F n = 1 n F ( T , n v , n y ) = f ( T , v , y , n ) f n T , v , y = 1 n 2 E u
g = G n = 1 n G ( T , p , n y ) = g ( T , p , y , n ) g n T , p , y = 1 n 2 E u
h = H n = 1 n H ( n s , p , n y ) = h ( s , p , y , n ) h n s , p , y = 1 n 2 E u
where n = i n i is the overall amount of constituents, y denotes the mole fractions ( y i = n i / n ), and s, e, f, g, and h, respectively, represent specific molar entropy, energy, Helmholtz free energy, Gibbs free energy, and enthalpy. We see that in general specific molar properties are not independent of n. By contrast, a defining requirement for extensivity is that specific properties be independent of n, which these relations clearly show can happen only approximately for large n, when the specific molar Hill free energy E u / n is finite, or exactly when E u = 0 .
The following relations also hold in general, i.e., in the absence of modeling assumptions that imply extensivity. When E u = 0 they all reduce to well-known relations of macroscopic equilibrium thermodynamics.
S = i = 1 r n i s i E u T p , n               n large S = i = 1 r n i s i
E = i = 1 r n i e i + E u T E u T p , n p E u p T , n n large E = i = 1 r n i e i
F = i = 1 r n i f i + E u p E u p T , n p E u p T , n n large F = i = 1 r n i f i
G = i = 1 r n i g i + E u = i = 1 r n i μ i + E u E u p T , n n large G = i = 1 r n i μ i
H = i = 1 r n i h i + E u T E u T p , n p E u p T , n n large H = i = 1 r n i h i
V = i = 1 r n i v i + E u p T , n               n large V = i = 1 r n i v i
0 = i = 1 r n i μ i , j + E u n j T , p , n j               n large 0 = i = 1 r n i μ i , j
where s i , e i , f i , g i , h i , v i , μ i , j are respectively the i-th constituent partial molar entropy, energy, Helmholtz free energy, Gibbs free energy, enthalpy, volume, and chemical potentials defined in terms of the Gibbs free energy G = E T S + p V = G ( T , p , n ) (Legendre transform of E = E ( S , V , n ) with respect to S and V) and the chemical potentials as follows
s i = μ i T p , n = 2 G T n i p , n i = S n i T , p , n i = s i ( T , p , n y )
e i = E n i T , p , n i = μ i + T s i p v i = e i ( T , p , n y )
f i = F n i T , p , n i = f i ( T , p , n y ) = μ i p v i = f i ( T , p , n y )
g i = μ i = G n i T , p , n i = μ i ( T , p , n y )
h i = H n i T , p , n i = h i ( T , p , n y ) = T s i + μ i = ( μ i / T ) ( 1 / T ) p , n
v i = μ i p T , n = 2 G p n i T , n i = V n i T , p , n i = v i ( T , p , n y )
μ i , j = μ i n j T , p , n j = 2 G n j n i T , p , n i j = μ j n i T , p , n i j = μ i , j ( T , p , n y ) = μ j , i ( T , p , n y )
Equation (198) for large n is the Duhem-Margules relation. For large n the dependences on ( T , p , n y ) reduce to ( T , p , y ) , and the partial properties become independent of n.

50. Stability Conditions and LeChatelier-Braun Principle

The inequalities that are obtained from the stability conditions (156), (164), (172), and (181) give body to the general LeChatelier-Braun theorem (or principle). For example, from the general condition d 2 E A | V , n 0 we have seen that for normal systems at stable equilibrium
2 S E 2 V , n 0 T E V , n 0 2 E S 2 V , n 0 T S V , n 0
Combined with the idea that T is an escaping tendency for energy, we may interpret this as follows.
If we change a stable equilibrium state to another with higher energy (or entropy), the temperature increases, hence enhancing the systems’ tendency to give energy (or entropy) away. The increase in temperature can be interpreted as an attempt of the system to counteract the externally imposed increase in energy (or entropy) by enhancing its own tendency to give energy (and entropy) away.
If the system is initially in mutual equilibrium with a reservoir R, an injection (subtraction) of energy pushes its state away from mutual equilibrium, but the consequent increase (decrease) of its temperature, away from the initial T R , favors a spontaneous process whereby the system exchanges energy (and entropy) with R so as to return toward mutual equilibrium.
  • Mathematical basis of the LeChatelier-Braun principle
Assume we have a function P = P ( x , y , z ) where P, x, and y are additive exchangeable properties (such as S, E, V, the n i ’s or linear combinations of them, such as Γ , Φ , Υ , and Ξ ) and P is subject to a stability condition d 2 P | z 0 or d 2 P | z 0 . We write its first and second partial differentials (constant z ) with the following notation
d P | z = P , x d x + P , y d y P , x = P x y , z = P , x ( x , y , z ) P , y = P y x , z = P , y ( x , y , z )
d 2 P | z = [ d x d y ] P , x x P , x y P , x y P , y y d x d y = P , x x ( d x ) 2 + 2 P , x y d x d y + P , y y ( d y ) 2
P , x x = 2 P x 2 y , z = P , x x y , z P , y y = 2 P y 2 x , z = P , y y x , z
P , x y = 2 P x y z = P , y x y , z = P , x y x , z = 2 P y x z = P , y x
The quadratic form can be rewritten (check by substitution) in the two canonical forms
d 2 P | z = P , x x d x + P , x y P , x x d y 2 + λ y ( d y ) 2 where λ y = P , y y P , x y P , x x 2 P , x x = λ x ( d x ) 2 + P , y y d y + P , x y P , y y d x 2 where λ x = P , x x P , x y P , y y 2 P , y y
Therefore, since the stability conditions must hold for arbitrary d x and d y ,
d 2 P | z 0 P , x x λ x 0 P , y y λ y 0 whereas d 2 P | z 0 P , x x λ x 0 P , y y λ y 0
Whether d 2 P | z is positive semidefinite or negative semidefinite, we can use the properties of Jacobians to write
0 det ( Hess ( P ) ) = P , x x P , x y P , x y P , y y = ( P , x , P , y ) ( x , y ) = ( P , x , P , y ) ( x , y )
= ( P , x , P , y ) ( P , x , y ) ( P , x , y ) ( x , y ) = P , y y P , x P , x x y = P , y y P , x P , x x 0 ( P , x , P , y ) ( x , P , y ) ( x , P , y ) ( x , y ) = P , x x P , y P , y y x = P , x x P , y P , y y 0
Therefore, we can rewrite λ x and λ y as
λ x = P , x x P , x y P , y y 2 P , y y = det ( Hess ( P ) ) P , y y = P , x x P , y
λ y = P , y y P , x y P , x x 2 P , x x = det ( Hess ( P ) ) P , x x = P , y y P , x
so that, finally, the stability conditions become
d 2 P | z 0 P , x x y P , x x P , y 0 P , y y x P , y y P , x 0 d 2 P | z 0 P , x x y P , x x P , y 0 P , y y x P , y y P , x 0
  • LeChatelier-Braun principle
We may interpret these inequalities as follows. To fix ideas, assume P = E and x = S , y = V , z = n , so that P , x = T and P , y = p . The corresponding stability condition is d 2 E | n 0 which implies the following conditions.58
P , x x y P , x x P , y 0 that is T S V T S p 0
P , y y x P , y y P , x 0 that is p V S p V T 0
  • Assertion 1. If a system initially in mutual equilibrium with a thermal reservoir R is perturbed to a neighboring stable equilibrium state in which the value of an additive property x is changed to x + d x , the system responds by changing the conjugate potential P , x in the direction that increases (decreases) the escaping tendency of x when x is increased (decreased). As a consequence, the system tends to oppose the imposed exchange of x by favoring a spontaneous exchange with R that acts in the opposite direction, thereby tending to restore mutual equilibrium.
  • Assertion 2. The magnitude of this response depends on how many mutual equilibrium conditions are disrupted by the perturbation. A perturbation that constrains the system to maintain a fixed value of another additive property y produces a stronger response, P , x / x y d x , than a perturbation that constrains the system to maintain a fixed value of the conjugate potential P , y , P , x / x P , y d x . In general, the system’s counterreaction is stronger when the perturbation breaks a larger number of mutual equilibrium conditions.

51. Entropy and Uncertainty in Quantum Models

The following discussion of Quantum Thermodynamics serves as a concrete demonstration of the operational construction developed in the first part of this work for one of the nonequilibrium frameworks listed in Section 5. In the quantum regime, the identification of the thermodynamic state and its properties is particularly challenging, as many classical heuristic partitions of energy transfer into work and heat are currently the subject of active investigation [65,73]. There are numerous interesting results that stem from the application of the concepts discussed so far to the study of additional properties defined within the framework of quantum-theoretical models. Our framework provides a self-consistent logical scaffolding that remains independent of specific modeling choices for dissipative processes and may help to clarify currently controversial definitions. This discussion also allows us to explore fundamental aspects such as the interpretation of entropy as a measure of uncertainty and the origin of the ideal-gas model.
The description of equilibrium and nonequilibrium states within the scope of atomic and quantum theory is based on two fundamental observations of quantum theory: the quantization of energy levels and the irreducible need for probabilities in the description of the states of a system.
  • Energy levels: quantization
The value of a property of a system in a given state (any state) generally does not coincide with the result of a single act of measurement of that property. In fact, contrary to what was suggested for simplicity in Section 4, a single act of measurement is not sufficient to determine the value of the measured property. The measurement procedure that defines the property must be repeated on identical replicas of the system, all prepared in the same way, and the full statistics of the collected measurement outcomes must be analyzed.
To fix ideas, let us consider the measurement procedure that defines the property energy. When applied to a system described within the context of classical modeling, repeated applications of the procedure to identical and identically prepared replicas always yield the same numerical value, namely the value of the energy. By contrast, an essential feature of quantum modeling is that, when the procedure is applied repeatedly to identical and identically prepared systems, the outcomes of individual measurement acts are, in general, unpredictable.59. The outcomes occur with consistently repeatable frequencies among different numerical values, the energy levels of the system, which we denote by ϵ j .
The set { ϵ j } of possible energy levels constitutes a characteristic of the system, called the energy spectrum, which depends only on the amounts of constituents n and the parameters β . The spectrum may be continuous, discrete, or partly discrete and partly continuous.60
A similar situation holds for any other property whose measurement procedure is defined by mechanics (particle position, momentum, angular momentum, magnetic dipole moment, etc.). To determine the (quantum) state of a system, it is therefore necessary to collect the full measurement statistics for a “quorum” (a complete and independent set) of such mechanical properties. This procedure is known as quantum tomography [75,76,77].
There are other types of properties, such as adiabatic availability, available energy with respect to a reservoir, and entropy, which—being defined through measurement procedures that involve the determination of a maximum obtainable quantity (e.g., the maximum energy transferable to an external weight) or conditions on the final state of a weight process—do not admit direct measurement procedures with a meaningful interpretation of individual measurement acts. The determination of the values of properties of this kind therefore requires a full tomography.
The existence of properties, such as energy, with a discrete spectrum of values accessible through individual measurement acts is a distinctive feature of quantum theory, referred to as quantization. Discrete spectra are generally associated with modes of the electromagnetic field and with the internal degrees of freedom (rotational, vibrational, electronic, and magnetic) of atoms and molecules, aggregates of interacting atoms and molecules, and crystalline lattices. Continuous spectra are instead typically associated with the translational degrees of freedom of free particles, atoms, and molecules not confined to finite regions of space.
Molecular theory provides methods for deriving expressions for the set { ϵ j } of energy levels as a function of the system structure and of the atoms and molecules that compose it, or equivalently as a function of the amounts of constituents and the parameters,
{ ϵ j } = { ϵ j ( n , β ) }
We will present two examples of such expressions below; however, the methods used to calculate them lie beyond the scope of the present overview.
  • Quantum probabilities: uncertainty
In addition to quantization, the aspect that most sharply contrasts with the determinism on which classical physics was based is the unpredictability of the outcome of a single measurement act. This unpredictability reflects an intrinsic indeterminacy in the state of systems and is a defining discovery of modern physics, its technological applications, and the various philosophical interpretations that have emerged over the last century and remain under discussion.61
The indeterminacy inherent in the state of every system does not prevent the rigorous definition of the state itself, nor does it require abandoning deterministic equations of motion that describe temporal evolution in accordance with the principle of causality, another cornerstone of classical physics.
Indeed, while the outcome of a single measurement act is not predictable, the limiting frequency f ( ϵ j , N ) with which each energy level ϵ j occurs in a sequence of N measurement acts on identical replicas of the system, all prepared in the same state, is perfectly predictable when N is sufficiently large.62 It is therefore possible to define, for each energy level ϵ j , a property denoted by p ϵ j , called the probability that a single measurement act yields the energy level ϵ j , defined by the limit
p ϵ j = lim N f ( ϵ j , N )
The value of this property becomes part of the set of quantities that define the state of the system. Evidently,
{ ϵ j } p ϵ j = 1
where the sum extends over all values in the energy spectrum.63
  • Energy
The energy measurement procedure must be repeated N times on identical replicas of the system, all prepared identically, with N sufficiently large (in the infinite limit), until the mean value of the energy levels provided by individual measurement acts weighted by their respective frequencies,
E ( N ) = { ϵ j } f ( ϵ j , N ) ϵ j
stabilizes and becomes insensitive to further repetitions of the measurement, i.e., becomes independent of N. The value E obtained in this way is the result of the energy measurement procedure and, formally, is given by the relation
E = { ϵ j } lim N f ( ϵ j , N ) ϵ j = { ϵ j } p ϵ j ϵ j
equal to the average of the energy levels weighted by their respective probabilities (expectation value).64 In terms of the probabilities p ϵ j , we may also compute the dispersion σ E of the energy measurement results around the mean value, defined by
σ E 2 = { ϵ j } p ϵ j ( ϵ j E ) 2
Now that we have introduced the probabilities p ϵ j , it might seem legitimate to say that “if as a result of a single measurement act, the system provides the energy value ϵ j , then it means that ‘that’ was the value of the energy before the measurement act, i.e., the system was in a state with energy ϵ j .” However, if this were true, we could also say that “since, in general, other measurement acts performed on identical replicas of the system prepared identically provide different values (in the set { ϵ j } ), it means that these identical replicas of the system were prepared in different states,” and consequently, the probabilities p ϵ j would not satisfy the definition of properties since they would characterize not the states of the system but uncertainties introduced by the (inhomogeneity of the) preparation method, which with some hidden stochastic rule “chooses” to prepare the system in this or that state.
What has been said for energy can be repeated for other properties. For example, for a particle with translational degrees of freedom confined in a container, the components v x , v y , and v z of the velocity vector. Although not always, it is generally possible to measure two (or more) properties simultaneously in a single measurement act, obtaining two (or more) ‘responses’ from the system for each act, for example, an energy level ϵ j and three velocity levels ( v x ) n x , ( v y ) n y , ( v z ) n z for the three velocity components. It is therefore possible for the same energy level ϵ j to emerge in different measurement acts together with different combinations of possible levels of other properties measurable simultaneously. For each ϵ j , the number of different combinations of this type that can occur is a characteristic of the system called degeneracy or multiplicity of the energy level ϵ j , denoted by g ϵ j and which is a function, in addition to the level itself, of the amounts of constituents and parameters,
g ϵ j = g ϵ j ( n , β )
  • Entropy
In general, quantum theory provides a well-defined mathematical representation of the system’s state and, with it, an explicit expression of entropy valid for all states (equilibrium and nonequilibrium). This representation requires the introduction of mathematical concepts beyond the scope of these brief notes. However, for systems with a discrete energy spectrum a quite broad subclass of states exist.65 which includes the stable equilibrium states, the explicit expression of entropy reduces to the following
S = k B { ϵ j } p ϵ j ln ( p ϵ j / g ϵ j )
where k is the Boltzmann constant, k B = 1.380649 × 10 23 J/K, and { p ϵ j } and { g ϵ j } are the probabilities and multiplicities of all energy levels.
In fact, Equation (217) represents a measure of the breadth of the probability distribution { p ϵ j }. For example, in the particular case of a state with probability p ϵ i = 1 for the energy level ϵ i (with multiplicity g ϵ i ) and zero for all other levels ( p ϵ j = 0 for all j i ), the entropy is given by
S = k B ln g ϵ i
and is therefore higher the greater the multiplicity of the only level. Another notable particular case is the state with M equiprobable energy levels ( p ϵ j = 1 / M for j = 1, 2, …, M) for a system with nondegenerate energy levels ( g ϵ j = 1 for every j); the entropy is given by
S = k B ln M
and is therefore higher the greater the number M of equiprobable (nondegenerate) levels.
The broader the probability distribution, the higher the entropy, and the greater the uncertainty about the outcome of the next measurement act. It is in this sense (and limited to the subclass of states for which the expression (217) holds) that entropy can be interpreted as an indicator of the uncertainty of the outcomes of individual measurement acts; uncertainty, be aware, that for a given state of the system cannot be eliminated in any way, is irreducible, being intrinsic in the nature of the state itself. It can also be called disorder: the disorder with which measurement results emerge. The most ordered situation is the one that always provides the same value; it corresponds to the narrowest possible probability distribution, and if the energy level is nondegenerate, entropy (Equation (218)) is zero. However, the opposite is not true since not all states of mechanics belong to the subclass for which the entropy expression is given by Equation (217). Therefore, it is not correct to conclude (and indeed it is not true) that states of mechanics, having zero entropy, are all ordered, in the sense of being free of indeterminacy. Most of them still exhibit uncertainty in the outcomes of individual measurement acts. To emphasize the fact that there are irreducible uncertainties [74] even in states with zero entropy, the term indeterminacy has been introduced for the states of mechanics.
The most disorderly conceivable situation for a given system with M nondegenerate levels66) is the state that provides all possible levels with equal probability,
p ϵ j = 1 M S = k B ln M E = 1 M j ϵ j
where we have also indicated the corresponding values S and E of entropy and energy.
  • Stable equilibrium states
All stable equilibrium states belong to the subclass for which the expression (217) for entropy holds. From the principle of maximum entropy (Section 26), we know that among all states with energy E, amounts n , and parameters β , the stable equilibrium state is the one with the maximum entropy. The corresponding probability distribution { p ϵ j } is therefore the solution to the following constrained maximization problem
max { p ϵ j } S = k B { ϵ j } p ϵ j ln p ϵ j g ϵ j subject to the constraints { ϵ j } p ϵ j = 1 and { ϵ j } p ϵ j ϵ j = E
namely,67
p ϵ j = g ϵ j exp ( ϵ j / k B T ) i g ϵ i exp ( ϵ i / k B T )
where T is the temperature. For a lower and upper bounded energy spectrum, 1 / T can range between and + and this distribution yields an ES diagram as shown in Figure 24.
  • Third law
The ground-energy stable equilibrium states has energy E = E m i n = ϵ j min , inverse temperature 1 / T = , and entropy S = k B ln g j min , thus its temperature is zero (third law) but its entropy is zero only if the ground-state energy level of the system is nondegenerate.
  • Ergotropy vs. adiabatic availability
We have seen that adiabatic availability is the maximum amount of energy that a system can transfer to a weight in a weight process, and that its realization requires a reversible weight process in which the system ends in a stable equilibrium state. Reversibility of the weight process requires that the initial and final entropies be equal. From Equation (217), it is clear that, in principle, there are many ways in which the entropy can be kept constant while changing the probabilities. Adiabatic availability therefore requires that the initial probabilities p ϵ j ( t 1 ) change in time, while keeping the value of the entropy constant, so as to reach the unique distribution p ϵ j ( t 2 ) that satisfies Equation (227) and such that S ( t 2 ) = S ( t 1 ) .
However, as first noted in [78] (Sections 3.2–3.4), if the state of the system is assumed to obey a strictly unitary equation of motion, it can be shown that the values of the probabilities p ϵ j cannot be changed, but can only be rearranged so as to decrease the energy while keeping the entropy unchanged, by manipulating their order with respect to that of the set { ϵ j } of energy levels. This observation effectively defines a special class of reversible weight processes, called CCP (cyclic change in parameters) unitary processes. Starting from any initial state with probabilities p ϵ j ( t 1 ) , the largest amount of energy that can be extracted through a reversible weight process in this class is obtained by a unitary process that rearranges the probabilities so that the final set of values p ϵ j ( t 2 ) consists of exactly the same values as initially, but ordered oppositely to the increasing order of the energy levels, i.e., p ϵ 1 ( t 2 ) > p ϵ 2 ( t 2 ) > > p ϵ k ( t 2 ) > for ϵ 1 < ϵ 2 < < ϵ k < .
The resulting final energy E ( t 2 ) is the minimum among all states compatible with the initial probabilities, but it is generally higher than the energy of the stable equilibrium state with entropy equal to S ( t 1 ) . Consequently, the extractable energy E ( t 1 ) E ( t 2 ) , which in recent years has been called ergotropy [79], is in general smaller than the adiabatic availability of the initial state.
This difference has a clear operational meaning: it quantifies the portion of the adiabatic availability that is inaccessible when the dynamics is restricted to unitary, probability-distribution-preserving transformations, and therefore cannot drive the system to the stable equilibrium state of equal entropy.
From the thermodynamic viewpoint adopted here, this limitation reflects the absence of internal reversible mechanisms capable of reshaping the probability distribution beyond unitary rearrangements. The gap between ergotropy and adiabatic availability thus provides a direct measure of the role of internal dynamics in enabling the full conversion of available energy, and highlights the distinction between idealized, dynamically constrained processes and fully reversible thermodynamic weight processes.
  • Stable-equilibrium partition function
Defining the so-called partition function,
Q ( T , { ϵ j } , { g ϵ j } ) = i g ϵ i exp ( ϵ i / k B T )
the following expressions for probabilities, energy, and entropy, are easily verified
p ϵ j = k B T ln Q ϵ j = g ϵ j exp ( ϵ j / k B T ) Q
E = k B T 2 ln Q T = i g ϵ i ϵ i exp ( ϵ i / k B T ) Q
S = k B T ln Q T = E T + k B ln Q
σ E 2 = k B 2 T 3 2 T ln Q T 2 = k B 2 S E 2 { ϵ j } , { g ϵ j } 1 0
Note that Equations (230) and (231) have the form E = E ( T , { ϵ j } , { g ϵ j } ) and S = S ( T , { ϵ j } , { g ϵ j } ) , defining implicitly, through the parameter T, the fundamental relation of the system S = S ( E , n , β ) = S ( E , { ϵ j ( n , β ) } , { g ϵ j ( n , β ) } ) from which, as we have seen, all the other properties defined for stable equilibrium states can be derived. Rel. (232) confirms the concavity of the entropy versus energy relation.
  • Harmonic oscillator
As a first example, consider a system consisting of a single harmonic oscillator with frequency ν . The energy levels are quantized. In addition to the minimum energy level of h ν / 2 , the others are separated by intervals all equal to h ν , where h = 6.6260 × 10 34 J s is the Planck constant,
ϵ j = j + 1 2 h ν with j an integer 0
so that the partition function (Equation (228)), is
Q = j = 0 exp j + 1 2 h ν k B T = exp ( h ν / 2 k B T ) 1 exp ( h ν / 2 k B T )
from which it follows, for example,
p ϵ j = 1 exp ( h ν / 2 k B T ) exp ( j h ν / k B T )
E = h ν 1 2 + 1 exp ( h ν / k B T ) 1
S = k B h ν / k B T exp ( h ν / k B T ) 1 ln 1 exp ( h ν / k B T )
σ E 2 = k B 2 T 2 ( h ν / 2 k B T ) 2 sinh 2 ( h ν / 2 k B T )
  • Single structureless particle confined in a box
As a second example, consider a system consisting of a single particle of mass m without internal structure and therefore endowed only with translational degrees of freedom, confined in a parallelepiped-shaped container with sides 1 , 2 , 3 (and volume V = 1 2 3 ). Also in this case, the energy levels are quantized. They are given by the relation
ϵ j 1 , j 2 , j 3 = ϵ j 1 + ϵ j 2 + ϵ j 3 = h 2 8 m j 1 2 1 2 + j 2 2 2 2 + j 3 2 3 2 where j 1 , j 2 , j 3 = 1 , 2 , 3 , > 0
The maximum entropy principle implies that the stable equilibrium state probability distribution { p j 1 , j 2 , j 3 } is given by the solution of the constrained maximization problem max { p j 1 , j 2 , j 3 } S = n R j p j 1 , j 2 , j 3 ln p j 1 , j 2 , j 3 subject to j p j 1 , j 2 , j 3 = 1 and j p j 1 , j 2 , j 3 ϵ j 1 , j 2 , j 3 = E where j = j 1 = 1 j 2 = 1 j 3 = 1 . Assigning the Lagrange multiplier 1 / k B T to the energy constraint, and recalling that for one particle n = 1 / N Av and n R = R / N Av = k B , we find the stable equilibrium state distribution
p j 1 , j 2 , j 3 = exp ( ϵ j 1 , j 2 , j 3 / k B T ) Q = p j 1 p j 2 p j 2 = exp ( ϵ j 1 / k B T ) Q 1 exp ( ϵ j 2 / k B T ) Q 2 exp ( ϵ j 3 / k B T ) Q 3
where we define the “directional partition functions” Q i = j i = 1 exp ( ϵ j i / k B T ) so that the partition function, given by Relation (228), becomes
Q = Q 1 Q 2 Q 3 with Q i = j i = 1 exp h 2 8 m k B T j i 2 i 2 for i = 1 , 2 , 3
It easy to verify that the probabilities and all the properties can be obtained from derivatives of the Q i ’s and that T = E / S 1 , 2 , 3 , i.e., the Lagrange multiplier indeed represents the temperature. For i = 1 , 2 , 3 , we have the relations
p j i = k B T ln Q i ϵ j i T E = E 1 + E 2 + E 3 E i = j i p j i ϵ j i = k B T 2 ln Q i T i
S = S 1 + S 2 + S 3 S i = k B j i p j i ln p j i = k B T ln Q i T i = E i T + k B ln Q i
d ln Q i = E i k B T 2 d T + 2 E i k B T d i i ln Q i T i = E i k B T 2 ln Q i ln i T = 2 E i k B T
S i = E i T + k B ln Q i d S i = 1 T d E i + 2 E i T d i i
We may define the “directional pressure” π i representing the change in the directional energy E i at constant S i due to a partial change in the volume V = 1 2 3 obtained by changing only the side length i , while keeping the other two side lengths fixed, so that V / V = i / i ,
π i = E i V S , i = 1 V E i ln i S , i = 2 E i V E = E 1 + E 2 + E 3 = ( π 1 + π 2 + π 3 ) V 2
The directional and overall stable-equilibrium-state Gibbs relations rewrite, in general, as
d E i = T d S i 2 E i d i i = T d S i π i V d i i
d E = T d S π 1 V d 1 1 π 2 V d 2 2 π 3 V d 3 3
  • Ideal-gas equation of state for the single particle in a box
For ‘practical’ values of m, 1 , 2 , 3 , and T, the values of h 2 / 8 m k B T i 2 are typically much smaller than one.68 And therefore, the sum in Q i can be approximated by an integral,
Q i = j i = 1 e h 2 8 m k B T j i 2 i 2 0 e h 2 8 m k B T x 2 i 2 d x = 2 π m k B T i 2 h 2 1 / 2 ln Q i T i 1 2 T
Q = Q 1 Q 2 Q 3 2 π m k B T V 2 / 3 h 2 3 / 2
and, therefore, the overall partition function becomes independent of the details 1 , 2 , 3 of the shape of the container, given the same volume V = 1 2 3 . As a result, in this practical limit of large T for a given V, so that the approximation T V 2 / 3 h 2 8 m k B holds, the directional energies and the directional pressures become independent of direction, and we have
E i 1 2 k B T S i 1 2 k B 1 + ln 2 π m k B T i 2 h 2 π i k B T V
E 3 2 k B T S 3 2 k B 1 + ln 2 π m k B T V 2 / 3 h 2 p = E V S = T S V E k B T V
d E T d S k B T d 1 1 + d 2 2 + d 3 3 = T d S k B T d V V = T d S p d V
where, in the last of Equation (252), we have evaluated the pressure using its definition, Equation (69). The result obtained is valid, as seen, if h 2 / 8 m k T V 2 / 3 1 and shows that the equation of state (relation between T, p, and V for the stable equilibrium states) of a single particle ( n = 1 molecule) confined in the container of volume V is
p V = k B T or , equivalently for n = 1 molecule , p V = n R T
which is the well-known ideal-gas equation of state. Equations (251) and (252) also show that the overall energy E is equally partitioned into the three directional contributions E i (equipartition theorem).
  • Ideal-gas equation of state for n distinguishable but identical point particles in a box
The ideal-gas equation of state is a good approximation also for the stable equilibrium states of a system consisting of many point (structureless) particles of mass m confined in a box at relatively high temperatures and low pressures, in which at any given instant of time only a negligibly small fraction of the particles are close to one another in the collision range where intermolecular forces are strong, whereas every other particle (the vast majority) feels negligible intermolecular forces and, hence, behaves like a single particle in a box, essentially not feeling the presence of other particles except during the negligible time it spends colliding with them. In these limiting conditions (ideal-gas limit), the properties of n distinguishable but identical particles in the box of volume V can be approximated by those of a composite of n separable and independent identical systems each consisting of a single-particle in a box of volume V. From the additivity of energy and entropy for composites of separable and independent systems, it follows that
E 3 2 n k B T S 3 2 n k B [ 1 + ln ( c T V 2 / 3 ) ] p n k B T V c = 2 π m k B h 2
We may use these relations to compute the minimum work of partitioning and the entropy of partition removal with reference to Figure 41. Let T a b be the temperature of stable equilibrium state A a b 1 of the single-compartment system A 1 with n particles in volume V. By the first of Equation (255), the energy is E a b 1 = 3 2 n k B T a b and the entropy S a b 1 = 3 2 n k B [ 1 + ln ( c T a b V 2 / 3 ) ] . For the λ -compartments system A λ , each compartment has n / λ particles in volume V / λ . If they are all in mutual equilibrium at temperature T a b , Equation (255) imply that each of them has energy 3 2 n λ k B T a b and entropy 3 2 n λ k B [ 1 + ln ( c T a b ( V / λ ) 2 / 3 ] , so that E a a λ = 3 2 n k B T a b = E a b λ , T a a = T a b and S a a λ = 3 2 n k B [ 1 + ln ( c T a b ( V / λ ) 2 / 3 ) ] . Also, they imply that the state A b b λ , identified by the condition that S b b λ = 3 2 n k B [ 1 + ln ( c T b b ( V / λ ) 2 / 3 ) ] = S a b λ , has temperature such that T b b ( V / λ ) 2 / 3 = T a b V 2 / 3 , i.e., T b b = T a b λ 2 / 3 . Therefore, with reference to Figure 41, for distinguishable but identical point particles in the ideal-gas limit, the entropy of partition removal and the minimum work of partitioning are given by
S irr λ 1 = S a b 1 S a a λ = n k B ln λ W min 1 λ = W max λ 1 = E b b λ E a b 1 = 3 2 ( λ 2 / 3 1 ) n k B T a b
  • Variable amounts of constituents: open system model
So far, in these brief quantum theory notes, the amounts of constituents n have been considered fixed. To model the stable equilibrium states of systems with many particles in the simple-system approximation (i.e., when the effects of adding or removing partitions are negligible, and correlations are rapidly erased by dissipation) it is possible to consider the amounts n as variable, behaving like normal properties, such as energy, with their respective quantum uncertainties. This allows to model a system open to exchanges of constituents.
For a system with a single type of constituents, the result of measuring the number of particles is an integer, denoted by z, with 0 z < , generally unpredictable. But repeating the measurement on a large number of identical replicas of the system, all identically prepared, we can compute the average value of the number of particles as well as the dispersion of measurement results around the mean value
n = { z } lim N f ( z , N ) z = z = 0 p z z and σ n 2 = z p z ( z n ) 2
In general, if we simultaneously measure the energy and amounts of all r constituents of a multi-constituent system, the result of a single measurement will be the set of r + 1 values z 1 , z 2 ,…, z r , ϵ j , or, more succinctly, z , ϵ j , where ϵ j belongs to the set of possible values { ϵ j ( z , β ) } compatible with the values β of the parameters and the measured numbers of particles z . The functions ϵ j ( z , β ) are the ones already defined by Rel. (209) for the closed system, with the fixed n replaved by the variable z . The joint probability of obtaining from a single measurement both amounts and energy values z and ϵ j is then defined. It is a property that we can indicate with the symbol p z , ϵ j or p z 1 , z 2 , , z r , ϵ j . The values of energy and amounts of constituents are then given by the relations
E = { ϵ j } p ϵ j ϵ j = { z , ϵ j } p z , ϵ j ϵ j and n i = { z i } p z i z i = { z , ϵ j } p z , ϵ j z i
where we have also defined the marginal probabilities p ϵ j and p z i connected with measurements of only the energy or only the amount of constituent i,
p ϵ j = { z } p z , ϵ j p z i = { z , ϵ j } p z , ϵ j
where z denotes the set { z 1 ,…, z ( i 1 ) , z ( i + 1 ) ,…, z r }.
Also in this case, for a quite broad subclass of states that includes the stable equilibrium states of systems with discrete energy spectra, the explicit expression for the entropy is reduced to the following
S = k B { z , ϵ j } p z , ϵ j ln ( p z , ϵ j / g ϵ j )
With a procedure similar to what seen above, we obtain the stable-equilibrium probability distribution
p z , ϵ j = g ϵ j exp ( z · μ / k B T ϵ j / k B T ) { z , ϵ j } g ϵ i exp ( z · μ / k B T ϵ i / k B T )
where T is the temperature, z · μ = z 1 μ 1 + + z r μ r , and μ i is the total potential of constituent i. The partition function
Q ( T , μ , { z } , { ϵ j } , { g ϵ j } ) = { z , ϵ j } g ϵ i exp ( z · μ / k B T ϵ i / k B T )
is all that is needed to compute marginal probabilities, energy, entropy, and amounts using the relations
p ϵ j = k B T ln Q ϵ j p z i = k B T μ i ln Q z i n i = k T ln Q μ i
E = k B T 2 ln Q T + i μ i n i S = k B T ln Q T = E T i μ i n i T + k B ln Q
Assuming the compatible energy values depend only on volume V, { ϵ j ( z , V ) } , the pressure is given by the mean value of their negative variation with volume,
p = E V S , n = k B T ln Q V T , μ = k B T { ϵ j } ln Q ϵ j ϵ j V = { ϵ j } p ϵ j ϵ j V
and the Hill (Euler) free energy is
E u = E T S + p V μ · n = p V k B T ln Q = k B T V ln Q V T , μ

52. Conclusions

This paper has presented a unified and operationally grounded exposition of the elementary foundations of thermodynamics in which all concepts are defined independently of system size, extensivity, and equilibrium assumptions. By introducing entropy as a property of all states and by distinguishing clearly between stable equilibrium and nonequilibrium states, the formulation provides a logically consistent basis for thermodynamic reasoning across scales.
The energy–entropy diagram has been shown to offer a powerful geometric framework for understanding availability, irreversibility, and energy conversion limits, while the analysis of entropy transfer in non-work interactions has led to precise definitions of heat and heat-and-diffusion interactions relevant to mesoscopic and continuum nonequilibrium theories. From this analysis, Clausius inequalities and the Clausius statement of the second law emerge naturally in forms valid beyond equilibrium.
The perspective advanced in this paper reinforces the view that thermodynamics is not a theory limited to macroscopic, extensive systems in equilibrium, but a universal physical framework applicable to all systems and all states. By avoiding assumptions of extensivity at the foundational level, defining entropy and energy operationally beyond equilibrium, and analyzing entropy transfer in non-work interactions, the theory retains both logical coherence and broad applicability. Extensivity, equilibrium, and macroscopic behavior emerge as special cases rather than prerequisites. In this sense, thermodynamics appears not as a phenomenology tied to scale, but as a general structure governing the evolution and interaction of physical systems, from macroscopic energy technologies to few-particle and mesoscopic regimes.

Funding

This research received no external funding.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Fermi, E. Thermodynamics; Prentice-Hall: New York, NY, USA, 1937; Reprinted by Dover: New York, NY, USA, 1956. [Google Scholar]
  2. Callen, H.B. Thermodynamics and an Introduction to Thermostatistics, 2nd ed.; Wiley: New York, NY, USA, 1985. [Google Scholar]
  3. Van Wylen, G.J.; Sonntag, R.E. Fundamentals of Classical Thermodynamics, 2nd ed.; Wiley: New York, NY, USA, 1978. [Google Scholar]
  4. Moran, M.J.; Shapiro, H.N. Fundamentals of Engineering Thermodynamics; Wiley: New York, NY, USA, 1988. [Google Scholar]
  5. Feynman, R.P.; Leighton, R.B.; Sands, M. The Feynman Lectures on Physics, Vol. I: Mainly Mechanics, Radiation, and Heat; Addison–Wesley: Reading, MA, USA, 1963. [Google Scholar]
  6. Tisza, L. Generalized Thermodynamics; MIT Press: Cambridge, MA, USA, 1966. [Google Scholar]
  7. Landau, L.D.; Lifshitz, E.M. Statistical Physics, Part I, 3rd ed.; Pergamon Press: Oxford, UK, 1980; Revised by Lifshitz, E.M.; Pitaevskii, L.P.; Translated by Sykes J.B.; Kearsley, M.J. [Google Scholar]
  8. Hatsopoulos, G.N.; Keenan, J.H. Principles of General Thermodynamics; Wiley: New York, NY, USA, 1965. [Google Scholar]
  9. Keenan, J.H. Thermodynamics; Wiley: New York, NY, USA, 1941; Reprinted by MIT Press: Cambridge, MA, USA, 1970. [Google Scholar]
  10. Guggenheim, E.A. Thermodynamics, 7th ed.; North-Holland: Amsterdam, The Netherlands, 1967. [Google Scholar]
  11. Gyftopoulos, E.P.; Beretta, G.P. Thermodynamics: Foundations and Applications; Macmillan: New York, NY, USA, 1991; Reprinted by Dover: Mineola, NY, USA, 2005. [Google Scholar]
  12. Zanchini, E.; Beretta, G.P. Removing Heat and Conceptual Loops from the Definition of Entropy. Int. J. Thermodyn. 2010, 13, 67–76. [Google Scholar] [CrossRef]
  13. Beretta, G.P.; Zanchini, E. Rigorous and General Definition of Thermodynamic Entropy. In Thermodynamics; Letcher, T.M., Ed.; InTech: Rijeka, Croatia, 2011. [Google Scholar] [CrossRef]
  14. Carathéodory, C. Untersuchungen über die Grundlagen der Thermodynamik. Math. Ann. 1909, 67, 355–386. [Google Scholar] [CrossRef]
  15. Lieb, E.H.; Yngvason, J. The Physics and Mathematics of the Second Law of Thermodynamics. Phys. Rep. 1999, 310, 1–96. [Google Scholar] [CrossRef]
  16. Lieb, E.H.; Yngvason, J. The Entropy Concept for Non-Equilibrium States. Proc. R. Soc. A 2013, 469, 20130408. [Google Scholar] [CrossRef] [PubMed]
  17. Lieb, E.H.; Yngvason, J. Entropy Meters and the Entropy of Non-Extensive Systems. Proc. R. Soc. A 2014, 470, 20140192. [Google Scholar] [CrossRef]
  18. Zanchini, E.; Beretta, G.P. Recent Progress in the Definition of Thermodynamic Entropy. Entropy 2014, 16, 1547–1570. [Google Scholar] [CrossRef]
  19. Hill, T.L. Thermodynamics of Small Systems; W. A. Benjamin: New York, NY, USA, 1964; Reprinted by Dover: Mineola, NY, USA, 1994. [Google Scholar]
  20. Hill, T.L. A Different Approach to Nanothermodynamics. Nano Lett. 2001, 1, 273–275. [Google Scholar] [CrossRef]
  21. Chamberlin, R.V. The Big World of Nanothermodynamics. Entropy 2015, 17, 52–73. [Google Scholar] [CrossRef]
  22. Chamberlin, R.V.; Lindsay, S.M. Nanothermodynamics: There’s Plenty of Room on the Inside. Nanomaterials 2024, 14, 1828. [Google Scholar] [CrossRef]
  23. Bedeaux, D.; Kjelstrup, S.; Schnell, S.K. Nanothermodynamics: Theory and Applications; World Scientific: Singapore, 2024. [Google Scholar]
  24. Beretta, G.P.; Zanchini, E. New Definitions of Thermodynamic Temperature and Entropy Not Based on the Concepts of Heat and Thermal Reservoir. Atti Accad. Peloritana Pericolanti Cl. Sci. Fis. Mat. Nat. 2019, 97, A1. [Google Scholar] [CrossRef]
  25. Beretta, G.P. 2.43 Advanced Thermodynamics. Spring 2024, Massachusetts Institute of Technology; MIT OpenCourseWare: Cambridge, MA, USA, 2024; Available online: https://ocw.mit.edu/courses/2-43-advanced-thermodynamics-spring-2024/ (accessed on 14 March 2026).
  26. Margenau, H. The Nature of Physical Reality: A Philosophy of Modern Physics; McGraw-Hill: New York, USA, 1950; Reprinted by Ox Bow Press: Woodbridge, CT, USA, 1970. [Google Scholar]
  27. Feynman, R.P. The Great Conservation Principles. In The Character of Physical Law; Messenger Lectures series; Cornell University: Ithaca, NY, USA, 1964; Recorded by BBC; Available online: https://www.feynmanlectures.caltech.edu/fml.html#3 (accessed on 14 March 2026).
  28. Pavelka, M.; Klika, V.; Grmela, M. Multiscale Thermo-Dynamics: Introduction to GENERIC; De Gruyter: Berlin, Germany, 2018. [Google Scholar]
  29. Öttinger, H.C. Beyond Equilibrium Thermodynamics; Wiley: Hoboken, NJ, USA, 2005. [Google Scholar]
  30. Grmela, M.; Pavelka, M. Comparison of Some Geometric Frameworks for Dissipative Evolution in Multiscale Non-Equilibrium Thermodynamics. J. Non-Equilib. Thermodyn. 2026. [Google Scholar] [CrossRef]
  31. Gyarmati, I. Non-Equilibrium Thermodynamics; Springer: Berlin, Germany, 1970; Volume 184. [Google Scholar]
  32. Ván, P.; Kovács, R. Variational Principles and Nonequilibrium Thermodynamics. Phil. Trans. R. Soc. A 2020, 378, 20190178. [Google Scholar] [CrossRef]
  33. Gibbs, J.W. Elementary Principles in Statistical Mechanics; Charles Scribner’s Sons: New York, NY, USA, 1902; Reprinted by Dover: Mineola, NY, USA, 2014. [Google Scholar]
  34. Tolman, R.C. The Principles of Statistical Mechanics; Oxford University Press: Oxford, UK, 1938; Reprinted by Dover: New York, NY, USA, 2014. [Google Scholar]
  35. Pathria, R.K.; Beale, P.D. Statistical Mechanics, 4th ed.; Elsevier: Amsterdam, The Netherlands, 2021. [Google Scholar]
  36. Jaynes, E.T. Information Theory and Statistical Mechanics. Phys. Rev. 1957, 106, 620–630. [Google Scholar] [CrossRef]
  37. Parrondo, J.M.R.; Horowitz, J.M.; Sagawa, T. Thermodynamics of Information. Nat. Phys. 2015, 11, 131–139. [Google Scholar] [CrossRef]
  38. Seifert, U. Stochastic thermodynamics, fluctuation theorems and molecular machines. Rep. Prog. Phys. 2012, 75, 126001. [Google Scholar] [CrossRef] [PubMed]
  39. Sekimoto, K. Stochastic Energetics; Springer: Berlin/Heidelberg, Germany, 2010. [Google Scholar]
  40. Risken, H. The Fokker-Planck Equation: Methods of Solution and Applications, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 1996. [Google Scholar]
  41. Onsager, L. Reciprocal Relations in Irreversible Processes. I. Phys. Rev. 1931, 37, 405–426. [Google Scholar] [CrossRef]
  42. De Groot, S.R.; Mazur, P. Non-Equilibrium Thermodynamics; North-Holland Publishing Company: Amsterdam, The Netherlands, 1962; Reprinted by Reprinted by Dover: Mineola, NY, USA, 1984. [Google Scholar]
  43. Ziegler, H. An Introduction to Thermomechanics: Field Theory and Variational Principles, 2nd ed.; North-Holland: Amsterdam, The Netherlands, 1983. [Google Scholar]
  44. Cahn, J.W.; Hilliard, J.E. Free Energy of a Nonuniform System. I. Interfacial Free Energy. J. Chem. Phys. 1958, 28, 258–267. [Google Scholar] [CrossRef]
  45. Antanovskii, L.K. Microscale Theory of Surface Tension. Phys. Rev. E 1996, 54, 6285–6290. [Google Scholar] [CrossRef]
  46. Ván, P. Weakly Nonlocal Irreversible Thermodynamics. Ann. Phys. 2003, 12, 146–173. [Google Scholar] [CrossRef]
  47. Mauri, R. Non-Equilibrium Thermodynamics in Multiphase Flows; Springer: Dordrecht, The Netherlands, 2013. [Google Scholar]
  48. Malvern, L.E. Introduction to the Mechanics of a Continuous Medium; Prentice-Hall: Upper Saddle River, NJ, USA, 1969. [Google Scholar]
  49. Truesdell, C.; Noll, W. The Non-Linear Field Theories of Mechanics, 3rd ed.; Springer: Berlin/Heidelberg, Germany, 2004. [Google Scholar]
  50. Gurtin, M.E.; Fried, E.; Anand, L. The Mechanics and Thermodynamics of Continua; Cambridge University Press: Cambridge, UK, 2010. [Google Scholar]
  51. Berezovski, A.; Ván, P. Internal Variables in Thermoelasticity; Springer: Cham, Switzerland, 2017. [Google Scholar]
  52. Jou, D.; Casas-Vázquez, J.; Lebon, G. Extended Irreversible Thermodynamics, 4th ed.; Springer: Dordrecht, The Netherlands, 2010. [Google Scholar]
  53. Mazur, P. Mesoscopic Nonequilibrium Thermodynamics; Irreversible Processes and Fluctuations. Phys. A 1998, 261, 59–73. [Google Scholar] [CrossRef]
  54. Rubi, J.M. Mesoscopic Thermodynamics. Phys. Scr. 2012, T151, 014027. [Google Scholar] [CrossRef]
  55. Anisimov, M.A.; Longo, G. Mesoscopic Thermodynamics for Scientists and Engineers; Academic Press: London, UK, 2024. [Google Scholar]
  56. Müller, I.; Ruggeri, T. Rational Extended Thermodynamics; Springer: New York, NY, USA, 1998. [Google Scholar]
  57. Ruggeri, T.; Sugiyama, M. Rational Extended Thermodynamics Beyond the Monatomic Gas; Springer: Cham, Switzerland, 2015. [Google Scholar]
  58. Cercignani, C. The Boltzmann Equation and Its Applications; Springer: New York, NY, USA, 1988. [Google Scholar]
  59. Struchtrup, H. Macroscopic Transport Equations for Rarefied Gases; Springer: Berlin/Heidelberg, Germany, 2005. [Google Scholar]
  60. Prigogine, I. Introduction to Thermodynamics of Irreversible Processes, 3rd ed.; Interscience Publishers: New York, NY, USA, 1967. [Google Scholar]
  61. Beretta, G.P.; Keck, J.C.; Janbozorgi, M.; Metgalchi, H. The Rate-Controlled Constrained-Equilibrium Approach to Far-from-Local-Equilibrium Thermodynamics. Entropy 2012, 14, 92–130. [Google Scholar] [CrossRef]
  62. Kondepudi, D.; Prigogine, I. Modern Thermodynamics: From Heat Engines to Dissipative Structures, 2nd ed.; John Wiley & Sons: Chichester, UK, 2014. [Google Scholar]
  63. Alicki, R.; Lendi, K. Quantum Dynamical Semigroups and Applications; Springer: Berlin/Heidelberg, Germany, 2007. [Google Scholar]
  64. Deffner, S.; Jarzynski, C. Information Processing and the Second Law of Thermodynamics: An Inclusive, Hamiltonian Approach. Phys. Rev. X 2013, 3, 041003. [Google Scholar] [CrossRef]
  65. Binder, F.; Correa, L.A.; Gogolin, C.; Anders, J.; Adesso, G. (Eds.) Thermodynamics in the Quantum Regime; Springer: Cham, Switzerland, 2018. [Google Scholar]
  66. Ray, R.K.; Beretta, G.P. No-Signaling in Steepest Entropy Ascent: A Nonlinear, Non-Local, Non-Equilibrium Quantum Dynamics of Composite Systems Strongly Compatible with the Second Law. Entropy 2025, 27, 1018. [Google Scholar] [CrossRef] [PubMed]
  67. Zanchini, E. On the Definition of Extensive Property Energy by the First Postulate of Thermodynamics. Found. Phys. 1986, 16, 923–935. [Google Scholar] [CrossRef]
  68. Zanchini, E. Thermodynamics: Energy of Closed and Open Systems. Il Nuovo C. B 1988, 101, 453–465. [Google Scholar] [CrossRef]
  69. Pekola, J.P.; Karimi, B. Heat Bath in a Quantum Circuit. Entropy 2024, 26, 429. [Google Scholar] [CrossRef]
  70. Beretta, G.P.; Gyftopoulos, E.P. What is the Third Law? J. Energy Resour. Technol. 2015, 137, 021004. [Google Scholar] [CrossRef]
  71. Sivak, D.A.; Crooks, G.E. Near-Equilibrium Measurements of Nonequilibrium Free Energy. Phys. Rev. Lett. 2012, 108, 150601. [Google Scholar] [CrossRef]
  72. Beretta, G.P.; Gyftopoulos, E.P. What is a Simple System? J. Energy Resour. Technol. 2015, 137, 021007. [Google Scholar] [CrossRef]
  73. Davoudi, Z.; Jarzynski, C.; Mueller, N.; Oruganti, G.; Powers, C.; Yunger Halpern, N. Quantum Thermodynamics of Nonequilibrium Processes in Lattice Gauge Theories. Phys. Rev. Lett. 2024, 133, 250402. [Google Scholar] [CrossRef]
  74. Park, J.L. Nature of Quantum States. Am. J. Phys. 1968, 36, 211–226. [Google Scholar] [CrossRef]
  75. Band, W.; Park, J.L. Quantum State Determination: Quorum for a Particle in One Dimension. Am. J. Phys. 1979, 47, 188–191. [Google Scholar] [CrossRef]
  76. Park, J.L.; Band, W. A General Theory of Empirical State Determination in Quantum Physics: Part I. Found. Phys. 1971, 1, 211–226. [Google Scholar] [CrossRef]
  77. D’Ariano, G.M.; Paris, M.G.; Sacchi, M.F. Quantum Tomography. In Advances in Imaging and Electron Physics; Elsevier: Amsterdam, The Netherlands, 2003; Volume 128, pp. 205–308. [Google Scholar] [CrossRef]
  78. Hatsopoulos, G.N.; Gyftopoulos, E.P. A Unified Quantum Theory of Mechanics and Thermodynamics. Part IIa. Available Energy. Found. Phys. 1976, 6, 127–141. [Google Scholar] [CrossRef]
  79. Allahverdyan, A.E.; Balian, R.; Nieuwenhuizen, T.M. Maximal Work Extraction from Finite Quantum Systems. Europhys. Lett. 2004, 67, 565. [Google Scholar] [CrossRef]

Notes

1
In the following, the bold symbol, n , will denote the set of all amounts of constituents, n = { n 1 , n 2 , , n r } .
2
The bold symbol, β , will denote the set of all parameters, β = { β 1 , β 2 , , β r } .
3
Anticipating ideas that we develop in what follows, a fundamental consequence of the laws of thermodynamics is that energy and entropy are additive properties defined for all systems in every possible state. However, these properties do not apply to material objects subject to external forces dependent on external coordinates or to correlations with external constituents. For such models that do not satisfy our formal definition of a system, energy and entropy are not merely non-additive—they are not defined.
4
In some treatments, properties are also referred to as “state variables” or “state functions,” and it is stated that the value of each property depends exclusively on the state of the system. In reality, we have seen that it is the values of the properties that define the state, not the other way around.
5
In some models, a notable example being the quantum theory of open systems, the existence of the solution of the initial value problem for the equation of motion is granted only forward in time, and often this mathematical irreversibility is confused with the idea of thermodynamic irreversibility.
6
In a quantum description, this requirement is highly restrictive and substantially limits the applicability of the thermodynamic foundations discussed in this paper. Consider two subsystems. By definition, they are initially separable and uncorrelated. Separability may be temporarily broken by turning on an interaction Hamiltonian between the corresponding subsets of constituents, and later restored by turning it off. However, the interaction generally generates correlations that persist after the interacting constituents are separated. As a result, the condition of statistical independence of measurements performed on the two subsets is lost, and the resulting entities no longer satisfy the requirements of the present definition of a system, i.e., they are no longer subsystems. See, e.g., Refs. [24,66].
7
Further discussions of the role of adiabatic accessibility are found in Refs. [15,16,17,18,67,68].
8
Permitted by the assumed equation of motion.
9
The first law does not specify in which direction the weight process is possible, but it does allow us to conclude that if it is not possible from A 1 to A 0 , it is definitely possible in the opposite direction.
10
This is the most important consequence of the first law: the definition of energy for all states of all systems could not be taken for granted, nor is it valid if the word system is not loaded with the restrictive meaning we defined in Section 3.
11
It is sufficient to consider the following: (1) the weight process for A between A 1 and A 0 and the weight process for C between C 11 and C 01 and observe that they have identical external effects; (2) the weight process for B between B 1 and B 0 and the weight process for C between C 01 and C 00 and observe that they have identical external effects; (3) the sequence of the two weight processes for C between C 11 and C 01 and between C 01 and C 00 , which is effectively a weight process between C 11 and C 00 .
12
Note that although in some formulations, it is presented as the principle of conservation of energy, the conservation of energy here emerges not as a principle but as a consequence of the first law, as is the very existence of energy as a property.
13
When there is no ambiguity about the system under consideration, the notation can be further simplified by omitting the subscript A and writing E 12 = E 12 . When there is no ambiguity about the process being considered, it is possible to omit the subscript 12 and write E = E . It is worth noting that when E A takes a negative value, it means that system A has released energy. For example, if E A = 5 J, from Relation (11), we can infer that E A = 5 J, indicating that system A has released 5 joules of energy.
14
In some texts, the energy balance equation is succinctly referred to as the “first law of thermodynamics,” so much so that the jargon “writing the first law” is used to mean “writing the energy balance equation.” We have already emphasized that the first law of thermodynamics leads to many important conclusions beyond the energy balance equation, and therefore, the jargon mentioned can be misleading in addition to being reductive with respect to the role and other implications of the first law.
15
The word “compatible” can be omitted in the absence of reaction mechanisms (such as chemical reactions capable of spontaneously altering the amounts of constituents), internal constraints (such as movable internal walls capable of spontaneously altering the parameters), and other transition restrictions (such as selection rules among quantized energy levels or the constraint of strictly unitary quantum evolution). To fix ideas and for simplicity, we proceed by assuming that it can be omitted, so that the first part of the second-law statement reduces to the simple assertion that among all the states that share a given set of values of energy, amounts of constituents, and parameters, one and only one is a stable equilibrium state. For the discussion of systems with chemical reaction mechanisms, internal constraints, and transition restrictions see, e.g., [8,11].
16
The representation on the energy–entropy plane discussed in Section 33 will illustrate also graphically the significance of this important statement.
17
The so-called paradoxes of thermodynamics, often mentioned in popular science, history and philosophy of science books, originated from the mistaken belief, still prevalent, that the conclusions of mechanics and those of thermodynamics should be compared, assuming that both theories contemplate the same set of states for a given system. In this case, the paradox would be that for given values of n and β , mechanics has only one stable equilibrium state, while thermodynamics has infinitely many, one for each value of energy. The paradox is resolved by admitting that the set of states considered by thermodynamics contains, yes, but only as a subset, the states considered by mechanics. Thus, both statements are valid, each in their own context.
18
Another “historical” statement of the second law is Clausius’ statement. We will see later (Section 38), after defining temperature, that Clausius’ statement is also a consequence (theorem) of the more general second-law statement we have adopted.
19
This is a more than acceptable simplification that makes the proof much simpler than the complete one ([11] (Section 4.5)).
20
It should be noted that a necessary condition for the mutual equilibrium of two systems is that each is in a stable equilibrium state. However, vice versa is not sufficient; it is not enough for two systems to be in stable equilibrium states for them to be in mutual equilibrium.
21
From a mathematical point of view, the definition of S is already unambiguously, but implicitly, defined by the condition that for every system A (and B) and for every pair of states A 1 and A 2 (and B 1 and B 2 ), there exists a function S ( Y ) , where Y denotes E Ψ , such that
S A ( Y 2 A ) > S A ( Y 1 A ) if and only if Y 2 A > Y 1 A
S A B ( Y 2 A B ) S A B ( Y 1 A B ) = S A ( Y 2 A ) S A ( Y 1 A ) + S B ( Y 2 B ) S B ( Y 1 B )
For a mathematical formulation along these lines, see [17]. However, the explicit definition we propose in the next sections is pedagogically preferable as it is much more concrete, even though it requires some non-trivial reasoning.
22
As a consequence, when a thermal reservoir R is employed in the measurement procedure used to define the entropy difference between two states A 1 and A 2 of a system A (see Section 21), the procedure requires measuring the energy change of R in a reversible weight process of the composite system A R , during which the state of A changes from A 1 to A 2 . If system A contains only a few particles while R can only be realized with a large number of particles, the corresponding energy change of R is exceedingly small and, in practice, difficult to detect. For this reason, in Ref. [24], we developed a more elaborate—though pedagogically less practical—alternative formulation that avoids the use of thermal reservoirs as “entropymeters” and is better aligned with recent technological advances in the domain of small systems; see, e.g., Ref. [69].
23
To see this, consider two identical reservoirs R and R , initially in the same state R 1 = R 1 . Since they are both in MSE with C in state C R , they are in MSE with one another. Hence, state R 1 R 1 of the composite system R R is a stable equilibrium state with energy E 11 R R = E 1 R + E 1 R . Now, consider states R 2 and R 2 such that E 2 R = E 1 R + Δ E and E 2 R = E 1 R Δ E . State R 2 R 2 is another stable equilibrium state for the composite system R R . But E 22 R R = E 11 R R , so we would have two stable equilibrium states with the same values of energy, amounts, and parameters, in direct violation of the uniqueness asserted by the second law.
24
Rewriting Equation (27) that, for two reservoirs R and R with the state A 0 instead of A 2 , it is easy to derive that
1 T R ( E 0 rev R E 1 R ) A 1 R 1 w , rev A 0 R 2 rev = 1 T R ( E 0 rev R E 1 R ) A 1 R 1 w , rev A 0 R 2 rev
which shows that this ratio, for the given pair of states A 0 and A 1 , is equal for all reservoirs. Hence, the value of S 1 S 0 in Equation (29) is independent of the choice of reservoir R. Since S 0 is chosen for system A independently of R, it follows that the entropy value S 1 is entirely independent of the choice of the reservoir R used to measure it.
25
In traditional thermodynamics textbooks, it is not uncommon to find the assertion that entropy, and thermodynamics as a whole, is defined only for stable equilibrium states. However, this is due to the fact that the definition given there for entropy is inherently limited to stable equilibrium states, as it is based on temperature, which, as we will see in Section 29, is only defined for stable equilibrium states.
26
Just like for energy, additivity holds in general for differences in entropy, i.e.,
S 1 A S 0 A + S 1 B S 0 B = S 11 C S 00 C
for C = A B . To make it hold for absolute values as well,
S 11 C = S 1 A + S 1 B ,
we need the reference values for composite systems to be chosen such that S 00 C = S 0 A + S 0 B .
27
When there is no ambiguity about the system under consideration, the notation can be further simplified by omitting the subscript A and writing S 12 = S 12 . When there is no ambiguity about the process under consideration, the subscript 12 can be omitted as well, writing S A = S A or even S = S . It is important to note that when S A takes a negative value, it means that system A has released entropy. For example, if S A = 5 J/K, according to Equation (44), S A = 5 J/K, indicating that system A has released 5 joules per kelvin of entropy.
28
In some texts, is briefly referred to as the “second law of thermodynamics.” Therefore, the jargon “writing the second law” is used to mean “writing the entropy balance equation.” We have already pointed out that the second law of thermodynamics leads to many other important conclusions beyond the entropy balance equation. Thus, the mentioned jargon can be misleading and also fails to acknowledge the broader role and other implications of the second law, such as the state principle, the maximum entropy principle, and the numerous relations that derive from them.
29
Although the term ‘principle’ is improper, as this is another theorem that derives from the statement of the second law.
30
We have just seen that it has no external effects and it is not possible in the opposite direction.
31
Although it is not a ‘principle’ but rather a ‘theorem,’ which, as just seen, directly derives from the general (Hatsopoulos-Keenan) statement of the second law we adopted.
32
Except for some states within the framework of the simple system model [11] (Ch.16), where some second derivatives are discontinuous due to the many-particle limiting approximations (simplifications) introduced by the model. These states usually define the boundary between regions where different states of matter prevail, which we refer to as “phases.” However, it is only in the directions that cross this boundary that discontinuities occur, while in other directions, all derivatives are generally continuous.
33
However, in the realm of quantum thermodynamics, some systems (qubits, qutrits, spin, N-level atoms, such as models of three-level atoms useful for understanding the operation of lasers) are assumed to have a finite set of energy levels, so that the energy values they can take are limited by an upper bound. For these special systems, Relation (52) is not monotone and therefore it can be inverted only over two restricted energy intervals, yielding two relations of the form of Equation (55), respectively called the positive temperature branch and the negative temperature branch. See Figure 24.
34
It should be noted that while a thermometer placed in contact with a system in a nonequilibrium state will provide a reading, this ‘apparent temperature’ is a property of the thermometer’s own stable equilibrium state after the system+thermometer composite reaches a specific steady-state or transient interaction, rather than an intrinsic property of the nonequilibrium system. In the present framework, we strictly distinguish between such interaction-dependent readings—which depend on the nature of the contact and the thermometer’s own properties— and the temperature, which is defined exclusively for stable equilibrium states via the entropy-energy relation.
35
If the system is a thermal reservoir, or behaves as such in a given set of states, then 2 S / E 2 n , β = 0 .
36
For a special system, Equation (74) shows that the positive-temperature branch of the fundamental relation in energy form is convex, but the negative-temperature branch is concave.
37
For convenience, let us consider volume as the first parameter, β 1 = V , and denote the set of other parameters as β = { β 2 , , β s } .
38
Note that if the state is not a stable equilibrium state, the scheme illustrated in Figure 17 can result in different values of δ F / δ a from point to point on the wall, as the Equation (77) ceases to hold, and pressure is not even defined.
39
A complete set of independent properties is sufficient, given which all other properties can be calculated.
40
For a discussion on the quantum foundations of this assertion in the context of the present method of exposition of thermodynamics, see [70], where we also provide an improved statement of the second law compatible with the possibility, not excluded by the third law, of system’s models with degenerate ground-energy levels, for which the zero-temperature ground-energy stable equilibrium states need not have zero entropy.
41
Note that no system can behave like a thermal reservoir in all of its states because the condition that the temperature T R is equal for all stable equilibrium states is incompatible with the third law, which requires it to vanish at the minimum energy.
42
In physics and chemistry applications this role is often assigned to a so-called “heat bath” or a thermostatic bath, modeled by conditions essentially equivalent to our definition of a thermal reservoir.
43
The rhs of Equation (85), which is referred to as the Carnot coefficient between the two temperatures T S 1 B and T S 1 A . The lhs is often referred to as the energy efficiency of the conversion, but this language is misleading because, as already explained, it suggests that E 12 B is avoidable, while it is not.
44
Rel. (95) for system A is proven as follows. The initial state A 1 is a stable equilibrium state with energy E 1 A and entropy S 1 A . If the energy changes by d E A , the final state A 2 has energy E 2 A = E 1 A + d E A . Among all the states with this energy, the stable equilibrium state has the maximum entropy, i.e., (assuming for simplicity that parameters, V A , and amounts of constituents, n A , remain unchanged) S 2 A = S 1 A + d S A S 2 , max A = S SES A ( E 1 A + d E A , V A , n A ) where the strict equality holds only if also the final state A 2 is a stable equilibrium state. By Taylor expansion, S 2 , max A = S 1 A + d E A / T 1 A + 2 S SES / E 2 n , V | 1 A ( d E A ) 2 / 2 + S 1 A + d E A / T 1 A , where the strict equality holds only if the second derivative of the fundamental relation (otherwise always negative) vanishes, such as for a thermal reservoir or two-phase states. Combining these relations yields Rel. (95) for A, and similarly, Rel. (96) for B.
45
Strict equality 2A,3A holds if the final state A 2 of A is a stable equilibrium state (2A) and if 2 S SES / E 2 n , V | 1 A = 0 (3A), for example if A is a thermal reservoir. Strict equality 1A holds if δ S irr A = 0 , i.e., no entropy generation within system A. Strict equality 1B holds if δ S irr B = 0 , i.e., no entropy generation within system B. Strict equality 2B,3B holds if the final state B 2 of B is a stable equilibrium state (2B) and if 2 S SES / E 2 n , V | 1 B = 0 (3B), for example if B is a thermal reservoir. Clearly, for T 1 A T 1 B it is impossible that all equal signs apply. For example, if both A and B are thermal reservoirs and their final states A 2 and B 2 are stable equilibrium states, Relations (98) imply that either δ S irr A > 0 or δ S irr B > 0 , or both.
46
Often, in traditional expositions, one assumes Clausius’ statement as the statement of the second law, after having introduced heuristic definitions of temperature and heat. Clearly, in any axiomatic exposition, the postulated statement of the second law cannot be proved, as it is taken as the starting point of the deductive structure. In our approach, the statement of the second law that we postulate as the starting point is the Hatsopoulos–Keenan statement. In our context, the Clausius’ statement emerges as a theorem, and here we provide the rigorous proof, without using the definition of heat.
47
More generally, without assuming that temperatures are positive, Rel. (100) implies that 1 / T can be interpreted as a ‘potential’ that measures the tendency to give up energy. In quantum information technologies, it is common to have to deal with systems with a finite number of energy levels, such as spin systems or polarized photons which, because the energy is upper bounded, have both positive ad negative temperature stable equilibrium states. For these systems, the potential 1 / T ranges from (zero absolute positive temperature, the “coldest” stable equilibrium state) to + (zero absolute negative temperature, the “hottest” stable equilibrium state), passing through zero (the maximal-entropy stable equilibrium state).
48
A stationary machine is a system that, while interacting with other systems, always remains in the same state. A cyclic machine is a system that, while interacting with other systems, periodically returns to its initial state. Note that the definition of a cyclic machine includes the case of a stationary machine.
49
It is important to emphasize that the cyclic machine introduced here is not an ‘engine’ in the sense of a practical application. Rather, it serves as a conceptual measuring device—a test system—that allows us to operationally determine if a non-work interaction can be decomposed into a work part and an irreducible non-work part.
50
The enthalpy H = E + p V = H ( S , p , n ) is defined by the Legendre transform with respect to variable V of the fundamental relation in energy form, E = E ( S , V , n ) . It can be shown that within the simple-system approximation [11] (Par.17.8), valid only for large amounts, H = i n i h i and S = i n i s i , where h i = H / n i T , p , n = h i ( T , p , n ) and s i = S / n i T , p , n = s i ( T , p , n ) , so that the terms i h i | 1 δ n i A B and i s i | 1 δ n i A B can be interpreted as the enthalpy and entropy “carried” by the exchanged constituents as they cross from one system to the other.
51
This is by analogy with the notion of bulk flow interaction [11] (Ch.22), whereby the energy transfer is due in part to the internal energy carried by the bulk displacement of constituents and in part to the pulsion work needed to move them against the local pressure.
52
The Helmholtz free energy is defined—only for stable equilibrium states—by the Legendre transform of the fundamental relation E = E ( S , V , n ) with respect to the variable S. It follows that its “natural independent variables” are T, V, n , i.e., F = F ( T , V , n ) , and its differential can be written as d F = S d T p d V + μ · d n .
53
In the quantum thermodynamics literature, often the Helmholtz availability function E T R S is called “free energy” and denoted by the symbol F (see, e.g., [71]), potentially generating some confusion.
54
The Gibbs free energy is defined—only for stable equilibrium states—by the Legendre transform of the fundamental relation E = E ( S , V , n ) with respect to both variables S and V. Its “natural independent variables” are T, p, n , i.e., G = G ( T , p , n ) , and its differential can be written as d G = S d T + V d p + μ · d n .
55
The osmotic free energy is defined—only for stable equilibrium states—by the Legendre transform of the fundamental relation E = E ( S , V , n ) with respect to both variables S and n i . Its “natural independent variables” are T, V, μ i , n , i.e., E u i = E u i ( T , V , μ i , n ) , and its differential can be written as d E u i = S d T p d V n i d μ i + μ · d n .
56
The Hill free energy (also Euler free energy) is defined—only for stable equilibrium states—by the Legendre transform of the fundamental relation E = E ( S , V , n ) with respect to all its variables. Its “natural independent variables” are T, p, μ , i.e., E u = E u ( T , p , μ ) , and its differential can be written as d E u = S d T + V d p n · d μ . Note that, in general (in particular for small systems), T, p, and μ are independent. They become interdependent within the simple-system model (large amounts) where the assumption of extensivity is equivalent to setting E u = 0 .
57
We name these properties in honor of T.L. Hill, a pioneer of the field of “nanothermodynamics” [19,20], because of their direct relation with Hill’s “subdivision potential” [21,23]. However, we choose the symbol E u for the Hill free energy to connect with our previous naming it the Euler free energy [25], justified by the fact that within the simple-system model approximation (large amounts of constituents, macroscopic limit) the Hill free energy vanishes, E u = 0 , leading to the well-known Euler relation, E = T S p V + μ · n , from which follows extensivity, the fact that T, p, and μ are not independent, and the phase rule.
58
Condition (207) entails the general inequality C p C V 0 where C V and C p are the heat capacities at constant volume and pressure. Condition (208) entails the general inequality κ T κ S 0 where κ T and κ S are the isothermal and isoentropic compressibilities.
59
In principle, in addition to the conditions of separability and statistical independence implicit in our use of the word “system,” one should also ensure a clear distinction between intrinsic quantum uncertainties and classical statistical mixing, according to the notion of “homogeneity” of the preparation scheme. This refinement goes beyond our scope here, but is explained, for example, in [74]. For a technical discussion, see also [66] (Sections 4–5).
60
For simplicity, but without significant loss of generality, we restrict attention to systems with a discrete energy spectrum.
61
“God does not play dice!” declared Albert Einstein—one of the founders of quantum theory—expressing his profound dissatisfaction with the impossibility of predicting which energy level a system will yield in a given measurement act. Today, this feature is widely accepted as a fact of physical reality, although the dissatisfaction expressed by Einstein is still shared by some.
62
For systems with a continuous spectrum, the predictable quantity is the frequency f ( ϵ , N ) d ϵ with which individual measurement acts yield values between ϵ and ϵ + d ϵ .
63
Similarly, for a continuous spectrum one defines a probability density p ϵ such that
p ϵ d ϵ = lim N f ( ϵ , N ) d ϵ
With both discrete and continuous spectra, the normalization condition becomes { ϵ j } p ϵ j + p ϵ d ϵ = 1 .
64
With both discrete and continuous spectra, the value is E = lim N f ( ϵ j , N ) ϵ j = { ϵ j } p ϵ j ϵ j + p ϵ ϵ d ϵ .
65
In terms of technical quantum-thermodynamics jargon, it is the subclass of states for which the density operator ρ , which represents the state of the system, commutes with the Hamiltonian operator H, whose eigenvalues are the energy levels ϵ j , i.e., the states for which [ ρ , H ] = 0 . This condition implies that operators H and ρ share a common set of eigen-projectors P ϵ j such that g ϵ j = Tr ( P ϵ j ) and the spectral expansions of ρ and H may be written as H = j ϵ j P ϵ j and ρ = j p ϵ j P ϵ j . Outside this subclass of states, the more general explicit expression for the entropy is S = k B Tr ( ρ ln ρ ) , which clearly reduces to Equation (217) when [ ρ , H ] = 0 .
66
In the case of degenerate levels, the most disorderly situation corresponds to the following probability distribution and, hence, the following values of entropy and energy,
p ϵ j = g ϵ j i g ϵ i S = k B ln i g ϵ i E = j g ϵ j ϵ j i g ϵ i
67
Applying the method of Lagrange multipliers
max { p ϵ j } L ( p ϵ j , λ 1 , λ E ) | ϵ j , g ϵ j , E = k B j p ϵ j ln ( p ϵ j / g ϵ j ) + λ 1 i p ϵ i 1 + λ E i p ϵ i ϵ i E
Setting L / p ϵ j g ϵ j , λ 1 , λ E = 0 , we obtain p ϵ j = g ϵ j exp λ 1 / k B 1 + λ E ϵ j / k B and, using the constraint j p ϵ j = 1 to obtain the value of λ 1 , we find
p ϵ j = g ϵ j exp ( λ E ϵ j / k B ) i g ϵ i exp ( λ E ϵ i / k B )
Substituting into the expressions for energy and entropy, we find
E = j g ϵ j ϵ j exp ( λ E ϵ j / k B ) i g ϵ i exp ( λ E ϵ i / k B ) S = λ E E + k B ln i g ϵ i exp ( λ E ϵ i / k B )
and, applying the definition of temperature and remembering that ϵ j = ϵ j ( n , β ) and g ϵ j = g ϵ j ( n , β ) ,
1 T = S E n , β = S E { ϵ j } , { g ϵ j } = λ E
68
In terms of the de Broglie wavelength Λ dB = h / 2 π m k B T , this condition may be expressed as Λ dB i . Equation (249) then rewrites as Q i i / Λ dB
Figure 1. The term “process” refers to the description of the initial state, the final state, and the effects caused on the environment, related to a given temporal evolution of the state of a system.
Figure 1. The term “process” refers to the description of the initial state, the final state, and the effects caused on the environment, related to a given temporal evolution of the state of a system.
Entropy 28 00371 g001
Figure 2. A process is a weight process if the only external effect caused by the system’s interactions is a change in the elevation of a weight.
Figure 2. A process is a weight process if the only external effect caused by the system’s interactions is a change in the elevation of a weight.
Entropy 28 00371 g002
Figure 3. A process is reversible if there is a way to return both the system and its environment to their respective initial states.
Figure 3. A process is reversible if there is a way to return both the system and its environment to their respective initial states.
Entropy 28 00371 g003
Figure 4. Energy differences are additive, E 11 C E 00 C = ( E 1 A E 0 A ) + ( E 1 B E 0 B ) . Energy values can be made additive by selecting reference values for composite systems so that E 00 C = E 0 A + E 0 B . As a result, E 11 C = E 1 A + E 1 B .
Figure 4. Energy differences are additive, E 11 C E 00 C = ( E 1 A E 0 A ) + ( E 1 B E 0 B ) . Energy values can be made additive by selecting reference values for composite systems so that E 00 C = E 0 A + E 0 B . As a result, E 11 C = E 1 A + E 1 B .
Entropy 28 00371 g004
Figure 5. Energy can be exchanged between two systems A and B through interaction. In this example, the composite system C = A B is isolated.
Figure 5. Energy can be exchanged between two systems A and B through interaction. In this example, the composite system C = A B is isolated.
Entropy 28 00371 g005
Figure 7. Perpetual motion of the second kind refers to the possibility of extracting mechanical energy (lifting a weight) without any other effects (weight process) from a system that initially is in a stable equilibrium state.
Figure 7. Perpetual motion of the second kind refers to the possibility of extracting mechanical energy (lifting a weight) without any other effects (weight process) from a system that initially is in a stable equilibrium state.
Entropy 28 00371 g007
Figure 8. Adiabatic availability Ψ 1 A measures the maximum amount of energy that can be transferred out of system A initially in state A 1 by means of a weight process. This maximum is obtained when the weight process for A is reversible and the system ends in a stable equilibrium state. The final stable equilibrium state A S 1 is uniquely determined by the initial state A 1 .
Figure 8. Adiabatic availability Ψ 1 A measures the maximum amount of energy that can be transferred out of system A initially in state A 1 by means of a weight process. This maximum is obtained when the weight process for A is reversible and the system ends in a stable equilibrium state. The final stable equilibrium state A S 1 is uniquely determined by the initial state A 1 .
Entropy 28 00371 g008
Figure 9. A practical approximation of a thermal reservoir can be obtained with H 2 O at the triple point. In any state, R 1 , R 2 , …, in which the solid, liquid, and vapor phases coexist in stable equilibrium, even though they have different energy values, the reservoir R is always in mutual equilibrium with a system C in state C R , also containing H 2 O at the triple point.
Figure 9. A practical approximation of a thermal reservoir can be obtained with H 2 O at the triple point. In any state, R 1 , R 2 , …, in which the solid, liquid, and vapor phases coexist in stable equilibrium, even though they have different energy values, the reservoir R is always in mutual equilibrium with a system C in state C R , also containing H 2 O at the triple point.
Entropy 28 00371 g009
Figure 10. Available energy ( Ω R ) 1 A with respect to thermal reservoir R measures the maximum amount of energy that can be transferred out of system A initially in state A 1 by means of a weight process for the composite system A R . Such maximum is obtained independently of the initial stable equilibrium state R 1 of the reservoir when the weight process for A R is reversible and the composite system A R ends in a stable equilibrium state, i.e., A and R end in mutual stable equilibrium.
Figure 10. Available energy ( Ω R ) 1 A with respect to thermal reservoir R measures the maximum amount of energy that can be transferred out of system A initially in state A 1 by means of a weight process for the composite system A R . Such maximum is obtained independently of the initial stable equilibrium state R 1 of the reservoir when the weight process for A R is reversible and the composite system A R ends in a stable equilibrium state, i.e., A and R end in mutual stable equilibrium.
Entropy 28 00371 g010
Figure 11. If system A can interact with a thermal reservoir R, any pair of states A 1 and A 2 can be interconnected by means of reversible weight process for the composite system A R .
Figure 11. If system A can interact with a thermal reservoir R, any pair of states A 1 and A 2 can be interconnected by means of reversible weight process for the composite system A R .
Entropy 28 00371 g011
Figure 12. Visualization of the measurement procedure defining the temperature T R of thermal reservoir R by comparison with the reference thermal reservoir R 0 . System A and its states A 1 and A 2 are chosen arbitrarily and play only an auxiliary role in the procedure, by determining uniquely the final stable equilibrium states R 2 rev and R 2 rev 0 of the two reservoirs. The objective of the procedure is to measure the energy changes of R and R 0 in these two reversible weight processes and compute the dimensionless ratio ( E 2 rev R E 1 R ) / ( E 2 rev R 0 E 1 R 0 ) .
Figure 12. Visualization of the measurement procedure defining the temperature T R of thermal reservoir R by comparison with the reference thermal reservoir R 0 . System A and its states A 1 and A 2 are chosen arbitrarily and play only an auxiliary role in the procedure, by determining uniquely the final stable equilibrium states R 2 rev and R 2 rev 0 of the two reservoirs. The objective of the procedure is to measure the energy changes of R and R 0 in these two reversible weight processes and compute the dimensionless ratio ( E 2 rev R E 1 R ) / ( E 2 rev R 0 E 1 R 0 ) .
Entropy 28 00371 g012
Figure 13. Visualization of the measurement procedure defining the entropy of system A with respect to an arbitrarily chosen reference state A 0 . Reservoir R and its initial state R 1 are chosen arbitrarily and play only an auxiliary role in the procedure, by determining uniquely the final state R 0 rev of the reservoir. The objective of the procedure is to measure the energy change of R in the reversible weight process for A R in order to compute the ratio ( E 0 rev R E 1 R ) / T R .
Figure 13. Visualization of the measurement procedure defining the entropy of system A with respect to an arbitrarily chosen reference state A 0 . Reservoir R and its initial state R 1 are chosen arbitrarily and play only an auxiliary role in the procedure, by determining uniquely the final state R 0 rev of the reservoir. The objective of the procedure is to measure the energy change of R in the reversible weight process for A R in order to compute the ratio ( E 0 rev R E 1 R ) / T R .
Entropy 28 00371 g013
Figure 14. Entropy can be exchanged between two systems A and B through interaction. In this example, the composite system C = A B undergoes a reversible weight process.
Figure 14. Entropy can be exchanged between two systems A and B through interaction. In this example, the composite system C = A B undergoes a reversible weight process.
Entropy 28 00371 g014
Figure 15. Entropy balance for system A for a process in which the state of A changes from A 1 at time t 1 to A 2 at time t 2 , and the net effect of the interaction between A and its environment includes an entropy transfer S 12 A (positive if in the direction of the arrow, i.e., if received by A, negative if in the opposite direction).
Figure 15. Entropy balance for system A for a process in which the state of A changes from A 1 at time t 1 to A 2 at time t 2 , and the net effect of the interaction between A and its environment includes an entropy transfer S 12 A (positive if in the direction of the arrow, i.e., if received by A, negative if in the opposite direction).
Entropy 28 00371 g015
Figure 16. If A and B are in mutual equilibrium in states A 0 and B 0 , then C 0 = A 0 B 0 is a stable equilibrium state. The maximum entropy principle implies that any other state C 1 with the same or compatible values of x C = ( E A + E B , n A + n B , V A + V B ) cannot be a stable equilibrium state and, therefore, S 1 C < S 0 C . Compatibility depends on the interactions between systems A and B allowed by the partition that separates them. For example, it can allow them to exchange only energy, or energy and only one of the constituents, or energy and volume, and so on.
Figure 16. If A and B are in mutual equilibrium in states A 0 and B 0 , then C 0 = A 0 B 0 is a stable equilibrium state. The maximum entropy principle implies that any other state C 1 with the same or compatible values of x C = ( E A + E B , n A + n B , V A + V B ) cannot be a stable equilibrium state and, therefore, S 1 C < S 0 C . Compatibility depends on the interactions between systems A and B allowed by the partition that separates them. For example, it can allow them to exchange only energy, or energy and only one of the constituents, or energy and volume, and so on.
Entropy 28 00371 g016
Figure 17. The pressure p (defined at stable equilibrium by Equation (69)) is equal to the force per unit area exerted by the system on the walls confining its constituents in volume V.
Figure 17. The pressure p (defined at stable equilibrium by Equation (69)) is equal to the force per unit area exerted by the system on the walls confining its constituents in volume V.
Entropy 28 00371 g017
Figure 18. Projection onto the ES plane of the multidimensional geometric space with an axis for each amount of constituents, parameter, and independent property, restricted to states that lie in the subspace corresponding to fixed values of amounts and parameters, assuming for simplicity that volume V is the only parameter and the system is normal and has non-degenerate ground-energy levels.
Figure 18. Projection onto the ES plane of the multidimensional geometric space with an axis for each amount of constituents, parameter, and independent property, restricted to states that lie in the subspace corresponding to fixed values of amounts and parameters, assuming for simplicity that volume V is the only parameter and the system is normal and has non-degenerate ground-energy levels.
Entropy 28 00371 g018
Figure 19. ES diagram for a system with degenerate ground-energy levels. The stable equilibrium state corresponding to the minimum energy E min ( n , V ) does not have zero entropy, but the third law asserts it has zero temperature.
Figure 19. ES diagram for a system with degenerate ground-energy levels. The stable equilibrium state corresponding to the minimum energy E min ( n , V ) does not have zero entropy, but the third law asserts it has zero temperature.
Entropy 28 00371 g019
Figure 20. Graphical representation on the E-S diagram of the adiabatic availability of state A 1 of system A.
Figure 20. Graphical representation on the E-S diagram of the adiabatic availability of state A 1 of system A.
Entropy 28 00371 g020
Figure 21. ES diagram for a thermal reservoir R showing that the stable equilibrium state curve has 2 S / E 2 n , V = 0 and constant slope T R , i.e., it is a straight line.
Figure 21. ES diagram for a thermal reservoir R showing that the stable equilibrium state curve has 2 S / E 2 n , V = 0 and constant slope T R , i.e., it is a straight line.
Entropy 28 00371 g021
Figure 22. Graphical representation on the ES diagram of the available energy of state A 1 with respect to a thermal reservoir R with temperature T R .
Figure 22. Graphical representation on the ES diagram of the available energy of state A 1 with respect to a thermal reservoir R with temperature T R .
Entropy 28 00371 g022
Figure 23. Graphical representation on an ESV diagram of two states A 1 and A 1 with equal energy ( E 1 = E 1 ) and entropy ( S 1 = S 1 ) but different volumes and, therefore, different adiabatic availability ( E 1 E S 1 E 1 E S 1 ).
Figure 23. Graphical representation on an ESV diagram of two states A 1 and A 1 with equal energy ( E 1 = E 1 ) and entropy ( S 1 = S 1 ) but different volumes and, therefore, different adiabatic availability ( E 1 E S 1 E 1 E S 1 ).
Entropy 28 00371 g023
Figure 24. ES diagram for a special system that, for fixed values of n and β , has energy values bounded between a minimum and a maximum. Stable equilibrium states with energy higher than E S max have negative temperatures.
Figure 24. ES diagram for a special system that, for fixed values of n and β , has energy values bounded between a minimum and a maximum. Stable equilibrium states with energy higher than E S max have negative temperatures.
Entropy 28 00371 g024
Figure 25. (Left): To extract energy from a system A initially in state A S 1 , we must reduce its entropy. (Right): To transfer entropy into a system B initially in state B S 1 , we must increase its energy.
Figure 25. (Left): To extract energy from a system A initially in state A S 1 , we must reduce its entropy. (Right): To transfer entropy into a system B initially in state B S 1 , we must increase its energy.
Entropy 28 00371 g025
Figure 26. E-S diagram for a system A containing an initially charged battery and an ideal electric motor connected to a weight B via a rope wound on its shaft, showing different paths in state space that may result depending on how rapid is the internal battery discharge with respect to the work interaction with the weight.
Figure 26. E-S diagram for a system A containing an initially charged battery and an ideal electric motor connected to a weight B via a rope wound on its shaft, showing different paths in state space that may result depending on how rapid is the internal battery discharge with respect to the work interaction with the weight.
Entropy 28 00371 g026
Figure 27. Superposed ES diagrams for two identical systems A and B exchanging energy by a work interaction. (Left): the process is reversible and the systems end in nonequilibrium states. (Center): the reversible process is followed by a spontaneous irreversible relaxation of each system to stable equilibrium state. (Right): the spontaneous irreversible relaxation toward stable equilibrium state starts and takes place simultaneously to the work interaction.
Figure 27. Superposed ES diagrams for two identical systems A and B exchanging energy by a work interaction. (Left): the process is reversible and the systems end in nonequilibrium states. (Center): the reversible process is followed by a spontaneous irreversible relaxation of each system to stable equilibrium state. (Right): the spontaneous irreversible relaxation toward stable equilibrium state starts and takes place simultaneously to the work interaction.
Entropy 28 00371 g027
Figure 28. Systems A and B are initially in stable equilibrium and interact with each other (without leaving net effects external to A B ) by exchanging an infinitesimal amount δ E A B of energy. Such exchange can occur only if δ S A B satisfies Relation (98). The ES diagrams in this Figure are quite complex and full of details, but once the derivation in this section is understood, they provide a graphical illustration of its various elements. The dashed lines represent the range of possible final states A 2 and B 2 , respectively, while the dotted paths from A 1 to A 2 and from B 1 to B 2 represent one particular realization, compatible with Rel. (98), in which the systems, simultaneously to their energy and entropy exchange, relax toward stable equilibrium but at time t 2 have not reached yet the stable equilibrium state.
Figure 28. Systems A and B are initially in stable equilibrium and interact with each other (without leaving net effects external to A B ) by exchanging an infinitesimal amount δ E A B of energy. Such exchange can occur only if δ S A B satisfies Relation (98). The ES diagrams in this Figure are quite complex and full of details, but once the derivation in this section is understood, they provide a graphical illustration of its various elements. The dashed lines represent the range of possible final states A 2 and B 2 , respectively, while the dotted paths from A 1 to A 2 and from B 1 to B 2 represent one particular realization, compatible with Rel. (98), in which the systems, simultaneously to their energy and entropy exchange, relax toward stable equilibrium but at time t 2 have not reached yet the stable equilibrium state.
Entropy 28 00371 g028
Figure 29. Systems A and B are initially in stable equilibrium states and interact with each other (without leaving net effects external to A B ) by exchanging a finite amount E A B of energy. Such exchange can occur only if there is also an entropy transfer S A B , at least S A B | min but no more than S A B | max .
Figure 29. Systems A and B are initially in stable equilibrium states and interact with each other (without leaving net effects external to A B ) by exchanging a finite amount E A B of energy. Such exchange can occur only if there is also an entropy transfer S A B , at least S A B | min but no more than S A B | max .
Entropy 28 00371 g029
Figure 30. The cyclic machine X interposed between interacting systems A and B intercepts the energy and entropy they exchange and attempts to channel as much energy as possible into lifting a weight G. This lifting becomes impossible in the limit as T 1 A T 1 B . In this limit, the non-work interaction between A and B is a heat interaction.
Figure 30. The cyclic machine X interposed between interacting systems A and B intercepts the energy and entropy they exchange and attempts to channel as much energy as possible into lifting a weight G. This lifting becomes impossible in the limit as T 1 A T 1 B . In this limit, the non-work interaction between A and B is a heat interaction.
Entropy 28 00371 g030
Figure 31. If the initial conditions of A and B are such that the machine X in Figure 30 can transfer a non-negligible amount of energy δ W X G to the weight G, the interaction between A and B is not heat. If that energy is then given to B by means of a work interaction, the final effects on B are the same as in Figure 28. The energy received by B from the weight is clearly identifiable as work. Therefore, the machine X has been able to split the energy transferred from A to B so that a finite fraction is work. When this is possible, the non-work interaction between A and B is not heat.
Figure 31. If the initial conditions of A and B are such that the machine X in Figure 30 can transfer a non-negligible amount of energy δ W X G to the weight G, the interaction between A and B is not heat. If that energy is then given to B by means of a work interaction, the final effects on B are the same as in Figure 28. The energy received by B from the weight is clearly identifiable as work. Therefore, the machine X has been able to split the energy transferred from A to B so that a finite fraction is work. When this is possible, the non-work interaction between A and B is not heat.
Entropy 28 00371 g031
Figure 32. The interacting systems A and B are not in stable equilibrium state, but their respective subsystems A and B are in contact and have nearly identical temperatures, T A T Q T B .
Figure 32. The interacting systems A and B are not in stable equilibrium state, but their respective subsystems A and B are in contact and have nearly identical temperatures, T A T Q T B .
Entropy 28 00371 g032
Figure 33. One-dimensional heat-transfer model, based on heat interactions, of an infinitesimal element of a continuum in contact with adjacent small volumes at slightly different temperatures. The infinitesimal element is in a nonequilibrium state not too far from stable equilibrium. The attraction toward equilibrium resulting from the dissipative part of its internal dynamics produces spontaneous generation of entropy.
Figure 33. One-dimensional heat-transfer model, based on heat interactions, of an infinitesimal element of a continuum in contact with adjacent small volumes at slightly different temperatures. The infinitesimal element is in a nonequilibrium state not too far from stable equilibrium. The attraction toward equilibrium resulting from the dissipative part of its internal dynamics produces spontaneous generation of entropy.
Entropy 28 00371 g033
Figure 34. Systems A and B are initially in stable equilibrium states and interact directly without other effects through a moving piston, exchanging energy, volume, and entropy. Note that δ V A B > 0 when the piston moves to the left. Such an interaction can occur only if Rel. (134) is satisfied.
Figure 34. Systems A and B are initially in stable equilibrium states and interact directly without other effects through a moving piston, exchanging energy, volume, and entropy. Note that δ V A B > 0 when the piston moves to the left. Such an interaction can occur only if Rel. (134) is satisfied.
Entropy 28 00371 g034
Figure 35. Systems A and B are initially in stable equilibrium states and interact through an adiabatic piston of surface area a attached to a weight of mass m G = ( p 1 A p 1 B ) a / g chosen so as to balance exactly the different initial pressures applied on the two sides of the piston. When δ V A B > 0 , the piston moves to the right and lifts the weight.
Figure 35. Systems A and B are initially in stable equilibrium states and interact through an adiabatic piston of surface area a attached to a weight of mass m G = ( p 1 A p 1 B ) a / g chosen so as to balance exactly the different initial pressures applied on the two sides of the piston. When δ V A B > 0 , the piston moves to the right and lifts the weight.
Entropy 28 00371 g035
Figure 36. Systems A and B start in stable equilibrium states and interact directly without other effects by exchanging energy, entropy, and amounts of constituents, without exchange of volume. Such an interaction can occur only if Rel. (142) is satisfied.
Figure 36. Systems A and B start in stable equilibrium states and interact directly without other effects by exchanging energy, entropy, and amounts of constituents, without exchange of volume. Such an interaction can occur only if Rel. (142) is satisfied.
Entropy 28 00371 g036
Figure 38. The cyclic machine X interposed between interacting systems A and B intercepts the energy, constituents, and entropy they exchange and attempts to channel as much energy as possible into lifting a weight G. This lifting becomes impossible in the limit as T 1 A T 1 B and μ i 1 A μ i 1 B for every i. These limiting conditions define the non-work interaction between A and B that we call a heat-and-diffusion interaction.
Figure 38. The cyclic machine X interposed between interacting systems A and B intercepts the energy, constituents, and entropy they exchange and attempts to channel as much energy as possible into lifting a weight G. This lifting becomes impossible in the limit as T 1 A T 1 B and μ i 1 A μ i 1 B for every i. These limiting conditions define the non-work interaction between A and B that we call a heat-and-diffusion interaction.
Entropy 28 00371 g038
Figure 39. Schematic setup for the definition of available energy with respect to different types of thermal reservoir depending on whether volume and/or constituents can be exchanged or not between the system A and the thermal reservoir R (fixed V and n ; variable V and fixed n ; fixed V, variable n i , fixed n ; variable V and n ).
Figure 39. Schematic setup for the definition of available energy with respect to different types of thermal reservoir depending on whether volume and/or constituents can be exchanged or not between the system A and the thermal reservoir R (fixed V and n ; variable V and fixed n ; fixed V, variable n i , fixed n ; variable V and n ).
Entropy 28 00371 g039
Figure 40. Representation on the ES diagram of the Helmholtz availability function Γ = E T R S of a system A with respect to a thermal reservoir R with fixed volume V and amounts n , showing graphically that the available energy Ω R 1 A = Γ 1 A Γ R A and that Γ > Γ R for any state where A is not in mutual equilibrium with R. Thus, the minimum value Γ R is achieved only at state A R , where Γ R = F R , the Helmholtz free energy.
Figure 40. Representation on the ES diagram of the Helmholtz availability function Γ = E T R S of a system A with respect to a thermal reservoir R with fixed volume V and amounts n , showing graphically that the available energy Ω R 1 A = Γ 1 A Γ R A and that Γ > Γ R for any state where A is not in mutual equilibrium with R. Thus, the minimum value Γ R is achieved only at state A R , where Γ R = F R , the Helmholtz free energy.
Entropy 28 00371 g040
Figure 41. Representation on the ES diagram of the minimum work of partitioning, the maximum work from removing partitions, and the entropy generation by removing partitions. In Section 51, for the example of distinguishable but identical point particles in the ideal-gas limit, we derive the explicit expressions (Equation (256)) S irr λ 1 = n k B ln λ and W min 1 λ = W max λ 1 = 3 2 ( λ 2 / 3 1 ) n k B T a b .
Figure 41. Representation on the ES diagram of the minimum work of partitioning, the maximum work from removing partitions, and the entropy generation by removing partitions. In Section 51, for the example of distinguishable but identical point particles in the ideal-gas limit, we derive the explicit expressions (Equation (256)) S irr λ 1 = n k B ln λ and W min 1 λ = W max λ 1 = 3 2 ( λ 2 / 3 1 ) n k B T a b .
Entropy 28 00371 g041
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Beretta, G.P. Universal Foundations of Thermodynamics: Entropy and Energy Beyond Equilibrium and Without Extensivity. Entropy 2026, 28, 371. https://doi.org/10.3390/e28040371

AMA Style

Beretta GP. Universal Foundations of Thermodynamics: Entropy and Energy Beyond Equilibrium and Without Extensivity. Entropy. 2026; 28(4):371. https://doi.org/10.3390/e28040371

Chicago/Turabian Style

Beretta, Gian Paolo. 2026. "Universal Foundations of Thermodynamics: Entropy and Energy Beyond Equilibrium and Without Extensivity" Entropy 28, no. 4: 371. https://doi.org/10.3390/e28040371

APA Style

Beretta, G. P. (2026). Universal Foundations of Thermodynamics: Entropy and Energy Beyond Equilibrium and Without Extensivity. Entropy, 28(4), 371. https://doi.org/10.3390/e28040371

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop