Previous Article in Journal
Entropy-Fused Enhanced Symplectic Geometric Mode Decomposition for Hybrid Power Quality Disturbance Recognition
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Hungry Daemon: Does an Energy-Harvesting Active Particle Have to Obey the Second Law of Thermodynamics?

1
Fachbereich Mathematik, Humboldt-Universität zu Berlin, D-10099 Berlin, Germany
2
State Research Center OPTIMAS and Fachbereich Physik, RPTU Kaiserslautern-Landau, D-67663 Kaiserslautern, Germany
*
Author to whom correspondence should be addressed.
Entropy 2025, 27(9), 918; https://doi.org/10.3390/e27090918 (registering DOI)
Submission received: 2 July 2025 / Revised: 18 August 2025 / Accepted: 27 August 2025 / Published: 30 August 2025

Abstract

Thought experiments like Maxwell’s Demon or the Smoluchowski–Feynman Ratchet can help in pursuing the microscopic origin of the Second Law of Thermodynamics. Here we present a more sophisticated mechanical system than a ratchet, consisting of a Hamiltonian (non-Brownian) active particle which can harvest energy from an environment which may be in thermal equilibrium at a single temperature. We show that while a phenomenological description would seem to allow the system to operate as a Perpetual Motion Machine of the Second Kind, a full mechanical analysis confirms that this is impossible, and that perpetual energy harvesting within a mechanical system can only occur if the environment has an energetic population inversion similar to a lasing medium.

1. Introduction: Microphysics and the Second Law

The Laws of Thermodynamics are in no doubt, but the relationship of the Second Law to microscopic physics is still not fully clear. The Second Law cannot really be an independent axiom of causality in its own right, since deterministic mechanics already prescribes everything that can ever happen, and never requires any electron to consult thermodynamics in order to learn what to do next. General proof of the Second Law as a theorem within mechanics remains elusive, however. In particular the thermodynamical “arrow of time”, with entropy increasing only in the future direction, is still not easy to reconcile with microscopic time-reversal symmetry (see the Loschmidt paradox [1,2,3]), or with Poincaré recurrence [4]. It still seems possible that thermodynamics is not only due to microscopic equations of motion, but may instead reflect a constraint on the initial conditions of the universe.
The root of our difficulties in understanding the connection between Thermodynamics and microphysics lies in the fact that systems in which Thermodynamics is of practical importance are generally large, in the sense of having many degrees of freedom. Even systems as small as micro-organisms or molecular machines have so many moving parts that fully microscopic description is unfeasible. We can still describe such systems with simple models, but we can generally only do so by using effective equations of motion with dissipation and noise terms, which explicitly violate the unitarity of microscopic quantum evolution or, in the classical limit, Liouville’s theorem. It has to be emphasized that such non-unitary terms are not fundamental, but rather artifacts of truncating a full, microscopic description of a system into a partial, macroscopic description. Macroscopic descriptions can certainly be both accurate and useful, but for understanding the fundamental relationship between Thermodynamics and microphysics they are problematic, since they inherently take for granted some of the very things we are trying to investigate, such as relaxation and thermalization. The validity of the macroscopic description may not be in doubt, but to understand why it is valid, we cannot start by assuming it.
Important insights like fluctuation theorems [5,6,7] have been obtained within the macroscopic framework of non-equilibrium statistical mechanics by keeping the models of dissipation and noise as simple as possible while analyzing key parts of the system microscopically. We do not attempt a proper survey of even a narrow section of this literature, however, because in this paper, in contrast, we take the extreme approach of not including dissipation or noise at all: we study a fully microscopic classical system which obeys Liouville’s theorem, and has only a few degrees of freedom. By exploiting a certain feature of nonlinear dynamics (an isolated Chirikov resonance [8]), our purely mathematical Hamiltonian system has nonetheless previously been shown to behave like a combustion engine [9] or active particle [10], while exhibiting non-trivial constraints, due to adiabatic effects that resemble Thermodynamics.
Our approach cannot be a false one in principle, because there is no doubt that any real active particle could run for an arbitrarily long time within a sufficiently large isolated box containing some large but finite number of particles, whether these were the water molecules and nutrients supporting a micro-organism or the volumes of coal and air for running a steam locomotive. The entire finite, isolated dynamical system inside that box would obey unitarity, and Liouville’s theorem in the classical limit, but it would surely also obey Thermodynamics in its most general form (not necessarily equilibrium). Demonstrating this, and fully understanding how it works, is the outstanding problem of relating Thermodynamics to microphysics. We tackle this problem head-on, albeit in a very simple limit in which the finite, isolated system is actually not large but small.
In particular we will present a model mechanical system (that is, a mathematical Hamiltonian model) which is on the one hand small and simple enough to analyze microscopically in its entirety, and yet which on the other hand directly confronts the Kelvin–Planck formulation of the Second Law forbidding Perpetual Motion Machines of the Second Kind. In this sense our Liouvillian model can be considered as a thought experiment in the tradition of Maxwell’s Demon [11,12] and the equilibrium Smoluchowski–Feynman Ratchet [13,14], which propose to violate the Second Law of Thermodynamics by using simple mechanics.

2. Demons, Ratchets, and Active Particles

