Abstract
Given a particular heat engine cycle, what is the optimal working medium that results in the highest efficiency? While one might jump to the conclusion that it must surely be the ideal gas, the situation is actually more intricate. Starting with a general Helmholtz potential that depends polynomially on molar volume and temperature, we derive exact expressions for the ideal Stirling, Otto, and Brayton cycles. We find that for the thermodynamic systems described by our ansatz for the Helmholtz potential, the maximal efficiency is achieved if the working medium is described by a fundamental relation linear in temperature. This includes the ideal gas, but also classical harmonic oscillators and phenomenological models of the rubber band.
Keywords: optimal heat engines, polynomial equation of state
1. Introduction
Computing the efficiency of ideal heat engine cycles is probably the most common problem in any undergraduate course in thermodynamics [1]. In particular, the resulting efficiencies of ideal Otto and Stirling cycles have become general knowledge expected of anyone with a physics degree. What is maybe not always fully appreciated is the fact that, especially in introductory pedagogical treatments, one typically assumes the engine to operate with an ideal gas as the working medium. While this leads to simple formulas for the thermodynamic efficiencies, it hides the fact that for more general situations the efficiencies, even of the ideal cycles, can be significantly more involved.
This fact becomes particularly pertinent in the analysis of endoreversible heat engine cycles [2]. Here the term “endoreversibility” refers to thermodynamic processes of systems that follow successions of local equilibrium states, but which are not in equilibrium with the ambient heat reservoirs [3]. For such cycles, one is interested in the efficiency at maximal power, which for Carnot cycles is given by the Curzon–Ahlborn efficiency [4],
| (1) |
where and are the temperatures of the cold and hot reservoirs, respectively. The very appealing simplicity of Equation (1) led to the somewhat erroneous assumption that the Curzon–Ahlborn formula universally describes the efficiency at maximal power, for which evidence was found for, e.g., endoreversible Otto engines with ideal gases [5], endoreversible Stirling cycles [6,7,8], Otto engines in the quasistatic limit [9,10], or for harmonic trap undergoing a quantum Otto cycle [11,12,13].
However, at the latest and very succinctly in Ref. [2] it was shown that the efficiency at maximal power depends on (i) the considered endoreversible cycle, and (ii) the fundamental relation of the working medium. This insight was further corroborated, e.g., in Ref. [14] for cosmological engines and in Ref. [15] for plasma engines. Interestingly, these analyses highlighted that the particular choice of the working medium—in comparison to the ideal gas—can lead to either enhanced or decreased efficiency. See also Refs. [11,16,17,18,19,20,21,22,23] for related findings.
The somewhat natural question arises whether there is an optimal working medium that leads to maximal efficiency. For endoreversible Otto cycles, this question was already addressed in Ref. [24]; however, a comprehensive answer appears to be still lacking. It is interesting to note that the analysis of endoreversible cycles might actually obscure the pertinent issue. Note that endoreversible processes are locally in equilibrium, and also locally their efficiency is determined by the ideal expressions. At least for the scenarios considered in Ref. [24] we observed that what appears locally optimal also remains optimal at maximal power. In general, this might not necessarily be the case, since maximizing the power can be a mathematically involved problem. Therefore, for the sake of simplicity and accessibility of the analysis, we restrict ourselves in the present analysis to ideal engine cycles without maximizing the power.
In the present analysis, we thus ask a rather innocuously looking question: namely, for what working medium is the efficiency of an ideal heat engine cycle maximized? To this end, we will assume that the fundamental relation is of polynomial form, for which we can derive a simple expression for the efficiencies of ideal Stirling, Otto, and Brayton cycles. We find that the maximal efficiencies are obtained for working media whose caloric equations of state are linear in temperature—this does include the ideal gas, but also describes, for instance, classical harmonic oscillators and rubber bands [1]. We emphasize that similar questions are often considered in engineering thermodynamics [25,26,27], but to the very best of our knowledge our simple and pedagogical approach is unique and novel.
2. Preliminaries: Polynomial Fundamental Relation
Reference [24] considered a caloric equation of state that depends polynomially on temperature and analyzed for which working medium the Otto efficiency in the endoreversible regime is maximal. It was found that, in this case, working media whose caloric equation of state is linear in temperature are optimal. Motivated by these results, we consider in the present analysis a more general thermodynamic system, whose Helmholtz potential can be written as
| (2) |
Here, N is the mole number, v is the molar volume, and T is the temperature. The allowed range of parameters of the exponents n and m is determined by thermodynamic considerations of stability. A fundamental relation describes a stable system if the thermodynamic potentials are convex functions of their extensive variables, and concave functions of their intensive variables [1]. In the present case, we thus must have that
| (3) |
Thus, we allow the range of parameters of the exponents to be
| (4) |
Finally, is a constant that depends on other physical properties of the thermodynamic system. Note that generally has to be chosen to correctly model the thermodynamic properties of the considered system. This becomes particularly obvious when considering the resulting equations of state.
As usual [1], the corresponding mechanical equation of state is given by
| (5) |
and for the caloric equation of state we obtain
| (6) |
The latter equation follows from explicitly expressing the entropy as a function of T and v,
| (7) |
Finally, to avoid clutter in the formulas, we will also write . Note that in the limit we also require to avoid trivial limits and enable the operation of heat engine cycles.
Example 1
(photonic gas). Before we continue, it is instructive to recall specific values of n and m for familiar examples. In particular, for and , Equation (2) becomes
(8) which we recognize as the fundamental relation of the photonic gas [1] or the relativistic electron–positron–photon plasma [15,28].
Example 2 (classical ideal gas).
As a second example, we briefly discuss how to obtain the ideal gas from Equation (2). In its standard form [1], the Helmholtz potential of the classical ideal gas is given by
(9) where λ is the thermal wavelength and is Boltzmann’s constant. This expression can be directly obtained from the polynomial formula in Equation (2). To this end, recall that the natural logarithm can be expressed as a polynomial limit, namely [29]
(10) Thus, choosing and , the ideal gas is simply obtained from Equation (2) in the limit with . As always [1], here is the ratio of isobaric, , and isochoric, , heat capacities.
3. Ideal Heat Engine Cycles
Equipped with a general ansatz for the Helmholtz potential (2), we can now continue to analyze ideal heat engine cycles. For pedagogical reasons, we will treat Stirling, Otto, and Brayton cycles separately. For each of these cycle, we will derive analytical expressions for the efficiency, which is generally defined as [1]
| (11) |
and which has to be smaller than the Carnot efficiency, .
3.1. Stirling Cycle
We begin with the Stirling cycle with perfect regeneration, which is comprised of two isothermal strokes and two isochoric strokes. We emphasize that, to avoid confusion with the literature, especially from the engineering sciences [25], we consider only Stirling cycles with perfect regeneration. Stirling engines with imperfect regeneration are a better description of real engines. However, in the present analysis we restrict ourselves to the simplest, most ideal scenario for the sake of clarity and simplicity. In this case, heat is only absorbed from the hot reservoir during , and no work is performed during the isochoric strokes. Thus, we have:
: isothermal expansion and heat is supplied from the hot reservoir;
: isochoric cooling and any heat is stored in a regenerator matrix;
: isothermal compression and heat is exhausted to the cold reservoir;
: isochoric heating and the heat stored in the regenerator is reabsorbed.
Hence, the efficiency (11) can be written as
| (12) |
where we also used that in isothermal processes the work is given by the difference in Helmholtz potentials [1].
Using Equation (2), we can now write
| (13) |
and
| (14) |
where we further used and . In addition, we have for the heat intake
| (15) |
which follows from Equation (7). Collecting terms and plugging into Equation (12), the efficiency then simply becomes
| (16) |
which only depends on the ratio of cold and hot temperatures, , and the exponent m.
Employing elementary calculus, it is easy to see that is a monotonically decreasing function of m for any value of . It assumes its maximum for , for which becomes the Carnot efficiency; see also Figure 1 for an illustration. We emphasize that this ideal Stirling efficiency is independent of the exponent n. Thus, the maximal efficiency is attained for any caloric equations of state that are linear in temperatures, such as ideal gases, rubber bands, or classical harmonic oscillators [1].
Figure 1.

