<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=2409%3A40F4%3A30A7%3A77E7%3A2C56%3A2226%3A3B1F%3A98FC</id>
	<title>Vero - Wikipedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=2409%3A40F4%3A30A7%3A77E7%3A2C56%3A2226%3A3B1F%3A98FC"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php/Special:Contributions/2409:40F4:30A7:77E7:2C56:2226:3B1F:98FC"/>
	<updated>2026-08-14T18:48:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=Helmholtz_free_energy&amp;diff=171579</id>
		<title>Helmholtz free energy</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Helmholtz_free_energy&amp;diff=171579"/>
		<updated>2025-09-18T05:20:15Z</updated>

		<summary type="html">&lt;p&gt;2409:40F4:30A7:77E7:2C56:2226:3B1F:98FC: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Thermodynamic potential}}&lt;br /&gt;
{{Thermodynamics|expanded=Potentials}}&lt;br /&gt;
&lt;br /&gt;
In [[thermodynamics]], the &#039;&#039;&#039;Helmholtz free energy&#039;&#039;&#039; (or &#039;&#039;&#039;Helmholtz energy&#039;&#039;&#039;) is a [[thermodynamic potential]] that measures the useful [[work (thermodynamics)|work]] obtainable from a [[closed system|closed]] [[thermodynamic system]] at a constant [[temperature]] ([[Isothermal process|isothermal]]). The change in the Helmholtz energy during a process is equal to the maximum amount of work that the system can perform in a thermodynamic process in which temperature is held constant. At constant temperature, the Helmholtz free energy is minimized at equilibrium.&lt;br /&gt;
&lt;br /&gt;
In contrast, the [[Gibbs free energy]] or free enthalpy is most commonly used as a measure of thermodynamic potential (especially in [[chemistry]]) when it is convenient for applications that occur at constant &#039;&#039;pressure&#039;&#039;.  For example, in [[explosives]] research Helmholtz free energy is often used, since explosive reactions by their nature induce pressure changes. It is also frequently used to define fundamental [[equation of state|equations of state]] of pure substances.&lt;br /&gt;
&lt;br /&gt;
The concept of free energy was developed by [[Hermann von Helmholtz]], a German physicist, and first presented in 1882 in a lecture called &amp;quot;On the thermodynamics of chemical processes&amp;quot;.&amp;lt;ref&amp;gt;{{cite book | author = von Helmholtz, H. | date = 1882 | title = Physical memoirs, selected and translated from foreign sources | publisher = [[Taylor &amp;amp; Francis]]}}&amp;lt;/ref&amp;gt; From the German word &#039;&#039;Arbeit&#039;&#039; (work), the [[International Union of Pure and Applied Chemistry]] (IUPAC) recommends the symbol &#039;&#039;A&#039;&#039; and the name &#039;&#039;Helmholtz energy&#039;&#039;.&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;{{cite book | title = Gold Book | year = 2019 | publisher = [[IUPAC]] | url = http://goldbook.iupac.org/H02772.html | access-date = 2012-08-19 | doi=10.1351/goldbook| editor1-last = Gold | editor1-first = Victor }}&amp;lt;/ref&amp;gt; In [[physics]], the symbol &#039;&#039;F&#039;&#039; is also used in reference to &#039;&#039;free energy&#039;&#039; or &#039;&#039;Helmholtz function&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
The Helmholtz free energy is defined as&amp;lt;ref&amp;gt;Levine, Ira. N. (1978). &amp;quot;&#039;&#039;Physical Chemistry&#039;&#039;&amp;quot; McGraw-Hill: University of Brooklyn.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A \equiv U - TS,&amp;lt;/math&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
* &#039;&#039;A&#039;&#039; is the Helmholtz free energy&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt; (sometimes also called &#039;&#039;F&#039;&#039;, particularly in the field of [[physics]]) ([[SI]]: [[joule]]s, [[Centimetre–gram–second system of units|CGS]]: [[erg]]s),&lt;br /&gt;
* &#039;&#039;U&#039;&#039; is the [[internal energy]] of the system (SI: joules, CGS: ergs),&lt;br /&gt;
* &#039;&#039;T&#039;&#039; is the absolute temperature ([[kelvin]]s) of the surroundings, modelled as a heat bath,&lt;br /&gt;
* &#039;&#039;S&#039;&#039; is the [[entropy]] of the system (SI: joules per kelvin, CGS: ergs per kelvin).&lt;br /&gt;
&lt;br /&gt;
The Helmholtz energy is the [[Legendre transformation]] of the internal energy &#039;&#039;U&#039;&#039;, in which temperature replaces entropy as the independent variable.&lt;br /&gt;
&lt;br /&gt;
==Formal development==&lt;br /&gt;
The [[first law of thermodynamics]] in a closed system provides&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{d}U = \delta Q\ - \delta W,&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt; is the internal energy, &amp;lt;math&amp;gt;\delta Q&amp;lt;/math&amp;gt; is the energy added as heat, and &amp;lt;math&amp;gt;\delta W&amp;lt;/math&amp;gt; is the work done on the system. The [[second law of thermodynamics]] for a [[reversible process (thermodynamics)|reversible process]] yields &amp;lt;math&amp;gt;\delta Q = T\,\mathrm{d}S&amp;lt;/math&amp;gt;. In case of a reversible change, the work done can be expressed as &amp;lt;math&amp;gt;\delta W = p\,\mathrm{d}V&amp;lt;/math&amp;gt; (ignoring electrical and other non-&#039;&#039;PV&#039;&#039; work) and so:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{d}U = T\,\mathrm{d}S - p\,\mathrm{d}V.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Applying the product rule for differentiation to &amp;lt;math&amp;gt;\mathrm{d}(TS) = T \mathrm{d}S\, + S\mathrm{d}T&amp;lt;/math&amp;gt;, it follows&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{d}U = \mathrm{d}(TS) - S\,\mathrm{d}T - p\,\mathrm{d}V,&amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{d}(U - TS) = -S\,\mathrm{d}T - p\,\mathrm{d}V.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The definition of &amp;lt;math&amp;gt;A = U - TS&amp;lt;/math&amp;gt; allows us to rewrite this as &lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{d}A = -S\,\mathrm{d}T - p\,\mathrm{d}V.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because &#039;&#039;A&#039;&#039; is a thermodynamic [[Functions of state|function of state]], this [[fundamental thermodynamic relation|relation]] is also valid for a process (without electrical work or composition change) that is not reversible.&lt;br /&gt;
&lt;br /&gt;
==Minimum free energy and maximum work principles==&lt;br /&gt;
The laws of thermodynamics are only directly applicable to systems in thermal equilibrium. If we wish to describe phenomena like chemical reactions, then the best we can do is to consider suitably chosen initial and final states in which the system is in (metastable) thermal equilibrium. If the system is kept at fixed volume and is in contact with a heat bath at some constant temperature, then we can reason as follows.&lt;br /&gt;
&lt;br /&gt;
Since the thermodynamical variables of the system are well defined in the initial state and the final state, the internal energy increase &amp;lt;math&amp;gt;\Delta U&amp;lt;/math&amp;gt;, the [[entropy]] increase &amp;lt;math&amp;gt;\Delta S&amp;lt;/math&amp;gt;, and the total amount of work that can be extracted, performed by the system, &amp;lt;math&amp;gt;W&amp;lt;/math&amp;gt;, are well defined quantities. Conservation of energy implies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\Delta U_\text{bath} + \Delta U + W = 0.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The volume of the system is kept constant. This means that the volume of the heat bath does not change either, and we can conclude that the heat bath does not perform any work. This implies that the amount of heat that flows into the heat bath is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;Q_\text{bath} = \Delta U_\text{bath} = -(\Delta U + W).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The heat bath remains in thermal equilibrium at temperature &#039;&#039;T&#039;&#039; no matter what the system does. Therefore, the entropy change of the heat bath is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\Delta S_\text{bath} = \frac{Q_\text{bath}}{T} = -\frac{\Delta U + W}{T}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The total entropy change is thus given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\Delta S_\text{bath} + \Delta S = -\frac{\Delta U - T\Delta S + W}{T}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since the system is in thermal equilibrium with the heat bath in the initial and the final states, &#039;&#039;T&#039;&#039; is also the temperature of the system in these states. The fact that the system&#039;s temperature does not change allows us to express the numerator as the free energy change of the system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\Delta S_\text{bath} + \Delta S = -\frac{\Delta A + W}{T}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since the total change in entropy must always be larger or equal to zero, we obtain the inequality&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;W \leq -\Delta A.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We see that the total amount of work that can be extracted in an isothermal process is limited by the free-energy decrease, and that increasing the free energy in a reversible process requires work to be done on the system. If no work is extracted from the system, then&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\Delta A \leq 0,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and thus for a system kept at constant temperature and volume and not capable of performing electrical or other non-&#039;&#039;PV&#039;&#039; work, the total free energy during a spontaneous change can only decrease.&lt;br /&gt;
&lt;br /&gt;
This result seems to contradict the equation &amp;lt;math&amp;gt;\mathrm{d} A = -S \,\mathrm{d} T - p \,\mathrm{d} V&amp;lt;/math&amp;gt;, as keeping &#039;&#039;T&#039;&#039; and &#039;&#039;V&#039;&#039; constant seems to imply &amp;lt;math&amp;gt;\mathrm{d} A = 0&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;A = \mathrm{const.}&amp;lt;/math&amp;gt; In reality there is no contradiction: In a simple one-component system, to which the validity of the equation &amp;lt;math&amp;gt;\mathrm{d} A = -S \,\mathrm{d} T - p \,\mathrm{d} V&amp;lt;/math&amp;gt; is restricted, no process can occur at constant &#039;&#039;T&#039;&#039; and &#039;&#039;V&#039;&#039;, since there is a unique &amp;lt;math&amp;gt;P(T, V)&amp;lt;/math&amp;gt; relation, and thus &#039;&#039;T&#039;&#039;, &#039;&#039;V&#039;&#039;, and &#039;&#039;P&#039;&#039; are all fixed. To allow for spontaneous processes at constant &#039;&#039;T&#039;&#039; and &#039;&#039;V&#039;&#039;, one needs to enlarge the thermodynamical state space of the system. In case of a chemical reaction, one must allow for changes in the numbers &#039;&#039;N&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;j&#039;&#039;&amp;lt;/sub&amp;gt; of particles of each type &#039;&#039;j&#039;&#039;. The differential of the free energy then generalizes to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{d} A = -S \,\mathrm{d} T + P \,\mathrm{d} V + \sum_j \mu_j \,\mathrm{d} N_j,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;math&amp;gt;N_{j}&amp;lt;/math&amp;gt; are the numbers of particles of type j and the  &amp;lt;math&amp;gt;\mu_{j}&amp;lt;/math&amp;gt; are the corresponding [[chemical potential]]s. This equation is then again valid for both reversible and non-reversible changes. In case of a spontaneous change at constant T and V,  the last term will thus be negative.&lt;br /&gt;
&lt;br /&gt;
In case there are other external parameters, the above [[fundamental thermodynamic relation|relation]] further generalizes to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{d} A = -S \,\mathrm{d} T - \sum_i X_i \,\mathrm{d} x_i + \sum_j \mu_j \,\mathrm{d} N_j.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here the &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; are the external variables, and the &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt; the corresponding [[generalized forces]].&lt;br /&gt;
&lt;br /&gt;
==Relation to the canonical partition function==&lt;br /&gt;
A system kept at constant volume, temperature, and particle number is described by the [[canonical ensemble]]. The probability of finding the system in some energy eigenstate &#039;&#039;r&#039;&#039;, for any microstate &#039;&#039;i&#039;&#039;, is given by&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;P_r = \frac{e^{-\beta E_r}}{Z},&amp;lt;/math&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
*&amp;lt;math&amp;gt;\beta = \frac{1}{k T},&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;E_r&amp;lt;/math&amp;gt; is the energy of accessible state &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;Z = \sum_i e^{-\beta E_i}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Z&#039;&#039; is called the [[partition function (statistical mechanics)|partition function]] of the system. The fact that the system does not have a unique energy means that the various thermodynamical quantities must be defined as expectation values. In the thermodynamical limit of infinite system size, the relative fluctuations in these averages will go to zero.&lt;br /&gt;
&lt;br /&gt;
The average internal energy of the system is the expectation value of the energy and can be expressed in terms of &#039;&#039;Z&#039;&#039; as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;U \equiv \langle E \rangle&lt;br /&gt;
= \sum_r P_r E_r&lt;br /&gt;
= \sum_r \frac{e^{-\beta E_r} E_r}{Z}&lt;br /&gt;
= \sum_r \frac{-\frac{\partial}{\partial \beta} e^{-\beta E_r}}{Z}&lt;br /&gt;
= \frac{-\frac{\partial}{\partial \beta} \sum_r e^{-\beta E_r}}{Z}&lt;br /&gt;
= -\frac{\partial \log Z}{\partial \beta}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the system is in state &#039;&#039;r&#039;&#039;, then the generalized force corresponding to an external variable &#039;&#039;x&#039;&#039; is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;X_r = -\frac{\partial E_r}{\partial x}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The thermal average of this can be written as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;X = \sum_r P_r X_r = \frac{1}{\beta} \frac{\partial \log Z}{\partial x}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suppose that the system has one external variable &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;. Then changing the system&#039;s temperature parameter by &amp;lt;math&amp;gt;d\beta&amp;lt;/math&amp;gt; and the external variable by &amp;lt;math&amp;gt;dx&amp;lt;/math&amp;gt; will lead to a change in &amp;lt;math&amp;gt;\log Z&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;d(\log Z) = \frac{\partial\log Z}{\partial\beta}\,d\beta + \frac{\partial\log Z}{\partial x}\,dx = -U\,d\beta + \beta X\,dx.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If we write &amp;lt;math&amp;gt;U\,d\beta&amp;lt;/math&amp;gt; as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;U\,d\beta = d(\beta U) - \beta\, dU,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
we get&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;d(\log Z) = -d(\beta U) + \beta\, dU + \beta X \,dx.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means that the change in the internal energy is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;dU = \frac{1}{\beta}\,d(\log Z + \beta U) - X\,dx.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the thermodynamic limit, the [[fundamental thermodynamic relation]] should hold:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;dU = T\, dS - X\, dx.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This then implies that the entropy of the system is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;S = k\log Z + \frac{U}{T} + c,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;c&#039;&#039; is some constant. The value of &#039;&#039;c&#039;&#039; can be determined by considering the limit &#039;&#039;T&#039;&#039; → 0. In this limit the entropy becomes &amp;lt;math&amp;gt;S = k \log \Omega_0&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;\Omega_0&amp;lt;/math&amp;gt; is the ground-state degeneracy. The partition function in this limit is &amp;lt;math&amp;gt;\Omega_0 e^{-\beta U_0}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;U_0&amp;lt;/math&amp;gt; is the ground-state energy. Thus, we see that &amp;lt;math&amp;gt;c = 0&amp;lt;/math&amp;gt; and that&lt;br /&gt;
&lt;br /&gt;
{{Equation box 1&lt;br /&gt;
|indent=:&lt;br /&gt;
|title=  Microscopic definition of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;:&lt;br /&gt;
|equation=&amp;lt;math&amp;gt;\, A = -kT\log Z.&amp;lt;/math&amp;gt;&lt;br /&gt;
|border = 1&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Relating free energy to other variables ===&lt;br /&gt;
&lt;br /&gt;
Combining the definition of Helmholtz free energy&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A = U - T S&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
along with the fundamental thermodynamic relation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{d} A = -S \,\mathrm{d} T - P\,\mathrm{d} V + \mu \,\mathrm{d} N,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
one can find expressions for entropy, pressure and chemical potential:&amp;lt;ref&amp;gt;{{Cite web|url=http://theory.physics.manchester.ac.uk/~judith/stat_therm/node70.html|title=4.3 Entropy, Helmholtz Free Energy and the Partition Function|website=theory.physics.manchester.ac.uk|access-date=2016-12-06}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;S = \left.-\left( \frac{\partial A}{\partial T} \right) \right|_{V,N}, \quad&lt;br /&gt;
P = \left.-\left( \frac{\partial A}{\partial V} \right) \right|_{T,N}, \quad&lt;br /&gt;
\mu = \left.\left( \frac{\partial A}{\partial N} \right) \right|_{T,V}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These three equations, along with the free energy in terms of the partition function,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A = -kT\log Z,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
allow an efficient way of calculating thermodynamic variables of interest given the partition function and are often used in density of state calculations. One can also do [[Legendre transformation]]s for different systems.  For example, for a system with a magnetic field or potential, it is true that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;m = \left.-\left( \frac{\partial A}{\partial B} \right) \right|_{T,N}, \quad&lt;br /&gt;
V = \left.\left ( \frac{\partial A}{\partial Q} \right) \right|_{N,T}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Bogoliubov inequality==&lt;br /&gt;
Computing the free energy is an intractable problem for all but the simplest models in statistical physics. A powerful approximation method is [[mean-field theory]], which is a variational method based on the Bogoliubov inequality. This inequality can be formulated as follows.&lt;br /&gt;
&lt;br /&gt;
Suppose we replace the real Hamiltonian &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt; of the model by a trial Hamiltonian &amp;lt;math&amp;gt;\tilde{H}&amp;lt;/math&amp;gt;, which has different interactions and may depend on extra parameters that are not present in the original model. If we choose this trial Hamiltonian such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\left\langle\tilde{H}\right\rangle = \langle H \rangle,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where both averages are taken with respect to the canonical distribution defined by the trial Hamiltonian &amp;lt;math&amp;gt;\tilde{H}&amp;lt;/math&amp;gt;, then the Bogoliubov inequality states&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A \leq \tilde{A},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is the free energy of the original Hamiltonian, and &amp;lt;math&amp;gt;\tilde{A}&amp;lt;/math&amp;gt; is the free energy of the trial Hamiltonian. We will prove this below.&lt;br /&gt;
&lt;br /&gt;
By including a large number of parameters in the trial Hamiltonian and minimizing the free energy, we can expect to get a close approximation to the exact free energy.&lt;br /&gt;
&lt;br /&gt;
The Bogoliubov inequality is often applied in the following way. If we write the Hamiltonian as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;H = H_0 + \Delta H,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;H_0&amp;lt;/math&amp;gt; is some exactly solvable Hamiltonian, then we can apply the above inequality by defining&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\tilde{H} = H_0 + \langle\Delta H\rangle_0.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here we have defined &amp;lt;math&amp;gt;\langle X\rangle_0&amp;lt;/math&amp;gt; to be the average of &#039;&#039;X&#039;&#039; over the canonical ensemble defined by &amp;lt;math&amp;gt;H_0&amp;lt;/math&amp;gt;. Since &amp;lt;math&amp;gt;\tilde{H}&amp;lt;/math&amp;gt; defined this way differs from &amp;lt;math&amp;gt;H_0&amp;lt;/math&amp;gt; by a constant, we have in general&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\langle X\rangle_0 = \langle X\rangle.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\langle X\rangle&amp;lt;/math&amp;gt; is still the average over &amp;lt;math&amp;gt;\tilde{H}&amp;lt;/math&amp;gt;, as specified above. Therefore,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\left\langle\tilde{H}\right\rangle = \big\langle H_0 + \langle\Delta H\rangle \big\rangle = \langle H\rangle,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and thus the inequality&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A \leq \tilde{A}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
holds. The free energy &amp;lt;math&amp;gt;\tilde{A}&amp;lt;/math&amp;gt; is the free energy of the model defined by &amp;lt;math&amp;gt;H_0&amp;lt;/math&amp;gt; plus &amp;lt;math&amp;gt;\langle\Delta H\rangle&amp;lt;/math&amp;gt;. This means that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\tilde{A} = \langle H_0\rangle_0 - T S_0 + \langle\Delta H\rangle_0 = \langle H\rangle_0 - T S_0,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and thus&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A\leq \langle H\rangle_0 - T S_0.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Proof of the Bogoliubov inequality===&lt;br /&gt;
&lt;br /&gt;
For a classical model we can prove the Bogoliubov inequality as follows. We denote the canonical probability distributions for the Hamiltonian and the trial Hamiltonian by &amp;lt;math&amp;gt;P_{r}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\tilde{P}_{r}&amp;lt;/math&amp;gt;, respectively. From [[Gibbs&#039; inequality]] we know that:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\sum_{r} \tilde{P}_{r}\log\left(\tilde{P}_{r}\right)\geq \sum_{r} \tilde{P}_{r}\log\left(P_{r}\right) \,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
holds. To see this, consider the difference between the left hand side and the right hand side. We can write this as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\sum_{r} \tilde{P}_{r}\log\left(\frac{\tilde{P}_{r}}{P_{r}}\right) \,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\log\left(x\right)\geq 1 - \frac{1}{x}\,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it follows that:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\sum_{r} \tilde{P}_{r}\log\left(\frac{\tilde{P}_{r}}{P_{r}}\right)\geq \sum_{r}\left(\tilde{P}_{r} - P_{r}\right) = 0 \,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where in the last step we have used that both probability distributions are normalized to 1.&lt;br /&gt;
&lt;br /&gt;
We can write the inequality as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\left\langle\log\tilde{P}_{r}\right\rangle \geq \left\langle\log P_{r} \right\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the averages are taken with respect to &amp;lt;math&amp;gt;\tilde{P}_{r}&amp;lt;/math&amp;gt;. If we now substitute in here the expressions for the probability distributions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;P_{r} = \frac{\exp\left[-\beta H(r)\right]}{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\tilde{P}_{r} = \frac{\exp\left[-\beta\tilde{H}(r)\right]}{\tilde{Z}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
we get:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\left\langle -\beta \tilde{H} - \log \tilde{Z} \right\rangle\geq \left\langle -\beta H - \log Z \right\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since the averages of &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\tilde{H}&amp;lt;/math&amp;gt; are, by assumption, identical we have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A\leq\tilde{A}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here we have used that the partition functions are constants with respect to taking averages and that the free energy is proportional to minus the logarithm of the partition function.&lt;br /&gt;
&lt;br /&gt;
We can easily generalize this proof to the case of quantum mechanical models. We denote the eigenstates of &amp;lt;math&amp;gt;\tilde{H}&amp;lt;/math&amp;gt; by &amp;lt;math&amp;gt;\left|r\right\rangle&amp;lt;/math&amp;gt;. We denote the diagonal components of the density matrices for the canonical distributions for &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\tilde{H}&amp;lt;/math&amp;gt; in this basis as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;P_{r}=\left\langle r\left|\frac{\exp\left[-\beta H\right]}{Z}\right|r\right\rangle\,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\tilde{P}_{r}=\left\langle r\left|\frac{\exp\left[-\beta\tilde{H}\right]}{\tilde{Z}}\right|r\right\rangle=\frac{\exp\left(-\beta\tilde{E}_{r}\right)}{\tilde{Z}}\,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;math&amp;gt;\tilde{E}_{r}&amp;lt;/math&amp;gt; are the eigenvalues of &amp;lt;math&amp;gt;\tilde{H}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We assume again that the averages of H and &amp;lt;math&amp;gt;\tilde{H}&amp;lt;/math&amp;gt; in the canonical ensemble defined by &amp;lt;math&amp;gt;\tilde{H}&amp;lt;/math&amp;gt; are the same:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\left\langle\tilde{H}\right\rangle = \left\langle H\right\rangle \,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\left\langle H\right\rangle = \sum_{r}\tilde{P}_{r}\left\langle r\left|H\right|r\right\rangle\,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The inequality&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\sum_{r} \tilde{P}_{r} \log \tilde{P}_{r} \geq \sum_{r} \tilde{P}_{r} \log P_{r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
still holds as both the &amp;lt;math&amp;gt;P_{r}&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;\tilde{P}_{r}&amp;lt;/math&amp;gt; sum to 1. On the left-hand side we can replace:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\log \tilde{P}_{r} = -\beta \tilde{E}_{r} - \log \tilde{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the right-hand side we can use the inequality&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\left\langle e^X \right\rangle_{r} \geq e^{{\left\langle X \right\rangle}_{r}}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we have introduced the notation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\left\langle Y\right\rangle_{r}\equiv\left\langle r\left|Y\right|r\right\rangle\,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for the expectation value of the operator Y in the state r. [[Jensen&#039;s inequality#Statistical physics|See here]] for a proof. Taking the logarithm of this inequality gives:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\log\left[\left\langle e^X \right\rangle_{r}\right]\geq\left\langle X\right\rangle_{r}\,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows us to write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\log P_{r} = \log\left[\left\langle \exp\left(-\beta H - \log Z \right)\right\rangle_{r}\right] \geq \left\langle -\beta H - \log Z\right\rangle_{r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The fact that the averages of H and &amp;lt;math&amp;gt;\tilde{H}&amp;lt;/math&amp;gt; are the same then leads to the same conclusion as in the classical case:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A\leq\tilde{A}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generalized Helmholtz energy ==&lt;br /&gt;
&lt;br /&gt;
In the more general case, the mechanical term &amp;lt;math&amp;gt;p\mathrm{d}V&amp;lt;/math&amp;gt; must be replaced by the product of volume, [[Stress (physics)|stress]], and an infinitesimal strain:&amp;lt;ref&amp;gt;{{cite book&lt;br /&gt;
 | last = Landau&lt;br /&gt;
 | first = L. D.&lt;br /&gt;
 | author-link = Lev Landau&lt;br /&gt;
 |author2=Lifshitz, E. M. |author-link2=Evgeny Lifshitz &lt;br /&gt;
 | others = (Translated from Russian by J. B. Sykes and W. H. Reid)&lt;br /&gt;
 | year = 1986&lt;br /&gt;
 | title = Theory of Elasticity (Course of Theoretical Physics Volume 7)&lt;br /&gt;
 | edition = Third&lt;br /&gt;
 | publisher = Butterworth Heinemann&lt;br /&gt;
 | location = Boston, MA &lt;br /&gt;
 | isbn = 0-7506-2633-X&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{d}A = V \sum_{ij} \sigma_{ij}\,\mathrm{d} \varepsilon_{ij} - S\,\mathrm{d}T + \sum_i \mu_i \,\mathrm{d}N_i,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\sigma_{ij}&amp;lt;/math&amp;gt; is the stress tensor, and &amp;lt;math&amp;gt;\varepsilon_{ij}&amp;lt;/math&amp;gt; is the strain tensor. In the case of linear [[Elasticity (physics)|elastic]] materials that obey [[Hooke&#039;s law]], the stress is related to the strain by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\sigma_{ij} = C_{ijkl}\varepsilon_{kl},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we are now using [[Einstein notation]] for the tensors, in which repeated indices in a product are summed. We may integrate the expression for &amp;lt;math&amp;gt;\mathrm{d}A&amp;lt;/math&amp;gt; to obtain the Helmholtz energy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
 A &amp;amp;= \frac{1}{2}VC_{ijkl}\varepsilon_{ij}\varepsilon_{kl} - ST + \sum_i \mu_i N_i \\&lt;br /&gt;
   &amp;amp;= \frac{1}{2}V\sigma_{ij}\varepsilon_{ij} - ST + \sum_i \mu_i N_i.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Application to fundamental equations of state ==&lt;br /&gt;
&lt;br /&gt;
The Helmholtz free energy function for a pure substance (together with its partial derivatives) can be used to determine all other thermodynamic properties for the substance. See, for example, the equations of state for [[water]], as given by the [[IAPWS]] in their [https://web.archive.org/web/20110726024808/http://www.iapws.org/relguide/IAPWS95-Rev.pdf IAPWS-95] release.&lt;br /&gt;
&lt;br /&gt;
== Application to training auto-encoders ==&lt;br /&gt;
&lt;br /&gt;
Hinton and Zemel&amp;lt;ref&amp;gt;{{cite journal|last1=Hinton|first1=G. E.|last2=Zemel|first2=R. S.|title=Autoencoders, minimum description length and Helmholtz free energy|journal=Advances in Neural Information Processing Systems|date=1994|pages=3–10|url=https://proceedings.neurips.cc/paper/1993/file/9e3cfc48eccf81a0d57663e129aef3cb-Paper.pdf}}&amp;lt;/ref&amp;gt; &amp;quot;derive an objective function for training [[autoencoder|auto-encoder]] based on the [[minimum description length]] (MDL) principle&amp;quot;. &amp;quot;The description length of an input vector using a particular code is the sum of the code cost and reconstruction cost. They define this to be the energy of the code. Given an input vector, they define the energy of a code to be the sum of the code cost and the reconstruction cost.&amp;quot; The true expected combined cost is&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A = \sum_i p_i E_i - H ,&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;quot;which has exactly the form of Helmholtz free energy&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Gibbs free energy]] and [[thermodynamic free energy]] for thermodynamics history overview and discussion of &#039;&#039;free energy&#039;&#039;&lt;br /&gt;
* [[Grand potential]]&lt;br /&gt;
* [[Enthalpy]]&lt;br /&gt;
* [[Statistical mechanics]]&lt;br /&gt;
* This page details the Helmholtz energy from the point of view of [[thermodynamics|thermal]] and [[statistical physics]].&lt;br /&gt;
* [[Bennett acceptance ratio]] for an efficient way to calculate free energy differences and comparison with other methods.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
* Atkins&#039; &#039;&#039;Physical Chemistry&#039;&#039;, 7th edition, by [[Peter Atkins]] and Julio de Paula, Oxford University Press&lt;br /&gt;
* HyperPhysics Helmholtz Free Energy [http://hyperphysics.phy-astr.gsu.edu/hbase/thermo/helmholtz.html Helmholtz and Gibbs Free Energies]&lt;br /&gt;
&lt;br /&gt;
{{Statistical mechanics topics}}&lt;br /&gt;
{{Authority control}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Physical quantities]]&lt;br /&gt;
[[Category:Hermann von Helmholtz]]&lt;br /&gt;
[[Category:State functions]]&lt;br /&gt;
[[Category:Thermodynamic free energy]]&lt;/div&gt;</summary>
		<author><name>2409:40F4:30A7:77E7:2C56:2226:3B1F:98FC</name></author>
	</entry>
</feed>