Our model will consist, firstly, of a non-Brownian active particle [10]: a particle which can move against an external force by drawing on an internal energy supply (a ‘depot’) [15,16,17,18,19]. Active particles in this sense have been studied extensively as idealized models for mobile micro-organisms or nano-motors; here we adapt the active particle concept to a different purpose. On the one hand, we eliminate the viscous drag and Brownian noise which are usually considered for active particles, since they are necessary for modelling systems like bacteria swimming through water, but would be undesirable macroscopic intrusions in our quest for microscopic understanding. And on the other hand, we define a specific microscopic mechanism, so that the transfer of energy from our particle’s depot into its active motion occurs under standard Hamiltonian equations of motion, rather than in a phenomenological energy budget equation, which simply assumes that the depot supplies energy for motion somehow, through some complicated biological machinery.
As shown in [9], our active particle certainly cannot move against the external force forever all by itself, because its energy depot is finite. In this paper, however, we will allow the active particle to replenish its internal depot by interacting with localized degrees of freedom as it moves past them. Energy harvesting by active particles has also been studied in dissipative models intended to represent biological systems [20,21,22,23], but here again we will define a non-dissipative form of energy harvesting, since our goal is not biological modelling but fundamental microphysics. Our food-like localized degrees of freedom (hereafter ‘crumbs’) will be considered as part of our whole system, along with the active particle—no single one of our degrees of freedom will obey Liouville’s theorem separately from the others, but the entire system of all of them will obey it in the larger total phase space. The localized crumb degrees of freedom will not be noisy in time, but they will have randomly distributed initial energies—in exactly the same way that individual gas molecules have randomly distributed energies when, one after another, they meet Maxwell’s Demon [11,12], or collide with a propeller blade in a Smoluchowski–Feynman Ratchet [13,14].
The energies of the individual molecules which Maxwell’s Demon or the Ratchet successively encounter are in particular distributed in a canonical ensemble, and so the set of all of the molecules makes up a spatially distributed thermal reservoir that is in equilibrium with a single well-defined temperature. In exactly the same way, the initial energies of our localized ‘crumb’ degrees of freedom will be distributed in a canonical ensemble so that they also constitute an equilibrium reservoir with a given temperature. In particular our individual crumbs will be rotors, and an ensemble of rotors or spins with thermally distributed energy is a common concrete model for a heat bath. If necessary, the validity of the set of crumbs as a thermal reservoir can be secured by postulating further interactions among the crumbs—or between the crumbs and an additional reservoir—that are weak enough to neglect over all time scales we consider, yet sufficient to make the whole set equilibrate ergodically over longer times.
So, although on the one hand we have a dynamical problem within Liouvillian mechanics, as our simple Hamiltonian active particle interacts one at a time with a succession of simple Hamiltonian crumbs, nevertheless on the other hand we also have a problem to which Thermodynamics applies, just as it does to the Demon and the Ratchet, as our active particle seeks to keep doing work (moving against a force) by drawing energy from a depot which is itself drawing from a thermal reservoir (the set of all crumbs). To the question of whether the active particle can keep moving against the external force indefinitely by harvesting energy from a thermal environment, mechanics and Thermodynamics both offer answers. And, as with the Demon and the Ratchet, so in our case does physical intuition offer an answer as well.
Intuition conflicts with Thermodynamics in our model just as it does for the Ratchet and Demon: it is initially hard to see why our energy-harvesting active particle will not be able to keep moving perpetually against the external force, as long as the temperature of the crumbs is sufficiently high that they can supply enough energy. The crumbs are a reservoir at a given temperature, and the energy depot of the active particle interacts with them; one expects that the depot will tend to stay thermalized with the crumbs so that its energy cannot fall too far below their average energy, and it will thus keep powering the active motion perpetually. Thermodynamics nonetheless says that the particle cannot do work perpetually like that, no matter how much energy the crumbs seem to offer, because this would violate the Kelvin–Planck formulation of the Second Law [24]: “It is impossible to devise a cyclically operating device, the sole effect of which is to absorb energy in the form of heat from a single thermal reservoir and to deliver an equivalent amount of work.” Although it can be subtle to define work in general, steady motion against an external force must count as work, if anything does. The power that drives the active particle’s motion is drawn directly from its depot, and if its depot can be replenished indefinitely from a single thermal environment, then a perpetually moving active particle must be a cyclically operating device of precisely the kind that is forbidden by the Second Law—a Perpetual Motion Machine of the Second Kind.
Historical efforts to vindicate Thermodynamics against the challenges of Maxwell’s Demon, recently surveyed in [12], have needed to unravel subtle questions of information processing (or even intelligent agency) on the part of the Demon, and of the entropy that may be carried by the medium which the Demon uses to detect the molecules. Understanding the Smoluchowski–Feynman Ratchet also requires careful study of the role of friction [17] in letting a pawl stop a sprocket from turning backwards, and of the Brownian motion of the pawl itself as an independent degree of freedom. In our case, in contrast, we will not need to consider information, dissipation, or noise to show that mechanics unambiguously supports Thermodynamics, and not intuition. The price for this will be that our mechanical system is somewhat more complicated than a sliding door or a ratchet.

3. Hamiltonian Daemon

Our mathematical Hamiltonian model for energy harvesting by an active particle is based on a previous mechanical model for a non-Brownian active particle. The Hamiltonian Daemon is a mechanical model introduced in [9] which is able to transfer energy from fast to slow degrees of freedom using a nonlinear resonance. (The model is referred to as a “daemon” rather than a “demon” in order to avoid an implicit claim that the model is a Demon like Maxwell’s; instead the name is in analogy with the small autonomous processes in Unix-family computer operating systems.) In [25] it was shown how this system has the properties of an active particle: It can sustain motion against external forces by drawing energy from an internal depot.
In [10] it was further shown that this mechanical model can still operate as an active particle under strong damping with Eulerian motion, and so it is not necessarily incompatible with the more usual kind of Brownian active particle; in this paper we include no dissipation or noise because they would be obstacles to our purpose, as discussed above. To focus on the problem of energy harvesting within Liouvillian mechanics, we will consider here the undamped Daemon, and add to it interactions with crumbs that will allow this “hungry daemon” to “feed”. We first review the “Daemon” model itself.

3.1. The Daemon Hamiltonian