Stirling efficiency (16) as a function of m, for (blue, solid line), (purple, dashed line), and (red, dot-dashed line).
3.2. Otto Cycle
As a second case, we treat the ideal Otto cycle, which is comprised of:
: isentropic compression;
: isochoric heating;
: isentropic expansion;
: isochoric cooling.
Again, no work is performed during the isochoric strokes, and no heat is exchanged during the isentropic strokes. Thus, we can now write [1]
| (17) |
Moreover, we can also write,
| (18) |
The changes in internal energy are determined from the caloric equation of state (6), and we have
| (19) |
and
| (20) |
Thus, the efficiency becomes
| (21) |
which depends on the compression ratio and the four temperatures.
As usual, we can further simplify by considering the isentropic strokes, namely , and . Using Equation (7) we obtain
| (22) |
where we used that and . In terms of the compression ratio, we then also have
| (23) |
from which we conclude that . Thus, we can write
| (24) |
and the efficiency (21) finally becomes
| (25) |
In contrast to the Stirling efficiency (16), the Otto efficiency (25) explicitly depends on both exponents, n and m. Since the compression ratio , the Otto efficiency is maximized for maximal values of the exponent . For any finite value of n, this is achieved again for , i.e., for caloric equations of state that are linear in temperature. Note that in principle the efficiency is also maximized in the limit , which, however, would correspond to a highly unstable thermodynamic system.
Our results for the Otto efficiency are sketched in Figure 2.
Figure 2.

