Consider two systems, A and B, with potential energies U A {\displaystyle U_{A}} and U B {\displaystyle U_{B}} . The potential energy in either system can be calculated as an ensemble average over configurations sampled from a molecular dynamics or Monte Carlo simulation with proper Boltzmann weighting. Now consider a new potential energy function defined as:
Here, λ {\displaystyle \lambda } is defined as a coupling parameter with a value between 0 and 1, and thus the potential energy as a function of λ {\displaystyle \lambda } varies from the energy of system A for λ = 0 {\displaystyle \lambda =0} and system B for λ = 1 {\displaystyle \lambda =1} . In the canonical ensemble, the partition function of the system can be written as:
In this notation, U s ( λ ) {\displaystyle U_{s}(\lambda )} is the potential energy of state s {\displaystyle s} in the ensemble with potential energy function U ( λ ) {\displaystyle U(\lambda )} as defined above. The free energy of this system is defined as:
If we take the derivative of F with respect to λ, we will get that it equals the ensemble average of the derivative of potential energy with respect to λ.
The change in free energy between states A and B can thus be computed from the integral of the ensemble averaged derivatives of potential energy over the coupling parameter λ {\displaystyle \lambda } .2 In practice, this is performed by defining a potential energy function U ( λ ) {\displaystyle U(\lambda )} , sampling the ensemble of equilibrium configurations at a series of λ {\displaystyle \lambda } values, calculating the ensemble-averaged derivative of U ( λ ) {\displaystyle U(\lambda )} with respect to λ {\displaystyle \lambda } at each λ {\displaystyle \lambda } value, and finally computing the integral over the ensemble-averaged derivatives.
Umbrella sampling is a related free energy method. It adds a bias to the potential energy. In the limit of an infinite strong bias it is equivalent to thermodynamic integration.3
Kirkwood, John G. (1935). "Statistical Mechanics of Fluid Mixtures". The Journal of Chemical Physics. 3 (5): 300–313. Bibcode:1935JChPh...3..300K. doi:10.1063/1.1749657. /wiki/Bibcode_(identifier) ↩
Frenkel, Daan and Smit, Berend. Understanding Molecular Simulation: From Algorithms to Applications. Academic Press, 2007 ↩
J Kästner; et al. (2006). "QM/MM Free-Energy Perturbation Compared to Thermodynamic Integration and Umbrella Sampling: Application to an Enzymatic Reaction". Journal of Chemical Theory and Computation. 2 (2): 452–461. doi:10.1021/ct050252w. PMID 26626532. /wiki/Doi_(identifier) ↩