The Hamiltonian of the Daemon model of [9] is a particular case of the general form
H D = H M + H I + γ H C ,
where H M is the motional energy (kinetic and potential) of the particle, H I is the particle’s internal energy depot, and H C describes the coupling between the previous two subsystems. The parameter γ is in general small so that a potentially large amount of “fuel” energy can be converted gradually, over a long time, into a large amount of work in moving the particle against an opposing force. Making γ large would change the Daemon from an engine-like system into something more like a bomb.
The particle’s motional energy H M includes the usual kinetic energy with a mass M, plus a potential with dependence on position q that can always be taken as linear over some range. The depot is modelled as an integrable subsystem with some high frequency Ω , described in canonical action-angle variables ( δ , I ) . The Daemon’s particular case of (1) thus includes
H M ( q , p ) = p 2 2 M + M g q ,
H I ( δ , I ) = Ω I ,
where q is the particle’s position, p its momentum and the action variable I of the depot is the “fuel level”, while the angular variable δ is the phase that is canonically conjugate to the action variable I.
We take the potential as exactly linear in q for simplicity; all of our discussion can be adapted to slowly varying potentials adiabatically, and cases where the opposing force is frictional rather than conservative are not qualitatively different [10,25]. For simplicity we also take the dependence of H I on I to be exactly linear, since our analysis likewise generalises adiabatically to (sufficiently weak) nonlinear dependence on I.
The energy depot must have a finite capacity, and thus the fuel level is bounded by a minimum and maximum fuel level ± I 0 . These upper and lower bounds on I must be respected by the coupling term H C , which will make I time-dependent but can never make | I | > I 0 .

3.2. The Nonlinear Coupling

This requirement motivates the particular form of nonlinear coupling between the particle’s position q and its depot’s angle variable δ from [9], which can be obtained by transforming a system of interacting particles:
H C ( q , p , δ , I ) = I 0 2 I 2 cos ( k q δ ) ,
for some constant k. This coupling provides a Chirikov resonance [8] which supports steady energy transfer between H I and H M , but only in the narrow region of phase space where the argument of the cosine is approximately constant in time, i.e., k q ˙ δ ˙ = 0 . This condition defines the critical velocity v c = Ω / k at which the active particle can steadily move, against the opposing force M g , by steadily drawing energy from its depot. Figure 1 shows a typical trajectory of the active particle’s momentum p and fuel level I during the active phase (as well as slightly before and after it).
Further details of the Daemon system’s behavior are supplied in [9,10,25]. For our current problem, the most essential feature of the Daemon’s active motion is that it eventually stops.

3.3. End of Active Motion

Since the internal depot energy is finite, active motion powered by the depot cannot continue forever. The secular rate at which I falls, during active motion, is exactly the rate I ˙ = M g / k at which the loss of internal depot energy H ˙ I = M g Ω / k provides the power ( p c / M ) ( M g ) = + M g Ω / k to keep moving at speed p c / M against the external force M g . The longest time for which the particle can continue to move actively is thus t m = 2 k I 0 / ( M g ) .
In [9] it is shown that a certain adiabatic invariant generally requires the active phase to end before I falls all the way to I 0 ; it ends instead at some threshold I I * satisfying I 0 < I * < 0 . This negative threshold I * is determined by the initial value of I (in fact I * I i in the absence of viscous drag on the particle’s motion). In [10] it is found that adding viscous drag against the active particle’s motion actually lets the active phase persist longer, possibly until the depot is fully drained, by lowering I * . With or without drag, however, it is easy to confirm by integrating the equations of motion numerically that the only thing which brings the active phase to an end is I falling to some finite negative threshold.
This suggests that if I can simply be held above this negative threshold, by somehow restocking the energy depot as the particle moves, then the active phase could continue forever. It also seems intuitive that if the active particle interacts with crumbs that have more energy than it does, then it must on average be the winner in energy exchange with the crumbs, and thus be able to keep its depot energy above the threshold for continued active motion. Since this intuitive picture allows a Perpetual Motion Machine of the Second Kind, however, something must go wrong with it microscopically. To see what can go wrong, we introduce a mechanical model for crumbs that can exchange energy with the Daemon’s depot.

4. Microscopic Harvesting Model: Feeding from Crumbs

4.1. The Hungry Daemon Hamiltonian

We consider this total Hamiltonian with “crumbs” with which the “Hungry Daemon” active particle can interact:
H = H D + n H n
H n = Ω J n + κ θ ( a / 2 | q n q | ) ( J 0 2 J n 2 ) ( I 0 2 I 2 ) cos ( δ β n ) ,
where H D is still the Daemon Hamiltonian of (1), and each new canonical pair of action-angle variables ( β n , J n ) represents a crumb at fixed location q n , with | J n | J 0 for some J 0 , in the same way that | I | I 0 . Each crumb n is a small version of the active particle’s internal depot; we will let all the crumbs have the same frequency Ω as the Daemon’s internal depot, because this resonant case seems likely to be optimal for energy harvesting. The step function θ ( a / 2 | q q n | ) means that the active particle only interacts with each crumb if it is within a distance a / 2 from that crumb—and for simplicity we will ensure that no crumbs are within a distance a from each other. The strength of the coupling between the active particle and the crumbs is given by κ . The resulting equations of motion are given in Appendix A.
The particular form of the coupling term in H n is chosen because it is equivalent to a classical spin–spin coupling ( L x L n x + L y L n y ) in the minimal canonical representation of angular momentum
L = I 0 2 I 2 cos ( δ ) I 0 2 I 2 sin ( δ ) I , L n = J 0 2 J n 2 cos ( β n ) J 0 2 J n 2 sin ( β n ) J n .
Although our numerical results in this paper will all now be based entirely on this specific form of coupling, as well as on the simplifying assumptions of equal parameters J 0 , Ω , κ , and a for all crumbs, we will argue in our next Section that our conclusions are generic.
Some representative trajectories of this system for different non-thermal choices of crumb parameters are shown in Figure 2. The most important feature to note is that the Hungry Daemon can indeed successfully harvest energy indefinitely from crumbs which all have high initial energies ( J n ( 0 ) close to + J 0 ); if it interacts instead with crumbs that all have low initial energies ( J n ( 0 ) close to J 0 ), then it actually loses energy to the crumbs, stalls sooner than it would if there were no crumbs, and does not replenish its internal depot.
The particular numerical results shown in Figure 2 do not immediately contradict the intuitive expectation that the active particle will always be able to harvest energy from crumbs if they have enough energy. Indeed, they may seem to support that intuition. However, it is precisely the pattern of high-energy crumbs yielding energy, while low-energy crumbs absorb it, which disproves the intuitive expectation and supports thermodynamics instead.