Otto efficiency (25) as a function of m, for and (blue, solid line), (purple, dashed line), and (red, dot-dashed line).
3.3. Brayton Cycle
As a third, and final case, we consider the Brayton cycle. This cycle is identical to the Otto cycle, but replacing the isochoric strokes with isobaric strokes. We have:
: isentropic compression;
: isobaric heating;
: isentropic expansion;
: isobaric cooling.
In complete analogy to the Otto cycle (17), the efficiency is again given by
| (26) |
Note, however, that the Brayton cycle is governed by isobaric strokes, which are best described in the enthalpy representation of the fundamental relation [1]. To this end, we write
| (27) |
where we used the caloric (6) and mechanical (5) equations of state.
Therefore, we can also write
| (28) |
and
| (29) |
Accordingly, the Brayton efficiency becomes
| (30) |
As before in the analysis of the Otto cycle, we now leverage the isentropic strokes. In particular, we again have
| (31) |
which we now need to rewrite in terms of the pressure P. Again employing the mechanical equation of state (5), Equation (31) becomes
| (32) |
where we used that and . Introducing the compressor ratio , the Brayton efficiency (30) can now be written as
| (33) |
which still depends on all four temperatures.
The efficiency can be further simplified by inspecting Equation (32), which we re-write as
| (34) |
and from which we again conclude that . Now using the same “trick” as for the Otto cycle, we obtain
| (35) |
and thus finally
| (36) |
which again depends on both exponents, m and n.
In Figure 3 we illustrate the ideal Brayton efficiency (36) as a function of n and m. We observe that the efficiency is again maximized for and any allowed value of n. In principle, the ideal Brayton efficiency (36) is also maximal in the limit , which however corresponds to highly unstable systems.
Figure 3.

