The Helmholtz free energy (
) of a fully interacting system (1) can be expressed in terms of that of system harmonic in Cartesian coordinates (0,
) as follows

where
is anharmonic free energy. The latter term can be determined by means of thermodynamic integration (TI)

with
being the potential energy of system
,
is a coupling constant and
is the NVT ensemble average of the system driven by the Hamiltonian

Free energy of harmonic reference system within the quasi-classical theory writes

with the electronic free energy
for the
configuration corresponding to the potential energy minimum with the
atomic position vector
,
the number of vibrational degrees of freedom
, and the angular frequency
of vibrational mode
obtained using the Hesse matrix
.
Finally, the harmonic potential energy is expressed as

Thus, a conventional TI calculation consists of the following steps:
- determine
and
in structural relaxation
- compute
in vibrational analysis
- use the data obtained in the point 2 to determine
that defines the harmonic forcefield
- perform NVT MD simulations for several values of
and determined 