4.2. Interaction with a Single Crumb in a Simple Limit

We can obtain general analytical results for energy harvesting in our Hungry Daemon model by assuming an especially simple limit. This limit will then show us what can go wrong with the intuitive argument in favor of perpetual motion from thermal crumbs, such that instead thermodynamics is right. After we understand this issue in the simple limit, we will then argue in the following Section that the problem with the intuitive argument is not restricted to the simple limit, but is instead a general implication of Liouville’s Theorem.
We consider this simple limit by imposing the following special conditions on our Hungry Daemon model parameters:
  • The crumbs are much smaller energetically than the particle’s internal depot: J 0 I 0 , as for the red and orange curves in Figure 2, and as one expects for individual food particles consumed by a small mobile organism;
  • The typical interaction duration Δ t = a / v c between the actively moving particle and a crumb is short compared to 1 / γ , so that H C can be neglected over this short interval;
  • The effective crumb–depot coupling strength κ J 0 is, on the other hand, large enough that the interaction between a crumb and the depot is not negligible while | q q n | a / 2 .
In this simple limit the Hungry Daemon active particle effectively moves just as if there were no crumbs, except that its depot energy Ω I ( t ) can make a small jump whenever it passes one of the q n crumb locations.
This jump in depot energy occurs over the short interaction time with a crumb, while q ( t ) is within the interaction range a / 2 of a crumb location q n . In that time, the crumb reservoir and the particle depot effectively evolve under the simple coupling Hamiltonian
H H int = κ I 0 2 I 2 J 0 2 J n 2 cos ( δ β n ) .
This effective Hamiltonian H int exactly conserves I + J n so that the jump in I ( t ) over the short interval Δ t is exactly the negative of the change in J n ( t ) over this interval. Since | J n | J 0 I 0 , furthermore, we can neglect the proportionally small possible change in I ( t ) and treat I ( t ) as constant throughout this short interval. With this approximation it becomes easy to solve the canonical equations of motion for J n ( t ) . Defining t n as the moment when the active particle begins interacting with crumb n, we obtain
J n ( t ) = J n ( 0 ) cos κ I 0 2 I 2 ( t n ) ( t t n ) + + J 0 2 J n 2 ( 0 ) sin [ β n ( t n ) δ ( t n ) ] sin κ I 0 2 I 2 ( t n ) ( t t n ) + ,
where x + max ( x , 0 ) . Since the Daemon active particle always moves in the same direction during its active motion, it will not have interacted with crumb n until time t n , and since J n ( t ) is conserved until the active particle first comes within a / 2 of the crumb’s location q n , J n ( t n ) is simply the initial value of J n .
We can safely assume that the relative phase β n ( t n ) δ ( t n ) is random, first of all because all β n have the same energy until the active particle actually starts interacting with crumb n, and secondly because δ ( t ) evolves rapidly while the active particle moves between crumbs. On average, over an ensemble of many crumbs which all have arbitrary β n δ , therefore, the jump in the active particle’s depot level I ( t ) after interacting with a crumb with initial energy J n ( t n ) for a duration Δ t will be
Δ I n I ( t n + Δ t ) I ( t n ) = J n ( t n ) J n ( t n + Δ t ) = J n ( 0 ) 1 cos κ I 0 2 I 2 ( t n ) Δ t J n ( 0 ) [ I 0 2 I 2 ( t n ) ] ( κ Δ t ) 2 2 ,
where in the last step we have used the assumption that κ I 0 Δ t is small.
The crucial feature of Δ I n according to (10) is that it is directly proportional to J n ( 0 ) . At least in this simple limit of our particular Hungry Daemon model, therefore, whether the active particle will on average gain energy from a crumb, or lose energy to the crumb, does not depend on whether the crumb is initially more energetically excited than the active particle’s depot, but only on whether the crumb is closer in energy to its own energy maximum or to its own energy minimum. We will return to this important point in our discussion below.

4.3. Second Law of Thermodynamics

Over a short interaction time Δ t , we may assume that the actively moving Daemon keeps moving at close to its active speed Ω / k so that the interaction time can be computed self-consistently as
Δ t = k a Ω .
Inserting this in (10) and averaging over a thermal distribution of J n ( t n ) at temperature T, we find the average energy gain Δ E ¯ from interacting with crumb n at time t n for a duration of Δ t during active motion to be
Δ E ¯ ( t n , Δ t ) = J 0 J 0 d J n e Ω J n k B T 2 k B T Ω sinh Ω J 0 k B T Ω Δ I n = ( κ Δ t ) 2 Ω J 0 2 Θ coth Θ 1 I 0 2 I 2 ( t n ) ,
with the dimensionless temperature Θ = k B T Ω J 0 . The dependence of Δ E ¯ on both Δ t and t n should emphasize that it represents the energy transfer with crumb n at time t n after an interaction duration of Δ t , while the bar reminds us that it was averaged over the distribution of the crumb fuel levels.
We can immediately note that Δ E ¯ ( t n , Δ t ) is negative for all finite positive T, because coth x > 1 / x for all x > 0 . On average the Hungry Daemon does not succeed in harvesting energy from thermally excited crumbs at any positive temperature. Instead, its internal depot actually loses energy to the crumbs, on average. At least within the simple limit and its approximations, therefore, mechanics agrees with thermodynamics that perpetual motion cannot be powered solely by a thermal source with a single positive temperature.
We can confirm that our approximations which yielded this result are indeed accurate by further considering that the Daemon moves actively through an ensemble of crumbs spaced Δ q apart, and therefore interacts with crumbs at an average rate Δ q k / Ω . As a result, the depot loses energy at an average rate of Δ E ¯ ( t , Δ t ) Ω / ( Δ q k ) to the crumbs. Including the fuel level decrease M g / k needed to sustain activate motion (see Section 3), the average total rate at which the Daemon’s internal depot must be changing should then be
I ˙ ( t ) = M g k + Ω Δ q k Δ E ¯ ( t , Δ t ) ,
which is a Ricatti equation for I ( t ) . If we start the Daemon with a full internal depot, I ( 0 ) = I 0 , then it runs actively until the time t * at which I ( t * ) = I 0 , and we can find an analytical expression for t * by integrating (13). Multiplying by the power M g Ω / k applied by the internal depot against the external force yields the average total work Δ E ¯ tot done by the Daemon in its active motion:
Δ E ¯ tot = M g Ω k t * = M g Ω k I 1 ( I 0 ) .
This analytical result for the Daemon’s work output, based on our approximate analysis in this section, is compared in Figure 3 with a numerically exact solution to the full equations of motion for our system for ensembles of random crumbs obtained by sampling thermal distributions at different temperatures. The agreement is close.