Brayton efficiency (36) as a function of m and n for . The range of parameters corresponds to fundamental relations (2) that describe thermodynamically stable systems.
We then obtain
| (37) |
Thus, we conclude that the Brayton efficiency is also maximized for working mediums whose fundamental relation is linear in temperature.
4. Concluding Remarks
Starting from a general fundamental relation in Helmholtz representation, we derived closed-form expressions for the efficiencies of the ideal Stirling, Otto, and Brayton cycles. These analytical results enabled us to answer a rather innocuous-looking, but actually non-trivial question—namely, which working medium results in the highest thermodynamic efficiency for a particular engine cycle.
For all three cases, we found that any thermodynamic system that is described by a caloric equation of state linear in temperature will give the highest possible efficiency. Interestingly, however, the Stirling efficiency is agnostic to the volume dependence of the Helmholtz potential, where we explicitly only considered ideal cycles with perfect regeneration. The Otto and Brayton efficiencies are slightly more involved, yet also their maximum is independent of the particular functional dependence of the fundamental relation on volume.
More generally, our present work demonstrates that the heat engine efficiency of a given cycle is governed by the underlying structure of the working medium itself. This structure is captured by a generalized fundamental relation, revealing the thermodynamic properties that are most suited for maximal efficiency in a given engine cycle. Future work may include the analysis of more engine cycles, a more complex generalized fundamental relation, or explicit treatments of finite-time thermodynamic processes. The present analysis is entirely phrased in terms of thermodynamic notions. Hence, it will also be interesting to derive fundamental relations accounting for quantum effects that might lead to thermodynamic systems that exhibit performance beyond the polynomial equations of state discussed in this work.
Author Contributions
G.B. conducted the mathematical analysis. S.D. conceived the idea and supervised the development of the study. Both authors wrote the manuscript. All authors have read and agreed to the published version of the manuscript.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.
Conflicts of Interest
The authors declare no conflicts of interest.
Funding Statement
G.B. thanks the Department of Physics at UMBC, which supported this research with a Donald N. Langenberg Undergraduate Research Award. S.D. acknowledges support from the John Templeton Foundation under Grant No. 63626.
Footnotes
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.
References
- 1.Callen H. Thermodynamics and an Introduction to Thermostastistics. Wiley; New York, NY, USA: 1985. [Google Scholar]
- 2.Deffner S. Efficiency of Harmonic Quantum Otto Engines at Maximal Power. Entropy. 2018;20:875. doi: 10.3390/e20110875. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Hoffmann K.H., Burzler J.M., Schubert S. Endoreversible thermodynamics. J. Non-Equilib. Thermodyn. 1997;22:311–355. doi: 10.1515/jnet.1997.22.4.311. [DOI] [Google Scholar]
- 4.Curzon F.L., Ahlborn B. Efficiency of a Carnot engine at maximum power output. Am. J. Phys. 1975;43:22. doi: 10.1119/1.10023. [DOI] [Google Scholar]
- 5.Leff H.S. Thermal efficiency at maximum work output: New results for old heat engines. Am. J. Phys. 1987;55:602. doi: 10.1119/1.15071. [DOI] [Google Scholar]
- 6.Erbay L.B., Yavuz H. Analysis of the Stirling heat engine at maximum power conditions. Energy. 1997;22:645. doi: 10.1016/S0360-5442(96)00159-4. [DOI] [Google Scholar]
- 7.Blank D.A., Davis G.W., Wu C. Power optimization of an endoreversible stirling cycle with regeneration. Energy. 1994;19:125–133. doi: 10.1016/0360-5442(94)90111-2. [DOI] [Google Scholar]
- 8.Kaushik S., Kumar S. Finite time thermodynamic analysis of endoreversible Stirling heat engine with regenerative losses. Energy. 2000;25:989–1003. doi: 10.1016/S0360-5442(00)00023-2. [DOI] [Google Scholar]
- 9.Rezek Y., Kosloff R. Irreversible performance of a quantum harmonic heat engine. New J. Phys. 2006;8:83. doi: 10.1088/1367-2630/8/5/083. [DOI] [Google Scholar]
- 10.Esposito M., Kawai R., Lindenberg K., Van den Broeck C. Efficiency at Maximum Power of Low-Dissipation Carnot Engines. Phys. Rev. Lett. 2010;105:150603. doi: 10.1103/PhysRevLett.105.150603. [DOI] [PubMed] [Google Scholar]
- 11.Abah O., Roßnagel J., Jacob G., Deffner S., Schmidt-Kaler F., Singer K., Lutz E. Single-Ion Heat Engine at Maximum Power. Phys. Rev. Lett. 2012;109:203006. doi: 10.1103/PhysRevLett.109.203006. [DOI] [PubMed] [Google Scholar]
- 12.Roßnagel J., Abah O., Schmidt-Kaler F., Singer K., Lutz E. Nanoscale Heat Engine Beyond the Carnot Limit. Phys. Rev. Lett. 2014;112:030602. doi: 10.1103/PhysRevLett.112.030602. [DOI] [PubMed] [Google Scholar]
- 13.Bonança M.V.S. Approaching Carnot efficiency at maximum power in linear response regime. J. Stat. Mech. 2019;2019:123203. doi: 10.1088/1742-5468/ab4e92. [DOI] [Google Scholar]
- 14.Ferketic E.E., Deffner S. Boosting thermodynamic performance by bending space-time. EPL (Europhys. Lett.) 2023;141:19001. doi: 10.1209/0295-5075/acad9c. [DOI] [Google Scholar]
- 15.Behrendt G., Deffner S. Endoreversible Stirling Cycles: Plasma Engines at Maximal Power. Entropy. 2025;27:807. doi: 10.3390/e27080807. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Kloc M., Cejnar P., Schaller G. Collective performance of a finite-time quantum Otto cycle. Phys. Rev. E. 2019;100:042126. doi: 10.1103/PhysRevE.100.042126. [DOI] [PubMed] [Google Scholar]
- 17.Myers N.M., Deffner S. Bosons outperform fermions: The thermodynamic advantage of symmetry. Phys. Rev. E. 2020;101:012110. doi: 10.1103/PhysRevE.101.012110. [DOI] [PubMed] [Google Scholar]
- 18.Myers N.M., McCready J., Deffner S. Quantum Heat Engines with Singular Interactions. Symmetry. 2021;13:978. doi: 10.3390/sym13060978. [DOI] [Google Scholar]
- 19.Myers N.M., Abah O., Deffner S. Quantum Otto engines at relativistic energies. New J. Phys. 2021;23:105001. doi: 10.1088/1367-2630/ac2756. [DOI] [Google Scholar]
- 20.Myers N.M., Deffner S. Thermodynamics of Statistical Anyons. PRX Quantum. 2021;2:040312. doi: 10.1103/PRXQuantum.2.040312. [DOI] [Google Scholar]
- 21.Myers N.M., Peña F.J., Negrete O., Vargas P., De Chiara G., Deffner S. Boosting engine performance with Bose–Einstein condensation. New J. Phys. 2022;24:025001. doi: 10.1088/1367-2630/ac47cc. [DOI] [Google Scholar]
- 22.Myers N.M., Peña F.J., Cortés N., Vargas P. Multilayer Graphene as an Endoreversible Otto Engine. Nanomaterials. 2023;13:1548. doi: 10.3390/nano13091548. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Peña F.J., Myers N.M., Órdenes D., Albarrán-Arriagada F., Vargas P. Enhanced Efficiency at Maximum Power in a Fock–Darwin Model Quantum Dot Engine. Entropy. 2023;25:518. doi: 10.3390/e25030518. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Smith Z., Pal P.S., Deffner S. Endoreversible Otto Engines at Maximal Power. J. Non-Equilib. Thermodyn. 2020;45:305–310. doi: 10.1515/jnet-2020-0039. [DOI] [Google Scholar]
- 25.Borgnakke C. Fundamentals of Thermodynamics. John Wiley & Sons; Hoboken, NJ, USA: 2025. [Google Scholar]
- 26.Patel R.C., Bass D.C., Dukuze G.P., Andrade A., Combs C.S. Analysis and Development of a Small-Scale Supercritical Carbon Dioxide (sCO2) Brayton Cycle. Energies. 2022;15:3580. doi: 10.3390/en15103580. [DOI] [Google Scholar]
- 27.Chai L., Tassou S.A. A technology review of pumped thermal energy storage based on CO2 cycles. Appl. Therm. Eng. 2025;281:128586. doi: 10.1016/j.applthermaleng.2025.128586. [DOI] [Google Scholar]
- 28.Slattery W.L., Doolen G.D., DeWitt H.E. Improved equation of state for the classical one-component plasma. Phys. Rev. A. 1980;21:2087–2095. doi: 10.1103/PhysRevA.21.2087. [DOI] [Google Scholar]
- 29.Abramowitz M., Stegun I.A. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. Volume 55 US Government Printing Office; Washington, DC, USA: 1948. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.