5. Discussion

5.1. Summary: The Hungry Daemon Is Not a Perpetual Motion Machine of the Second Kind

The intuitive expectation for the Hungry Daemon was that it would surely gain energy from crumbs, at least on average, if they had more energy or higher temperature than it did, thus enabling it to continuously extract energy from its environment as soon as its fuel level is low enough. This expectation was based on the standard thermodynamical assumption that a system which interacts with a heat bath will tend to equilibrate with the bath, so that its own temperature approaches that of the bath. This seemingly reasonable expectation would imply that if the energy of the Daemon’s depot fell below the crumb temperature then it would on average steadily gain energy from the crumbs—and in this case the Daemon could keep moving against the external force forever, as long as the crumbs were hot enough, and frequent enough, to supply energy fast enough.
This expectation was, however, in conflict with Thermodynamics, since such continuous energy extraction from a thermal reservoir to do continuous work would explicitly represent a Perpetual Motion Machine of the Second Kind, being in direct conflict with the Kelvin–Planck formulation of the Second Law that we have cited above. The expectation that the Daemon’s depot would tend to equilibrate with the crumbs in the usual way may correspond with typical thermodynamical situations, but since in this case this typical expectation actually breaks the Second Law, something that does not fit with typical Thermodynamics must be going on here in any case: either the Daemon depot does not equilibrate with the crumbs as expected, or else the Second Law does not hold. So the expectation about equilibration on the part of the depot must be re-examined.
In fact it is the expectation of equilibration by the depot which fails in our case, and not the Second Law. The Hungry Daemon’s depot interacts with the crumbs, but its specific kind of interaction with them, individually in succession, with steady motion against an external force in-between, turns out not to be a form of interaction which would make the Daemon’s depot equilibrate with the crumbs while keeping the Daemon’s center of mass co-ordinate in a non-equilibrium state of steady uphill motion at a near-constant speed. We have now shown, strictly based on the Laws of Mechanics, that our Hungry Daemon can, in fact, never do what the Second Law forbids. It thus obeys the Second Law, even though it has been described microscopically and without dissipation.
The appeal of our result is that its origin can be traced all the way back to the microscopic interaction of the particle with a single crumb. According to (10), the direction of the average energy exchange between the two depends only on the sign of the crumb’s fuel level variable J n , and not on the difference between the daemon’s and crumb’s fuel level, as one would expect from a phenomenological relaxation approach. In consequence, when the crumb ensemble is in thermal equilibrium at positive temperature, the average fuel level J n of a crumb is negative, implying that the daemon more often loses energy to the crumbs than gaining energy from them. Its fuel trajectory therefore resembles more the red than the orange curve in Figure 2. Under these circumstances, the Hungry Daemon cannot replenish its reservoir in a periodic process and must eventually stop moving.

5.2. Generality?

Our analytical and numerical results have only explicitly described one simple limit of one artificial model system. By showing what can go wrong with intuitive expectation, however, these model calculations have indicated the general mechanical reason why the Second Law must be valid for a large class of possible energy-harvesting active particles. The mechanical reason for the Second Law, at least in this class of systems, is Liouville’s theorem.
For crumbs having any possible Hamiltonian H n , any positive-temperature phase space distribution
P n ( Q n , P n ) = Z n 1 exp H n ( Q n , P n ) k B T
can be considered as an ensemble of sub-ensembles that each have uniform probability for all energies below some maximum energy E :
P ( Q n , P n ) = d E P ˜ n ( E ) θ ( H n E )
for some sub-ensemble probability distribution P ˜ n ( E ) .
For each such sub-ensemble of all crumbs, each uniformly filling the phase space of each crumb n from the ground state to some E n , and for any initial state of the active particle and its internal depot, the entire system of crumbs and active particle fills a certain total phase space volume uniformly. This will be true even for greatly generalized versions of our simple model, with arbitrary forms of interaction between active particle and crumbs.
Liouville’s theorem then says that this initial phase space volume (actually the product of all the individual subsystem volumes) can never change under time evolution. Yet, if the active particle were to consistently extract energy from the crumbs, on average, their ensembles would have to be compressed downwards from E n to their ground states. If the energy harvesting could continue indefinitely, then this shrinking of the initial phase space volume would have to continue indefinitely as more and more crumbs and their energies drained—and therefore their phase space volumes.
The internal depot of an active particle is finite, and can only hold a finite amount of energy—or phase space volume. The momentum of the active particle likewise remains bounded, and its position is supposed to be systematically moving in time if perpetual energy harvesting is happening, not diffusing over an exponentially increasing range. So there is no way for the phase space volume of the active particle itself to increase sufficiently to make the steady decrease of crumb phase space volume consistent with Liouville’s theorem.
Phase space volume and Liouville’s theorem thus function for active particle energy harvesting as the microscopic, mechanical proxies for entropy and the Second Law. This is the relationship which is always suspected in seeking the microscopic underpinnings of the Second Law, but it cannot always be confirmed so explicitly. The impossibility of perpetual energy harvesting from thermally excited crumbs, which we found in our particular model, is indeed clearly general. As a new variant of a Maxwell’s Demon, the Hungry Daemon has indeed shed some light on the relationship between thermodynamics and microscopic mechanics.

5.3. Harvesting Can Succeed if There Is Energetic Inversion

The Hungry Daemon also confirms microscopically and mechanically something that is generally assumed about energy harvesting: that harvesting does not actually violate thermodynamics, because an environment which offers usable food or fuel is one that has some kind of energetic population inversion, with at least some higher energy states being more common than they could be in a positive-temperature thermal state. For crumbs with energy bounded from above as well as from below, this kind of energetic inversion is possible even within the canonical ensemble by taking a negative temperature. For negative temperatures, Δ I n in Equation (10) can be positive, and for a given opposing force M g and rate of encountering crumbs, there can be a sufficiently large negative T for the crumbs at which the Hungry Daemon does replenish its depot fast enough to keep moving indefinitely. And with negative temperature, the Second Law does not forbid perpetual motion, since extracting energy then increases entropy.
Crumbs with Boltzmann-distributed energies at a negative T are not necessarily realistic, even if the crumb energy is bounded from above, but the formal possibility of perpetual motion through energy harvesting from negative-temperature crumbs indicates that energetic population inversion of any kind can be sufficient to permit energy harvesting. This kind of energetic inversion is indeed realistic when one considers that energy sources such as ATP molecules are present in intracellular environments at concentrations far above equilibrium. With negative temperature or with any more general kind of inversion, the sub-ensemble argument that we have just presented must be revised to consider sub-ensembles of uniform probability above a threshold energy E , instead of below. The argument from Liouville’s theorem then changes direction to forbid steady energy loss to the crumbs, but allow steady harvesting. Liouville’s theorem does not allow uniformly filled phase space volumes to increase any more than it allows them to decrease, but it allows an initially uniform ensemble to become dilute, being made porous with swirls, so that it fills a larger volume in a coarse-grained sense. It does not allow a uniformly filled phase space volume to compress. So energy harvesting is allowed to continue indefinitely if the crumbs have sufficient energetic inversion.
In this sense the Hungry Daemon model has also shed light on energy harvesting by highlighting the special thermodynamical character of food. Food must not merely be energy, but thermodynamically available energy: it must have some form of energetic population inversion, with higher food energies appearing more often than they would in equilibrium.

5.4. Energy-Harvesters Versus Heat Engines

In order to satisfy Liouville’s theorem, energy extraction must conserve action. Re-examining our impossibility proof from Liouville’s theorem, above, we can see that energy harvesting from a positive-temperature source could become possible after all if the active particle would just divert a bit of its harvested energy to steadily excite some additional, ancillary degrees of freedom in its environment which were previously less energetically excited than the crumbs. The amount of diverted energy that would be needed to satisfy Liouville’s theorem, and enable steady energy harvesting, does not need to be as much as the energy which is taken from the crumbs. It just has to be enough to expand the phase space volume of those ancillary degrees of freedom enough to satisfy Liouville.
In other words, we can harvest energy from a single hot bath if we can expel heat to a colder bath. We have invented the heat engine. Or rather, of course, we have recognized that having access to two baths at different temperatures, enabling a heat engine, is a particular form of the kind of uneven distribution of energies in the environment that can also be exploited for energy harvesting from food or fuel.
And, now that we have seen how Liouville’s theorem supports Thermodynamics when it applies, we can further see how dissipation can be an advantage rather than an obstacle for naturally occurring active particles. Adding dissipation to our system would implicitly be adding a further reservoir, which could be colder than the reservoir of positive-temperature crumbs, and thus allow continuing motion against friction without any conflict with Thermodynamics. A world without any friction might not be one in which we were free from thermodynamic constraints, but rather one in which it was harder to deal with the constraints of Liouville’s theorem.

Author Contributions

Conceptualization, J.R.A.; Methodology, J.R.A.; Software, S.B.; Formal analysis, S.B.; Investigation, S.B.; Writing—original draft preparation, S.B.; Writing—review and editing, J.R.A. and D.M.F.; Visualization, S.B.; Supervision, J.R.A. and D.M.F.; Project administration, J.R.A.; Funding acquisition, J.R.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Deutsche Forschungsgemeinschaft (DFG) through SFB/TR185 (OSCAR), Project No. 277625399.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

S.B. gratefully acknowledges J. Bohm, C. Mink, C. Dittrich and M. Will for valuable discussions as well as T. Pfeifer and E. Wamba for their constructive feedback on this paper.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
acrumb width
β n crumb phase variable
γ coupling constant between daemon depot and motion
δ depot phase variable
Δ E ¯ average energy transfer from a crumb to the daemon depot
Δ E ¯ tot average energy transfer from all crumbs encountered during the active phase to the daemon depot
E system energy
gacceleration
H C coupling Hamiltonian
H D daemon Hamiltonian
H I depot Hamiltonian
H M motional Hamiltonian
H n crumb Hamiltonian
Idaemon fuel level coordinate
I * daemon fuel level at the end of the active phase
I 0 daemon maximal fuel level
I ¯ daemon fuel level averaged over the tank phases δ ( 0 ) and β n ( 0 ) as well as over the thermally distributed crumb fuel levels J n ( 0 )
J n crumb fuel level coordinate
J n ( 0 ) crumb initial fuel level
J 0 crumb maximal fuel level
kangular wave number
k B Boltzmann constant
κ coupling constant between depot and crumb
Mdaemon mass
pdaemon momentum
p c critical momentum
qdaemon position
Pprobability for a crumb to have an energy below some threshold E
P n probability distribution in phase space for crumb n
P ˜ n ( E ) sub-ensemble probability density in phase space for crumb n
P n momentum coordinate of crumb n
q n crumb position
Δ q crumb spacing
Q n position coordinate of crumb n
ttime
t n moment of begin of interaction between daemon and crumb
Δ t interaction duration
t m duration of active phase
Ttemperature
v c critical velocity
Ω frequency
Z n canonical partition function for crumb n

Appendix A. Equations of Motion

The resulting EOM from the Hamiltonian (5) are given by
q ˙ = H p = p M ,
p ˙ = H q = M g k γ I 0 2 I 2 sin ( k q δ ) ,
δ ˙ = H I = Ω + γ I I 0 2 I 2 cos ( k q δ ) κ n = 1 N θ ( a / 2 | q q n | ) I ( J 0 2 J n 2 ) ( I 0 2 I 2 ) cos ( δ β n ) ,
I ˙ = H δ = γ I 0 2 I 2 sin ( k q δ ) + κ n = 1 N θ ( a / 2 | q q n | ) ( J 0 2 J n 2 ) ( I 0 2 I 2 ) sin ( δ β n ) ,
β ˙ n = H J n = Ω κ θ ( a / 2 | q q n | ) J n I 0 2 I 2 J 0 2 J n 2 cos ( δ β n ) ,
J ˙ n = H β n = κ θ ( a / 2 | q q n | ) ( J 0 2 J n 2 ) ( I 0 2 I 2 ) sin ( δ β n ) .

References

  1. Murashita, Y. Loschmidt Paradox and the Fluctuation Theorems. In Fluctuation Theorems under Divergent Entropy Production and their Applications for Fundamental Problems in Statistical Physics, 1st ed.; Springer Nature: Singapore, 2021. [Google Scholar]
  2. Wu, T.-Y. Boltzmann’s H theorem and the Loschmidt and the Zermelo paradoxes. Int. J. Theor. Phys. 1975, 14, 289. [Google Scholar] [CrossRef]
  3. Binder, P.M. The Reversibility Paradox: Role of the Velocity Reversal Step. Int. J. Theor. Phys. 2023, 62, 200. [Google Scholar] [CrossRef]
  4. Weaver, C.G. Poincaré, Poincaré recurrence and the H-theorem: A continued reassessment of Boltzmannian statistical mechanics. Int. J. Mod. Phys. B 2022, 36, 2230005. [Google Scholar] [CrossRef]
  5. Crooks, G.E. Entropy production fluctuation theorem and the nonequilibrium work relation for free energy differences. Phys. Rev. E 1999, 60, 2721. [Google Scholar] [CrossRef]
  6. Jarzynski, C. Nonequilibrium Equality for Free Energy Differences. Phys. Rev. Lett. 1996, 78, 2690. [Google Scholar] [CrossRef]
  7. Maes, M.; Tasaki, H. Second Law of Thermodynamics for Macroscopic Mechanics Coupled to Thermodynamic Degrees of Freedom. Lett. Math. Phys. 2005, 79, 251. [Google Scholar] [CrossRef]
  8. Chirikov, B. Research Concerning the Theory of Non-Linear Resonance and Stochasticity; CERN: Geneva, Switzerland, 1971. [Google Scholar]
  9. Gilz, L.; Thesing, E.; Anglin, J.R. Hamiltonian analogs of combustion engines: A systematic exception to adiabatic decoupling. Phys. Rev. E 2016, 94, 042127. [Google Scholar] [CrossRef] [PubMed]
  10. Fieguth, D.M.; Schlachter, T.; Brady, D.; Anglin, J.R. Hamiltonian active particles in an environment. Phys. Rev. E 2022, 106, 044201. [Google Scholar] [CrossRef] [PubMed]
  11. Lutz, E.; Ciliberto, S. Information: From Maxwell’s demon to Landauer’s eraser. Phys. Today 2015, 68, 30. [Google Scholar] [CrossRef]
  12. Rex, A. Maxwell’s Demon—A Historical Review. Entropy 2017, 19, 240. [Google Scholar] [CrossRef]
  13. Smoluchowski, M. Experimentell nachweisbare, der üblichen Thermodynamik widersprechende Molekularphänomene. Phys. Zeitchrift 1912, 13, 1069. [Google Scholar]
  14. Feynman, R.; Leighton, R.; Sands, M. Ratchet and pawl. In The Feynman Lectures on Physics: Volume 1, 2nd ed.; Addison-Wesley: Boston, MA, USA, 1963. [Google Scholar]
  15. Schimansky-Geier, L.; Mieth, M.; Rosé, H.; Malchow, H. Structure formation by active Brownian particles. Phys. Lett. A 1995, 207, 140. [Google Scholar] [CrossRef]
  16. Schweitzer, F. Active brownian particles: Artificial agents in physics. In Stochastic Dynamics, 1st ed.; Schimansky-Geier, L., Pöschel, T., Eds.; Springer: Berlin, Germany, 1997. [Google Scholar]
  17. Nordén, B.; Zolotaryuk, Y.; Christiansen, P.L.; Zolotaryuk, A.V. Ratchet due to broken friction symmetry. Phys. Rev. E 2001, 65, 011110. [Google Scholar] [CrossRef] [PubMed]
  18. Cilla, S.; Falo, F.; Floría, L.M. Mirror symmetry breaking through an internal degree of freedom leading to directional motion. Phys. Rev. E 2001, 63, 031110. [Google Scholar] [CrossRef] [PubMed]
  19. Barnhart, E.L.; Allen, G.M.; Jülicher, F.; Theriot, J.A. Bipedal locomotion in crawling cells. Biophys. J. 2010, 98, 933–942. [Google Scholar] [CrossRef] [PubMed]
  20. Ebeling, W.; Schweitzer, F.; Tilch, B. Active Brownian particles with energy depots modeling animal mobility. BioSystems 1999, 49, 17. [Google Scholar] [CrossRef] [PubMed]
  21. Schweitzer, F.; Eberling, W.; Tilch, B. Complex motion of Brownian particles with energy depots. Phys. Rev. Lett. 1998, 80, 5044. [Google Scholar] [CrossRef]
  22. Kumar, K.V.; Ramaswamy, S.; Rao, M. Active elastic dimers: Self-propulsion and current reversal on a featureless track. Phys. Rev. E 2008, 77, 020102. [Google Scholar] [CrossRef] [PubMed]
  23. Romanczuk, P.; Ebeling, W.; Erdmann, U.; Schimansky-Geier, L. Active particles with broken symmetry. Chaos 2011, 21, 047517. [Google Scholar] [CrossRef] [PubMed]
  24. Rao, Y.V.C. Chemical Engineering Thermodynamics, 1st ed.; Universities Press: Hyderabad, India, 1997; p. 158. [Google Scholar]
  25. Fieguth, D.M. Dynamical active particles in the overdamped limit. J. Phys. Commun. 2024, 8, 075001. [Google Scholar] [CrossRef]
Figure 1. (Left): Typical trajectory of the active particle’s momentum p and fuel level I according to (1) over time during the active phase. The active phase is characterized by a steady energy flow from the particle’s fuel tank degree of freedom I to its momentum p into work against an external opposing force. During this process, the fuel level decreases at a nearly constant rate, while the momentum is held at a nearly constant value. (Right): Phase space of the transformed coordinate ( φ , I ) with φ k q δ with instantaneous contours at Ω t = 1000 . The red contour shows the separatrix of the system in that instant, which is the boundary in phase space between the active and the inactive phases of the particle’s dynamics. We chose here M g / ( k Ω I 0 ) = 0.001 , γ / Ω = 0.02 , M Ω / ( k 2 I 0 ) = 1 , I ( 0 ) / I 0 = 0.9 , k p ( 0 ) / ( M Ω ) = 1.5 .
Figure 1. (Left): Typical trajectory of the active particle’s momentum p and fuel level I according to (1) over time during the active phase. The active phase is characterized by a steady energy flow from the particle’s fuel tank degree of freedom I to its momentum p into work against an external opposing force. During this process, the fuel level decreases at a nearly constant rate, while the momentum is held at a nearly constant value. (Right): Phase space of the transformed coordinate ( φ , I ) with φ k q δ with instantaneous contours at Ω t = 1000 . The red contour shows the separatrix of the system in that instant, which is the boundary in phase space between the active and the inactive phases of the particle’s dynamics. We chose here M g / ( k Ω I 0 ) = 0.001 , γ / Ω = 0.02 , M Ω / ( k 2 I 0 ) = 1 , I ( 0 ) / I 0 = 0.9 , k p ( 0 ) / ( M Ω ) = 1.5 .
Entropy 27 00918 g001
Figure 2. Typical trajectories of (a) the active particle’s internal depot “fuel level” I / I 0 and (b) momentum p k / ( M Ω ) , evolved over time according to (5) in an environment without crumbs (blue), and with two different kinds of crumbs. The red and orange cases of crumbs are, respectively: small, low-energy crumbs having J n ( 0 ) = 0.6 J 0 I 0 (red) and small, high-energy crumbs having J n ( 0 ) = + 0.9 J 0 I 0 (orange). The red path (with the low-energy crumbs) exits the active phase first, even sooner than in the case with no crumbs, and shows no sign of fuel replenishment. Meanwhile, the small, high-energy crumbs of the orange path sustain the active phase for at least the computed time span. All trajectories have M = I 0 k 2 / Ω , γ = 0.02 Ω , g = 10 3 Ω 2 / k and a = 1 / k . The crumbs are equidistantly spaced with q n + 1 q n = 10 / k .
Figure 2. Typical trajectories of (a) the active particle’s internal depot “fuel level” I / I 0 and (b) momentum p k / ( M Ω ) , evolved over time according to (5) in an environment without crumbs (blue), and with two different kinds of crumbs. The red and orange cases of crumbs are, respectively: small, low-energy crumbs having J n ( 0 ) = 0.6 J 0 I 0 (red) and small, high-energy crumbs having J n ( 0 ) = + 0.9 J 0 I 0 (orange). The red path (with the low-energy crumbs) exits the active phase first, even sooner than in the case with no crumbs, and shows no sign of fuel replenishment. Meanwhile, the small, high-energy crumbs of the orange path sustain the active phase for at least the computed time span. All trajectories have M = I 0 k 2 / Ω , γ = 0.02 Ω , g = 10 3 Ω 2 / k and a = 1 / k . The crumbs are equidistantly spaced with q n + 1 q n = 10 / k .
Entropy 27 00918 g002
Figure 3. Average total work Δ E ¯ tot of the Daemon approximated according to (13) (red curve) together with the results of a Monte Carlo computation with 1000 trials (blue points with 95 % confidence intervals as error bars) in dependence on temperature of the crumb energy distribution. The close agreement is unsurprising for the specific case shown, which has M Ω / ( k 2 I 0 ) = 1 , γ = 0.02 Ω , g = 10 3 Ω 2 / k , J 0 = 0.05 I 0 , a = 1 / k , Δ q = 10 / k , κ = Ω / I 0 I ( 0 ) = I 0 , and p ( 0 ) = M Ω / k .
Figure 3. Average total work Δ E ¯ tot of the Daemon approximated according to (13) (red curve) together with the results of a Monte Carlo computation with 1000 trials (blue points with 95 % confidence intervals as error bars) in dependence on temperature of the crumb energy distribution. The close agreement is unsurprising for the specific case shown, which has M Ω / ( k 2 I 0 ) = 1 , γ = 0.02 Ω , g = 10 3 Ω 2 / k , J 0 = 0.05 I 0 , a = 1 / k , Δ q = 10 / k , κ = Ω / I 0 I ( 0 ) = I 0 , and p ( 0 ) = M Ω / k .
Entropy 27 00918 g003
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

Bienewald, S.; Fieguth, D.M.; Anglin, J.R. The Hungry Daemon: Does an Energy-Harvesting Active Particle Have to Obey the Second Law of Thermodynamics? Entropy 2025, 27, 918. https://doi.org/10.3390/e27090918

AMA Style

Bienewald S, Fieguth DM, Anglin JR. The Hungry Daemon: Does an Energy-Harvesting Active Particle Have to Obey the Second Law of Thermodynamics? Entropy. 2025; 27(9):918. https://doi.org/10.3390/e27090918

Chicago/Turabian Style

Bienewald, Simon, Diego M. Fieguth, and James R. Anglin. 2025. "The Hungry Daemon: Does an Energy-Harvesting Active Particle Have to Obey the Second Law of Thermodynamics?" Entropy 27, no. 9: 918. https://doi.org/10.3390/e27090918

APA Style

Bienewald, S., Fieguth, D. M., & Anglin, J. R. (2025). The Hungry Daemon: Does an Energy-Harvesting Active Particle Have to Obey the Second Law of Thermodynamics? Entropy, 27(9), 918. https://doi.org/10.3390/e27090918

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